Skip to content

chimngu/TubeMaterial

Repository files navigation

TubeMaterial

Project youtube with material

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!!!

Alt text Alt text Alt text
Alt text Alt text Alt text

XML

    <com.chimngu.drag.ui.widget.drag.DragFrame
        android:id="@+id/drag_frame"
        android:layout_width="match_parent"
        android:layout_height="match_parent"/>
        

Add frame top

dragFrame.setTopFragment(getSupportFragmentManager(), PlayFragment.newInstance());

Add frame bottom

dragFrame.setBottomFragment(getSupportFragmentManager(), DetailFragment.newInstance());

Listener

dragFrame.setOnDragListener(this);

Open max

dragFrame.maximize();

Open min

dragFrame.minimize();

Close

dragFrame.close();

Set height waiting frame top - frame top change the size when max

dragFrame.setHeightWaiting(int heightWaiting);

Set height frame top - Immediately change the size

dragFrame.setHeight(int height);

Check max

dragFrame.isMaximized();

Check min

dragFrame.isMinimized();

Check close

dragFrame.isClosed();

Libraries used on the sample project