1.布局

    android:id="@+id/rg_home"    android:layout_width="fill_parent"    android:layout_height="60dp"    android:layout_gravity="bottom"  android:background="@color/white"    android:gravity="center_vertical"    android:orientation="horizontal"    android:paddingTop="2dp" >              android:id="@+id/rb_facility_again"        style="@style/main_tab_bottom"        android:drawableTop="@drawable/icon_function"        android:textColor="#96a0b1"        android:text="@string/tab_facility"/>            android:id="@+id/rb_aircon"        style="@style/main_tab_bottom"        android:checked="false"        android:drawableTop="@drawable/icon_aircon"        android:textColor="#96a0b1"        android:text="@string/tab_aircon"/>            android:id="@+id/rb_date"        style="@style/main_tab_bottom"        android:drawableTop="@drawable/icon_date"        android:text="@string/tab_heater"        android:textColor="#96a0b1"        android:checked="false"/>            android:id="@+id/rb_my"        style="@style/main_tab_bottom"        android:drawableTop="@drawable/icon_my"        android:textColor="#96a0b1"        android:text="@string/tab_my"/>

状态选择器

<?xml version="1.0" encoding="utf-8"?>xmlns:android="http://schemas.android.com/apk/res/android">    android:drawable="@drawable/icon_setting_blue" android:state_pressed="true">    android:drawable="@drawable/icon_setting_blue" android:state_checked="true">    android:drawable="@drawable/icon_setting"/>

///









更多相关文章

  1. android 下的内存状态获取
  2. ListActivity简介
  3. ExpandableListView的小图标有个状态
  4. android Notification 状态栏通知使用示例
  5. 安卓通知栏自定义布局提示(NotificationCompat.Builder)
  6. 状态栏获取信息
  7. android GPS 获取卫星数量
  8. 自定义View组合模式
  9. fill_parent与wrap_content的区别

随机推荐

  1. 第五章 网络 之 Android网络知识&框架
  2. scaleType分析
  3. Android(安卓)图片缩放(二)ZoomControls放
  4. Android(安卓)- PopupWindow
  5. android isDirectory()及listFiles()
  6. 2013.4.8
  7. Android(安卓)SurfaceFlinger中的工作线
  8. 没事别更新 Android(安卓)SDK 和 ADT
  9. Android中cannot be resolved or is not
  10. [置顶] android fragment hidenChanged方