@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
imageView = (ImageView) findViewById(R.id.imageView1);
btn01 = (Button) findViewById(R.id.button1);
btn01.setOnClickListener(new MyOnClickListener(InterpolatorType.Accelerate));
btn02 = (Button) findViewById(R.id.button2);
btn02.setOnClickListener(new MyOnClickListener(InterpolatorType.Decelerate));
btn03 = (Button) findViewById(R.id.button3);
btn03.setOnClickListener(new MyOnClickListener(InterpolatorType.AccelerateDecelerate));
btn04 = (Button) findViewById(R.id.button4);
btn04.setOnClickListener(new MyOnClickListener(InterpolatorType.LinearInterpolator));
btn05 = (Button) findViewById(R.id.button5);
btn05.setOnClickListener(new MyOnClickListener(InterpolatorType.BounceInterpolator));
btn06 = (Button) findViewById(R.id.button6);
btn06.setOnClickListener(new MyOnClickListener(InterpolatorType.AnticipateInterpolator));
btn07 = (Button) findViewById(R.id.button7);
btn07.setOnClickListener(new MyOnClickListener(InterpolatorType.AnticipateOvershootInterpolator));
btn08 = (Button) findViewById(R.id.button8);
btn08.setOnClickListener(new MyOnClickListener(InterpolatorType.CycleInterpolator));
btn09 = (Button) findViewById(R.id.button9);
btn09.setOnClickListener(new MyOnClickListener(InterpolatorType.OvershootInterpolator));
}
MainActivity.java 文件源码
java
阅读 14
收藏 0
点赞 0
评论 0
项目:itheima
作者:
评论列表
文章目录