Android: Customize buttons in AlertDialog in standart Holo theme



I`d like to customize standart Holo theme that I use in my app: I want change textColor selector for standart AlertDialog buttons(POSITIVE, NEGATIVE, NEUTRAL).


I use style for it:



<style name="AppTheme" parent="android:Theme.Holo.Light.DarkActionBar">
<item name="android:alertDialogTheme">@style/BaseDialogStyle</item>
</style>

<style name="BaseDialogStyle" parent="android:Theme.Holo.Light.Dialog">
<item name="android:buttonBarButtonStyle">@style/BaseDialogButtonStyle</item>
</style>

<style name="BaseDialogButtonStyle" parent="android:Holo.Light.ButtonBar.AlertDialog">
<item name="android:textColor">@color/dialog_btn_text_selector</item>
</style>


but I have no visible result in such customizing. Could you help me to clarify the hierarchy of styles (I think this is an issue). Thanks.


No comments:

Post a Comment