ElasticDragDismissLayout icon indicating copy to clipboard operation
ElasticDragDismissLayout copied to clipboard

Support CoordinatorLayout

Open Jawnnypoo opened this issue 9 years ago • 4 comments

It would be great to figure out how to support CoordinatorLayout since this is used as the root layout in many cases. I tried to do so at one point, but ran into a bunch of behavior issues where things no longer worked as they should.

Jawnnypoo avatar Feb 06 '16 18:02 Jawnnypoo

I'm facing this issue too. Trying to implement it at this moment. Would be great if you could support it!

nikhilpanju avatar Sep 29 '16 14:09 nikhilpanju

Any progress with CoordinatorLayout?

drozdzynski avatar Nov 12 '16 19:11 drozdzynski

Hey guys, if you want to use pull down finish with CoordinatorLayout, pull-back-layout may will help you. PS: you must include CoordinatorLayout into a RelativeLayou or any one else View, code like below

`<ooo.oxo.library.widget.PullBackLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/puller" android:layout_width="match_parent" android:layout_height="match_parent">

<LinearLayout
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <android.support.design.widget.CoordinatorLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent">

    </android.support.design.widget.CoordinatorLayout>
</LinearLayout>

</ooo.oxo.library.widget.PullBackLayout>`

ScuAdam avatar Nov 14 '16 04:11 ScuAdam

I forked this repo and successfully managed created a ElasticDragDismissCoordinatorLayout class, and it works! A problem occurs with CollapsingToolbarLayout however. The Drag effect starts before the collapsed toolbar has re-expanded.

Nonetheless, I'll create a PR.

dellisd avatar Nov 28 '16 02:11 dellisd