Skip to content
This repository has been archived by the owner on Nov 22, 2017. It is now read-only.

enable_click_to_maximize_view = true is not working when i set TopViewMarginBottom programmatically #125

Open
duckhanh1108 opened this issue Jun 29, 2017 · 0 comments

Comments

@duckhanh1108
Copy link

duckhanh1108 commented Jun 29, 2017

My code is below

<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:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@color/transparent"
        android:visibility="gone"
        draggable_view:bottom_view_id="@+id/ll_video_bottom"
        draggable_view:enable_click_to_maximize_view="true"
        draggable_view:enable_click_to_minimize_view="true"
        draggable_view:enable_minimized_horizontal_alpha_effect="false"
        draggable_view:top_view_id="@+id/rlVideoView"
        draggable_view:top_view_resize="true"
        draggable_view:top_view_x_scale_factor="1.5"
        draggable_view:top_view_y_scale_factor="1.5">

        <RelativeLayout
            android:id="@+id/rlVideoView"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:gravity="center"
            android:background="@color/black">

            <VideoView
                android:id="@+id/videoView"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:visibility="visible" />
        </RelativeLayout>

        <RelativeLayout
            android:id="@+id/ll_video_bottom"
            android:layout_width="0dp"
            android:layout_height="0dp"
            android:background="@color/transparent" />

    </com.github.pedrovgs.DraggableView>

and

draggableView.setTopViewHeight(screenHeight);
draggableView.setTopViewMarginBottom((int)height);

When minimize i click DraggableView to maximize but its not working.
I must remove draggableView.setTopViewMarginBottom((int)height) to it work
Help me please!

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