dungockim / Drag---TubeAnimationV2

How to make animation like youtube new? This is the demo application for you to answer the above question

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Drag---TubeAnimationV2

How to make animation like youtube new? This is the demo application for you to answer the above question

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

XML

    <com.hoanganhtuan95ptit.drag.view.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

About

How to make animation like youtube new? This is the demo application for you to answer the above question

License:Apache License 2.0


Languages

Language:Java 100.0%