私は 4.0 以降を実行しており、xml レイアウトに Android の「スイッチ」を埋め込んでいます。このウィジェットのサイズを制御したいと思います。レイアウトの高さの設定は何もしませんでした...何かアイデアはありますか?
<Switch
android:layout_width="match_parent"
android:layout_height="100dp"
android:paddingTop="10dp"
android:switchPadding="10dp"
android:textOff="Slide to Unlock"
android:switchTextAppearance="@style/test1"
android:thumb="@drawable/unlock_selector"
android:track="@drawable/unlock_background_selector" />