Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android: ListView non-enabled items draw invisible divider [duplicate]

If I have a ListView with two different kinds of items, enabled and disabled ones (meaning selectable and non-selectable), Android draws a small divider correctly between the enabled items, but not between disabled items. Instead it draws a transparent divider, which causes really bad design issues. This has already been discussed here (Google Groups), but without any solution.

What I'm looking for is a way to force Android to draw the same divider which is being used between enabled items also to being used between disabled items instead of just leaving a transparent space.

like image 334
znq Avatar asked Dec 09 '09 10:12

znq


1 Answers

if you have headers and/or footers this: http://java.dzone.com/articles/android-listview-%E2%80%93-fixing is the correct answer. Really nicely explained.

like image 67
Denny1989 Avatar answered Sep 27 '22 20:09

Denny1989