I need to separate to content areas in my application, and I thought I would use the OS built-in style for better integration, style-wise. The separator used by the ListView seemed to fit.
So I had a custom style resource like this, inheriting from Widget.TextView.ListSeparator: <style name="Header" parent="@android:style/ Widget.TextView.ListSeparator">...</style> And then using the resource with a view like so: <TextView style="@style/Header"> Compiled a against 1.0, this worked just fine on my 1.0 device, and also with the unofficial "holiday" 1.1 ADP image. Now, using the 1.5 SDK, it still works as expected on a 1.5 AVD, but when running the app on a 1.1 AVD or my 1.1 holiday device, the "parent" style doesn't seem to be taken into account. Neither the android:background specified by Widget.TextView.ListSeparator nor the android:textColor value is used. On the other hand, when targeting 1.1 in Eclipse, it*does* work in 1.1 again, but the same issue now occurs while running on 1.5. When trying to use <TextView style="@android:style/ Widget.TextView.ListSeparator"> directly, Eclipse says "Resource is not public" , both when targeting 1.1 or 1.5. Is there any obvious explanation for this? What would be the correct way to reference the Widget.TextView.ListSeparator style? Why can't I use the style directly, but are allowed to inherit from it? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

