MichaelP
MichaelP

Reputation: 2781

How can i only apply animation for activity but not for toolbar?

I have several activities which have the same toolbar at bottom of each activity. The problem that i'm encountering is when i apply animation slide in/out for all activities, the whole of activity will be applied this animation. But i don't want toolbar do this animation. I mean that when i move from an activity to another activity ,all other views of activity will be move but the toolbar don't move.

How can i achieve this?

Thanks you a lot.

/****Edit********/

I intend to use TabWidget with activity tabs, but i don't know how to use overridePendingTransition() to make a transition animation between them when i change tabs. I also tried to put overridePendingTransition() in pause event of TabActivity and Activities for tabs, but not work.

Please help me.

Upvotes: 0

Views: 396

Answers (1)

goodm
goodm

Reputation: 7295

if activities are not to complex you can do animation on layouts with change content view (or change view to invisible). Another option it to create tabwidget and just change tabs with animation between them. Third option is to turn off animation between activities changing, that create illusion that toolbar is staying. Just add animation to main layouts.

Upvotes: 1

Related Questions