区分一下概念:
1.android:background view背景
2.android:thumb 滑块 有选中状态 android:state_checked
3.android:track 滑块的轨道 有选中状态 android:state_checked
   
<Switch    android:id="@+id/customer_gender"    style="@style/widget_gender_switch" />



widget_gender_track.xml

<?xml version="1.0" encoding="utf-8"?>            


widget_gender_thumb.xml


        


参考http://stackoverflow.com/questions/20762490/how-to-change-height-and-width-of-switch-in-android

http://stackoverflow.com/questions/10173590/how-to-change-the-size-of-a-switch-widget



更多相关文章

  1. android去除状态栏和下面视图之前的黑线
  2. 获取Android状态栏的高度
  3. android 2.3 电源管理
  4. 获取Android状态栏的高度
  5. Android中getSystemService详解
  6. Android中shape的使用
  7. Android中shape的使用
  8. android 栈
  9. Android---沉浸式状态栏

随机推荐

  1. MySQL UNION操作符基础知识点
  2. MySQL InnoDB存储引擎的深入探秘
  3. mysql语句如何插入含单引号或反斜杠的值
  4. mysql压缩包版zip安装配置方法
  5. Windows下mysql 8.0.12 安装详细教程
  6. windows10下mysql 8.0 下载与安装配置图
  7. MySQL PHP语法浅析
  8. Win10下mysql 8.0.15 安装配置方法图文教
  9. window下mysql 8.0.15 安装配置方法图文
  10. mysql 8.0.15 winx64解压版安装配置方法