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
1 answer

How to add Dividers between items in the same group in NavigationView

I'm trying to add dividers between items of the same group in NavigationView, I know this is possible using different groups but I need them to be in the same group with single checkablebehavior
atabouraya
  • 3,233
  • 1
  • 26
  • 31
0
votes
1 answer

Android studio..NavigationView

Error:Execution failed for task ':app:processDebugResources'. com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'E:\Android\android-sdk-windows\build-tools\23.0.2\aapt.exe'' finished…
0
votes
2 answers

Error inflating class NavigationView from XML

I'm using NavigationView in my MainActivity. Now, My App runs fine in Android 5.0 and above. but, It doesn't run in Android 4.0.4. It shows me XML error in . I've than added multidex support by thinking it should help. but, it…
Kasim Rangwala
  • 1,765
  • 2
  • 23
  • 44
0
votes
2 answers

Navigation Drawer calling another Activity - Close drawer on menuItem click it the item matches the current Activity

I've created a NavigationDrawer Class using this answer: Same Navigation Drawer in different Activities My problem is that when I click the navigation drawer item of the current activity, the activity reloads, I just need it to close the…
Rafael
  • 1,437
  • 6
  • 23
  • 41
0
votes
2 answers

How to add custom MenuItem dynamically in NavigationView?

I'm developping an app that contains a menu that is generated dynamically: private void cargarAvisosMenu() { // Menu final Menu menu = this.mNavigationView.getMenu(); // Carga de datos CentroSelection…
hecnabae
  • 407
  • 4
  • 21
0
votes
1 answer

How to obtain Play Store like navigationView?

I'm trying to obtain this result with the navigationView. I would like to have a submenu like "le mie app e i miei giochi" in the picture. This is my code:
0
votes
0 answers

Android NavigationView can't be selected

I have a DrawerLayout on the front and NavigationView at the backend code. I have 3 Activity, MainActivity ( which contain DrawerLayout ), TrainActivity, SettingActivity. When i want to navigate from Main -> Train, i just start the intent and not…
ByanJati
  • 83
  • 1
  • 11
0
votes
1 answer

Android - NavigationView, Menu with icon as TexDrawable

I am trying set the icon of item menu inside NavigationView as TextDrawable. For textDrawable im using TextDrawable library, but once i set the icon for the menu item it only displays a black circle instead of generated drawable. I did try my code…
0
votes
1 answer

Error inflating NavigationView, a Resource is not found

I'm trying the new navigation view and replaced my list view with it but I get an error: 10-15 10:49:13.988 17368-17368/com.aufmschoolbliz.app E/AndroidRuntime: FATAL EXCEPTION: main 10-15 10:49:13.988 17368-17368/com.aufmschoolbliz.app…
0
votes
1 answer

How to apply navigationView divider to another view

I'd like to apply the android.support.design.widget.NavigationView divider to another view I have. I want it to be the same divider. The divider in the NavigationView for those who dont know gets created when you specify a group. You can see an…
j2emanue
  • 60,549
  • 65
  • 286
  • 456
0
votes
1 answer

How to generate Navigation Drawer item's dynamically from xml?

I prepared 2 xml menu files and placed inside my res/menu folder. menu_beforeLogin.xml will be displayed if the user didn't logged in. After they logged in, the menu item will changed to menu_afterLogin.xml. I tried to called InflateMenu() in my…
0
votes
1 answer

toolbar and navigation on it

The project has the activity of the toolbar. Activity in dynamically changing fragments. Depending on the fragment ought to change content toolbar. Turning to the second fragment ought to appear in the toolbar nazat arrow which returns to the…
one_man
  • 135
  • 2
  • 14
0
votes
0 answers

Navigation View Galaxy S 3 issue

Navigation View from new Android design library seems to have a issue in Samsung Galaxy S3 (Android 4.3). When I start opening de drawer, the background turns completely black, as I show in the image link. Any tip to solve? Thanks! Screenshot…
0
votes
2 answers

NavigationView -> headerLayout -> ImageButton -> onclick results in IllegalStateException in ContextThemeWrapper

In the headerLayout of a NavigationView (on the left side of a DrawerLayout app) I have an ImageButton, which should represent ability to add a social network account: Here is the activity_main.xml with the…
0
votes
1 answer

Can numbers be added at the end of menuitem in NavigationView?

I'm using NavigationView for create a drawer menu replacing my old ListView. This is my current work. But my old drawer menu has a number after each MenuItem (red rectangle area in the image). Do NavigationView have a way to do this too?