Nested preference screens lose theming
Posted
by stealthcopter
on Stack Overflow
See other posts from Stack Overflow
or by stealthcopter
Published on 2010-05-02T21:11:17Z
Indexed on
2010/05/02
21:18 UTC
Read the original article
Hit count: 245
I have a preference screen for my application and in the manifest I have given it a theme using:
android:theme="@android:style/Theme.Light.WallpaperSettings"
However when I nest another preference screen inside this one such as:
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
android:title="@string/setting_title"
android:key="...">
<PreferenceCategory
android:title="@string/title_themes"
>
<PreferenceScreen
android:title="@string/title_themes_opt"
>
<ListPreference
android:key="Setting_BG"
android:title="@string/setting_bg"
android:summary="@string/setting_bg_summary"
android:entries="@array/bg_titles"
android:defaultValue="0"
android:entryValues="@array/bg_values" />
</PreferenceScreen>
</PreferenceCategory>
</PreferenceScreen>
The nested preference screen loses the theme of the parent. How can this be prevented? Thanks in advance.
© Stack Overflow or respective owner