I would like to be able to select the photo from the main nav header so that it returns an action . Is it possible to achieve it through code such as with a click listener? In this case, what java class would be linked to this activity in order to be able to relate the elements and be able to start coding? I would appreciate if you share it.
I attach a photo so you understand what I mean.
DISCLAIMER: The image I show is not from my activity, but from a video on youtube. I only have an empty application except for the Navigation Drawer that Android Studio creates by default.
To do this you must find the Header view:
and look for the "header" in it to assign the listener to it: