The simplest solution I found was to :

Instantiate a Dialog with a Theme that sets the windowBackground to my
custom background, inflate my custom layout that has its views styled
for the requisite font color etc, and insert my custom layout into the
Dialog using #Dialog#addContentView

<style name="DialogTheme" parent="android:style/Theme.Dialog">
  <item name="android:windowBackground">@drawable/dialog_background</
item>
  <item name="android:windowNoTitle">true</item> <!-- Hides the Dialog
title bar View. -->
</style>

I did the above in a very simple Dialog factory, but you could just as
easily subclass DIalog and do it in the constructor.
Create a class that extends Dialog and in its construcor.

I wish I done this earlier rather than trying to fruitlessly style the
existing ProgressDialog.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to