Questions tagged [android-navigationview]

One of the features of Android Design Support Library which is bringing a number of important material design components to all developers and to all Android 2.1 or higher devices. Navigation Drawer enables your app having easy UX to navigate, particularly for first time users. NavigationView provides the framework for developers easier to establish Navigation Drawer UI.

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.

430 questions
12
votes
1 answer

Add a MenuItem to Menu at specific position or group programmatically

I have a with the following menu items:
injecteer
  • 20,038
  • 4
  • 45
  • 89
10
votes
2 answers

Default Navigation Drawer View to ExpandableListView

In Android Studio 2.1.2, if i create a default navigation activity I get this view: Which uses the following activity_main.xml file:
8
votes
5 answers

Android NavigationView vith rounded corners

I am designing a custom Drawer on Android, it must have rounded corners in top and bottom, I am first customizing top side and I find the problem that the background of the shape is not transparent. I have: (source: toile-libre.org) I need to…
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
3 answers

Colored Icons In NavigationView

Good day, Is there a way, displaying colored icons on navigation drawer? Not tinting them or setting them to black, and each of them will have corresponding color (highlight/background) when click, in navigation drawer. Just like Google Store App…
RoCkDevstack
  • 3,517
  • 7
  • 34
  • 56
8
votes
1 answer

How to add draggable icon with navigation drawer

My problem: I want to add draggable icon in navigation drawer. This icon combined with listview of navigation drawer when drawer open. see similar like this, What I have tried, I searched in StackOverflow like similar question this, Draggable…
8
votes
3 answers

Class Not Found Android Support Design Widget NavigationView

Good day, can you help me out. I got this error when compiling/running my code on an emulator. This is the sample tutorial I used to make. I used min Target API - 15 and compile the latest gradle…
RoCkDevstack
  • 3,517
  • 7
  • 34
  • 56
8
votes
3 answers

Duplicate value in NavigationView header after updating header text

After updating my header text and image in NavigationView header, I'm getting duplicate value in NavigationView header. Here is my code part public class MainActivity extends AppCompatActivity implements…
Nandha
  • 253
  • 2
  • 10
8
votes
2 answers

NavigationView + selector + ripple effect state selected not working

I have searched all things and experimented but not luck with NavigationView. itemIconTint, itemTextColor and itemBackground working with ripple effect. but problem is state selected not working in selector drawable I have also created drawable-v21…
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:…
7
votes
3 answers

Android: Navigation Component not working with both: and NavigationItemSelectedListener

What I have done: I have created Navigation Drawer Activity, As updated new format of Navigation Drawer Activity, As per new Android architecture I got it with Navigation Component structure. The NavigationView code with NavController and…
7
votes
3 answers

Navigation drawer rounded corner background for items

I want to have a rounded corner for the items in navigation drawer like this : it's an example of material design in material.io website is it possible ?
7
votes
2 answers

Login - Navigation Architecture Component

I implemented conditional navigation to my LoginFragment, with android navigation architecture component. The problem I facing now, is that I would like to hide the up button on the toolbar, and the disable any in-app navigation while the user is…
7
votes
0 answers

Inserting an Admob MEDIUM_RECT into Android design library's NavigationView's menu

By using I can use my custom layout and create a native ad inside the NavigationView. However, the list item's height seems to…
7
votes
1 answer

create divider between header and menu in navigationview for drawerlayout

For a navigationview, we can create a divider between two items by putting them in two groups. But how can we create a divider between a header and menu? I tried to make an empty group at the top of the menu, but it doesn't work. The default theme…
user964843
1 2
3
28 29