<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">

<ToggleButton android:id="@+id/tbDefault"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />

<ToggleButton android:id="@+id/tbCustom"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checked="true"
android:textOff="灯灭:关闭状态" android:textOn="灯亮:开启状态"
/>
</LinearLayout>

更多相关文章

  1. 有关XML的点击状态背景图的设置
  2. Android调用打电话(Call Phone)
  3. 关于Android的selector小用法
  4. android最佳实践(五)
  5. android button 正常状态,按下状态
  6. android 去掉顶部状态栏
  7. android selector 背景选择器的使用, button (未点击,点击,选中保持
  8. android button 正常状态,按下状态
  9. android:网路检测

随机推荐

  1. 为什么说 Android 很了不起!
  2. Android DEPPLINK、APPLink原理简析
  3. 【Android Training - 00】Google Androi
  4. Android之玩转View
  5. android 专家blog备份
  6. android widget开发点滴
  7. 初学Android,跨进程调用Service(六十)
  8. Android自定义ScrollView实现反弹效果
  9. Google主推-Android开发利器——Android
  10. Android BaiduAi 人脸识别 集成教学 实战