質問

I'm working on an Android Application where the MainActivity is a TabActivity, There are Three other Activities : ACT1, ACT2 and ACT3 that are The MainActivity tabs, is it possible to change the MainActivity current tab inside ACT1, ACT2 or ACT3.

役に立ちましたか?

解決

you would essentially cast your reference to the parent to the actual class of the parent and then make a call to some public method that would do what you're looking to do.

here is an example

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top