This application is built based on my understanding of android, so it may not be really good, I look forward to your contributions and help to make the application more complete and optimal. Thank you!!!
<com.chimngu.drag.ui.widget.drag.DragFrame
android:id="@+id/drag_frame"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
dragFrame.setTopFragment(getSupportFragmentManager(), PlayFragment.newInstance());
dragFrame.setBottomFragment(getSupportFragmentManager(), DetailFragment.newInstance());
dragFrame.setOnDragListener(this);
dragFrame.maximize();
dragFrame.minimize();
dragFrame.close();
dragFrame.setHeightWaiting(int heightWaiting);
dragFrame.setHeight(int height);
dragFrame.isMaximized();
dragFrame.isMinimized();
dragFrame.isClosed();