开发者

Custom Animations While Switching Tabs in TabActivity

开发者 https://www.devze.com 2023-04-12 11:09 出处:网络
Is there any way开发者_如何学Python by which I can add custom animations during the switch over from one tab to another in a TabAcivity? Short answer, YES.But without seeing your code it\'s hard to he

Is there any way开发者_如何学Python by which I can add custom animations during the switch over from one tab to another in a TabAcivity?


Short answer, YES. But without seeing your code it's hard to help with your specific issue. Depending on where you're trying to launch the animation from and if it will be the same for each tab, you could either kick it off from the TabActivity or from each of your tab's children Activities. I'd say, the easiest thing to do would be to kick it off from the onResume() of each of the tab's activities. If you put it in the onCreate() it would only launch the first time each tab is selected.

0

精彩评论

暂无评论...
验证码 换一张
取 消