title: Custom Android preferences background
body: <p>I'm currently trying to set custom background for preference screen. I've created <code>PreferenceActivity</code></p>
  
  <pre><code>public class SettingsActivity extends PreferenceActivity {
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      // TODO Auto-generated method stub
      super.onCreate(savedInstanceState);
      addPreferencesFromResource(R.xml.preferences);
      PreferenceManager.setDefaultValues(this, R.xml.preferences, false);
  }
  }
  </code></pre>
  
  <p>Here are my Preference layout</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" 
      &gt;
      &lt;CheckBoxPreference 
          android:key="pref_Autoplay"
          android:title="@string/pref_Autoplay"
          android:summary="@string/pref_Autoplay_summ"
          android:defaultValue="false"/&gt;
      &lt;ListPreference 
          android:entryValues="@array/pref_Voice_values" 
          android:entries="@array/pref_Voice_entries" 
          android:key="pref_Voice" 
          android:summary="Choose male or female reader" 
          android:title="Readers voice" 
          android:defaultValue="female"/&gt;
  
  
  &lt;/PreferenceScreen&gt;
  </code></pre>
  
  <p>As I read here to change background I need to create my own theme with style. Here it is:</p>
  
  <pre><code>&lt;style name="PrefsTheme" parent="@android:style/Theme.Black.NoTitleBar"&gt;
          &lt;item name="android:windowBackground"&gt;@drawable/prefs_bg&lt;/item&gt;
          &lt;item name="android:textColor"&gt;@color/prefs_bg&lt;/item&gt;
          &lt;item name="android:listViewStyle"&gt;@style/listViewPrefs&lt;/item&gt;
      &lt;/style&gt;
  
      &lt;style name="listViewPrefs" parent="@android:style/Widget.ListView"&gt;
          &lt;item name="android:background"&gt;@color/prefs_bg&lt;/item&gt;
          &lt;item name="android:cacheColorHint"&gt;@color/prefs_bg&lt;/item&gt;
          &lt;item name="android:textColor"&gt;@color/prefs_bg&lt;/item&gt;
      &lt;/style&gt;
  </code></pre>
  
  <p>All I need is to set some image background for preferences list. My image is <code>@drawable/prefs_bg</code>. When I set <code>windowBackground</code> to image and <code>background</code> to some color, preferences list background uses color instead of picture. But when I set background to <code>@drawable/prefs_bg</code> preferences list background appears with my picture and Radio Button dialog for my <code>ListPreference</code> item is also using image background. </p>
  
  <p>Please help, how can I set image background for preferences list without affecting background of radio button dialog of some of the preferences item?</p>