Pergunta

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.

Foi útil?

Solução

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

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top