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

NavigationView Selected Item

I have this XML.
Charles Galvez
  • 1,100
  • 5
  • 19
  • 41
0
votes
1 answer

NavigationView overlaps content

I have an application in which I'm trying to add a NavigationView. I've done this: main_activity.xml:
Sonhja
  • 8,230
  • 20
  • 73
  • 131
0
votes
1 answer

Unable to add separator to dynamically created MenuItems and highlight selected items of NavigationDrawer

Here's my code - MainActivity.java public class MainActivity extends AppCompatActivity { DrawerLayout mDrawerLayout; NavigationView mNavigationView; FragmentManager mFragmentManager; FragmentTransaction…
0
votes
0 answers

onNavigationItemSelected() returns null menuItem on OnePlus One

I have an Application with a Navigation View. I haven't had any problem in most of the mobiles I have tested the application with, but it crashes when it's installed in a "OnePlus One" mobile model with Android version 5.x, when I click into a…
0
votes
2 answers

Navigation drawer header layout : "Connected"

I would like to have the same result for the header of the navigation drawer as in this picture : Actually, the xml code of my nav header (which I add in the MainActivity using navigationView.addHeaderView(navHeader); ) is the following :…
0
votes
1 answer

Android - NavigationView, Menu with icon as TexDrawable

I am trying set the icon of item menu inside NavigationView as TextDrawable. For textDrawable im using TextDrawable library, but once i set the icon for the menu item it only displays a black circle instead of generated drawable. I did try my code…
0
votes
1 answer

Error inflating NavigationView, a Resource is not found

I'm trying the new navigation view and replaced my list view with it but I get an error: 10-15 10:49:13.988 17368-17368/com.aufmschoolbliz.app E/AndroidRuntime: FATAL EXCEPTION: main 10-15 10:49:13.988 17368-17368/com.aufmschoolbliz.app…
0
votes
1 answer

hide navigationview headerlayout imageview dynamically in android

I am implementing navigation view and its has header view how to hide the image view dynamically Below is my code
John
  • 1,407
  • 7
  • 26
  • 51
-1
votes
1 answer

how to make visibility = View.GONE a certain view when launching a certain fragment when using navigation and BottomNavView

main_actiity.class activity_main XML photo main_fragment.class fragment_main XML photo enter image description here
-1
votes
1 answer

Navigation drawer item highlight color exceeds over the radius of the corners

Navigation drawer item highlight color exceeds over the radius of the corners when I select (long press/ hold down) the item. <...NavigationView in activity_main.xml
-1
votes
1 answer

Activity (sometimes app) closes when Navigation item is selected

I have an android app which contains MainActivity, Main2Activity and NewVisitFragment. Main2Activity (where I have navigation view) opens after button is clicked on MainActivity. For some reasons, when I select navigation item {'New visit'} (more…
-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

Is there a way to apply the theme to diffrent Item of the navigation view?

I am apply style on navigation view using below code app:theme="@style/NavigationItemTheme" //NavigationItemTheme is my style. it apply same theme to all navigation items. I want to apply different theme to different items. How will achieve please…
Prathap Badavath
  • 1,621
  • 2
  • 20
  • 24
-1
votes
1 answer

How to implement the method onNavigationItemSelected?

I have created a navigation drawer activity. I want to create a fragment that is opened when the respective item in the drawer list is clicked. How can I implement this so as to show an image when clicking on respective item?
-1
votes
1 answer

Navigation Icon not working by clicking

I have a simple android.support.v7.widget.Toolbar and all I am trying to do is to open a NavigationDrawer by pressing the "hamburger" icon in the top left corner. The "hamburger" button is visible, and when I start to pull from the left I see the…
1 2 3
28
29