Share Coding

Tutorials, Problems, Stuffs …

Tag Archives: divider

Android Split line or one side border

When using add border to a view, the divider between two ListView  is not always display correctly. After the list item onDraw(), divider will overlapped by the list item.

So the better way is insert a view between two view and have only 1 or 2 dp width / heigh, using drawable/mydivder.xml or @color/XXX to change the color. Read more of this post