Questions tagged [android-drawer]

98 questions
69
votes
2 answers

CoordinatorLayout + AppBarLayout + NavigationDrawer

I have a layouting problem when combining CoordinatorLayout with an AppBarLayout and a NavigationDrawer. The problem is, that the NavigationDrawer and it's content are hidden behind the toolbar. I have already did a lot of research and tried a lot…
24
votes
4 answers

How to enable or fake mini variant from Material Design guide for android.support.v4.widget.DrawerLayout?

How to enable the "mini variant" from the Material Design guide - so that only the Drawer icons are shown in its closed state? As a simple test project for my question I have taken the well-known Navigation Drawer Example by Google - and then added…
16
votes
4 answers

How to add Three Level ListView in ExpandableListView in android

I want to add one more level of in ExpandableListView.In current ExpandableListView is two level how can i add one more level. I am new in android developing please help me. Thanks in advance! My MainActivity.java:- private Toolbar…
Anand Jain
  • 2,365
  • 7
  • 40
  • 66
8
votes
4 answers

Android Navigation Drawer Remains Highlighted

I am able to navigate from Activity1 to Activity2 via my navigation drawer. But upon pressing the back button at activity2, the option remains highlighted. My Code in activity1 is as followed public boolean onNavigationItemSelected(MenuItem Item) { …
user6487002
6
votes
2 answers

Android Google Search Bar with Drawer

My app is currently implemented with the Single activity approach (Using navigation architecture component with one main activity and several fragments). I am currently using a toolbar with a drawer. My app currently look like this: However in the…
6
votes
1 answer

Android Jetpack Navigation - How to navigate to nested nav graph from drawer menu item

I was curious how one would be able to navigate to a nested navigation graph from a menu item in a drawer layout using the navigation graph from Android Jetpack. I know that there is some magic behind the scenes that links menu items with fragments…
6
votes
4 answers

How to use custom fonts in DrawerLayout and NavigationView

I want to use Android's DrawerLayout and NavigationView for menus, but I don't know how to have the menu items use a custom font. Does anyone have a successful implementation?
5
votes
1 answer

Android drawer layout may produce null pointer exception

I keep receiving this warning in my code and I am starting to worry as I am close to my deadline of completion. I have a DrawerLayout in my main activity, using Android Studio's own navigation drawer activity but had to make a slight change to the…
5
votes
0 answers

Android NavigationView wrong icon position on RTL

I'm using com.android.support:design:23.1.0 and also i have android:supportsRtl="true" in manifest. I'm trying to create a drawer that works fine on both RTL and LTR language. But the default behavior in RTL lang is wrong. how can i solve this? tnx…
mehdok
  • 1,499
  • 4
  • 29
  • 54
4
votes
1 answer

Animate while setBackgroundColor in android

I'm working on a custom stepper. Everything is working fine. What I want to do now is animate the stepper while filling the current step. this Image shows my idea: This is my code while setting the color of the line, title, and the icon…
Abdulrahman
  • 301
  • 1
  • 3
  • 12
4
votes
1 answer

fitsSystemWindows on API16 device doesnt work

My activity requests layout as fullscreen: getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_STABLE |View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN); and in the xml layout sets the fitsSystemWindows property to padding the…
3
votes
1 answer

Invalid for given resource value in appcompat and drawerlayout sourcefile

After changing some dimensions in my project and trying to reduce the amount of different redundant layouts (e.g layout and layout-sw600 having the same layout), I am always getting the following…
3
votes
0 answers

Back Button in fragment opens up and closes navigation drawer instead of going back

I have a navigation drawer which is working absolutely fine with drawer icon, however, if I move from navigation drawer activity to any of my fragment, back arrow is also displayed but on clicking of back arrow navigation drawer opens, I just want…
3
votes
2 answers

Change the menu actionLayout value?

I have a navigation drawer and I can change font, color etc.. by accessing the navigationView.getHeaderView(0); and Menu m = navigationView.getMenu(); MenuItem mi = m.getItem(index); and then I'm able to play with items in drawer. But in my case I…
3
votes
0 answers

How to make Drawer header Fixed in Android

I am working on a android app. I want to create a drawer with fixed header(non scroll-able). Below is my activity_main.xml code
Abhishek T.
  • 1,133
  • 1
  • 17
  • 33
1
2 3 4 5 6 7