845 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
44
views
Android Navigation Drawer Item Click Listener not working
Every time I click on the Navigation Drawer item, it closes and is not redirected to the intent activity.
/* MainActivity.java */
NavigationView navigationView = findViewById(R.id.navigationview);
...
0
votes
1
answer
114
views
Why is hamburger icon disabled when adding an options menu?
I have a DrawerLayout set up and everything is working fine. Until I create an options menu in one of my fragments via requireActivity().addMenuProvider(...). With that a tap on the hamburger icon ...
0
votes
1
answer
164
views
How does the Navigation Drawer Views Activity app open the drawer via the hamburger icon?
Android Studio ships with the sample app 'Navigation Drawer Views Activity', which can be created via the new app dialog. I've tried to follow the code in it to implement a navigation drawer in my app....
0
votes
1
answer
516
views
Remove Ripple Effect from Drawer Layout Navigation View
I'm trying to remove this ripple effect from my Navigation View without any luck. I tried following the answers from BottomNavigationView - Shadow and Ripple Effect and How to disable gray animation ...
0
votes
0
answers
79
views
Unable to Exit App Using Drawer Menu "Exit" Option in Android App
Description:
I am developing an Android app, and I have encountered an issue with the "Exit" option in the drawer menu. When I click on the "Exit" option, nothing happens, and the ...
1
vote
1
answer
56
views
Drawer Menu Not Displaying in Android Activity Welcome Page
I am currently facing an issue with the display of the main menu in my Android activity, specifically in the activity_welcome.xml layout file.
After a user logs in, they are directed to the ...
2
votes
1
answer
1k
views
Android Jetpack Compose full width drawer
How do you make a drawer to fill entire width of a screen?
ModalNavigationDrawer(
drawerState = drawerState,
drawerContent = {
ModalDrawerSheet(
...
0
votes
1
answer
42
views
Android need fullwidth drawerlayout. it should appear and disappear when hamburger icon is clicked
xml code
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android&...
0
votes
1
answer
68
views
Unable to hide Action Bar while implementing Navigation Drawer
This is the full code of the xml.
<?xml version="1.0" encoding="utf-8"?>
<androidx.drawerlayout.widget.DrawerLayout
xmlns:android="http://schemas.android.com/...
0
votes
1
answer
79
views
How to use NavHostFragment with ViewPager
So I've already read most of https://developer.android.com/guide/navigation/navigation-multi-module#groovy and fairly understand how to implement nav_graph and stuff. But I kinda have a bit of a ...
1
vote
2
answers
292
views
Android Studio. For what is drawerlayout.addDrawerListener() good for?
i wonder why its needed to use for the NavigationBar the following code snippet?
actionBarDrawerToggle = new ActionBarDrawerToggle(this, drawerLayout, toolbar, R.string.open, R.string.close);
...
-3
votes
2
answers
291
views
How to change Appbar color with onTap in flutter?
I tried changing the background color of Appbar using onTap in ListTile
ListTile(
title: const Text('Black'),
leading: const Icon(Icons.label),
onTap: () {
...
0
votes
1
answer
71
views
Frame Layout keep stacking over, how to refresh them
Inside the DrawerLayout in FrameLayout when I click the item of Navigation Menu, they keep clashing and stacking over each other, so what do I do?
This is my Java code for loading fragment in the ...
2
votes
0
answers
38
views
Android - navigation drawer navigationview bug: some non selected items are becoming bold
<com.google.android.material.navigation.NavigationView
android:id="@+id/nav_view"
android:layout_width="wrap_content"
android:layout_height="match_parent"
...
0
votes
0
answers
32
views
How do I seperate my drawerlayout widget from my activity_main.xml page in android studio?
I have my drawerlayout widget on the same page as my main page and I want to separate it and create its own page. I want the main page to have its own xml page which will be located on the ...