Questions tagged as 'android-drawerlayout'

2
answers

Can a Layout be used in 2 activities?

Good afternoon. I have an app that consumes webservices (that part is already finished), but now I require that this app works without internet access, I have created my bd and I already have saved data. My question is if I can use a Layou...
asked by 13.07.2016 / 00:51
2
answers

Change the background color of the drawer elements when pressed

In the % activity_main_drawer.xml I define the elements of Navigation Drawer and separate them into 3 blocks as shown in the image shown at the end of the post. When selecting a elemento of the first block (Start, Notices...
asked by 06.07.2016 / 11:01
2
answers

Android DrawerLayout - No drawer view found with gravity left

When you click on the button to display the DrawerLayout, you get this error: E/AndroidRuntime: FATAL EXCEPTION: main java.lang.IllegalArgumentException: No drawer view found with gravity LEFT...
asked by 23.09.2016 / 21:57
1
answer

When implementing a navigation drawer and listview, the navigation drawer does not perform any action

I try to implement a navigation drawer and a listview in the same activity, but the problem is that only lisview (listview1) works for me. The listview of the navigation drawer (listview2) does not work: the menu is displayed but does not ex...
asked by 09.10.2016 / 07:10
2
answers

WebView in a fragment Android Studio

I'm trying to show a web page in a web container, WebView, I've already done it but in a normal activity, now I want to do it but in a fragment, since I'm using a Navigation Drawer. I previously had the following code which worked well for me....
asked by 06.06.2017 / 23:01
1
answer

How to change the color of the Toolbar menu icon on Android? [duplicate]

By default it appears white, what I need is to put the background in White and the icon in orange, how could the color of the icon change?     
asked by 21.12.2017 / 03:28
1
answer

Fragment with drawermenu in the action toolbar

The problem is the following I have my main activiy that is composed of a drawer activity when I give to one of the options of the drawer activity I have to pass to a fragment , the problem is the following when I pass to fragmen...
asked by 14.04.2017 / 22:19
1
answer

Work on a menu with items within a NavigationView on Android

Good afternoon, I would like to raise a problem that I can not find a solution for in Android programming. It turns out that I have a sliding menu implemented under two structures, a header and a listMenu in my view. I access the header pe...
asked by 26.10.2016 / 18:14
1
answer

How can I send an activity according to the option in my menu drawer layout?

I have already prepared my side menu, but now I need to select an option to send me the corresponding activity. Then I leave my code: public class cliente_inicio extends AppCompatActivity { private DrawerLayout drawerLayout; private...
asked by 23.02.2018 / 04:26
2
answers

Change Nav Drawer icon on android side

I have an activity of type nav drawer, the menu always comes out of the left, I got it out of the right: What I need is for the bars (the icon on the left) to move to the right and be able to change it for another image     
asked by 26.09.2016 / 23:33