1
탭 호스트의 제목을 두 줄로 설정해야합니다. 탭을 선택할 때 자동 스크롤 가능한 것으로 볼 수있는 전체 텍스트가 표시되고 있지만 두 줄로 표시해야 항상 볼 수 있습니다. 아무도 도와주세요!TabHost 제목 이름을 두 줄로 설정하는 방법
public class Tabs extends Activity implements OnClickListener {
TabHost th;
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.tabs);
th = (TabHost) findViewById(R.id.tabhost);
th.setup();
TabSpec specs = th.newTabSpec("tag1");
specs.setContent(R.id.tab1);
specs.setIndicator("Large Text");
//That is i need to put "Large" in one line and "Text" in next line in the title of the tabhost
th.addTab(specs);
specs = th.newTabSpec("tag2");
specs.setContent(R.id.tab2);
specs.setIndicator("Small");
th.addTab(specs);
specs = th.newTabSpec("tag3");
specs.setContent(R.id.tab3);
specs.setIndicator("TEXT");
th.addTab(specs);
specs = th.newTabSpec("tag4");
specs.setContent(R.id.tab4);
specs.setIndicator("TXET");
th.addTab(specs);
}
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
}
} 첫째