Skip to content
This repository was archived by the owner on Nov 22, 2017. It is now read-only.
This repository was 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

@duckhanh1108

Description

@duckhanh1108

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions