Skip to content

Instantly share code, notes, and snippets.

Embed
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
getListView().setDividerHeight(FuncInt.dp(10));
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.