Android SwitchCompat style

Ich habe meine App auf meinem neuen Gerät mit Android 5.1.1 getestet. In meiner SettingsActivity habe ich einen Schalter. Ich habe bereits einige Beiträge gelesen und in @ geändeandroid.support.v7.widget.SwitchCompat aber das problem ist immer noch folgendes: auf meinem alten gerät sieht der switch sehr schön aus. Du kannst zwei Texte für @ setztextOn undtextOff und es passt perfekt. aber seit api 21 oder was auch immer bekomme ich diesen kleinen bastard hier:

Es sieht aus wie ****. Wie kann ich es für alle Geräte wie den Lollypop-Schalter neu formatieren?

Bearbeiten Die obige Frage ist beantwortet. Eine winzige Sache fehlt: Wie man die Farbe des Textes auf dem Schalter ändert (nicht das Etikett auf der linken Seite !!!)

styles.xml

<style name="SwitchTextAppearance" parent="TextAppearance.AppCompat.Widget.Switch">
        <item name="android:textSize">12sp</item>
        <item name="android:textColor">#3F51B5</item>
    </style>

layout.xml

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:orientation="horizontal"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:paddingLeft="8dp"
    android:paddingRight="8dp"
    android:paddingBottom="12dp"
    android:paddingTop="12dp">

    <android.support.v7.widget.SwitchCompat
        android:id="@+id/mySwitch"
        android:layout_width="match_parent"
        android:switchMinWidth="56dp"
        android:layout_height="wrap_content"
        android:switchTextAppearance="@style/SwitchTextAppearance"
        android:thumb="@drawable/thumb"
        android:track="@drawable/track"
        app:showText="true"
        android:textOn="ON"
        android:textOff="OFF"
        android:text="Toggle Switch"
        android:textAppearance="?android:attr/textAppearanceMedium"
        android:background="@android:color/transparent"
        android:button="@null"
        android:layout_alignParentEnd="true"
        android:layout_alignParentRight="true"/>

</RelativeLayout>

Antworten auf die Frage(2)

Ihre Antwort auf die Frage