写在前面 Switch控件的介绍和使用 先看东西 布局属性介绍 <Switch android:id="@+id/mSwitchView" android:theme="@style/SwitchStyle" android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_alignParentRight=