Skip to content
This repository has been archived by the owner on Feb 20, 2021. It is now read-only.

Nested Layouts #102

Open
sayoojvalsan-demandmedia opened this issue Aug 24, 2016 · 0 comments
Open

Nested Layouts #102

sayoojvalsan-demandmedia opened this issue Aug 24, 2016 · 0 comments

Comments

@sayoojvalsan-demandmedia
Copy link

sayoojvalsan-demandmedia commented Aug 24, 2016

I am trying to Nest sliding layer.
When you expand the first one, I get to see another in the bottom. I am looking for 3 levels.

I implemented the three layers this way -

<com.wunderlist.slidinglayer.SlidingLayer
        xmlns:slidingLayer="http://schemas.android.com/apk/res-auto"
        android:id="@+id/slidingLayer1"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        slidingLayer:shadowSize="@dimen/shadow_size"
        slidingLayer:offsetDistance="@dimen/offset_distance"
        slidingLayer:previewOffsetDistance="@dimen/preview_offset_distance"
        slidingLayer:stickTo="bottom"
        >

        <FrameLayout
            android:background="@color/albaster"
            android:layout_width="match_parent" android:layout_height="match_parent">


            <com.wunderlist.slidinglayer.SlidingLayer
                android:id="@+id/slidingLayer2"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                slidingLayer:shadowSize="@dimen/shadow_size"
                slidingLayer:offsetDistance="@dimen/offset_distance"
                slidingLayer:previewOffsetDistance="@dimen/preview_offset_distance"
                slidingLayer:stickTo="bottom"
            >

                <FrameLayout
                    android:background="@color/grey2"
                    android:layout_width="match_parent" android:layout_height="match_parent">

                    <com.wunderlist.slidinglayer.SlidingLayer
                        android:id="@+id/slidingLayer3"
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        slidingLayer:shadowSize="@dimen/shadow_size"
                        slidingLayer:offsetDistance="@dimen/offset_distance"
                        slidingLayer:previewOffsetDistance="@dimen/preview_offset_distance"
                        slidingLayer:stickTo="bottom"
                    >

                        <FrameLayout
                            android:background="@color/albaster"
                            android:layout_width="match_parent" android:layout_height="match_parent">


                        </FrameLayout>
                    </com.wunderlist.slidinglayer.SlidingLayer>


                </FrameLayout>
            </com.wunderlist.slidinglayer.SlidingLayer>

        </FrameLayout>
    </com.wunderlist.slidinglayer.SlidingLayer>


The issue is I am not able to pull the second panel up by swiping it up when the first one is expanded. But when I click on the second panel, it expands the way I wanted. Only the drag is the issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant