我有以下布局结构:
ScrollView
- LinearLayout
- TextView
- ImageView
- TextView
- ImageButton
一旦用户按下按钮,下一条记录将从数据库中读取并显示在相应的字段中。
我怎样才能使 LinearLayout
内容变化看起来像 Activity 变化?
最佳答案
我通过以下方式实现了它:
private LinearLayout movieContainer;
movieContainer = (LinearLayout) findViewById(R.id.ll); // LinearLayout
Animation anim = AnimationUtils.loadAnimation(this, R.anim.slide_left);
movieContainer.startAnimation(anim);
关于android - 如何在 Android 上为 TextView 和 ImageView 内容更改设置动画?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5489014/