Android TabHost Problem?

Private static final String TAG_TYERS = "Tab1"; private static final String TAG_BABES = "Tab2"; private static final String TAG_TEAMS = "Tab3"; private static final String TAG_EVENTS = "Tab4"; TabHost tabHost; @Override public void onCreate(Bundle savedInstanceState) { super. OnCreate(savedInstanceState); setContentView(R.layout. Main); tabHost = getTabHost(); tabHost.

AddTab(tabHost. NewTabSpec("Tab1") . SetIndicator(TAG_TYERS) .

SetContent(new Intent(). SetClass(this, Tab1. Class))); tabHost.

AddTab(tabHost. NewTabSpec("Tab2") . SetIndicator(TAG_BABES) .

SetContent(new Intent(). SetClass(this, Tab2. Class))); tabHost.

AddTab(tabHost. NewTabSpec("Tab3") . SetIndicator(TAG_EVENTS) .

SetContent(new Intent(). SetClass(this, Tab3. Class))); tabHost.

AddTab(tabHost. NewTabSpec("Tab4") . SetIndicator(TAG_EVENTS) .

SetContent(new Intent(). SetClass(this, Tab4. Class))); tabHost.

SetCurrentTab(0); }.

Hope this code may help you.... xml file : activity: public class ActivityGroup extends TabActivity { /** Called when the activity is first created. */ private static final String TAG_TYERS = "Tab1"; private static final String TAG_BABES = "Tab2"; private static final String TAG_TEAMS = "Tab3"; private static final String TAG_EVENTS = "Tab4"; TabHost tabHost; @Override public void onCreate(Bundle savedInstanceState) { super. OnCreate(savedInstanceState); setContentView(R.layout.

Main); tabHost = getTabHost(); tabHost. AddTab(tabHost. NewTabSpec("Tab1") .

SetIndicator(TAG_TYERS) . SetContent(new Intent(). SetClass(this, Tab1.

Class))); tabHost. AddTab(tabHost. NewTabSpec("Tab2") .

SetIndicator(TAG_BABES) . SetContent(new Intent(). SetClass(this, Tab2.

Class))); tabHost. AddTab(tabHost. NewTabSpec("Tab3") .

SetIndicator(TAG_EVENTS) . SetContent(new Intent(). SetClass(this, Tab3.

Class))); tabHost. AddTab(tabHost. NewTabSpec("Tab4") .

SetIndicator(TAG_EVENTS) . SetContent(new Intent(). SetClass(this, Tab4.

Class))); tabHost. SetCurrentTab(0); }.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions


Thank You!
send