android - Navigation drawer bottom item -
i have implemented navigation drawer here material drawer https://github.com/kanytu/android-material-drawer-template
my problem want add logout @ end of navigation drawer list.
here xml drawer:
<mynews.volume.com.mynews.materialnavigation.scriminsetsframelayout android:id="@+id/scriminsetsframelayout" android:layout_width="match_parent" android:layout_height="wrap_content" android:fitssystemwindows="true" app:insetforeground="#99000000" android:elevation="10dp" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"> </mynews.volume.com.mynews.materialnavigation.scriminsetsframelayout> <linearlayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <include android:id="@+id/toolbar_actionbar" layout="@layout/toolbar_default" android:layout_width="match_parent" android:layout_height="wrap_content"/> <framelayout android:id="@+id/container" android:layout_width="fill_parent" android:clickable="true" android:layout_height="match_parent"> <mynews.volume.com.mynews.swipe.swipelistview android:id="@+id/news_list_view" android:listselector="#00000000" android:layout_width="fill_parent" android:layout_height="wrap_content" swipe:swipefrontview="@+id/front" swipe:swipebackview="@+id/back" swipe:swipedrawablechecked="@drawable/choice_selected" swipe:swipedrawableunchecked="@drawable/choice_unselected" swipe:swipecloseallitemswhenmovelist="true" swipe:swipeactionright="reveal" swipe:swipemode="right" /> <!--<listview--> <!--android:layout_width="fill_parent"--> <!--android:layout_height="wrap_content"--> <!--android:id="@+id/news_list_view"--> <!--android:divider="#e5e6e8"--> <!--android:listselector="@android:color/transparent"--> <!--android:dividerheight="3dp"--> <!--/>--> <progressbar android:id="@+id/progressbar1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" /> <textview android:layout_width="wrap_content" android:layout_marginleft="15dp" android:layout_marginright="15dp" android:textsize="25dp" android:layout_height="wrap_content" android:layout_gravity="center_horizontal" android:gravity="center_horizontal" android:layout_margintop="200dp" android:textappearance="?android:attr/textappearancelarge" android:text="" android:visibility="gone" android:id="@+id/nodata" /> </framelayout> </linearlayout> <!-- android:layout_margintop="?android:attr/actionbarsize"--> <fragment android:id="@+id/fragment_drawer" android:name="mynews.volume.com.mynews.materialnavigation.navigationdrawerfragment" android:layout_width="@dimen/navigation_drawer_width" android:layout_height="match_parent" android:layout_gravity="start" app:layout="@layout/fragment_navigation_drawer"/>
please guide me achieve this.
here code of button try implementing it
<button android:id="@+id/button1" android:statelistanimator="@anim/my_animator" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignparentbottom="true" //you need android:layout_centerhorizontal="true"//and android:layout_below="@id/mapview" android:text="@string/save" />
hope helps
Comments
Post a Comment