我正在尝试SwitchCompat
在 Android Studio 中使用,我把它放在 build.gradle 中:
compile 'com.android.support:appcompat-v7:21.+'
但拇指不在滑块的中心。
这是我的xml:
<android.support.v7.widget.SwitchCompat
android:id="@+id/allarme"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="5dp"
android:layout_gravity="right" />
你能帮我么?