Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Activity Animation
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
You can’t perform that action at this time.