如何在android上设置TextView和ImageView内容更改的动画?

如何在android上设置TextView和ImageView内容更改的动画?,android,scrollview,android-animation,Android,Scrollview,Android Animation,我有以下布局结构: ScrollView - LinearLayout - TextView - ImageView - TextView - ImageButton 一旦用户按下按钮,下一条记录将从数据库中读取并显示在相应字段中。 如何设置LinearLayout内容更改的动画,使其看起来像活动更改?我已通过以下方式实现了它: private LinearLayout movieContainer; movieContainer = (LinearLayout) f

我有以下布局结构:

ScrollView
 - LinearLayout
   - TextView
   - ImageView
   - TextView
   - ImageButton
一旦用户按下按钮,下一条记录将从数据库中读取并显示在相应字段中。
如何设置
LinearLayout
内容更改的动画,使其看起来像活动更改?

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

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

Animation anim = AnimationUtils.loadAnimation(this, R.anim.slide_left); 
movieContainer.startAnimation(anim);

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

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

Animation anim = AnimationUtils.loadAnimation(this, R.anim.slide_left); 
movieContainer.startAnimation(anim);

我可以将setAnimation应用于ScrollView吗?我可以将setAnimation应用于ScrollView吗?