Hi,
I have one doubt in Tabhost . I want the tabs to display at bottom instead of top programatically. i tried to use setGravity but its not working.. Please help me out from this.
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
TabHost tabHost = getTabHost();
TabWidget tabWidget = new TabWidget(this);
tabWidget.setId(android.R.id.tabs);
tabWidget.setGravity(Gravity.BOTTOM);
tabHost.addView(tabWidget, new LinearLayout.LayoutParams(
LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));
tabHost.setup();
LayoutInflater.from(this).inflate(R.layout.tabs1, tabHost.getTabContentView(), true);
tabHost.addTab(tabHost.newTabSpec("")
.setIndicator("", getResources().getDrawable(R.drawable.pic1))
.setContent(new Intent(this, List1.class)));
tabHost.addTab(tabHost.newTabSpec("")
.setIndicator("", getResources().getDrawable(R.drawable.pic2))
.setContent(new Intent(this, List2.class)));
tabHost.addTab(tabHost.newTabSpec("")
.setIndicator("", getResources().getDrawable(R.drawable.pic3))
.setContent(new Intent(this, List3.class)));
tabHost.addTab(tabHost.newTabSpec("")
.setIndicator("", getResources().getDrawable(R.drawable.pic4))
.setContent(new Intent(this, List4.class)));
}