Guest User

Untitled

a guest
Jan 22nd, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. super.onCreate(savedInstanceState);
  2. setContentView(R.layout.tabmenu);
  3.  
  4. TabHost tabHost = (TabHost) findViewById(R.id.tabhost); // The activity TabHost
  5. TabHost.TabSpec spec; // Resusable TabSpec for each intent;
  6. Intent intent;
  7.  
  8. intent = new Intent().setClass(this, Menu.class);
  9.  
  10. spec = tabHost.newTabSpec("Settings")
  11. .setIndicator("Settings")
  12. .setContent(intent);
  13.  
  14. tabHost.addTab(spec);
  15.  
  16. tabHost.setup(LocalActivityManager activityManager);
Add Comment
Please, Sign In to add comment