I have PreferenceActivity with several PreferenceGroup. The ListView doesn’t show a divider above and under the header of PreferenceGroup. How does it know whether to show that header or not?
Let’s say I have a ListView with custom adapter. How can I tell it which entries are the headers and shouldn’t have dividers around it?
Thanks
Those are not headers, they are separators. The adapter tells the
ListViewwhich item is a separator by returningfalseatisEnabled.http://developer.android.com/reference/android/widget/BaseAdapter.html