Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- super.onCreate(savedInstanceState);
- setContentView(R.layout.tabmenu);
- TabHost tabHost = (TabHost) findViewById(R.id.tabhost); // The activity TabHost
- TabHost.TabSpec spec; // Resusable TabSpec for each intent;
- Intent intent;
- intent = new Intent().setClass(this, Menu.class);
- spec = tabHost.newTabSpec("Settings")
- .setIndicator("Settings")
- .setContent(intent);
- tabHost.addTab(spec);
- tabHost.setup(LocalActivityManager activityManager);
Add Comment
Please, Sign In to add comment