-1
に個々のタブにフィット画像を設定するには、この私のコード私は2つのタブ を持っている私のtabhostのタブ にフィットでなければならない画像を設定する方法をtabhost
tab =(TabHost) findViewById(R.id.tabhost);
tab.setup();
TabHost.TabSpec spec = tab.newTabSpec("tag1");
spec.setIndicator("",getResources().getDrawable(R.drawable.loginpic));
spec.setContent(R.id.tab1);
tab.addTab(spec);
spec = tab.newTabSpec("tag2");
spec.setIndicator("",getResources().getDrawable(R.drawable.signuppic));
spec.setContent(R.id.tab2);
tab.addTab(spec);
ある画像は小さく、完全なタブを埋めていない
どうすればいいですか?
同じ結果:/ –