如何更改android tabhost中选项卡的样式?
我想在android如何更改android tabhost中选项卡的样式?,android,android-tabhost,android-style-tabhost,Android,Android Tabhost,Android Style Tabhost,我想在androidtabhost中更改选项卡的样式,我不想只更改背景颜色,而是更改整个样式(例如制作圆角) 在TabHost中,您可以放置按钮或具有首选样式的任何其他小部件,即使是圆角 Button myButton = new Button(this); myButton.setText("My Button"); myButton.setBackgroundColor(Color.TRANSPARENT); myButton.setCompoundDrawablesWithIntrinsi
tabhost
中更改选项卡的样式,我不想只更改背景颜色,而是更改整个样式(例如制作圆角) 在TabHost
中,您可以放置按钮
或具有首选样式的任何其他小部件,即使是圆角
Button myButton = new Button(this);
myButton.setText("My Button");
myButton.setBackgroundColor(Color.TRANSPARENT);
myButton.setCompoundDrawablesWithIntrinsicBounds(0, R.drawable.my_button_drawable_top, 0, 0);
TabHost.TabSpec myButtonTab = mTabHost.newTabSpec("tab1").setIndicator(myButton).setContent(intentPlayList);
mTabHost.addTab(myButtonTab);