当选择选项卡 X 时,如何更改图标?
我有一个带图标的 tabhost,当选择选项卡 X 时,该图标不会出现,因为该图标与所选选项卡的颜色相同。问题是:
当选择选项卡 X 时,如何更改图标?
I have a tabhost with icon, when a tab is selected X, the icon does not appear because the icon is the same color as the selected tab. The question is:
How do I change the icon, when a tab is selected X?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这就是我所拥有的:
然后,您需要将
ic_tab_dialer.xml
添加到res/drawable/
目录,其中包含以下内容:我从联系人应用程序 GIT 存储库下载了图标。:
git://android.git.kernel.org/platform/packages/apps/Contacts.git
This is what I have:
Then, you need to add
ic_tab_dialer.xml
tores/drawable/
directory with this content:I downloaded the icons from Contacts app GIT repo.:
git://android.git.kernel.org/platform/packages/apps/Contacts.git