microsoftarchive / android-sliding-layer-lib

Highly customizable SlidingLayer as you have seen in Wunderlist
http://wunderlist.com
Apache License 2.0
932 stars 279 forks source link

Nested Layouts #102

Open sayoojvalsan-demandmedia opened 8 years ago

sayoojvalsan-demandmedia commented 8 years ago

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.