android - How can I set dialog style in my custom theme? -


i tried in many ways can't change alertdialog style xml.

the result define xml style dialogs extending , overriding default , bind in theme, alertdialogs looks same.

i tried:

<style name="apptheme" parent="appbasetheme">     <!-- customizations not specific particular api-level can go here. -->     <item name="android:alertdialogstyle">@style/pippo</item> </style> <style name="pippo" parent="@android:style/theme.dialog">     <item name="android:bottombright">@android:color/holo_orange_dark</item>     <item name="android:bottomdark">@android:color/holo_orange_dark</item>     <item name="android:bottommedium">@android:color/holo_orange_dark</item>     <item name="android:centerbright">@android:color/holo_orange_dark</item>     <item name="android:centerdark">@android:color/holo_orange_dark</item>     <item name="android:centermedium">@android:color/holo_orange_dark</item>     <item name="android:fullbright">@android:color/holo_orange_dark</item>     <item name="android:fulldark">@android:color/holo_orange_dark</item>     <item name="android:topbright">@android:color/holo_blue_dark</item>     <item name="android:topdark">@android:color/holo_blue_dark</item> </style> 

and put in manifest "apptheme" activity theme, still see normal alertdialogs.

where wrong?

you can try apply desired style:

alertdialog.builder builder = new alertdialog.builder(new contextthemewrapper(this, r.style. pippo)); 

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -