Listview inside listview Xamarin.Forms

前端 未结 1 917
故里飘歌
故里飘歌 2020-12-10 22:37

I want to create listview inside listview. I tried below code, which is not working in Android, same code working perfectly in iOS



        
1条回答
  •  萌比男神i
    2020-12-10 22:54

    Listview inside a Listview is not a supported option. Listviews are designed to be the only root control on a page, mainly due to sizing and scrolling concerns.

    Also the complexity of the page might cause poor performance.

    Ideally I would suggest reworking your layout so that the repeated information is on another page. However if you want to continue on with this approach you should look at the RepeaterView in XLabs. Its basically an enhanced StackLayout.

    0 讨论(0)
提交回复
热议问题