Reputation: 20409
I have the following layout structure:
ScrollView
- LinearLayout
- TextView
- ImageView
- TextView
- ImageButton
once user presses button, next record is read from the DB and displayed in according field.
How can I animate LinearLayout
content change in such a way that it will look like activity change?
Upvotes: 1
Views: 1270
Reputation: 20409
I've implemented it in the following way:
private LinearLayout movieContainer;
movieContainer = (LinearLayout) findViewById(R.id.ll); // LinearLayout
Animation anim = AnimationUtils.loadAnimation(this, R.anim.slide_left);
movieContainer.startAnimation(anim);
Upvotes: 1