Is there any way to control views inside NavigationView header?

After updating your support library to version 23.1.1 or above,

You could do this –

View header = navigationView.getHeaderView(0);
TextView text = (TextView) header.findViewById(R.id.textView);

or if you have multiple headers

navigationView.getHeaderCount()

Ref : https://code.google.com/p/android/issues/detail?id=190226#c31

Leave a Comment