Hi Romain, I think you just got me wrong. If I wanted to have no dividers at all, I would set dividerHeight to 0, of course.
Indeed, I want to have dividers between enabled items, but no dividers next to disabled ones. The code in ListView.dispatchDraw() already has code for this: if (bottom < listBottom && (areAllItemsSelectable || (adapter.isEnabled(first + i) && (i == count - 1 || adapter.isEnabled(first + i + 1))))) { bounds.top = bottom; bounds.bottom = bottom + dividerHeight; drawDivider(canvas, bounds, i); } but the code related to the layout of the children seems to ignore the presence of disabled items. It's reserving space for dividers that will not be drawn by dispatchDraw. Maybe this is intended as well. But anyway, I wish it was intended (and implemented) the other way ;) I think I can't help that with dividerHeight, because it is a global property that affects all dividers at once. with best regards, Brian Schimmel On 30 Jul., 17:57, Romain Guy <romain...@google.com> wrote: > > I'm rather sure this is a Bug, but maybe it's the intended behaviour. > > This is not a bug. Just set the dividerHeight to 0. > > -- > Romain Guy > Android framework engineer > romain...@android.com > > Note: please don't send private questions to me, as I don't have time > to provide private support. All such questions should be posted on > public forums, where I and others can see and answer them --~--~---------~--~----~------------~-------~--~----~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---