[英]Customizing tab indicator images in android?
how to change the tab indicator's images in android? 如何在android中更改选项卡指示器的图像? there is a tab_indicator.xml file in-built in android sdk.
在android sdk中内置了一个tab_indicator.xml文件。 in that the Relative layout has the background as a tab_indicator file as background.
因为Relative布局将背景作为tab_indicator文件作为背景。 how to customize this images in tab_indicator and set our new images?
如何在tab_indicator中自定义这些图像并设置我们的新图像? I have a problem that the not selected tabs are highlighted with a white under line.because of those images.
我有一个问题是未选中的标签以白色下划线突出显示。因为这些图像。 how to customize it?
如何定制呢?
That RelativeLayout doesn't have the id to access.how can i?Any Idea? 那个RelativeLayout没有id可以访问。我可以吗?任何想法? Please help.
请帮忙。
Note: Reto Meier's answer a year ago says. 注意:一年前Reto Meier的答案说。 its not possible at that time.
那个时候不可能。 what about now?
现在呢?
I'm not sure that i 100% understand the problem. 我不确定我100%理解这个问题。 If you want custom view as your tab indicator there is API for that http://developer.android.com/reference/android/widget/TabHost.TabSpec.html#setIndicator(android.view.View)
如果您想要自定义视图作为选项卡指示器,那么有http://developer.android.com/reference/android/widget/TabHost.TabSpec.html#setIndicator(android.view.View)的 API
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.