0
I have the layout main
and the code that controls it, this layout has a Navigation Drawer
(the "slider" on the left) and left the layout of the Main Header
(the top of the Navigation Drawer
where the user information is) in another file. I tried to instantiate these views by FindViewById
of MainActivity
thinking it would work because the main_header
is included in the layout of main
, but it doesn’t work, I debugged the code and saw that the variables that should have that view of the main_header
were receiving null
, as if it were not possible to access them from there, as I can instantiate them?
(I’m doing the project in Xamarin Android
, but so far the operation has seemed the same to me compared to Java
, then if you know how to answer in Java
help as well.)