How to put list items at the bottom of list view in Navigation Drawer like Foursquare

前端 未结 2 718
清歌不尽
清歌不尽 2020-12-03 08:04

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.

2条回答
  •  北荒
    北荒 (楼主)
    2020-12-03 08:19

    Jay Donga was really helpful, but I had to change two methods to insert a footer in my DrawerLayout.

    // WITHOUT FOOTER VIEW
    mDrawerLayout.isDrawerOpen(mDrawerList)
    mDrawerLayout.closeDrawer(mDrawerList)
    
    // WITH FOOTER VIEW
    mDrawerContent = (RelativeLayout) findViewById(R.id.relative_layout);
    mDrawerLayout.isDrawerOpen(mDrawerContent)
    mDrawerLayout.closeDrawer(mDrawerContent)
    

提交回复
热议问题