Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
set ListView divider drawable and height programmatically,must setDivider(Drawble) fiist, and then setDividerHeight, otherwise, the dividerheight will be 0.
getListView().setDivider(getResources().getDrawable(R.color.list_background)); //must be called first
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.