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

Nested Layouts #102

@sayoojvalsan-demandmedia

Description

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions