Always remember, when you set a listview’s divider to a color, to set the divider height.
<ListView ... android:divider="@color/black" android:dividerHeight="1dip" />
Also known as “Why does the listview is not showing the divider”
There are 2 posts tagged divider (this is page 1 of 1).
In order for this code snippet to work, you must add item names starting with “-” where you want to add a divider.
public View getView(int position, View convertView, ViewGroup parent) { if(items.get(position).get("name").startsWith("-")){ View divider = mInflater.inflate(R.layout.progressbar, null); return divider; } //Implement the rest of the getView here }