现用了一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>

更多相关文章

  1. Android背景图片平铺
  2. AndroidManifest.xml配置文件选项详解
  3. Android Setting中添加解除屏幕锁选项
  4. Android设置背景图像重复【整理自网络】
  5. 2010.11.11———Android TabHost选项卡组件
  6. Android 编译命令及选项(转)

随机推荐

  1. android 可滑动的DatePicker和点击的Date
  2. Android Studio报错Could not GET 'https
  3. linearLayout 和 relativeLayout的属性区
  4. 【android】android使用命令模拟按键
  5. Android UI控件学习笔记(二)
  6. 添加 C/C++ 代码
  7. android中系统自带样式
  8. Android(安卓)开发学习资料
  9. Android 实例子源代码文件下载地址380个
  10. Android基本控件常用属性及方法