Questions tagged [android-drawer]

98 questions
0
votes
0 answers

Some features of Activity stops working onRestart()

I have created a navigation drawer in my application, Its working fine, but when i open another activity and go back to previous activity, the button of navigation drawer stops working, Although navigation drawer is still there. If i slide from left…
dev90
  • 7,187
  • 15
  • 80
  • 153
0
votes
0 answers

NavigationView: background color of pressed item alternates randomly on Jellybean

My app has two activities with a DrawerLayout and a NavigationView (android.support.design.widget.NavigationView). I use an app theme with parent Theme.AppCompat.Light.DarkActionBar, and for my Lollipop emulator, there are no problems. But for my…
Bö macht Blau
  • 12,820
  • 5
  • 40
  • 61
0
votes
1 answer

Change transperency of main screen on DrawerLayout menu open

I am using Drawer Layout on my application's home screen to provide some menu options. when drawer opens I want to add some gradient or some invisibility to background activity. How can I do that? I have used below two methods but it wont work and…
unflagged.destination
  • 1,576
  • 3
  • 19
  • 38
0
votes
2 answers

CardView and other elements are not being displayed in my xml file

I am using an AppCompatActivity and at the moment, I am trying to add a navigational drawer to the toolbar. Problem is, now the cardview is not being displayed and the navigational drawer is also not working. This is my code:
user5359494
0
votes
1 answer

Drawer indicator is hidden for toplevel activity

I want to display navigation indicator for a drawer like in this image: For some reason the indicator does not display. I spent many hours on google and SO and no solution worked for…
Leos Literak
  • 8,805
  • 19
  • 81
  • 156
0
votes
2 answers

error: No resource identifier found for attribute 'headerLayout' in package 'com.example.materialdesignexample'

I am using eclipse and I have added support design navigation view like this
javed
  • 11
  • 3
0
votes
2 answers

How to call OnClick method for right Drawer menu in Android?

I want use two Drawer Menu, one of this menus in left and another one of this menus in right. left Drawer Menu is ok, when items clicked, the operation is performed. but in right Drawer Menu, when click on items the operation does not! My XML code :…
ydstsh
  • 183
  • 2
  • 11
0
votes
1 answer

Android Drawer Multi Layout

I'm trying to improve my drawer layout, I would make a drawer with header (image and text) and list view, but I can't do it. this is my layout:
KPN24
  • 65
  • 2
  • 9
0
votes
1 answer

Is Android Navigation drawer supposed to be over ActionBar?

As the title suggests, my app uses a side menu using navigation drawer. I got inspired by this official google doc and its nav drawer can be toggled either by swipe from left to right or by clicking on modified home icon on top left of…
0
votes
1 answer

How to filter list view of drawer?

My App have drawer which contains custom list view. Each list item has one icon and textview. So i want to filter items based on text in textview. Thanks in advance
Ashish Kumawat
  • 685
  • 7
  • 22
0
votes
0 answers

How to add drop-down controls to navigation drawer

As per the title. I am using the Support Library DrawerLayout to create a sliding drawer that has a listview in it. I'd like to add some drop-down (spinner) controls so the list can be sorted alphabetically etc. How can I achieve this?
Mr Pablo
  • 4,109
  • 8
  • 51
  • 104
0
votes
1 answer

Android - Drawer - Cannot found/resolved inflator activity in 3 similiar files

i´m working on a Tutorial right now and i´m creating a Android Drawer. Java - Files: - MainActivity - NavigationDrawerFragment - AboutMeFragment - ContactInfoFragment - MyCompanyFragment XML- Files:…
seb4222
  • 5
  • 4
0
votes
1 answer

Change ActionBarDrawerToggle "hamburger" icon dynamically?

I am using a DrawerLayout and the ActionBarDrawerToggle to allow the user to open it by tapping the "hamburger" icon. I have now added in a Bottm Sheet, using a third party library (as no offical support exists) but I still want to use the design…
Mr Pablo
  • 4,109
  • 8
  • 51
  • 104
0
votes
1 answer

How to add Material design Navigation drawer with sliding tabs?

I want something very similar to this: I have already added Sliding tabs and it's working perfectly fine but I am not able to figure out how to add a navigation drawer to existing code. So far, I have created a PagerAdapter class to view different…
Amit Pal
  • 10,604
  • 26
  • 80
  • 160
0
votes
1 answer

Right Drawer - how to add Toolbar button?

I have extended the well-known Google Navigation Drawer Example by adding Toolbar and right-side Drawer in a simple test project at GitHub: How to add a "burger" button to the Toolbar - which would open the right Drawer (currently you can only…