I have a PreferenceActivity which displays items in a list view. I
applied theme as Theme.Dialog in AndroidManifest.xml and it looks like
a dialog with black color background. To change the background I did
the following changes:

style.xml

<style name="CustomTheme" parent="android:Theme.Dialog">
        <item name="android:windowBackground">@color/bg_color</item>
        <item name="android:colorBackground">@color/bg_color</item>
 </style>

color.xml

<color name="bg_color">@android:color/white</color>

AndroidManifest.xml

 <activity android:name=".PrefActivity"
                android:theme="@style/CustomTheme"
                android:excludeFromRecents="true"
</activity>

Now, neither I see the screen as dialog(appears as full screen) nor
the color as white. Please help me if I am missing something here. Or
do we have a better alternative to change the color for the above
mentioned scenario.

-- 
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