Android Open Source - HappyBirthday Rules






From Project

Back to project page HappyBirthday.

License

The source code is released under:

Apache License

If you think the Android project HappyBirthday 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 tk.eatheat.happybirthday;
//from   w  w w  . j  a  va2s .  c  o  m
import android.app.Activity;
import android.os.Bundle;
import android.widget.ImageButton;
import android.view.View;
import android.view.View.OnClickListener;
import android.content.Intent;

public class Rules extends Activity {
 
  ImageButton arrow2;
 
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.rules);
 
    addListenerOnButton();
 
  }
 
  public void addListenerOnButton() {
 
    arrow2 = (ImageButton) findViewById(R.id.arrow2);
 
    arrow2.setOnClickListener(new OnClickListener() {
 
      @Override
            public void onClick(View v) {
            Intent intent=new Intent(getApplicationContext(), End.class);
            startActivity(intent);
 
      }
 
    });
 
  }
 
}




Java Source Code List

tk.eatheat.happybirthday.Bday.java
tk.eatheat.happybirthday.DraggableGridView.java
tk.eatheat.happybirthday.End.java
tk.eatheat.happybirthday.Main.java
tk.eatheat.happybirthday.OnRearrangeListener.java
tk.eatheat.happybirthday.Rules.java