我有一个带有一些基本按钮和一些翻译动画的菜单。我想知道如何在后台运行动画,以便在动画运行时按钮仍然可见?
代码:
setContentView(R.layout.main);
image1 = (ImageView)findViewById(R.id.greenbox);
image2 = (ImageView)findViewById(R.id.redbox);
image3 = (ImageView)findViewById(R.id.purplebox);
// Animations
image1.setAnimation(mAnimation);
image2.setAnimation(mAnimation);
image3.setAnimation(mAnimation2);
butPlay = (Button) findViewById(R.id.buttonPlay);
butHow = (Button) findViewById(R.id.buttonHow);
butOptions = (Button) findViewById(R.id.buttonOptions);
butPlay.setOnClickListener(this);
butHow.setOnClickListener(this);
butOptions.setOnClickListener(this);
提前致谢