Questions tagged as 'navigationview'

2
answers

How to generate a dynamic menu with NavigationView that contains a notification counter?

I am developing an Android application that contains a menu that is generated dynamically, so the menu is generated by programming: private void cargarAvisosMenu() { // Menu final Menu menu = this.mNavigationView.getMenu(); // C...
asked by 10.12.2015 / 10:25
2
answers

When starting Navigation Drawer enter with a fragment directly

it's just that, I'm creating an app which has a login (main activity) and a record, when I pass this process, I enter a Navigation Drawer activity I have the fragments but it is blank, when I step on it the options of that menu are loaded the fr...
asked by 25.11.2016 / 19:59
1
answer

The navigation drawer does not open

I'm making an application in Android Studio, in which I use a NavigationDrawer. I have the problem when clicking on the button that would open the navigation menu does not, but it does allow me to drag the navigation from left to right so that i...
asked by 28.04.2016 / 18:08
1
answer

How to have two navigation drawer and show them according to some parameter

Hi, I am doing a project in android studio and I have two navigation drawer, what I want to do is that when I start as a client I show the first navigation and if I start session as an employee that shows me the other navigation. I have investig...
asked by 26.10.2018 / 02:52
1
answer

How to hide elements of the onNavigationItemSelected?

Hello good afternoon I'm working with onNavigationItemSelected and I would like to know if there is any way that depending on the user accessing the app is the view of the menu to be presented.     
asked by 23.10.2017 / 01:59
3
answers

Why do I have this error hiding this MenuItem?

I'm doing an application on android where I have 2 Activities one is the main menu and the other is a login screen, To access the login activity I have a side menu with a MenuItem that puts Log In, after logging in and receiving th...
asked by 11.10.2016 / 10:38
0
answers

Problem when creating NavigationView

In an activity, I try to create a side menu. For this I am using the NavigationView object following this tutorial: User Interface on Android: Navigation Drawer (NavigationView) The problem I have is that I do not recognize this object,...
asked by 28.11.2017 / 11:33
2
answers

Problem NavigationDrawer + Tabbed Activity API19 (Not seen, in API 21 if)

I have an application that mixes a NavigationDrawer with a TabbedActivity and I have reduced the minimum SDK of my application to the API19 and I have the problem that in that API nothing appears on the bar, neither the menu button nor the title...
asked by 20.02.2018 / 12:18
1
answer

Problem when trying to click object of navigationView Android Studio

I have a problem trying to press an item of navigation View . What I do is create the objects directly from the Activity Main since the purpose is to bring data from an external database and be completed. Now the inconvenience is...
asked by 14.11.2018 / 15:15
0
answers

How do I select a navigation menu item and modify it by code?

I need to take an item and modify it according to a condition. I do not want the item to change when I click on it. This is my code now. public boolean onNavigationItemSelected(MenuItem item) { // Handle navigation view i...
asked by 17.08.2018 / 23:01