I am testing the Navigation Drawer sample project in android and i have a problem setting the text in navigation view profile header.
This is my code:
MainAc
I had the same issue and was able to avoid it with this code:
View header = LayoutInflater.from(this).inflate(R.layout.nav_header_main, null); navigationView.addHeaderView(header); TextView text = (TextView) header.findViewById(R.id.textView); text.setText("HELLO");