android - Change checkbox color in AlertDialog -
i have created custom style checkbox
<style name="checkboxtpi" parent="android:widget.compoundbutton.checkbox"> <item name="android:button">@drawable/tpi_btn_check_holo_light</item> </style>
and apply theme, works pretty, checkboxes in alert dialogs still standart holo bluish color. how can alter this?
there 2 alternatives can do;
change context getapplicationcontext()
or other explicitly myactivity.this
, (whatever activity name is) when build dialog. solve problem.
you may create custom layout dialog box , phone call it
dialog.setcontentview(r.layout.custom_dialog);
android checkbox
No comments:
Post a Comment