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

Changing the item text size in navigation view

I am creating a navigation drawer in android and I have added the items in menu_main.xml but I am not able to change the size of the menu items. Below is the code menu_main.xml:
jobin
  • 1,489
  • 5
  • 27
  • 52
9
votes
4 answers

how to change size of navigation view menu items and text?? How to change space between menu?

I am making a sliding menu. I have successfully created a navigation drawer and menu items inside the navigation view in groups. But I want to make the items closer to each other. Can I change the spacing or size of items and text? Please help...
user3623979
9
votes
3 answers

ClassNotFoundException: Didn't find class "android.support.design.R$styleable"

Hi I am using NavigationView but I am getting error, below is my xml, I have already included android support and v7 library project.properties as I am not using Android…
ingsaurabh
  • 15,249
  • 7
  • 52
  • 81
9
votes
2 answers

Sharing NavigationView with all the Activities?

How do we share Drawer with all the activities? In the lister: onNavigationItemSelected of setNavigationItemSelectedListener we can get the id and navigate to it. What I am looking for is something like this: private void initDrawerLayout() { …
9
votes
2 answers

How do I change the color of the ActionBar hamburger icon?

I'm using NavigationView from android design support library and toolbar and everything works fine, but I want to know how to make the hamburger icon dark (right now it appears white). Also I wanna adjust distance from screen edge to ActionBar…
AlexKost
  • 2,792
  • 4
  • 22
  • 42
8
votes
2 answers

How to disable resizability of Sidebar NavigationView in SwiftUI (MacOS)?

I'm new to Swift and I've been trying to build an app and learn as I go. I have a NavigationView that holds a List as a sidebar that renders the content as the user clicks. The bar between these two panes can be grabbed to allow the user to resize.…
Yousif Al-Raheem
  • 452
  • 5
  • 15
8
votes
1 answer

SwiftUI: Navigation Title Stuck in Place (Scroll Animation Broken) for List in NavigationView

I have created a SwiftUI List wrapped in a NavigationView. The title for the list is set in the default way and appears fine: .navigationBarTitle("My Title"). The problem is the scrolling behavior is broken. That is, when scrolling the list, the…
josephap
  • 2,075
  • 17
  • 24
8
votes
2 answers

SwiftUI creates destination views before the user navigates to them

I am having a hard time creating in SwiftUI a pretty common use case in UIKit. Here is the scenario. Let's suppose we want to create a master/detail app in which the user can select an item from a list and navigate to a screen with more details. To…
8
votes
4 answers

Change drawer gap between header group and first item menu

I need change the space between header group and first item menu, here's an example: I have seen a lot of examples and posts but only be can change the space for all items, and I just need to change only for header group. Any idea?
8
votes
2 answers

NavigationView with multiple group hide & show group based on Condition

I have NavigationView with multiple Groups which is based on some condition I need to hide & show the group. How I can achieve this. My Sample NavigationView menu
8
votes
1 answer

Translucent StatusBar with dynamic ActionBar color in Android

I'm trying to realize a translucent statusbar (so that my navigation-view is BEHIND the statusbar) but still like to change the color of my actionbar dynamically. Because of this, the statusbar color needs to change to a darker version of my…
8
votes
3 answers

Getting Error inflating class android.support.design.widget.NavigationView

I was following a tutorial on implementing the navigationView from the design support library and I just can't get away from this error below. I've read the other solutions posted on this site, but none of them worked for me, please help. Caused by:…
8
votes
4 answers

Add MenuItem to NavigationView with Icon and Title?

Right now I am trying to implement the DrawerLayout/NavigationView from the new Design Support libary (22.2.1) into my application. I already searched on the internet and especially on stackoverflow how to add a MenuItem to a Submenu with Icon and…
pimato
  • 89
  • 2
  • 7
8
votes
2 answers

NavigationView how to handle dynamic header content

I have a pretty standard NavigationView. When i use a static layout in the header like below it works perfect.
Murat Erdogan
  • 798
  • 2
  • 10
  • 21
8
votes
2 answers

Android Navigation Drawer – Replace List with other List onClick

I'm trying to implement a simple navigation drawer in material design, so there is a header at the top of my drawer and some text-items (A: CompactHeader Drawer, ...) (see picture 1). When the header-image is clicked, there should open a list (B:…