Nested ExpandableView
See original GitHub issueIs it possible to have an ExpandableView inside another ExpandableView? and if so how can i achive it? Example Code:
XAML
<expandable:ExpandableView>
<expandable:ExpandableView.PrimaryView>
<StackLayout BackgroundColor="Black" HeightRequest="200">
</StackLayout>
</expandable:ExpandableView.PrimaryView>
<expandable:ExpandableView.SecondaryViewTemplate>
<DataTemplate>
<expandable:ExpandableView>
<expandable:ExpandableView.PrimaryView>
<StackLayout BackgroundColor="Green" HeightRequest="200">
</StackLayout>
</expandable:ExpandableView.PrimaryView>
<expandable:ExpandableView.SecondaryViewTemplate>
<DataTemplate>
<StackLayout BackgroundColor="Blue" HeightRequest="200">
</StackLayout>
</DataTemplate>
</expandable:ExpandableView.SecondaryViewTemplate>
</expandable:ExpandableView>
</DataTemplate>
</expandable:ExpandableView.SecondaryViewTemplate>
</expandable:ExpandableView>
I can only access the “green” StackLayout, the secondary data for that StackLayout doesn’t open (the “blue” StackLayout), is this an expected behaviour?
EDIT: If i set IsExpanded=true
in the inside ExpandableView, i can see that the animation happens, but not the expanding
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Recycleview with nested expandable lists in header
This way you have a clear separation between your domain models ( Plants ) and view models (the items) in your adapter. Your...
Read more >shahbazhashmi/nested-expandable-recyclerview
Nested Expandable RecyclerView is a simple and light weight demonstration to achieve nested (multi-level) and expandable/collapsable recyclerview in android ...
Read more >How to use Expandable RecyclerView in Kotlin ( Part 2
RecyclerView provides an easy way to display large data sets dynamically as they change. It is a widget for managing items on a...
Read more >Android Nested RecyclerViews with expandable list
The following is an example for creating nested RecyclerViews in Android. A list RecyclerViews are items of a parent RecyclerView.
Read more >Expandable Recyclerview makes it easy to integrate ...
Simple and easy to use ( no complex adapter required ) · Just extend BaseRecyclerAdapter and good to go. · Get onClick event...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Closing for now. Maybe return later. For now i am not keen to support nested expandable view.
I didn’t find any workaround, since the project has a deadline, we dropped the idea for a nested expandable view, sorry. This is a very niche problem, but i will comeback and try to solve this