mohammad anouti
mohammad anouti

Reputation: 171

Xamarin Forms listview inside listview

I'm trying to make a listview inside a listview(nested listview) anyone can help? Thanks.

something like this:

nested listview

Upvotes: 0

Views: 1301

Answers (2)

TaiT's
TaiT's

Reputation: 3216

Nested listview is a general bad practice in Xamarin because you cannot predict which one will get the gesture.

However, you can try using grouping options or can give a try to this Expandable ListView.

Another way to solve this is to open a new page once you click on the first list view items and then display the second listview in a second page.

Happy coding,

Upvotes: 2

hashimks
hashimks

Reputation: 1225

Its not possible to have a nested list view in Xamarin Forms. However it is possible by using custom renders.

You can create a repeater view which can be used inside the list view. Follow the link for the detailed explanation on creating a Repeater view.

RepeaterView

Upvotes: 1

Related Questions