Transparent divider in a listview

前端 未结 7 1682
予麋鹿
予麋鹿 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:02

    @kusi if you have not setContentView(R.layout.yourlayout); then you should have to declare it and then in that layout file you have to declare this ListView

     
    

    note that you must have to set id of this listview as android:id="@android:id/list" in case you have extends ListActivity in your Activity Class.

提交回复
热议问题