but in this we need to change line.
?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:ads="http://schemas.android.com/apk/res-auto"
android:layout_width="fill_parent"
android:layout_height="fill_parent"> <android.support.v4.widget.DrawerLayout
android:id="@+id/drawer_layout"
android:layout_width="fill_parent"
android:layout_height="match_parent"> <FrameLayout
android:id="@+id/content_frame_Home"
android:layout_width="match_parent"
android:layout_height="match_parent"/> <RelativeLayout
android:id="@+id/left_relative"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:layout_gravity="start"> <include layout="@layout/slider" /> </RelativeLayout> </android.support.v4.widget.DrawerLayout> </RelativeLayout>
android:layout_gravity="start" change to android:layout_gravity="end"in Coding we need to change GRAVITY LEFT To Right..
DrawerLayout drawerLayout; drawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout); drawerLayout.openDrawer(Gravity.RIGHT);
No comments :
Post a Comment