I am trying to change or switch between two tabs that I have within the eclipse graphical layout so that I can see the elements on the other tab. Is this possible? the only way I could see of doing this is to make the second tab, briefly be the first as that is what is shown when viewing the layout this way.
Sorry if this question has been asked before but I have searched on Google and here before I posted.
What you could do is move each tabcontent to it's own XML file - lets say: tab1.xml
and tab2.xml
.
Then where you added them in your layout with the TabHost
and TabWidget
, you use the include
tag instead:
<include layout="@layout/tab1" />
<include layout="@layout/tab2" />
This way you will be able to view the each Tab
as its own layout and don't have to worry about switching tabs in the graphical layout editor.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With