给那个view添加了setAnimation()总是不起作用。
------解决方案--------------------
核心代码如下:
- Java code
LinearLayout topView = (LinearLayout) findViewById(R.id.top_view);topView.startAnimation(AnimationUtils.loadAnimation(this, R.anim.animation_effect));
LinearLayout topView = (LinearLayout) findViewById(R.id.top_view);topView.startAnimation(AnimationUtils.loadAnimation(this, R.anim.animation_effect));