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 fix the list strange padding when using navigationbaritems in swiftui since iOS 14?

Since iOS 14 i have a strange behavior where i have a padding around a list in a NavigationView as soon as i add navigationBarItems... My code : import SwiftUI struct TestList: View { var body: some View { NavigationView{ List { …
Flincorp
  • 751
  • 9
  • 22
5
votes
0 answers

SwiftUI: NavigationLink and ScrollView drag gesture colliding

I'm trying to implement a UICollectionView like View in SwiftUI which basically works fine. But when I scroll/drag inside the scroll view to scroll down, the tap is recognized on the NavigationLink and then navigating to the detail view, even if I…
Melvil
  • 51
  • 3
5
votes
1 answer

Windows 10 UWP, NavigationView Update Selected MenuItem on BackNavigation

I am writing an windows 10 UWP app and want to use the NavigationView in combination with the BackRequested event handler to handle back navigation, however "GoBack" doesn't update the selected menu item, this means when I use the backbutton the…
houba016
  • 138
  • 1
  • 5
5
votes
2 answers

navigation drawer vs navigation view which is best and what is the diffrence

i m using navigation drawer in old project but i got new project in this project they used navigation view so what is the difference beet been these two. which is the best for good for customize .
androidking
  • 207
  • 5
  • 17
5
votes
1 answer

Android full screen navigation bar transparency bleeds onto navigation view

I'm using design library navigation view in full screen. But transparency of Navigation Bar and Status Bar bleeds onto NavigationView.Transparent black rectangles occur on right and top of the NavigationView. My…
5
votes
3 answers

How to change the order of MenuItems in menu of NavigationView in code?

I have a menu in NavigationView that have 7 menu items, some of these menu items should be invisible based on user settings and the remaining visible items should be displayed in different order. the items are already defined in the XML menu…
Yazan Allahham
  • 174
  • 2
  • 17
5
votes
1 answer

Android NavigationView with internal spacing

I am currently developing an Android App with a support NavigationView. I have to question to make it as I want it: (1) I want to divide the navigation elements into two areas: one at top below the header and one at the bottom end. (2) I want to…
gtRfnkN
  • 489
  • 7
  • 19
5
votes
0 answers

NavigationView Ripple Lost In Support Library 23.1.0 Update

Using the Design Support Library version 23.0.1, menu items within the NavigationView appear to, by the default, support the ripple animation when selected. However, when upgraded to Design Support Library version 23.1.0 the ripple animation appears…
5
votes
0 answers

Android NavigationView item ripple effect

I am trying to achieve ripple effect in android.support.design.widget.NavigationView when item is clicked. I have defined the ripple colour and all in my theme. When long clicking NavigationView's menu items, i can see the correct ripple effect. But…
5
votes
2 answers

Android NavigationView : not show full item and not truncate

Problem : NavigationView not show full text of menu item, also not truncate text. This item I see correctly - two words "Small title":
DQuade
  • 303
  • 3
  • 10
5
votes
3 answers

Android NavigationView displays under NavigationBar, and cannot be clicked

As you can see, the background of NavigationView has been set android:clipToPadding='false', and it can be seen under transparent NavigationBar. But the NavigationView(NavigationDrawer) cannot fully scroll up to above the NavigationBar, how to…
MewX
  • 4,232
  • 1
  • 29
  • 38
5
votes
2 answers

How do I change the colour of my sub menu header when using a NavigationView - Android

I'm unable to change the colour of my sub menu header, please see the image below. I can change the background of the NavigationView, the colour of the fonts and the colour of the icons but I can't find an answer on the sub menu…
5
votes
2 answers

How to listen to long click on a navigationview item?

I'm developing an android app using design library and appCompat library. I'm facing some issues when tried to listen to long click on a menu item. My app has a NavigationView as a side menu, inside this navigationview I had a menu with a lot of…
Anderson Silva
  • 709
  • 1
  • 7
  • 31
5
votes
3 answers

add onClickListener to navigation view header using android design support library

I want to add a onClickListener to navigation view header's items like changing a TextView text or set an image for ImageView.
5
votes
3 answers

how to change menu item gravity to right in NavigationView

I need to put a menu item icon at right of text (by default it's on the left side) so how to change menu item gravity to right in NavigationView ? because we can not custom NavigationView Items,I think it's impossible. can any one help me. my menu…
ali
  • 411
  • 5
  • 15