Avtivity_cehua.xml<android.support.v4.widget.drawerlayout xmlns:android= "http://schemas.android.com/ Apk/res/android " xmlns:tools=" Http://schemas.android.com/tools " Android:id= "@+id/drawer" android:layout_width= "Match_parent" android:layout_height= "Match_parent" tools:context= "com.mingle.service.ui.MainActivity" > <linearlayout android:layout_ Width= "Fill_parent" android:layout_height= "Fill_parent" android:orientation= "Vertical" > <!-- Main layout put here --> <include android:layout_width= "Fill_parent" android:layout_height= "Fill_parent" layout= "@layout/activity_main" /> </LinearLayout> <LinearLayout Android:id= "@+id/menull" android:layout_width= "Fill_parent" android:layout_height= "Fill_parent" android:layout_gravity= "Start" android: Clickable= "true" android:background= "@android: Color/white" android:orientation= "Vertical" > <!-- Slide-off layout here --> < Include &nbsP; android:layout_width= "Fill_parent" android:layout_height= "Fill_parent" layout= "@layout/activity_exit" /> </LinearLayout></android.support.v4.widget.DrawerLayout> slide the effect to the left of the main area
This article is from the "Android/[email protected]" blog, be sure to keep this source http://liang3391.blog.51cto.com/178205/1638102
Android left Slide effect