I solved it by attaching a theme in the manifest file:

<activity
                android:name=".Preferences"
                android:label="@string/app_name"
android:screenOrientation="portrait"
                android:theme="@style/SettingsTheme">

And then I simply created the theme with the background I wanted:

<?xml version="1.0" encoding="utf-8"?>
<resources>

        <style name="SettingsTheme" parent="@android:style/Theme.NoTitleBar">
                <item 
name="android:windowBackground">@drawable/settings_background</
item>
        </style>

</resources>

Works like a charm. :)

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