pedrovgs / DraggablePanel

Android library used to create an awesome Android UI based on a draggable element similar to the last YouTube graphic component.
Apache License 2.0
2.99k stars 606 forks source link

the top view on minimization sometimes does not minimize to fullest #114

Open coderbhupendra opened 7 years ago

coderbhupendra commented 7 years ago

I also got similar problem,, the top view on minimization sometimes does not minimize to fullest. This is my draggableview xml:

`<com.github.pedrovgs.DraggableView xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:draggable_view="http://schemas.android.com/apk/res-auto"
        android:id="@+id/draggable_view"
        android:background="@color/card_Bg"
        draggable_view:enable_minimized_horizontal_alpha_effect="true"
        draggable_view:top_view_id="@+id/drag_ll_top_slider"
        draggable_view:bottom_view_id="@+id/drag_ll_details"
        android:theme="@style/android:Theme.NoTitleBar"
        draggable_view:top_view_x_scale_factor="1.2"
        draggable_view:top_view_y_scale_factor="1.2"
        android:layout_width="match_parent"
        android:layout_height="match_parent">

        <!--Bottom View-->
        <LinearLayout
            android:orientation="horizontal"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:id="@+id/drag_ll_details"
            android:background="@color/bmb_seller_details"
            android:layout_below="@+id/drag_ll_top_slider">
  </LinearLayout>
        <!--Top View-->
        <LinearLayout
            android:orientation="horizontal"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:id="@+id/drag_ll_top_slider"
            android:layout_alignParentTop="true">

            <android.support.v7.widget.RecyclerView
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:id="@+id/recyclerview_slide" />
        </LinearLayout>

    </com.github.pedrovgs.DraggableView>`

Below are the screen shot. screenshot_2017-02-24-21-52-27-424_com example berry sellerapp screenshot_2017-02-24-21-52-10-777_com example berry sellerapp