-
-
Save codingwithsara/87f4302f51c780951d71e4f2664e5ef0 to your computer and use it in GitHub Desktop.
Activity Animation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package jp.codeforfun.activityanimation; | |
import android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
import android.view.View; | |
public class MainActivity extends AppCompatActivity implements View.OnClickListener { | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_main); | |
// クリックリスナーをセット | |
findViewById(R.id.normalBtn).setOnClickListener(this); | |
findViewById(R.id.fadeBtn).setOnClickListener(this); | |
findViewById(R.id.slideBtn).setOnClickListener(this); | |
} | |
@Override | |
public void onClick(View v) { | |
// ボタンが押された時の処理を書きます | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment