Android ListView dividers
Domanda
If an entry in ListView is disabled, dividers won't be drawn around it. But if we set dividerHeight to something large, we can notice they are still there... but just invisible.
So, two questions:
- how to get rid of them, fully?
- is there any way to style those hidden dividers from themes and take advantage of this feature? We can adjust
<item name="android:listDivider">
, maybe there's some kind of<item name="android:invisibleListDivider">
?
Soluzione
how to get rid of them, fully?
I'm not 100% sure but I would say that it cant be done.
is there any way to style those hidden dividers from themes and take advantage of this feature? We can adjust , maybe there's some kind of ?
There is @android:drawable/empty
. @null
should work as well.
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow