Thursday, August 18, 2011

[android-developers] Preferences Activity leaves black region on exit

This is occurring with Honeycomb (Android 11) OS.  On exit the left edge outside of a ListView in a Fragment is left black when exiting my Preference Activity.  This strip runs the height of the ListView and overlaps into a little of the Fragments to the left.  Any other dialog that is opened does not do this.  As I select one of the ListView items the regions fills down to the level of the selected item.  The background is a Drawable but this also occurs if  I just use a color for the background.  The theme is Theme.Holo which is black so if I didn't set the background it wouldn't be noticeable.  I also use a custom theme but it only sets the ActionBar color.

Now I also tried a PerferenceFragment but that class is a bit under documented.  It does not cause this problem but the layout is transparent (because it is Theme.Holo) so I can't use it.  We probably need some better examples as the ApiDemo of the PreferenceFragment only works because the background for the example is black.  We need more details on how to use this class and what else can be used for "content" in the add or even replace call.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment