Make FlowingDrawer Effect in Android
It is new Sliding Panel flowing and bouncing effect in android and swipe right to display drawer with flowing effects. Use it if you bored to see the old sliding panel drawer.How to Use
For a working implementation of this project see the app/ folder.Download Code
MainActivity:
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); .... mLeftDrawerLayout = (LeftDrawerLayout) findViewById(R.id.id_drawerlayout); FragmentManager fm = getSupportFragmentManager(); MyMenuFragment mMenuFragment = (MyMenuFragment) fm.findFragmentById(R.id.id_container_menu); FlowingView mFlowingView = (FlowingView) findViewById(R.id.sv); if (mMenuFragment == null) { fm.beginTransaction().add(R.id.id_container_menu, mMenuFragment = new MyMenuFragment()).commit(); } mLeftDrawerLayout.setFluidView(mFlowingView); mLeftDrawerLayout.setMenuFragment(mMenuFragment); ... }
activity_main.xml:
<com.mxn.soul.flowingdrawer_core.LeftDrawerLayout android:id="@+id/id_drawerlayout" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:clipChildren="false" > <!--content--> <android.support.design.widget.CoordinatorLayout android:id="@+id/content" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> </android.support.design.widget.CoordinatorLayout> <!--menu--> <RelativeLayout android:layout_width="280dp" android:layout_height="match_parent" android:layout_gravity="start" android:clipChildren="false" > <com.mxn.soul.flowingdrawer_core.FlowingView android:id="@+id/sv" android:layout_width="match_parent" android:layout_height="match_parent"/> <FrameLayout android:id="@+id/id_container_menu" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_alignParentLeft="true" android:layout_marginRight="25dp" android:paddingRight="10dp" /> </RelativeLayout> </com.mxn.soul.flowingdrawer_core.LeftDrawerLayout>
Advertise on APSense
This advertising space is available.
Post Your Ad Here
Post Your Ad Here

Comments