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
0
votes
2 answers

Android "Unable to start activity" error on KitKat only?

I am getting an error that, for some reason, ONLY appears when I run my Android App through KitKat, every other software above KitKat works just fine. Here is the error: 0:40.895 3004-3004/ E/AndroidRuntime: FATAL EXCEPTION: main …
0
votes
0 answers

Expand content inside navigation drawer on navigation item click - android

In my android app, i am having NavigationDrawer. Now, i want that when i click on any navigation-item, then 1) left drawer should remain open 2) previous listitem should be replaced by item-click content 3) item click content should be loaded…
Zankhna
  • 4,570
  • 9
  • 62
  • 103
0
votes
0 answers

Android app doesn't work in Kitkat:

The app works on Lollipop, but in KitKat it happens some error with the NavigationDrawer, and I couldn't solve it. Thank you :) the error: 09-10 12:39:40.960 6021-6021/com.fundacaonokia.jiquitaia E/AndroidRuntime: FATAL EXCEPTION: main …
lucazdj
  • 21
  • 1
  • 5
0
votes
1 answer

intent activity won't start if map is included in the layout

My class extends FragmentActivity... Intent activity will start when map is not included in the layout. But unfortunately, the intent activity won't start if activity_main_map is included in activity_main_nav. Can somebody help me? public class…
0
votes
0 answers

Android Navigation drawer display items twice

I am developing an application where i have to display a navigation drawer in home page.I am using NavigationView where i will point which menu it should populate.Now what problem i am facing is, its displaying items twice.Below code will show you…
Lincy Laiju
  • 195
  • 4
  • 18
0
votes
1 answer

Change specific icon's color in NavigationDrawer

I have a problem with changing the icon's color in default Drawer Menu in Android, there are lots of topics but they only explain changing the tint color of whole menu not a specific icon: For example I want to change the color of Favorites icon to…
Blacksword
  • 331
  • 3
  • 17
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
1 answer

How To Delay NavigationView Icons Visibility

I saw an app, whose icon behavior in the navigationView delay it's visibility (Fade In- animation), yet my API for phone is 19. My question is, how can I access to these icons to delay its visibility? Is it possible to implement it without using…
0
votes
3 answers

Set orientation horizontal to items inside menu in a NavigationView

I have a NavigationView that has an app:headerLayout and an app:menu that has three groups of items. One of this groups is made for social media:
QuinDa
  • 918
  • 1
  • 12
  • 19
0
votes
1 answer

App crashes when a opening a new item ( fragment) from the navigationDrawer (see code)?

I am trying to make app with navigationView . The navigation view has many options which when clicked opens a new fragment.I have set the home fragment as default. But the app is crashing whenever i click any option from the navigationView. I am new…
0
votes
0 answers

Navigation view menu item click background UI issue

I have been trying to implement the navigation view using drawer layout.It works very well in phones above API 21.But it gets distorted in devices running android below API 21.Please refer the screenshots attached. Also, I have integrated the…
0
votes
0 answers

Error inflating NavigationView class -- android

I'm trying to use NavigationView, but when I try to launch the app to the phone an error happens. Caused by: android.view.InflateException: Binary XML file line #16: Error inflating class android.support.design.widget.NavigationView The xml files…
Shudy
  • 7,806
  • 19
  • 63
  • 98
0
votes
0 answers

Navigation View combined with Contextual Action Mode?

New apps from Google, with Material Design, that use a Contextual Action Mode together with a Navigation Drawer. Starting to swipe the NavigationView in, will temporary hide the ActionMode which will be re-enabled when the drawer is closed again. In…
0
votes
0 answers

NavigationView menu item background color changes to blue sometimes

I'm developing a social network app, where I have implemented the navigation drawer using DrawerLayout with NavigationView. I've customized the background color for each item in the menu using state-list drawable. The problem is that when I select…