Advertisement
Guest User

Set Android Theme.Light for Alert Dialog

a guest
Apr 10th, 2012
1,924
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. AlertDialog.Builder builder = new AlertDialog.Builder(
  2. new ContextThemeWrapper(context, R.style.popup_theme));
  3.  
  4. <?xml version="1.0" encoding="utf-8"?>
  5. <resources>
  6. <color name="back_color">#ffffffff</color>
  7. <style name="popup_theme" parent="@android:style/Theme.Light">
  8. <item name="android:windowBackground">@color/back_color</item>
  9. <item name="android:colorBackground">@color/back_color</item>
  10. </style>
  11.  
  12. parent="android:style/Theme.Light"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement