Transparent divider in a listview

前端 未结 7 1606
予麋鹿
予麋鹿 2021-01-02 13:47

I am creating a listiview programmatically. I keep a divider between listview elements. I wish to keep a transparent divider because I have a background image to be shown. I

7条回答
  •  走了就别回头了
    2021-01-02 14:12

    this line brings it standardized, usable everywhere ... :)

    getListView().setDivider(this.getResources().getDrawable(android.R.color.transparent));

    if you also call -> setDividerHeight, call setDivider first.

    good luck && have fun :=)

提交回复
热议问题