Best code examples for Android TabHost.TabSpec class (android.widget.TabHost.TabSpec)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Android TabHost.TabSpec class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Android TabHost.TabSpec examples from Open Source projects
This code example shows how to use the following methods: setContent
14:	host.addTab(host.newTabSpec("one").setIndicator("TAB1").setContent(new Intent(this, Tab1Activity.class))); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setContent, setIndicator
78:	tab.setContent(tabViewId); 
79:	tab.setIndicator(label); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setContent, setIndicator
45:	tab.setIndicator(name, getResources().getDrawable(iconId)); 
-
60:	tab.setContent(intent); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setContent
37:	.setContent(new Intent(this, List1.class))); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setContent, setIndicator
50:	tabSpec.setIndicator(tabView); 
51:	tabSpec.setContent(intent); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setContent, setIndicator
65:	spec.setContent(intent); 
66:	spec.setIndicator(tag); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setContent, setIndicator
47:	spec.setIndicator("Pendents", mResources 
-
49:	spec.setContent(intent); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setContent, setIndicator
53:	spec.setIndicator("Pendents", mResources 
-
55:	spec.setContent(intent); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: addState, setIndicator
69:	StateListDrawable draw = new StateListDrawable(); 
-
72:	draw.addState(new int[] {android.R.attr.state_selected}, draw1); 
73:	draw.addState(StateSet.WILD_CARD , draw2); 
-
76:	spec = tabHost.newTabSpec(title.toLowerCase()).setIndicator(title, draw).setContent(intent); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setContent, setIndicator
140:	tabSpec.setContent(tabContentId); 
141:	tabSpec.setIndicator(this.getText(labelId)); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setContent, setIndicator
29:	tab.setIndicator(indicator); 
30:	tab.setContent(i); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setContent, setIndicator
23:	photospec.setIndicator("Info"); 
-
25:	photospec.setContent(photosIntent); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setContent
34:	TabsUtil3.setTabIndicator(spec, title, drawable); 
-
36:	TabsUtil4.setTabIndicator(spec, view); 
-
50:	spec.setContent(intent); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setContent, setIndicator
48:	tabSpec.setIndicator(iconLabel, resources.getDrawable(icon)); 
49:	tabSpec.setContent(llistarTasquesIntent); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setContent, setIndicator
75:	spec.setIndicator(tabName, mResources.getDrawable(drawableID)); 
76:	spec.setContent(intent); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setContent, setIndicator
38:	spec.setIndicator("Two", null); 
39:	spec.setContent(intent); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setContent, setIndicator
77:	spec.setIndicator(tabName, drawable); 
78:	spec.setContent(intent); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setContent, setIndicator
34:	tabSpec.setContent(contentId); 
35:	tabSpec.setIndicator(title); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getTag, setContent
118:	tabspec.setContent(new DummyTabFactory(this.activity)); 
119:	String tag = tabspec.getTag(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setContent
21:	Intent newTagIntent = new Intent(this, TagTypeList.class); 
-
27:	.setContent(newTagIntent)); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setContent, setIndicator
30:	crpSpec.setIndicator("Mensa CRP"); 
-
32:	crpSpec.setContent(crpIntent); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setContent, setIndicator
19:	secondTabSpec.setIndicator("Days"); 
-
22:	secondTabSpec.setContent(new Intent(context, DailySpecials.class)); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setContent, setIndicator
16:	tabPedidosAdicionados.setIndicator("Enviar Pedido"); 
17:	tabPedidosAdicionados.setContent(new Intent(this, 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getTag, setContent
122:	tabSpec.setContent(new DummyTabContentFactory(fragmentActivity)); 
-
124:	String tag = tabSpec.getTag(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getTag, setContent
103:	tabSpec.setContent(new DummyTabContentFactory(fragmentActivity)); 
-
105:	String tag = tabSpec.getTag(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setContent, setIndicator
167:	tabSpec.setIndicator(stringIndicator); 
-
169:	tabSpec.setContent(new DummyTabFactory(this)); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setContent, setIndicator
65:	tabSpec.setIndicator(tabId, icon); 
66:	tabSpec.setContent(new Intent(this, viewClass)); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getTag, setContent
209:	tabSpec.setContent(new DummyTabFactory(mContext)); 
210:	String tag = tabSpec.getTag(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: setContent, setIndicator
85:	spec.setIndicator(title); 
86:	spec.setContent(id); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getTag, setContent
107:	tabSpec.setContent(activity.new TabFactory(activity)); 
108:	String tag = tabSpec.getTag(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getTag, setContent
70:	tabSpec.setContent(new DeviceDataTabFactory(mActivity)); 
71:	String tag = tabSpec.getTag(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: setContent, setIndicator
31:	tab.setIndicator(indicator); 
32:	tab.setContent(i); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setContent, setIndicator
26:	spec.setIndicator(label); 
27:	spec.setContent(content); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getTag, setContent
97:	tabSpec.setContent(new DummyTabFactory(mActivity)); 
98:	String tag = tabSpec.getTag(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: setContent, setIndicator
34:	spec.setIndicator(tabLabel); 
35:	spec.setContent(content); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getTag, setContent
71:	tabSpec.setContent(new DummyTabFactory(mContext)); 
72:	String tag =tabSpec.getTag(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: setContent, setIndicator
44:	mapSpec.setIndicator("Map"); 
-
46:	mapSpec.setContent(mapIntent); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getTag, setContent
44:	paramTabSpec.setContent(new agt(this.mContext)); 
45:	agu localagu = new agu(paramTabSpec.getTag(), paramClass, paramBundle); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getTag, setContent
68:	paramTabSpec.setContent(new zb(this.alJ)); 
69:	zc localzc = new zc(paramTabSpec.getTag(), paramClass, paramBundle); 
Full Snippet Info
4
CodeRank
Related Android TabHost.TabSpec Questions & Answers:
Other Android TabHost.TabSpec Examples
16:	        
17:	        // Tab for Photos
18:	        TabSpec photospec = tabHost.newTabSpec("Photos");
19:	        // setting Title and Icon for the Tab
20:	        photospec.setIndicator("Photos", getResources().getDrawable(R.drawable.icon_photos_tab));
-
23:	        
24:	        // Tab for Songs
25:	        TabSpec songspec = tabHost.newTabSpec("Songs");        
26:	        songspec.setIndicator("Songs", getResources().getDrawable(R.drawable.icon_songs_tab));
27:	        Intent songsIntent = new Intent(this, SongsActivity.class);
-
29:	        
30:	        // Tab for Videos
31:	        TabSpec videospec = tabHost.newTabSpec("Videos");
32:	        videospec.setIndicator("Videos", getResources().getDrawable(R.drawable.icon_videos_tab));
33:	        Intent videosIntent = new Intent(this, VideosActivity.class);

Read More

20:	        
21:	        // Inbox Tab
22:	        TabSpec inboxSpec = tabHost.newTabSpec(INBOX_SPEC);
23:	        // Tab Icon
24:	        inboxSpec.setIndicator(INBOX_SPEC, getResources().getDrawable(R.drawable.icon_inbox));
-
28:	        
29:	        // Outbox Tab
30:	        TabSpec outboxSpec = tabHost.newTabSpec(OUTBOX_SPEC);
31:	        outboxSpec.setIndicator(OUTBOX_SPEC, getResources().getDrawable(R.drawable.icon_outbox));
32:	        Intent outboxIntent = new Intent(this, OutboxActivity.class);
-
34:	        
35:	        // Profile Tab
36:	        TabSpec profileSpec = tabHost.newTabSpec(PROFILE_SPEC);
37:	        profileSpec.setIndicator(PROFILE_SPEC, getResources().getDrawable(R.drawable.icon_profile));
38:	        Intent profileIntent = new Intent(this, ProfileActivity.class);

Read More

See Code Examples for Android TabHost.TabSpec Methods: