Navigation drawer with Activities in android studio( not fragments )
Vložit
- čas přidán 23. 05. 2017
- Today I am showing you how to implement navigation drawer in Android studio with activities and not fragments, I hope this video helped you all :')
Follow me on my Social Media :
Instagram : / dhanushoooo
Source Code :
drive.google.com/folderview?i...
If So,
➡LIKE
➡COMMENT
➡SUBSCRIBE
➡SHARE
LINKS👇
___
Watch my other videos :
/ @pvpds
Become a part of my daily videos :
/ @pvpds
___
Amazon Best Buy Of the Week at cheapest Prices using these links
(1) Cool Motorola earphones
adf.ly/1kpfuT
(2) Samsung J7 Prime
adf.ly/1kpelz
(3) Head sets at the cheapest
adf.ly/1kpfGW
(4) Skins for Android/iOS phones
adf.ly/1kpf5L
(5) PS4 TB at the cheapest
adf.ly/1kpfUs
___
➖➖➖Create a logo like me➖➖➖
• • Photoshop on android o...
➖➖➖Record your android screen➖➖
➖➖➖Make a banner like mine➖➖➖
• • How to Make cool YouTu...
➖➖➖Edit videos on Android ➖➖➖
➖➖➖Earn from CZcams➖➖➖
➖➖➖Earn on Android ➖➖➖
___
Earn Money using these referrals
(1)
(2)
(3)
(4)
___
Check out our non copyright music
___
The music I have used in this video is
By : PixelMusic
Channel : adf.ly/1kpgKd
Link :
Check Thier channel out, they got the best EDM's.
___
My contents are for educational and fun purposes only. Do it at your own risk
If you have any enquiries or problems with the contents I upload, before taking any action,leave a mail to me
@pvpds.business@gmail.com
I would b glad to solve your problem
Thank You ❤ - Hry
Man , you are really my life savior . Finally i can finish my finals Project because of your vid.
Keep it up making vids like this.
+kimcharles manapil thank youuuuu.
Please do like subscribe and share the video for more :')
Thanks mate, You make me happy!! Keep that great work
You are great man this is the video i am looking for .I have been doing this by using fragments but always gets the error.The logic you used is great
o, great. thanks budy, thats some thing i was searching for hours...
+Umer farooq no problem 💚
BRO. it works. thanks . thumbs up!!!
Long life bro ❤❤❤
No any other video find in youtube
This topic
Thanks brother for this great tutorial, it is very helpful.
+Salim Ben welcomee :)
thank you so much for your help, i understand about you logic
Yaaaay, all the best :)
Please do subscribe, that will help me in return
Thanks :D Helped a lot
+daniel všetečka no problem :)
If you need any video of a particular video, please do comment.
this is great. you hep me solve my problem. thank you very much :*
+Andreas Ragil haha welcome. ❤️ Please do subscribe for more
😁thank you so much bro...now my app is running perfectly..thank you so much..keep uploading more videos ..I am subscribing you with my 3 ids ..thanks again
Great tutorial! Easy to follow
Thanks a lot . You helped me a lot. it works.
Hey, I have a problem.
I get the error message: The surrounding layout (@layout/app_bar_home) did not actually include this layout. Remove tools:showIn=... from the root tag.
Do you have any idea?
First of all, PVPDS, I will like to thank you for providing a way to tackle the navigation drawer without the use of fragments. This video was very helpful and for that I have liked and subscribed. For anyone else who had the same problem I had - After following the steps as stated in the video, every other activity's content.xml included in the home nav drawer only displays whats on the content_home.xml - I have found a solution. I read through some helpful comments, like that of Benish Adil, who was actually really close to the solution.
Thank you so much, and yes that problem which has occurred is because every activity is connected with the content_home.xml, if you need different contents, which is obvious, you need to create content.xml for each activity you use just like how the activity_home and content_home are connected.
Thank you once again for such a nice feedback :) means alot
Thank you so much, and yes that problem which has occurred is because every activity is connected with the content_home.xml, if you need different contents, which is obvious, you need to create content.xml for each activity you use just like how the activity_home and content_home are connected.
Thank you once again for such a nice feedback :) means alot
Here it goes:
Once you follow the steps provided in this video, you only have one app_bar_(your main). What you then need to do is create as many app_bar_(blahhs) which corresponds to the other content_(blahh).xml files you had created. For example say in addition to my content_home.xml, I had a content_about.xml. What I did was create an app_bar_about, then in that about.xml file, edit the "include" line code:
Then at the top in the same xml file where you had the tools:context=".Home">, change that to tools:context=".About. Do thesame for all other newly created app_bar_(blahhs).xml. Then in their corresponding content xml files, what is supposed to be showIn="@layout/app_bar_home" should be showIn="@layout/content_about". Clean, Build, and Run your app and if this doesn't work, . . .
Okay, thank u very much i just have one question. How do i fix the checkableBehavior. When i press on anything in the navigation drawer, it doesnt highlight the item unless i press the "back" button on my device. Fx if I'm in home and press slideshow, while i'm in slideshow nothin on the navigation drawer is highlighted. When i press the back button on my device, i go back to home activity but slideshow is then highlighted.. Thank u
thanks, after i confuse with the fragment, this video make a solution for me to use the activity for continue my project. jazakallah khair.
+Syifa Maulizahra all the best :)
Brother, i want to fill with the text and some little image on the activity of Home/ Gallery and so on, how can i do that? please help me if you never mind. I've been tried to create on layout/content_ and /activity but nothong to show. thank you. God bless you.
+Syifa Maulizahra create content.xml, mention the content.xml on your activity, whatever you wanna do, do it on content, forsure it will show.
means i can not do it on content_home.xml that content is already there?
+Syifa Maulizahra see, u need to create different content.xml for different activity
awsome! thank you man
Nice job .. Dude
You have added same code in every activity and its layout so for sure it will work without any problems because each one is having its own drawer layout
This is not a right way Your Navigation layout should only at a one place and the rest of the activities should extend it
True, but that is done using fragments. And here I've shown video for adding navigation to all the layouts :)
@@PVPDS not only fragments but activities can also be done that way, you way is too wrong and makes the app to heavy
@karan kemble, I am searching for that , How to do that
@@arunkumara3844 its easy just extend your Sub Activity with Navigation drawer activity.
eg.
LayoutInflater inflater = (LayoutInflater) this.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
View ContentView = inflater.inflate(R.layout.activity_sub,null,false);
drawerLayout.addView(ContentView,0);
use above code instead of setContentView(R.layout.activity_sub);
and public class Subactivity extends Navigationdrawer_activity_name
make sure your Drawerlayout instance has protected access specifier. otherwise it wont work.
@@pranitbhoir2167 have you done it...can you mail me the code on vaishnavambre31@gmail.com
I got some problem with my activities. When i run, it can display home for the rest it will display unfortunately stopped my apps, what should i do?
You saved my life. thank you !!!!
Thank you, please subscribe for more!
Sure, it will help.
+Rajendra Bro okay thank you :')
If I follow those steps, the content is not what i hoped because it still access "content_home". So I didn't delete app_bar_something..
but overall this is helped my task. thx
when I click on one of the options of the drawer,nothing happens.
Even when I did provide intent for every option in onNavigationItemSelected().
please someone tell me.
Thanks for the tutorial, i have a question where do you have to set the content of each layout for each activity
+Sergio Oseguera Rodríguez your welcome.
Just create content.xml for each of your activity
+Sergio Oseguera Rodríguez please do subscribe for more
Thanks Dev! I've been stopped dev my app because of those fragment probs. I really don't know what to do, but now I'm happy. Please do a video on integration of youtube videos and channel on the selection of gallery in the navigation drawer. I'll be hopefully waiting for that. Thanks!!!
Anupam Kurapati i didn't get you, please can you tell me again ? What do you want a video on?
PVPDS ///// I want to add youtube channel to the gallery.. That is - viewing youtube channel videos (whole videos in list). Not using webview.
Anupam Kurapati I don't think it's possible without webview, because it's thier app, so we can't copy Thier app in your app directly without any url or anything. You can just create your own app like that
PVPDS //// yeah!! I'll be thankful if you upload that one too. Though there are so many videos out there, you're videos are outstanding!!!! Thanks Dev!
Anupam Kurapati thanks alottt ❤️ appreciate ittt
Hello.
I tried following the steps and created my own app but when I run the app on the emulator it crashes.
hello sir, i couldn't find the R.Id.nav_view!! where you created this !?
I want to add button s and their respective activities in the project. Please make a tutorial for the same. I'm learning and that will really help me .
great video
sir it is for rooted or non rooted device plz reply...??
thanks, helped a lot
+廖信傑 welcome , please do subscribe like and share
Hello bro..I made 2 activities having converter running code want to implement activities with navigation drawer..I tryied with fragments but it's not working properly..I want to add my 2 activities with navigation drawer..I will try this if it will not work please help me sir
Hi, Thank you so much, the code has helped me a lot, but I have a question...
I'd like to know how do I get to show the content when I choose any of the options in the menu of the navigation drawer? Can't make it happen :(
See basically you need to create content.xml for each of the activity
Once you don't creating that, connect your activity.xml with content.xml respectively. And you'll get a content for each activity
How to do that?
Can i know why i have added some textView and imageView in content_home.xml but it is not showing in the emulator? Like is it my content_home.xml and activity_home.xml not link?
thank you so much
Thanks for this tutorial
Hey man, great guide, helped a lot. I do have a question though.
When I put content into the content.xml files, it doesn't show up at all, mainly due to the render issue asking to remove the showIn layout app_bar_home. When I remove that it loads the content but the heading I want at the top overlaps the nav bar at the top. Anyway I can fix this?
+Steven Showler I guess you aren't doing it write, because both app_bar_home and content_home.xml is a must. We can't remove any of these. Just make sure you haven't added something extra is the content_home.xml or in the app_bar_home.xml.
And also create content.xml for each of your activity
Hope this resolves your problem :)
I have followed the guide, here are 2 screenshots - imgur.com/a/q0TCd - the first is with the tools:showIn="@layout/app_bar_home", there is no heading on the preview.
The second one I remove the @layout/app_bar_home tag and it shows the title but still doesn't show it in the activity_home.
Unless I am doing something wrong? Sorry I am new to this navigation layout, just can't wrap my head around it.
+Steven Showler I'll take a look at this once and let you know In a while :)
I have college, once I am back home I'll fix your solution, sorry for taking time butt I need to rush rn :)
Have a good day
No worries mate. I did this again on my main computer and still got the same Render Problem asking to remove the surrounding layout @layout/app_bar_home in all the content.xmls and to remove the tools:showIn :\
+Steven Showler okay look , in the content.xml, except home, delete the app_bar_home in other content.xmls
For example,
If content.xml is gallery, then it should have app_bar_gallery, it should be in shown in app_bar_gallery and not home
Bro,want to ask that i wanted to add different content on different content.xml. Like i wan t to add content to content.slideshow but it's only the content on content.Home but not the content of content.slideshow. What should i changed to make it show up different content?
+Choo Chyau Hoong bro make content.xml for all the activity, for example, for slideshow, make content_slideshow.xml for gallery, content_gallery.xml and so on
I have done that, just wanted to show different text on different page. When i clicked slideshow on the navigation drawer, it's show the content of content_home instead of content_slideshow
Yh me too
How To,
in gallery add listview or recyclerview,
when click on item,
call (open) new GalleryDetails,
after return to gallery activity.
?
Good job,
Good channel.
I want to create interfaces in all activity how will i do it please help me
thanks for this.
+Haley Morn most welcome :') please do subscribe share and like :)
Thanks!!!!!
+Juan Sebastian Daza Guevara welcomeeee
thanks a lot bro
+Ianjay Mamansag welcome :') please do subscribe like and share :)
Nice tutorial... please provide full android studio project...
+Vinod Patil what full android studio project? I didn't get you
i mean provide link to project that can be import in android studio.... in the link that u have provided there are only folder having java and xml file....
+Vinod Patil I don't have the project, but I have the source code for the project, which u can take a look at, please check my description for the link
Android ka konsa version install hai apka
Sir how can we get numbers from sqlite and store them in string variables
I have a question. All my activities have the same appearance as the main (I already have some content in the main content before I add the nav drawer). I edit the content_(activityname) as you shows in the video but the result is still the same. Do I have to create another content.xml file or what? Really hope you can answer me asap bcs I really need this to do my project T_T
+nurul izzah yes, you need to create a new content.xml for each of your activity
then how to connect to the activity? Sorry I'm did not know so much about this stuff. Thank you for replying btw.
+nurul izzah see , create content.xml for each activity and then in your activity add " show in layout " if you don't know the code then check your main activity, there will be a line of code which adds the content_main_activity.xml
It's working! Thank you so much!
hello sir,i have a question ,,am working with Kotlin not Java ,if i change the command to Kotlin,,it work ,,and plz if you could ,plz make a video about Kotlin with android app,and thaks for you r help
Bro I don't know kotlin language, sorry :/
But in future I'll surely make :)
ok thank you sir ,,by the way the kotlin it s a reduced Java ,the code is few line not like a java ,i hope that you do it soon ,,all the best ,by the way am a girl
hehe
Oops sorry :P
FINALLY! The Navigation Drawer video I've been looking for! I'll try it and let you know if I have any issues. Thank you very much!!
Sir I want navigation drawer and main page pr list view kaise link kre
Running perfectly .how can I add text view or button in home, gallery activity? I added button in home activity it is not showing in home activity it is showing in all activities please help me
So helpful
+Bijoya Banik thank you
Hello friend thanks, but I managed to go from the "Home" menu (navigation Drawer) to an activity by adding only 4 lines in "Home"
Then, for each activity, you only need to add 2 more lines in the "else"
Nothing more!!
bro how??
How?
Thanks for this sir. It surely helps. It's just that my design/content layouts are not appearing on the menu. Any idea?
+Geneva Daugdaug you need to add your name of the content in the menu.xml
Thanks for the answer sir. I just have to include/create the app_layout for each activity so that the design will appear every click. Great tutorial bdw, it really help me big time :)
+Geneva Daugdaug no problem, you found it helpful please do like subscribe and share for more such tutorials
sure will do (y)
can i get access for the drive folder?
i already send access request, thank you
how to add content in activity it not showing textview which u added in linear layout when u executed
hi, great work. only one problem Slideshow and Tool show same activity, if you click slideshow or tool, both show tool_content Title and activity page. Mean slideshow does not comes up
Crypto Coins please add content.xml for tools and content.xml for slideshow.
thanks for reply. i did that, infect i have tried your project after downloading it and it has same problem. i have content_home+import+gallery+slideshow+tool
all ok only content_tool.xml name appear when you click slide show. try your own. please
Crypto Coins yes my project has that problem, did you create 2 content for each? Did you fill in the correct code in each of the XML? Please do check that, because I got to know your problem, and I guess it's because u haven't added the contents proper for each activity
Nope. did all possible, even created different names instead of slideshow and tool, bt what ever i do last content.tool always show up when you click 3rd one. i give up. if you do have working one, please send me at shak1l@live.com
thanks
Crypto Coins okayy, I'll look at it and send you :)
I have problem using your code in latest android studio (after i update last studio ), if i remove " from app_bar_home.xml, content_home.xml doesn't show any design/layout. Any suggest?
+alim ahmad u can't remove it bro. It's the most important code to show your app bar home in your activity home
Oh i'm sorry, I mean @layout/content_home. As you show in min 5.15
+alim ahmad see without content_home.xml acts as an activity to a Java class when you use navigation. So content,app bar, NAV head bar, activity . Everything is important.
Whatever you want to add in the home screen should be put in the content_home.xml
hi great work , in Activity(java code) here we are using setContentView(R.layout.activity_home) so activity_home.xml includes app_bar_home.xml and app_bar_home.xml includes content_home.xml so that we can see our views in application but in video you removed include content_home.xml from app_bar_home.xml hear i am not understanding how views will be shown
Great works sir, thank you for your help.. I have another problem though, how to make a back button on the navigation drawer?
On example :
If i want to access home, the navigation drawer is still active, but if you access import activity, the navigation drawer changed to a back button, and when you press that back button, the import activity goes into home activity again. Please respond and thank you very much for your attention
+Eduardo Richard Eko sir having navigation drawer for all your activity will be one big hectic thing and also it's not suitable, so I recommend you to keep the back button on the other navigation activity except the home screen. But if you still want the navigation drawer for the other activities, you have to directly create navigation drawer and not the empty activity for each of your activity. Like imagine you have home, gallery, camera.
You need to create home navigation, gallery navigation and camera navigation, but you need to have the same menu. You need to connect all the activity to the same menu, it's already hard to explain on text, if you want to know then request for a video, I'll put it up next time. But to be honest, I recommend you not to do that as it is time consuming and does not make much of a difference.
It is very easy using fragments , but very difficult using activity.
Thank you
Yes sir i figure that out it would be hard if you using the activity for making a navigation drawer, but if you not busy, I want to request the tutorial for making the back button for this project, it would be a big help for me. Again, thanks for your response and your attention :)
+Eduardo Richard Eko I have my exams going on rn, ends by April, if you want I can make it once my exams are over. High school exams
So if you want it then please do drop a mail regarding the same
pvpds.business@gmail.com
Thank you for your respond, but is it on paid or free? Sorry for disturbing on your exams
+Eduardo Richard Eko what? Paid or free?
I didn't get you
thanks helped
Please do subscribe , will help me back in return
Hi. Hope you're still around. Thanks so much for this. We were hopeless until we found this. Such a great help ^^
Altho, we're facing some problem. What we've put in the content xml doesn't show on any of their own respective activities. For example, I've put a textbox in content_gallery but it doesn't show up on activity_gallery, but instead the content of the content_main shows up. This is the case for all activities we have. Any resolution to this? Thanks in advance! Already subscribed ur channel ;)
+Of Insanitiesss hey ! Thank you so much.
Also the problem is because you need to create content.xml for each of your activity and show it in the respective activity. You would have connected the content_home.xml for gallery and so on. So link the content_gallery with gallery activity and so on. I hope this has helped you!
All the best
I'm trying to do the navigation drawer in other activity besides the MainActivity. Someone know how?
I recommend you to use fragments If you want navigation in every activity.
Hello friend, I managed to go from the "Home" menu (navigation Drawer) to an activity by adding only 4 lines in "Home"
Then, for each activity, you only need to add 2 more lines in the "else"
Nothing more.
How
if (id == R.id.nav_camera) {
Intent gooo=new Intent(getApplicationContext(),MainActivityMenu1.class);
startActivity(gooo);
} else if (id == R.id.nav_gallery) {
Intent gooo=new Intent(getApplicationContext(),MainActivityMenu2.class);
startActivity(gooo);
}
And so on... ok?
Yep
You have a tutorial for material search ?
I'll make it broo , very soon
I can't wait bro. I have a problem on this. Can you teach me? Thanks for replying by the way.
can you make a video drawer with tab that not using fragments
Carlo Richter I'll surely give a try on that :) please do subscribe and stay tuned ;)
i made it properly.. the only thing i cant figure out is how can i add my own content? ill try to put buttons but its not showing on my app..
Hey, I want a help.
How can I save the apk file which I would upload to my drive or share with my friends so that they can also use it.
I have tried to get it by the "Generate signed apk" but the apk is not installing in any device.
If anyone knows the correct method then please help me out.
+Srijay bro use signedapk method only if you app is ready to be launched on playstore, if you just want to share it to your friends for demo purposes, click on build APK. Whatever APK u get, put that up on your drive.
Also while using signed APK, you get 2 options ,I forgot the name, please do select those 2 options . They will b able to download
Thank you for this video, but I have a problem. In my activity classes the symbol "R" cannot be resolved. I look forward hearing from you !
+Tom B clean and rebuild the app
PVPDS thanks and is it possible that you've forgotten the "text view" in the java datas in the dropbox ?
+Tom B I didn't get you?
PVPDS in the video you added text view in layout/content_** but in the dropbox only content_home is filled with the text view
Which is the last song please
anand,dev,manjeet
Great work but I don't think this is a good solution regarding to Navigation Drawer. Its quite complex and complicated on the long run because if you want to add new item or change some code, you have to do it on the other activities, quite hassle for me. Though, good job on the video.
+Erwin Mark different people have different choices ❤️
Thanks alot and good luck on your project :')
Please do subscribe share and like :3
if i change activity to fragments and tabs, does it work ?
Yess it will
PVPDS thankyou sir
Welcome, please do subscribe and like the video, would help me in return :)
done sir.
Thank you so muchh
I have my seperate activities already designed
How can i connect already made activities with the navigation Drawer
Hello did you figure it out how to solve that if yes can you please help me !!
Hello,first i want to thank you for this video. It helped me so much. But at the end textviews are not shown. It is because all activities should have their own app_bar_activityname.xml files and and at the end of those files you should add
True, please do create app bar activity and content_activity for all the activities and include the content_activity in the app_bar_activity
Bro can you help me to add button or text view in this drawer 😭 please 🙏?I have made code in 2 activities I can't add these in this actity drawer
I'll definitely help you out. I'll make a video on this so please stay tuned
Nice but the content is content_main always
You need to add different content.xml for different activity, that will get the work done :)
All the best
Hey man. I have a problem, I tried your codes but if i click the one of the option in drawer the layout is the same. eg: content_main.xml content_gallery.xml if i choose content_gallery the layout is content_main. how to solve that ? Both them have a activity and content, but no app_bar. Please help :) Thanks for response :)
+Jayson Oliveros bro I have added nav drawer to only the main activity and rest I would prefer a back button rather than having nav drawer
Thank you for reply man. But i solve the problem already :) Thanks man.
+Jayson Oliveros good luck :)
Please do subscribe and like my video
Done subscribe. Do you have some code for google maps?
+Jayson Oliveros I'll make a video on that soon :)
How do I get my navigation bar to appear infront of my activities?
Any link from this code?
+MultiMusingSounds it's there in the description
hy buddy ...when new activity open , it open in a new a page and when i press back button it closes one by one.....????????????????
+DEE JYY bro there are options for that
sir please tell me how to do that , i am new on android studio please help me to do this......plzzzzzzzzz plzzzz sir
+DEE JYY how to do what?
I want to make an app like status,jokes,sms collection etc..
+DEE JYY alrighttttt, do you need any help?
I think that you are crazy, you need to use "break;" when you check the push of a button, so the program did not go in activitu. I was looking for this error for three hours!
Followed every step but when I go to run the app it crashes in the emulator
On clicking a button... I want to go from one activity to another activity... What should i write within INTENT... pls help me.
+Aniruddha Das to go from one activity to another, do the following
Intent intent = new Intent(yourpresentclass.this, theclassyouwanttogo.class)
startActivity(intent)
PVPDS current class means should i write navigation drawer class name or activity class ??
I hope u understand what i want to say...
.
Suppose i hv a navigation drawer named "Main" with a activity "content_main"... So i create a java class for "content_main"..
Now create another navigation drawer named "gallery" with activity "content_gallery"...
I want to go from "content_main" to "content_gallery" by a click of button..
.
I hope u can help me out from.here also, as ur video is really helpful..
+Aniruddha Das no no you don't have to create a content_main, just add the content main in your activity.xml
And also if you need to go from an activity to your main activity, your code should be like.
For example you want to go from gallery to main activity
Intent intent = new Intent ( gallery.this, mainactivity.class)
startActivity (intent)
+Aniruddha Das if you have found my work useful, please do share subscribe and like the video :)
EVery Time i add something in activity main.xml the navigation drawer stops working and stays on a single activity ,Whent i put in content_main,No changes are reflected ,How can i fix that
+Ayush Patel bro whatever u do, don't do it in the activity main.xml, because it's for the navigation bar only. So whatever you do, do it on the content.xml and if nothing's been reflected please check your coding once again
I downloaded your files and tried modifying the contents of those but its not reflecting ,Even when i add in content_gallery or anything else it doesn't reflect in the help,ThankYou for the Help
+Ayush Patel it will reflect in the gallery, and one more thing, please create content for each of your activity.
I tried adding a simple textView in content_gallery and Edit Text but its not working.I didnt modify any other thing in the files you provided and followed the tutorial exactly.Your Help is Appreciated
Do i Have to add something in activity_gallery,apart from what was provided in files so that it reflects the contents of content_gallery?
Hi, Its working but contain not showing
I don't see the content on screens that you made for each activity
+Amir Dautov use navigation drawer instead of empty activity for each activity.
I mean i don't see any textViews that you declared for each activity.
+Amir Dautov wait I shall show you the source code, u might understand
+Amir Dautov wait I shall show you the source code, u might understand
drive.google.com/folderview?id=0B3OcjiZgz7U4c0FMNDRvcTc5cFk
Here you go ^
+Amir Dautov wait I shall show you the source code, u might understand
drive.google.com/folderview?id=0B3OcjiZgz7U4c0FMNDRvcTc5cFk
Here you go ^
Can you Do this video again. The speed has been reduced. As soon as it is taught
In activities how to use textview and many more 🤔
+Monesh Sahu I'll make a video on that
I have a question... Where do I add my content for each activity? When I add it into content_home.xml, it shows up in all my activities... If you answer my question, and it works, I will subscribe to you.
+Rocky Pictures create content.xml for each activity :) and that will do your job. I hope my content and knowledge helped you :')
Have a nice day
I have 5 activities so will each of them be called context.xml?
+Rocky Pictures yeah like if you have Activities named , home, gallery and camera. Create content_home.xml, content_gallery.xml and content_camera.xml
I'll try it out now...
Thank You SOOO Much!!! Subscribed!
Please add button or text in every activity please then I can slove my problem
hi
you just removed the share option from the navigation drawer
make another video and put share in navigation drawer and show me how to share this app
+sai krishna for that I'll do a different video alright? Like share and subscribe. Turn post notification on for getting notified when I post the video
Bro How to add firebase user database
Check my video ,I've shown it :)
y every page is same?
Create different content for each activity. I've connected all the activities with one content.xml
Your source code link doesnt work :(
+kritshmmy is it so? I'll create a new link, buttt this source code link should work perfectly na
+kritshmmy drive.google.com/folderview?id=0B3OcjiZgz7U4c0FMNDRvcTc5cFk try this
unfortunately ,it also says "Not Found Error 404"!! But you answer me so quickly!!!! WOW
textviews are not showing
Can you explain why you guys use activity instead of fragment?
+epueu I would prefer Activities over fragments because I will working with Activities is much easier and also Activities allow more features
As far as I know fragment also support most of all android features. No? Thanks for answer btw.
+epueu it does support, but I prefer Activities more and your welcome
You should have given the same txt file you have used.....it would've been so better......
+Lalit Singh Fauzdar alright, next time :')
Good day. Had the same problem with the text file you used to copy from. That one on "script editor" where you copy the code needed to paste on xml files? Can you please provide a copy of that? Thanks in advance :)
+Of Insanitiesss it's in the description , call the best
+Of Insanitiesss all*
🙃🤕
No offense but this is a terrible way to do this. With this route you are creating X amount of menus and just individually maintaining the navs. There is no point in creating a navigation structure if you cannot maintain it in one place. Also with this route you cannot use any other activity type. Just another nav drawer. At that point just use fragments because the whole point in using activities is to have the ability to use other features and to break up the code.
Solution for anyone who cares: Use one nav drawer tied to main_activity. Then any additional activities have set to extend the main_activity class. This way you maintain the nav in one place that cascades across the app.
Okay, thank u very much i just have one question. How do i fix the checkableBehavior. When i press on anything in the navigation drawer, it doesnt highlight the item unless i press the "back" button on my device. Fx if I'm in home and press slideshow, while i'm in slideshow nothin on the navigation drawer is highlighted. When i press the back button on my device, i go back to home activity but slideshow is then highlighted.. Anyone have a solution? Thank u