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
32
votes
6 answers

How to set shared checkable behavior across all groups in NavigationView?

I've created two groups with unique ids (I need a divider) and they both have checkableBehavior set to single. This allows multiple items from different groups to be checked at once, and that's exactly what I'm trying to avoid. I'd like to have one…
31
votes
5 answers

how to set unread notification count in NavigationView of DrawerLayout?

I have created one NavigationView inside DrawerLayout using Android Design Support Library
30
votes
2 answers

How to style the Design Support library's NavigationView?

So I'm using the NavigationView provided by Android Design Support Library I can't seem to find examples on how to style it. So far I have:
28
votes
5 answers

Android - Navigation View item menu background color

i try to change color of my item Navigation View menu : styles.xml @drawable/activated_background activated_background.xml
Emmanuel Loisance
  • 706
  • 1
  • 12
  • 22
27
votes
1 answer

SwiftUI NavigationView trying to pop to missing destination (Monoceros?)

I'm using Xcode 12 with deployment for iOS 14.0. My home screen has a NavigationView Within the NavigationView there is a TabView (with 4 tabs) Within each tab are subviews that have buttons and NavigationLinks The navigation on the app is…
nicksarno
  • 3,850
  • 1
  • 13
  • 33
27
votes
4 answers

Is there any way to control views inside NavigationView header?

As the title says, I want to know if there is any way to control views inside the NavigationView header? (Except for adding or removing header.) For example: In the header, I have a user avatar. By default, it displays a guest image, but after the…
Lạng Hoàng
  • 1,790
  • 3
  • 17
  • 32
24
votes
5 answers

UIViewControllerRepresentable: Navigation Title and Bar Button Items Ignored in NavigationView

I have a UITableViewController subclass that I have wrapped in UIViewControllerRepresentable. I have set the navigationItem.title and navigationItem.leftBarButtonItems in my view controller. I present my UIViewControllerRepresentable instance as…
23
votes
2 answers

Android Navigation Component has lag when navigating through NavigationDrawer

I am updating my app to Navigation Architecture Components and I see that it has a lag replacing fragments which is visible in the NavigationDrawer that does not close smoothly. Until now, I was following this…
22
votes
3 answers

Setting Statusbar padding to NavigationView in Android

I have an activity which hosts a DrawerLayout and NavigationView from support library. I'm setting a header layout to the navigation view and I want the navigation header height to be "wrap_content". So when I set the height to "wrap_content" the…
22
votes
4 answers

NavigationView: how to insert divider without subgroup?

How I can put a divider without title Subgroup in the new NavigationView?
21
votes
2 answers

SwiftUI - ObservableObject created multiple times

I have created an ObservableObject in a View. @ObservedObject var selectionModel = FilterSelectionModel() I put a breakpoint inside the FilterSelectionModel's init function and it is called multiple times. Because this View is part of a…
P. Ent
  • 1,654
  • 1
  • 12
  • 22
21
votes
5 answers

How to add notification value for item on NavigationView for Material Design Drawer?

My question is very simple, how to add a notification value right of the item on NavigationView for Material Design Drawer like that ? Is there a property in the menu items for defining the drawer?
lopez.mikhael
  • 9,943
  • 19
  • 67
  • 110
21
votes
4 answers

Add a ListView or RecyclerView to new NavigationView

I am using the new NavigationView from revision 22.2.0 of the support library by Google. It works perfectly fine to generate a navigation drawer populated using a menu res. I was wondering is it possible to add a ListView or RecyclerView to the…
nabir
  • 1,447
  • 2
  • 12
  • 17
21
votes
8 answers

Customising NavigationView - Adding dynamic headerView, Android Support Design Library

I tried the navigationView from the new android support design library. I want to have a dynamic headerview. Basically, my headerview will show something like quote of the day. I have like around 10 quotes and i want to randomly select a quote and…
19
votes
3 answers

SwiftUI multiline text in a NavigationView Title

How could I make this title multiline? I have tried setting the title text as multiline or even configuring it with allowsThigtening(flag: Bool) but none of these options work. Current code here: import SwiftUI struct DistributionCentersView: View…
1
2
3
51 52