Reputation: 569
Is it possible to skip a line in a tabWidget? So far I've tried \r and \n but nothing...Here is a sample code:
this.tabSpec = tabHost.newTabSpec("deux").setIndicator("Alarme\n volontaire",
getResources().getDrawable(R.drawable.ic_tab_alert)).setContent(alarme);
this.tabHost.addTab(this.tabSpec);
Thanks in advance !
Upvotes: 0
Views: 74
Reputation: 1325
I do something like this in my apps and it works:
mTabsAdapter.addTab(mTabHost.newTabSpec("deux").setIndicator("Alarme\n volontaire"), null);
for (int i = 0; i < mTabHost.getTabWidget().getChildCount(); i++) {
((TextView) TabHost.getTabWidget().getChildAt(i).findViewById(android.R.id.title)).setSingleLine(false);
}
Upvotes: 3