1

我有以下布局结构:

ScrollView
 - LinearLayout
   - TextView
   - ImageView
   - TextView
   - ImageButton

一旦用户按下按钮,下一条记录将从数据库中读取并显示在相应的字段中。如何LinearLayout以看起来像活动变化的方式对内容变化进行动画处理?

4

1 回答 1

1

我已经通过以下方式实现了它:

private LinearLayout movieContainer;
movieContainer = (LinearLayout) findViewById(R.id.ll); // LinearLayout

Animation anim = AnimationUtils.loadAnimation(this, R.anim.slide_left); 
movieContainer.startAnimation(anim);
于 2011-04-02T12:40:36.973 回答