Open duckhanh1108 opened 7 years ago
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!
My code is below
and
When minimize i click DraggableView to maximize but its not working. I must remove draggableView.setTopViewMarginBottom((int)height) to it work Help me please!