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

Hide back button from NavViewEx(Template10.Extras.16299) UWP

I'm using a NavViewEx control of Template10.Extras.16299 in a UWP app, but with this i need to hide built in back button of NavViewEx control, because i already visible the AppViewBackButtonVisibility property, Now i have two back button in my…
Avnish kumar
  • 68
  • 1
  • 7
-1
votes
3 answers

How to change image and text of header NavigationView

I wanted to change the name and image of the header to the username of the people who are currently logged in but no idea how to do it I'm new to android studio and don't know how this works, i also tried to find the @string/nav_header_subtitle and…
Euxicius
  • 47
  • 9
-1
votes
2 answers

Binary XML file line #30: Error inflating class android.support.design.widget.NavigationView

When I run app on Android I get this message: 08-20 17:38:26.542 5016-5016/? E/UncaughtException: java.lang.RuntimeException: Unable to start activity…
-1
votes
1 answer

Clash Of Clan like NavigationView Pull Arrow

I want to create a custom view which stays visible while side drawer is closed, but by pulling that, the drawer will slide. I had seen like this in very popular game Clash Of Clan like shown in below images: Now I wonder if there is any way to…
Meet Vora
  • 2,783
  • 1
  • 16
  • 33
-1
votes
1 answer

How to customize dynamically created drawer menu?

I have an app with drawer menu. The apps architecture requires menu items to be created dynamically, so they appers to look according to matherial design standards. Here is the code, that creates menu. private void formMainMenu() { …
Dmitry Smolyaninov
  • 2,159
  • 1
  • 18
  • 32
-1
votes
1 answer

OnClick Event for Navigation Drawer items

I have a trouble with my app. I want to make an app that has WebView and will change the URL when I click one of the items on the navigation drawer. For example: Facebook Twitter Github and so on. But I couldn't implement the onClick event. I am…
Tərlan Əhəd
  • 179
  • 3
  • 10
-1
votes
1 answer

How to use navigation fragment item checked with custom color?

I am using fragment instead of Navigation view. I want to set custom color highlight when fragment item clicked.
vishal patel
  • 294
  • 2
  • 4
  • 13
-1
votes
1 answer

android.view.InflateException:Binary XML file line #18:Error inflating class android.support.design.widget.NavigationView

java.lang.RuntimeException: Unable to start activity ComponentInfo{cab.app.book/com.epbit.ccv3.MainActivity}: android.view.InflateException: Binary XML file line #18: Error inflating class android support.design.widget.NavigationView. Added design…
-1
votes
1 answer

Change fragments with navigation drawer Error

I don't can change the fragment when i click in navigation item. It happens only in my FragmentTwo. The commit results an error and the app is close. Please, someone can help me? Where is the error? MAIN CODE @Override protected void onCreate(Bundle…
mahenrocha
  • 11
  • 2
-1
votes
1 answer

android.view.inflateexception binary xml file line

I am developing android application.In my application I have used NavigationView .But it display InflateException in main xml file and application gets closed. my code is here
Nilesh Patil
  • 138
  • 1
  • 1
  • 10
-1
votes
1 answer

Set MenuItem text Center Align in Navigation View in Android

I need to Set MenuItem text align center inside Navigation view android searching for that from past one week please someone help
Murali
  • 1
  • 4
-1
votes
1 answer

null object reference in navigation view

I cant set text into TextView in Navigation View header. What went wrong? Can you help me please? code from my java class: public class MainActivity extends AppCompatActivity { DialogFragment AboutDialog; DialogFragment…
-1
votes
2 answers

Checked state for icon is wrong in NavigationView after closing and opening drawer

I have tried implementing the new NavigationView from the Android Support Design library. The app consists of a a DrawerLayout with Fragment holding a NavigationView. A simple menu with icons. I'm starting the app with no items checked. I then…
Aslak
  • 109
  • 8
-2
votes
1 answer

Presenting a New View Modally

I have 3 views - ContentView(), View1(), View2(). ContentView() being the main view is embedded in the NavigationView. It has a button that opens View1() MODALLY using .sheet(). View1 is also embedded in a new NavigationView and has a NavigationLink…
Uday Agarwal
  • 7
  • 1
  • 3
-2
votes
1 answer

How to set these kind of colored icon in navigation view of drawer layout

Want to achieve colored icons in the navigation drawer as in the image below. When I add icons in my navigation view menu automatically it becomes grey.How can I make the icons as its previous colored state like the below image.
1 2 3
51
52