I can't speak for the original designers' and coders' intent, but it
may be they intended to put a space there so that when an item is
selected, they can put a yellow rectangle around it, which, they do.
Yusuf Saib
Android
·T· · ·Mobile· stick together
The views, opinions and statements in
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
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:
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 ;)
This is the
4 matches
Mail list logo