Questions tagged [android-navigationview]

One of the features of Android Design Support Library which is bringing a number of important material design components to all developers and to all Android 2.1 or higher devices. Navigation Drawer enables your app having easy UX to navigate, particularly for first time users. NavigationView provides the framework for developers easier to establish Navigation Drawer UI.

Navigation Drawer () can be an important focal point for identity and navigation within your app and consistency in the design here can make a considerable difference in how easy your app is to navigate, particularly for first time users. NavigationView makes this easier by providing the framework you need for the navigation drawer as well as the ability to inflate your navigation items through a menu resource.

430 questions
-1
votes
1 answer

null object reference in navigation view

I cant set text into TextView in Navigation View header. What went wrong? Can you help me please? code from my java class: public class MainActivity extends AppCompatActivity { DialogFragment AboutDialog; DialogFragment…
-2
votes
1 answer

Android NavigationView prevent selecting item, setCheckedItem not working inside onNavigationItemSelected

This is the code in onNavigationItemSelected R.id.nav_subscribed -> { if (prefs.getLong("userid", 0L) == 0L) { when (currentGal) { "top" -> { // navView.setCheckedItem(R.id.nav_top) …
Eduard Unruh
  • 985
  • 1
  • 14
  • 35
-2
votes
1 answer

How to set these kind of colored icon in navigation view of drawer layout

Want to achieve colored icons in the navigation drawer as in the image below. When I add icons in my navigation view menu automatically it becomes grey.How can I make the icons as its previous colored state like the below image.
-2
votes
1 answer

android Navigation view is not working fine for 4.2.1 jelly bean

android navigation view is not working fine when language is arabic. This issue is only happened on 4.2.1 jelly bean. there is a alignment issue of icons.please take a look on screen shot
-2
votes
1 answer

App crashes when accessing multiple textviews from navigation header

recently i tried an app with navigation view with header. the header contains 2 textview, a name and email. When i tried to setText the textview dynamically through code,it throws null pointerexception. Can anyone please help me to resolve this…
Mr Robot
  • 1,747
  • 6
  • 35
  • 67
-3
votes
2 answers

Implement Same Navigation View along different Activites in Android

Perhaps somebody can help me understand this question about the subject. I already made my navigation view, but now I want the same navigation view in my other 2 activities. What I don't understand is how should I properly implement my layouts for…
-3
votes
1 answer
-3
votes
1 answer

Customizing navigation view items

I want to create a custom navigation view with changing default padding of navigation view items according to my design. While changing the same I try to apply custom styles with my required padding value to navigation view But while applying, it…
-5
votes
1 answer

Bottom Navigation Android

So I seen the new PlayStaion app for android and I was wondring if I can find a library to implement a bottom navigation like it if any one know a library like this please comment. here is a screenshot of PlayStaion Android App