How To Change Background Color Of Child Preference Screen In Honeycomb
I have been searching for the solution for the last several days but could not find one. I need to change the background color of the right pane (I know how to change the color of
Solution 1:
I had this same issue not long ago; couldn't figure it out at the time, even after trying many of the solutions here. Finally stumbled upon a fix after running into a similar issue.
I just finished writing a blog post about it that explains in more detail, Fixing empty white space issues with Android ListViews, but basically you should be able to get rid of the white space by setting overScrollFooter
to @null
.
As overScrollFooter is only available in Android 2.3.3+ (API Level 10+), you'd have something like this:
res/values/styles.xml
<stylename="MyListView"parent="@android:style/Widget.ListView"></style>
res/values-v10/styles.xml
<stylename="MyListView"parent="@android:style/Widget.ListView"><itemname="android:overScrollFooter">@null</item></style>
And of course update your PreferencesTheme to use it:
<stylename="PreferencesTheme"parent="android:Theme.Holo"><itemname="android:windowBackground">@drawable/background</item><itemname="android:listViewStyle">@style/MyListView</item></style>
Post a Comment for "How To Change Background Color Of Child Preference Screen In Honeycomb"