Created
November 2, 2013 17:22
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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