Hello I am using NavigationView
in one the demo project. I have header layout of NavigationView
. I am getting data of header layout at the runtime and once I get data I am setting values of views but data is not reflected or refreshed.
((TextView)headerNavigationView.findViewById(R.id.username)).setText(userData.getName());
What is the correct way to refresh the navigationview at runtime once we get a data from web service.