Search This Blog

Tuesday, October 7, 2014

Putting the divider in ListView

Here is the code for the divider in android list view.

int[] colors = {0, 0xFFFF0000, 0};
myListview.setDivider(new GradientDrawable(Orientation.RIGHT_LEFT, colors));

This will brought into new gradient styled divider.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.