I got a list view for navigation drawer, how can I put list item like "Add Friends", "Settings" align at the bottom of the list view.
Update 1
I add a setting view to the footer view.
View settingView = getLayoutInflater().inflate(R.layout.drawer_list_item, null);
TextView textView = (TextView)settingView.findViewById(R.id.drawer_list_item_text_view);
textView.setText("Settings");
drawerListView.addFooterView(settingView);
The settings item appear at the last one in the list view successfully. But how can I make it to stick and align at the bottom? Thanks.
Jay Donga was really helpful, but I had to change two methods to insert a footer in my DrawerLayout.
You can put the
ListView
inside aRelativeLayout
and assignandroid:layout_gravity="start"
to theRelativeLayout
. And setandroid:layout_alignParentBottom="true"
property to the view you want to set to bottom ofListView
.This may help you.