In this little video series we are going to build a navigation drawer from scratch. When we click any of the menu items in our navigation drawer, we will switch between different fragments or trigger another action.
In part 1 we will add the dependency for the design support library and create the vector icons, as well as the menu xml file with a menu group and multiple menu items, which each have an id, a title and an icon set to them. We will also prepare our activity theme by removing the action bar with the windowActionBar and windowNoTitle attributes, so we can later add a toolbar instead.
Watch the whole playlist:
Example code + dependency:
____________________
❗ Subscribe to the channel:
⏯ Watch more tutorials:
⭐ Become a channel member for exclusive tutorials and other perks:
㊙ Help translating the videos:
💚 Support the content:
💬 Join the Discord chat:
🎧 Audiobooks and podcasts for programmers:
👶 How to get started with Android development:
📣 Follow Coding in Flow on social media:
Facebook:
Instagram:
Twitter:
Blog:
Nguồn: https://valuedandloved.com
Xem thêm bài viết khác: https://valuedandloved.com/cong-nghe/
Xem thêm Bài Viết:
- Adobe Character Animator là gì? Top cấu hình máy tính chạy Character Animator
- Tìm hiểu CRM bất động sản và những điều cần biết
- Binary Option là gì? Giao dịch trên sàn Binary Option thực hiện như thế nào?
- Top CPU Tốt Nhất 2020 Cho Người Build PC
- Những lưu ý khi cài đặt và sử dụng phần mềm Microsoft Toolkit
At 1:05, I don't have com.android.support:appcompat-v7:26.1.0 or any version of that in mine. How should I add the design dependency?
i didnt selected navigation activity as first i was having no intention of using it but now i need it.. how can i do it?
Love the accent.
implementation 'com.google.android.material:material:1.2.0-alpha06' I have tried it on May 2020
This line works properly even if you do not see you menu on preview
I could see my navmenu only on activity.xml
Is there a way that I can use activities instead of fragments?
plz comment bro
tools:showIn="navigation_view" is not working on my android studio. What could be the cause ?
that dependency is depreciated here is the new one:
implementation "androidx.drawerlayout:drawerlayout:1.0.0"
implementation "com.google.android.material:material:1.1.0"
Thank you , that is very helpful. 😁
thank you this video really helped me
It says i cant use com.android.support:design:28.0.0 because I'm using android q instead of x is there a workaround for this?
Dude. I love your channel. It is the BEST!!!!!!! . The way you explain is TOOO Tight. Seriously. I dont need to be distracted by any other. Dude. I hope we can make topical requests.
Awesome dude thnxx
Keep this heart ❤
It's not working in android studio 3.6.3, androidx
I am not getting preview after changing to androidx dependency also rebuilding the project
Fantastic little series of Navigation Drawer. Very nicely explained
Is there a way to make that "line" between item groups but without the "communicate" title?
super helpful in showing how everything works together. WAyyyyyyy more helpful than my college professor lol. much appreciated!!
:I cant do this project. At 1:07 in video, my dependences says androidx.appcompat:appcompat:1.1.0
and I cant change it, If I do it wont sync
why dont you ever use kotlin. i understand if its your personal preference to use java but come on. its 2020
Hi, at 8:15 >>xmlns:tools="http://schemas.android.com/tools"
tools:showIn="navigation_view"<< this doesn't work for me the preview turns grey. How should I change it?
At 7.35 , i just follower steps but i getting errors only );
Hey bro I'm getting error after giving design dependencies
How to switch from fragment 2 to fragment 1 when doing backpress on systembar ? help me
I want when I choose to go back to the fragment home and exit ,,,help me ??
on clicking menu items my app is getting crashed…what should i do
tools:showIn="navigation_view" is not working for me. all disappears when i do this. please help me
When i'm adding the tools:showIn="navigation_view"> the preview doesn't appearing what will i do?
Hi, Is there a way i can create a app to update the content in the app, i want to crate a app were i can keep updating the youtube links to stream videos.
Hey Actually i have created one registration fragment and done something coding but when I used to choose on button for selection of images from gallery it isn't working can you tell me why and how do I need to call registration fragment in main activity Plz sir
sir how to make whatsapp status video app plz full cours
Hi sir, your voice is same like my lecture in the class. Maybe you are my lecture. :p
Man I dont know where grow such a magnificent people like you. I am interested in your personality
Sir this code is not working and it is showing blank screen
I'm getting error during syncing saying unable to resolve dependency for design:28.0.0. what's the actual problem and solution for that?
Whenever I run the app the menu does not show. The only thing that shows for me is "Hello world" text. I've set the android theme, no changes.. Where and how do I change the code so that the drawer_menu is actually in the ContentView? It now refers to activity_main.xml from the layout folder (in Res), but I'm unsuccessful at changing that..
How to hide the app title?
where does tools:showIn="navigation_view" comes from ??
Can anyone help me with this question?
https://stackoverflow.com/questions/60638089/how-to-add-an-intent-to-a-navigation-view-tab
What type of application to start with, fragmented? I am new to Android.
We love you man ❤️