I am trying to create a new AlertDialog from appcompat v7 22.1.1.
It works very well (in all versions of Android), as in the image.

The style for AlertDialog is this. (Now I use hard-coded color values ββinstead of color resources)
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> <item name="colorPrimaryDark">#111111</item> <item name="colorPrimary">#00ddff</item> <item name="colorAccent">#0044aa</item> <item name="colorButtonNormal">#00aaaa</item> <item name="colorControlHighlight">#00ddff</item> <item name="alertDialogTheme">@style/AlertDialogTheme</item> </style> <style name="AlertDialogTheme" parent="Theme.AppCompat.Dialog.Alert"> <item name="colorAccent">#0044aa</item> <item name="android:background">#ffffff</item> <item name="android:textColorPrimary">#000000</item> <item name="android:windowTitleStyle">@style/MyTitleTextStyle</item> </style> <style name="MyTitleTextStyle"> <item name="android:textColor">#0044aa</item> <item name="android:textAppearance">@style/TextAppearance.AppCompat.Title</item> </style>
My question is:
1) how to change statePressed color, which is rounded (gray) in the image?
2) There was no pressed color in android> = 21, what to crack for this?
3) How can I use different colors of action buttons (is this possible)?
Any help would be great.
android android-layout dialog alertdialog android-theme
Mohammadhussain khatri
source share