drawerlayout Questions
5
Essentially, I need an "options" menu that can be accessed by swiping the screen left to right (or clicking on the options button in the left top corner of the screen). I also need it to cover the ...
Apogee asked 9/2, 2015 at 19:13
1
Solved
I have created a DrawerLayout and also have an ImageView (a 'hamburger') that opens it when clicked.
My problem is that when using the following code, a lint error is shown in AndroidStudio: Must b...
Audette asked 24/10, 2018 at 16:21
2
I am using DrawerLayout in my application. I am using NavigationView for the contents of the navigation drawer and setting its background to transparent using below code snip.
<android.support....
Pogue asked 6/8, 2018 at 11:15
6
Solved
How can I disable the gesture recognition for the DrawerLayout? (swipe left to right) and only accept the close gesture (right to left) and open the drawer just with the home button?
Dewar asked 10/6, 2013 at 14:14
3
Solved
The latest Android Support Library introduced the DrawerLayout to implement the common UX pattern where you slide right or left to show a navigation menu.
What I'd love to have is a vertical Drawe...
Gulgee asked 28/5, 2013 at 10:47
10
I have activity which has drawer attached to it. Each menu of the drawer is a fragment, and under one of the menu I have a fragment with TabLayout, and each tab contains a RecyclerView.
So now, wh...
Taxdeductible asked 30/11, 2015 at 13:29
1
Solved
Is there any way that I can modify the XML file of my main activity (the one that I wish to add a navigation drawer to) so as to allow for my existing layout to remain while adding the navigation d...
Failure asked 27/5, 2018 at 12:11
2
I have a mainactivity where I have created a method to lock/unlock the drawer_layout and locked it in the onCreate() method.
public void disableDrawer(Boolean bol){
if(bol) {
mDrawerLayout.setDr...
Vindicable asked 22/4, 2014 at 10:41
3
Solved
I know I can use colorPrimary to determine the color of Toolbar, and colorPrimaryDark to determine the color of Status bar.
I'm using the following theme
<!-- Base application theme. -->
&l...
Denning asked 6/5, 2018 at 15:35
2
Solved
I am trying to add NavigationView in my layout as below:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android...
Iterative asked 30/5, 2015 at 8:27
1
Solved
I'm trying to add a Navigation Menu to an existing project in Android Studio. However, while following the instructions on the official website, I added a <android.support.v4.widget.DrawerLayout...
Nambypamby asked 31/12, 2017 at 9:59
1
Solved
I have created a DrawerLayout and it works fine. But I want it to close when the user touches the background. This can be implemented with a DrawerLayout with listView but here i'm using a Navigati...
Westley asked 6/12, 2017 at 8:17
2
Solved
Normally when pressing on the content area of the DrawerLayout, the drawer will close and the touch is consumed. Is there a way to prevent this and pass the touch event on to the content area?
Tha...
Claire asked 4/9, 2013 at 4:37
3
Solved
I am getting NullPointerException in onTouchEvent of CoordinatorLayout.
I am using DrawerLayout with CollapsingToolbarLayout of android support AppCompat v23.0.0 library.
My observation is crash ...
Stereotype asked 22/8, 2015 at 10:13
1
I want to lock swipe left-right and right-left of DrawerLayout.
DrawerLayout drawerLayout;
onCreate:
drawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout);
drawerLayout.setDrawerLockMo...
Houseline asked 7/1, 2016 at 10:36
4
I've been searching for a while with this issue and i cant find solution yet.
For my design of DrawerLayout, I will not be using listview but linearlayout as container for my views. I test it first...
Elitism asked 15/8, 2014 at 3:21
5
Solved
I'm new to React native (and React) and I'm playing around a little bit with it.
I managed to add a DrawerLayout that I can drag from the left of my screen.
However I'd like to open it when I clic...
Inoperable asked 20/9, 2015 at 14:55
4
I'm designing a native navigation drawer in Android Studio.
I can't see the drawer in my preview because it is sitting left of the activity, out of range of the preview.
For now I'm using a testlay...
Liable asked 31/3, 2015 at 12:38
1
Solved
I am trying to create and improve existing SlidingDrawers projects that can work for all four sides of the screen {LEFT, RIGHT, TOP, BOTTOM}. There are a few libraries, however, they all have limit...
Crissman asked 6/4, 2017 at 20:31
3
Solved
In my android application I see the following error:
setDrawerListener(android.support.v4.widget.Drawer
Layout.DrawerListener)' is deprecated
How i can resolve this?
In one answer I se...
Unloose asked 4/6, 2016 at 11:44
5
Solved
I have created one NavigationView inside DrawerLayout using Android Design Support Library
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/androi...
Malti asked 14/9, 2015 at 11:4
5
Solved
I have created drawer layout sample application, it's working fine, my problem is drawer layout working in right to left perfectly but I am trying to move icon left side to right side but it's not ...
Elatia asked 23/11, 2013 at 7:45
4
Solved
I'm new with Android and in my app, I am using DrawerLayout, it's
ok and fine. But I want to change ActionBarDrawerToggle icon.
How can we change it?
I tried a lot but I could not able to achi...
Vacla asked 21/3, 2016 at 15:12
2
I'm following this tutorial from and I'm facing with a strange problem.
It doesn't matter what's in my DrawerLayout, but if its layout_height or layout_width are set to anything other than hardcod...
Kallick asked 3/12, 2014 at 23:4
4
Solved
I'm working on application that has a tab structure, and use sliding movements to move through the tabs.
But now, I want to apply Drawer Layout. The problem is that the Drawer has slide to open e...
Nonbelligerent asked 9/8, 2013 at 7:28
© 2022 - 2024 — McMap. All rights reserved.