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
5
votes
1 answer

How to put Facebook Logout button in the end of navigation view

I have implemented facebook login through facebook sdk 4.3 I have made separate dialog fragment for login of facebook. Till now Every thing is working very well. What I want I want to implement facebook log out button in the bottom of my…
Coas Mckey
  • 701
  • 1
  • 13
  • 39
5
votes
3 answers

NavigationView slide from right

Im using new NavigationView from android support design library. It works fine but when I try to set it slide from right side it gets crashed with that exception: java.lang.IllegalArgumentException: No drawer view found with gravity LEFT My main…
5
votes
3 answers

NavigationView slow to open / Skipping frames (Android Design Lib)

I'm using a NavigationView supplied by the Android Design Library. I've found after adding a few items to it that is performing quite poorly. On first launch it takes a second or so to open for the firs time. Here's a screenshot of the UI. I'll try…
Caleb Jones
  • 25
  • 3
  • 13
5
votes
1 answer

Using NavigationView from Android Design Support Library

I'm trying to follow this tutorial to use the new DrawerLayout from the Design Support Library. It seems that the Android studio isn't recognizing the NavigationView Layout. This is my main_activity layout:
4
votes
1 answer

SwiftUI nested Navigation

When I navigate, the next page opens and closes quickly. Why ? I tried this on an empty project and didn't run into this issue. Why in my project does the navigation come back after going forward? I want to create a nested navigation structure. MY…
Ufuk Köşker
  • 1,288
  • 8
  • 29
4
votes
1 answer

How to completely disable content highlighting for NavigationLink in SwiftUI?

NavigationLink(destination: DetailView()) { Image(systemName: "cloud.heavyrain") .foregroundColor(Color.accentColor) .font(.system(size: 66, weight: .regular)) } …
netsplatter
  • 559
  • 3
  • 14
4
votes
3 answers

How to add marquee text on items of NavigationView?

The names of my items are quite long, so I would like to make sure that their names scroll horizontally. I have searched on several SO posts, but I have not found a solution to my problem But I can't, I tried this: my activity_main.xml : …
Louis Chabert
  • 399
  • 2
  • 15
4
votes
0 answers

SwiftUI .navigationBarHidden(false) not working on iOS 14

I have a simple SwiftUI view that contains a web view: struct GetInTouchView: View { // MARK: - state @State var url: URL @State var backgroundColour = Color.login.background // MARK: - init init(url: URL) { …
Simon
  • 1,354
  • 1
  • 14
  • 18
4
votes
1 answer

SwiftUI: How to “deep-link” to the second/third level of a list in a navigation view

I recently encountered an issue with "deep-linking" to the third level of a list in a navigation view. Here is some background: My app has a settings menu that is based on SwiftUI lists/forms As typical for a menu you can jump from one list item to…
4
votes
1 answer

SwiftUI Swipe/Drag over NavigationLink

I want to be able to update a view with a swipe left/right over a NavigationView that has multiple NavigationLinks in it. The NavigationLinks go to different presentation views. When I begin the Drag gesture on the outer most view, if that gesture…
4
votes
1 answer

SwiftUI: Select NavigationLink in a NavigationView / List with SidebarListStyle

I want to programmatically select a specific NavigationLink in a NavigationView / List. The following code works fine on iPhones both in portrait or landscape mode == in situations where the List is not permanently visible besides its destination…
ixany
  • 5,433
  • 9
  • 41
  • 65
4
votes
4 answers

SwiftUI NavigationLink double click on List MacOS

Can anyone think how to call an action when double clicking a NavigationLink in a List in MacOS? I've tried adding onTapGesture(count:2) but it does not have the desired effect and overrides the ability of the link to be selected reliably. var body:…
4
votes
1 answer

Navigation Bar Custom DropShadow in Swift UI

I am trying to apply a custom drop shadow to NavigationView with White Background. I did try with UINavigationBar.appearance() but it didn't work in the SwiftUI Views. I am looking for this kind of shadow with custom color and radius. Has anyone…
Malav Soni
  • 2,739
  • 1
  • 23
  • 52
4
votes
1 answer

SwiftUI - List Navigation not working on an iPhone

I got a NavigationView, trying to navigate into a NavigationLink for a second time without luck. So A then B then A works fine. Tho A then A dose not work. The only way to get into A is to go to B first... NavigationView { List { …
Heestand XYZ
  • 1,993
  • 3
  • 19
  • 40
4
votes
1 answer

UWP NavigationView: How to resize the width?

I want to resize the width of the NavigationView. Windows Mail provides this resizeable feature. I cannot find an option to enable it. Example GIF: Resizing NavigationView
EscanorEU
  • 96
  • 7