Questions tagged [navigationview]

Provides navigation drawer access. Part of Android's design support library.

Summary

Helps developers follow Android's material design standards by providing access to the navigation drawer.

Navigation View

The 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.

Reference

770 questions
0
votes
0 answers

Adding Menu item into NavigationView without create menu.xml

I get data from the server , Is there a way to add items to a NavigationView without create a folder menu and puts items in the xml file ? activity_main.xml
ArolaAb
  • 297
  • 3
  • 12
0
votes
1 answer

Android Dev: Navigation View vs App Bar

I'm new to Android development. I get that a NavigationView is an AppBar (i think). What makes these two different? I want to create a custom "appbar/toolbar" with a centered logo and menu/settings button in the top right corner (instead of the…
jsm18
  • 21
  • 1
  • 4
0
votes
1 answer

Update a submenu item in a NavigationView populated with Realm Data

I am creating a submenu in a NavigationView that is populated with the last three projects the user has worked with. RealmResults lastestProjectsReaml = mDB.where(Project.class).findAll().sort("pLastModification",…
user274051
  • 325
  • 1
  • 12
0
votes
2 answers

Can't update Fragments in Viewpager

I have a NavigationView where I have tabs like "Home","Profile","Service" etc. When I click one of them I want to change the TabLayout and the Input of my ViewPager (Visible Fragments). I change the TabLayout , in the onNavigationItemSelected…
Ahmet K
  • 713
  • 18
  • 42
0
votes
2 answers

Side menu does not extend

I try to do the side menu that slides out from the left side. I use a few guides, but my menu does not come out, but is immediately visible on the home screen. The guides, when the side menu was at the center of the screen instead of the left side…
0
votes
1 answer

Android 4.x - NavigationView ignores android:theme parameter

My navigation view ignores partly the android:theme parameter of it's view in a certain screen of my app. The certain screen is a search window which includes an edit text view inside the toolbar. This issue only exists for the 4.x devices. It seems…
0
votes
1 answer

navigationView setText fatal exception on a null object reference

Ok, so i have been looking around for a solution to this problem and all the solutions I have found are not working. I am trying to change the text of my Sign In Button in my navigationView to Sign Out/Sign In depending on if they are logged in or…
0
votes
3 answers

Setting title of the toolbar when a navigation item menu is clicked

In my app I have the following navigationview. So when the user click the menu item Καλώς ήρθες(meaning welcome in Greek),I want the this to be shown in the toolbar. This is my code for the navigationview. public class Welcome extends…
Theo
  • 3,099
  • 12
  • 53
  • 94
0
votes
1 answer

Android NavigationItemSelectedListener did't work

I learnded to use Android NavigationView,it was shown well but could't response to click event. Here are my codes. I want to show a Toast when i click any item.but it doesn't work... nav = (NavigationView) findViewById(R.id.navigation); …
0
votes
1 answer

Navigation View header click listener not working

For some reason the header of my Navigation View is not working for me. I have followed the other posts answers but I still have the same problem. This is my code: navigationView = (NavigationView) findViewById(R.id.nav_view); View header =…
Dan Ponce
  • 636
  • 1
  • 8
  • 24
0
votes
3 answers

NavigationView menu item title color

Lets say I have a menu:
antanas_sepikas
  • 5,644
  • 4
  • 36
  • 67
0
votes
1 answer

Android Activity using navigation view in full screen mode shows at the bottom a grey translucent area

I have an activity which is using the following method to enable fullscreen mode. protected void hideSystemUI() { View decorView = getWindow().getDecorView(); decorView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_STABLE |…
0
votes
1 answer

Navigation view text size wont change in android studio

Im trying to change the size of the item text of my navigation view in android studio but every time it appears the same. I have tried creating an style like the following: