daily pastebin goal
1%
SHARE
TWEET

Untitled

a guest Jan 22nd, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top