Navigation drawer in Android -


i know should in style sheet area this, when created new android app using android studio, has user logo , user information in green box. want edit.

first should ask them login if first time using app.

navigation drawer activity

but let's deal 1 thing @ time, , first me getting use google puts things.

if @ layout activiy find "navigationview", there 2 attributes there need "header" , "menu".

you can see in answer how.to views inside "header" file: https://stackoverflow.com/a/33631797/4017501

there alternative. "navigationview" viewgroup. can use such. delete thee "header" , "menu" attribute , add closing brackets if viewgroup:

<navigationview></navigationview> 

now can put fragment inside , find every view , handle logic fragment, more direct , customizable approach.


Comments

Popular posts from this blog

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

html - Outlook 2010 Anchor (url/address/link) -

android - How to create dynamically Fragment pager adapter -