-2

I know it should be in the style sheet area for this, but when I created a new Android app using Android Studio, it has a user logo and user information in a green box. This is what I want to edit.

First it should ask them to login if first time using the app.

Navigation Drawer Activity

But let's deal with one thing at a time, and first is me getting use to where Google puts things.

halfer
  • 19,824
  • 17
  • 99
  • 186
RussellHarrower
  • 6,470
  • 21
  • 102
  • 204
  • I wonder, would you delete this question? It has not attracted any (useful) answers in ~18 months, and isn't very clear. Thanks! – halfer Aug 26 '17 at 10:23

1 Answers1

0

If you look at your layout activiy you will find a "NavigationView", there are 2 attributes there you need "header" and "menu".

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

There is another alternative. The "NavigationView" is a ViewGroup. So you can use it as such. Delete thee "header" and "menu" attribute and add the closing brackets as if were a ViewGroup:

<NavigationView></NavigationView>

Now you can simply put a fragment inside and then find every view and handle your logic from the fragment, is a more direct and customizable approach.

halfer
  • 19,824
  • 17
  • 99
  • 186
cutiko
  • 9,887
  • 3
  • 45
  • 59