ListFragment does not accept my layout

前端 未结 10 1389
情歌与酒
情歌与酒 2020-12-01 02:09

According to this link: ListFragment android developers

I want to set my custom layout for list, but it makes exceptions.

Here is the code:

p         


        
10条回答
  •  甜味超标
    2020-12-01 03:10

    Try to remove setListShown(true);?

    I had same problem, some time ago. It's seams that you cant use it if you have custom layout in ListFragment.

提交回复
热议问题