question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Nested ExpandableView

See original GitHub issue

Is 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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
AndreiMisiukevichcommented, Feb 18, 2019

Closing for now. Maybe return later. For now i am not keen to support nested expandable view.

1reaction
RicardoMoraisPORcommented, Feb 15, 2019

@RicardoMoraisPOR Hi, did you try?)

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found