Skip to content

Instantly share code, notes, and snippets.

@kyze8439690
Created November 2, 2013 17:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kyze8439690/7281285 to your computer and use it in GitHub Desktop.
Save kyze8439690/7281285 to your computer and use it in GitHub Desktop.
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