Ich habe android checkBox und die Standard-Hintergrund ist transparent, ich weiß sein wollen, so verwende ich Stil:Wie ändert man den Hintergrund von Android CheckBox?
<style name="BrandedCheckBox" parent="AppTheme">
<item name="colorAccent">@color/cyan</item>
<item name="colorControlNormal">@color/text_gray</item>
<item name="colorControlActivated">@color/cyan</item>
</style>
und setzen checkBox Thema:
<CheckBox
android:id="@+id/check_payable"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_gravity="center"
android:theme="@style/BrandedCheckBox"/>
Aber das Ergebnis ist folgendes: Aber ich will es so sein:
Kann jemand mir dabei helfen?
Verwenden AppCompatCheckBox statt CheckBox. –
colorControlActivated machen es Wert zu weiß –
http://stackoverflow.com/questions/2151241/android-how-to-change-checkbox-size –