Android : Remove ListView Separator/divider programmatically or using xml property

Posted on : Fri, 29th May 15 07:43 am UTC
100+ votes

The default behavior of Android ListView has a divider line that acts as a separator between two rows as shown in the below image,

Android ListView Separator line

Figure : Android ListView Separator line

If you wish to remove this line, its possible both programmatically as well as using layout xml attributes, lets see both ways,

    Similar Questions :

  1. How to remove Divider Line from Android ListView ?
  2. Remove separator from Android SDK version 4.1, 4.2, 4.3, 4.4, 5.0, 5.1 ?
  3. How to remove ListView Separator Pragmatically ?
  4. Remove ListView Separator in Layout xml file ?
  5. How to Hide ListView horizontal line separator for Lollipop and KitKat versions?

Hashtags : #Android #Tutorial #ListView #Separator #AndroidStudio #Eclipse

Code2care's mission is to share varied knowledge in technical and non-technical areas gathered during day-to-day learnings and development activities so that our visitors can leverage this portal to find solutions to their queries without re-inventing the wheel. Technical posts include Learnings, Tutorials, Video Tutorials, Code Snippets, Tips-n-tricks.

Follow us : Facebook - Twitter - Google +