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

SwiftUI navigationBarBackButtonHidden not working as expected

I'm having an issue with the navigationBarBackButtonHidden modifier. It doesn't hide the navigation back button... Here's the source code for the list: import SwiftUI struct ContentView: View { @State var showSheet = false var body: some…
Alexandre
  • 185
  • 4
  • 8
6
votes
2 answers

UWP NavigationView Header Title

I'm trying to make a UWP app with a NavigationView. My problem is to find a way that the Header changes for the current shown page. My app is based on the Microsoft UWP example "AppUIBasics". In the example the Header of the NavigationView shows…
cybertronic
  • 117
  • 1
  • 10
6
votes
4 answers

NavigationView Items Padding in Android

How do I set padding for items inside NavigationView.I need to set paddingLeft for items as I have removed icons.What i have tried is this but it is not working:
6
votes
2 answers

Remove padding for icons in bottom navigation view

I'm trying to make the icons in a bottom navigation view lower. For example, right now they are pressed against the top line like this. How would I make the icon lower? I want them to be centered vertically in the bottom navigation…
Jeffrey Chou
  • 331
  • 2
  • 4
  • 15
6
votes
5 answers

DrawerLayout with NavigationView - not showing ripple effect on click

I have a problem with obtaining on-click effect visible at my drawer. I have activity xml layout as follows:
6
votes
2 answers

Open second drawerlayout as a sub drawerlayout over the first

Android Studio 2.1.3 I have this design I am trying to follow. On the first drawerlayout I have a setttings options. When the user clicks, it will open a second drawerlayout like this below. The user can get back to the first by clicking on the…
ant2009
  • 27,094
  • 154
  • 411
  • 609
6
votes
3 answers

How can I use icons in navigation view's menu using icon font in android

I am trying to migrate my android application which is using the png assets to icon fonts. I could successfully use it in navigation drawer using a list view. But I couldn't use it in navigation view by specifying it in the xml file of the menu.…
6
votes
2 answers

custom menu item size and textsize in navigation view

I am using the code to customize height of text and row height in navigation view and it works on api21+ but the same code is not working in api 16. How can I make it work ? COde: Create a style and apply it to NavigationView using app:theme
jason
  • 3,932
  • 11
  • 52
  • 123
6
votes
1 answer

Java.lang.NoClassDefFoundError Issue when using Android Support Design NavigationView

Getting the following issue when using NavigationView on a app: java.lang.NoClassDefFoundError: android.support.design.internal.NavigationMenuPresenter I got the same issue in this sample…
6
votes
2 answers

Activities or Fragments in NavigationView?

I have a NavigationView used as a slide-in menu. Each of that menu items is a use case itself, therefore I tend to using activities containing different fragments. But nearly every example of NavigationView/NavigationDrawer uses fragments, so I…
swalkner
  • 16,679
  • 31
  • 123
  • 210
6
votes
1 answer

NavigationView set selected item as checked

I am using NavigationView from the support library. I have a BaseActivity that Activity A and B extend from. By default app starts with Activity A. When user clicks on a a drawer menu item, i start activity B. After starting activity B. how can i…
TareK Khoury
  • 12,721
  • 16
  • 55
  • 78
6
votes
2 answers

Navigation View. android.support.design:itemIconTint ,android.support.design:itemTextColor xml attributes not working

The new Navigation View provided in the support library for using the material design, int changing the xml parameters: - android.support.design:itemIconTint - android.support.design:itemTextColor I've found in the Class reference that this…
Danfoa
  • 930
  • 2
  • 11
  • 24
5
votes
0 answers

SwiftUI: how to keep single toolbar or ToolbarItem on the next view in NavigationView stack?

Each toolbar applied to the NavigationView destination is in fact separate toolbar, and one toolbar is changing to another with opacity transition. How to keep one single toolbar or only ToolbarItem on the next destination, so It could be animated…
bodich
  • 1,708
  • 12
  • 31
5
votes
2 answers

SwiftUI Editable NavigationTitle

Is it possible to make the navigation title of SwiftUI editable? Unfortunately the navigationTitle modifier only accepts Text views and not TextField views. I want to do this instead of just using a text field below the navigation bar because I…
Isaak
  • 1,107
  • 2
  • 11
  • 29
5
votes
2 answers

NavigationView inside a TabView Swift UI

I'm just picking up SwiftUI after a long break but I don't understand why I can't place a Navigation View within a Tab View. I want my Navigation View to be a .tabItem so the view appears as part of the main app navigation so I'm trying this…
nc14
  • 539
  • 1
  • 8
  • 26