int[] colors = {0, 0xFFCCCCCC, 0}; // red for the example listview.setDivider(new GradientDrawable(Orientation.RIGHT_LEFT, colors));