0
私はandroid.support.v7.widget.SwitchCompatは22と少ないが
<android.support.v7.widget.SwitchCompat
android:id="@id/settings_toggle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:text=""
android:textOff=""
android:textOn=""
android:saveEnabled="false"
android:autoText="false"
android:theme="@style/ToggleButton"/>
マイスタイルの下に表示され、簡単なandroid.support.v7.widget.SwitchCompatを持っているAPIレベルで動作していない
<style name="ToggleButton" parent="@style/Theme.AppCompat.Light">
<item name="colorControlActivated">@color/blue</item>
</style>
上記のコードは、APIレベル20以上で正常に動作しているようです。それはAPIレベル<で動作しません20.最小SDKのサポートは16です。問題を把握できませんでした。どんな入力も感謝しています。ありがとう!