Skip to content
Advertisement

Tag: navigationview

NavigationView header image

I need to change NavigationView header image from fragment, but i am getting error. Someone can tell me what i am doing wrong?. Thank you for helping))) java.lang.NullPointerException: Attempt to invoke virtual method ‘android.view.View android.support.design.widget.NavigationView.getHeaderView(int)’ on a null object reference My Fragment code navigation header xml activity_main Answer The view you are referring here is your fragment which is not

Advertisement