Android tabhost让选中项加上背景图
16lz
2021-01-23
现用了一tabhost,选中某选项时,会跟上一背景图,实现代码如下
tab_indicator.xml
<?xml version="1.0" encoding="UTF-8"?><selectorxmlns:android="http://schemas.android.com/apk/res/android"><itemandroid:state_focused="false"android:state_selected="false"android:state_pressed="false" android:drawable="@drawable/tab_unselected" /><itemandroid:state_focused="false"android:state_selected="true"android:state_pressed="false"android:drawable="@drawable/onselect" /></selector>
更多相关文章
- Android背景图片平铺
- AndroidManifest.xml配置文件选项详解
- Android Setting中添加解除屏幕锁选项
- Android设置背景图像重复【整理自网络】
- 2010.11.11———Android TabHost选项卡组件
- Android 编译命令及选项(转)