I'm pretty new to android and i'm having an issue with a Tab UI
situation. I have a "Entry" activity which has a bunch of tabs. when
a tab is clicked I've configured the setContent to use intents; so the
tabs switch the activities correctly. The issue is when I start a
specific tab like this:
mTabHost.addTab(mTabHost.newTabSpec("tab_test1").setIndicator
(this.getResources().getString(R.string.TAB_1)).setContent(new Intent
(this, Exercise.class)));
The content shows up correctly but the onTouch events do not get
captured.
If I do this (on the tab click) everything works correctly:
final Intent exercise = new Intent(Entry.this, Exercise.class);
Entry.this.startActivity(exercise);
but my tabs at the top are lost....
what am I doing wrong? I'm sure I've missed something simple.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---