Skip to content

Instantly share code, notes, and snippets.

@vekexasia vekexasia/ Secret
Created Aug 28, 2015

What would you like to do?
Footer adding to NavigationView
class MyFragment extends Fragment {
/* ... */
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
ListView listView = (ListView) navigationView.getChildAt(0);
View toRet = LayoutInflater.from(view.getContext()).inflate(R.layout.drawer_footer, listView, false);
// Manipulate the view (if you need to) before calling addFooterView.
listView.addFooterView(toRet, null, false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.