Android Open Source - Module3-DreamPlanner Main Activity






From Project

Back to project page Module3-DreamPlanner.

License

The source code is released under:

Apache License

If you think the Android project Module3-DreamPlanner listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.github.pongdang.swipetabsdialog;
/* ww  w  . ja  v a  2s  .  c o m*/
import com.example.swipetabsdialog.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class MainActivity extends Activity {

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    
    ((Button) findViewById(R.id.btn)).setOnClickListener(new OnClickListener() {
      
      @Override
      public void onClick(View v) {
        Intent intent = new Intent(getApplicationContext(), SwipeTabs.class);
        intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
        startActivity(intent);
      }
    });
  }
}




Java Source Code List

com.github.pongdang.swipetabsdialog.MainActivity.java
com.github.pongdang.swipetabsdialog.SwipeTabs.java
com.github.pongdang.swipetabsdialog.Tab1.java
com.github.pongdang.swipetabsdialog.Tab2.java
com.github.pongdang.swipetabsdialog.Tab3.java