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

Icons on NavigationView Items

I want to know if it is possible to use my own icons on NavigationView items. I tried to replace google icons to my own icons (drawable resources), but a square appears instead of my icons.
tomss
  • 361
  • 3
  • 13
0
votes
1 answer

Android - DrawerLayout and Toolbar not visible on first opening

I'm currently developing an android app using a Toolbar and a DrawerLayout. The main content is a custom SurfaceView where I can draw differents shapes, text ... The left menu is a NavigationView and is used as a toolbox (I select what I want to…
Bash
  • 13
  • 5
0
votes
2 answers

Xamarin NavigationView menu item customization

Hi I use C# and Xamarin to develop my new application and ran into many problems using this platform. Is it possible to customize menu items inside NavigationView using xamarin? all I found are the valid properties for the menu items. But what if…
Alias
  • 341
  • 2
  • 3
  • 14
0
votes
0 answers

Cannot interact with fragments when drawer layout is open

I have built an application using the Android Design Support Library. My app has a DrawerLayout with a NavigationView which works just as I would expect it to. I am now trying to add some tablet support to my app and I want it to work so that when…
0
votes
1 answer

NavigationView NotSerializableException while pushing fragment

I am getting NotSerializableException when pushing one of my fragments in my app. I am using navigation view in my activity for side menu. Caused by: java.io.NotSerializableException: android.support.design.widget.NavigationView I have a…
0
votes
2 answers

android.support.v4.app.Fragment.mFragmentManager' on a null object reference

i have the follow lines of code that I am using to create a navigationview to load fragments and this android application. I am getting the error: android.support.v4.app.Fragment.mFragmentManager' on a null object reference. I created the fragments…
Rouvé
  • 415
  • 5
  • 4
0
votes
1 answer

Drawer layout with two navigation views and selected item colours

I have a drawer layout that needs to have two navigation views in it, because there's a couple of options that need to be aligned on top and another on the bottom, with a divider separating them. I've managed to make it work, but now I have two…
0
votes
1 answer

Using picasso to load image ICONS and displaying it

I'm loading icon of the navigation view using image loading from URL. I am currently following this tutorial. There are certain problems that needs to get fixed in order to load an icon from URL. I have tried adding three images one by one: 36 X36…
Shubham AgaRwal
  • 4,355
  • 8
  • 41
  • 62
0
votes
2 answers

Get selected radio button id placed in navigation view

I have taken radio group in the navigation view of drawer layout like this
Bee
  • 142
  • 17
0
votes
1 answer

Navigation view fires an error message

Im trying to use navigation drawer. My xml code is as follows, `
user3600801
0
votes
3 answers

When I'm trying to close DrawerLayout my app crash

I have some wired problem. When I'm trying to close the DrawerLayout after I scrolled it down, the app crash. If you need any code I will add. Thanks. I wish this code will help you. When I scroll the DrawerLayout until its end and press on…
Netanel
  • 47
  • 6
0
votes
2 answers

NavigationView - Setting `app:itemBackground` causes menu items to lose start padding

I am running into an issue when setting the app:itemBackground for the NavigationView. I am trying to create a custom background for the selected menu item. The custom background works, but when I use it, it seems to kill the start padding of the…
0
votes
0 answers

Android Unable to execute dex error after cloning correct project

This is a really strange problem and I've been days stuck with it: we've got a working project (no errors whatsoever) in a git repository. Everything is OK (it's even published in Google Play) when executing the project from the creator's equip,…
MiguelS
  • 99
  • 1
  • 13
0
votes
2 answers

Wait until DrawerLayout animation is done

I have a drawerLayout (support.v4) with a navigationView and have many (like many up to n menu items) menu items. To have less items on the screen at the same time, some menu items lead to another menu with many items. The thing is, my menu switch…
dequec64
  • 923
  • 1
  • 8
  • 26
0
votes
1 answer

change text of textView that is included in activity's xml

I'm trying to change textView ,that is, headerLayout of NavigationView in my activity_main.xml
David
  • 3,055
  • 4
  • 30
  • 73