Navigation drawer with Activities in android studio( not fragments )

Sdílet
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

Komentáře • 316

  • @kimmanapil09
    @kimmanapil09 Před 6 lety +6

    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.

    • @PVPDS
      @PVPDS  Před 6 lety +2

      +kimcharles manapil thank youuuuu.
      Please do like subscribe and share the video for more :')

  • @abrahamarr
    @abrahamarr Před 5 lety

    Thanks mate, You make me happy!! Keep that great work

  • @dare2bdevil436
    @dare2bdevil436 Před 5 lety

    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

  • @obsdig
    @obsdig Před 6 lety +2

    o, great. thanks budy, thats some thing i was searching for hours...

    • @PVPDS
      @PVPDS  Před 6 lety +1

      +Umer farooq no problem 💚

  • @ariannejanerodriguez676

    BRO. it works. thanks . thumbs up!!!

  • @nayanbawane7619
    @nayanbawane7619 Před 3 lety

    Long life bro ❤❤❤
    No any other video find in youtube
    This topic

  • @salimben4423
    @salimben4423 Před 6 lety +1

    Thanks brother for this great tutorial, it is very helpful.

    • @PVPDS
      @PVPDS  Před 6 lety

      +Salim Ben welcomee :)

  • @bobotboy5384
    @bobotboy5384 Před 6 lety +1

    thank you so much for your help, i understand about you logic

    • @PVPDS
      @PVPDS  Před 6 lety

      Yaaaay, all the best :)
      Please do subscribe, that will help me in return

  • @danielvsetecka2233
    @danielvsetecka2233 Před 7 lety +1

    Thanks :D Helped a lot

    • @PVPDS
      @PVPDS  Před 7 lety

      +daniel všetečka no problem :)
      If you need any video of a particular video, please do comment.

  • @andreasragilwiratno761

    this is great. you hep me solve my problem. thank you very much :*

    • @PVPDS
      @PVPDS  Před 6 lety

      +Andreas Ragil haha welcome. ❤️ Please do subscribe for more

  • @amritanshusemalti3065
    @amritanshusemalti3065 Před 3 lety

    😁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

  • @samuelkymalainen464
    @samuelkymalainen464 Před 4 lety

    Great tutorial! Easy to follow

  • @gauravkumar-bs3pf
    @gauravkumar-bs3pf Před 4 lety

    Thanks a lot . You helped me a lot. it works.

  • @chantalbothe423
    @chantalbothe423 Před 6 lety +1

    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?

  • @kamikazedavid20
    @kamikazedavid20 Před 6 lety +1

    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.

    • @PVPDS
      @PVPDS  Před 6 lety

      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

    • @PVPDS
      @PVPDS  Před 6 lety

      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

    • @kamikazedavid20
      @kamikazedavid20 Před 6 lety

      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:

    • @kamikazedavid20
      @kamikazedavid20 Před 6 lety +1

      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, . . .

    • @youssefthestranger
      @youssefthestranger Před 5 lety

      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

  • @syifamaulizahra7663
    @syifamaulizahra7663 Před 6 lety +2

    thanks, after i confuse with the fragment, this video make a solution for me to use the activity for continue my project. jazakallah khair.

    • @PVPDS
      @PVPDS  Před 6 lety

      +Syifa Maulizahra all the best :)

    • @syifamaulizahra7663
      @syifamaulizahra7663 Před 6 lety

      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.

    • @PVPDS
      @PVPDS  Před 6 lety

      +Syifa Maulizahra create content.xml, mention the content.xml on your activity, whatever you wanna do, do it on content, forsure it will show.

    • @syifamaulizahra7663
      @syifamaulizahra7663 Před 6 lety

      means i can not do it on content_home.xml that content is already there?

    • @PVPDS
      @PVPDS  Před 6 lety

      +Syifa Maulizahra see, u need to create different content.xml for different activity

  • @Sinan-yv2bg
    @Sinan-yv2bg Před 4 lety

    awsome! thank you man

  • @vr3899
    @vr3899 Před 5 lety

    Nice job .. Dude

  • @karankemble5925
    @karankemble5925 Před 6 lety +20

    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

    • @PVPDS
      @PVPDS  Před 6 lety +5

      True, but that is done using fragments. And here I've shown video for adding navigation to all the layouts :)

    • @animatedInsights19
      @animatedInsights19 Před 5 lety +3

      @@PVPDS not only fragments but activities can also be done that way, you way is too wrong and makes the app to heavy

    • @arunkumara3844
      @arunkumara3844 Před 5 lety +1

      @karan kemble, I am searching for that , How to do that

    • @pranitbhoir2167
      @pranitbhoir2167 Před 5 lety

      @@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.

    • @vaishnavambre3683
      @vaishnavambre3683 Před 5 lety

      @@pranitbhoir2167 have you done it...can you mail me the code on vaishnavambre31@gmail.com

  • @shazwanirashid
    @shazwanirashid Před 4 lety +2

    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?

  • @larbiaitdjebara1683
    @larbiaitdjebara1683 Před 3 lety +1

    You saved my life. thank you !!!!

    • @PVPDS
      @PVPDS  Před 3 lety

      Thank you, please subscribe for more!

  • @suvicharhindistory9
    @suvicharhindistory9 Před 6 lety +2

    Sure, it will help.

    • @PVPDS
      @PVPDS  Před 6 lety

      +Rajendra Bro okay thank you :')

  • @DenniS-qr3nn
    @DenniS-qr3nn Před 6 lety

    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

  • @starhawk3466
    @starhawk3466 Před 4 lety

    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.

  • @sergiooseguerarodriguez4321

    Thanks for the tutorial, i have a question where do you have to set the content of each layout for each activity

    • @PVPDS
      @PVPDS  Před 6 lety

      +Sergio Oseguera Rodríguez your welcome.
      Just create content.xml for each of your activity

    • @PVPDS
      @PVPDS  Před 6 lety

      +Sergio Oseguera Rodríguez please do subscribe for more

  • @akit.47
    @akit.47 Před 6 lety +2

    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!!!

    • @PVPDS
      @PVPDS  Před 6 lety

      Anupam Kurapati i didn't get you, please can you tell me again ? What do you want a video on?

    • @akit.47
      @akit.47 Před 6 lety

      PVPDS ///// I want to add youtube channel to the gallery.. That is - viewing youtube channel videos (whole videos in list). Not using webview.

    • @PVPDS
      @PVPDS  Před 6 lety

      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

    • @akit.47
      @akit.47 Před 6 lety

      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!

    • @PVPDS
      @PVPDS  Před 6 lety

      Anupam Kurapati thanks alottt ❤️ appreciate ittt

  • @celeb-news
    @celeb-news Před 4 lety +2

    Hello.
    I tried following the steps and created my own app but when I run the app on the emulator it crashes.

  • @tigershark6834
    @tigershark6834 Před 6 lety

    hello sir, i couldn't find the R.Id.nav_view!! where you created this !?

  • @sheetalpatil6844
    @sheetalpatil6844 Před 5 lety

    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 .

  • @techupdatesinhindi4208

    great video

  • @fero___3005
    @fero___3005 Před 5 lety

    sir it is for rooted or non rooted device plz reply...??

  • @user-jz4ft8lh5i
    @user-jz4ft8lh5i Před 6 lety

    thanks, helped a lot

    • @PVPDS
      @PVPDS  Před 6 lety

      +廖信傑 welcome , please do subscribe like and share

  • @amritanshusemalti3065
    @amritanshusemalti3065 Před 3 lety

    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

  • @saracastillo4495
    @saracastillo4495 Před 5 lety +1

    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 :(

    • @PVPDS
      @PVPDS  Před 5 lety

      See basically you need to create content.xml for each of the activity

    • @PVPDS
      @PVPDS  Před 5 lety

      Once you don't creating that, connect your activity.xml with content.xml respectively. And you'll get a content for each activity

    • @chitrarthsingh8483
      @chitrarthsingh8483 Před 5 lety

      How to do that?

  • @sajadbaharum4962
    @sajadbaharum4962 Před 5 lety

    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?

  • @shriauchare5288
    @shriauchare5288 Před 5 lety

    thank you so much

  • @SJ-kt8ed
    @SJ-kt8ed Před 4 lety

    Thanks for this tutorial

  • @stevenshowler9468
    @stevenshowler9468 Před 6 lety

    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?

    • @PVPDS
      @PVPDS  Před 6 lety

      +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 :)

    • @stevenshowler9468
      @stevenshowler9468 Před 6 lety

      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.

    • @PVPDS
      @PVPDS  Před 6 lety

      +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

    • @stevenshowler9468
      @stevenshowler9468 Před 6 lety

      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 :\

    • @PVPDS
      @PVPDS  Před 6 lety

      +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

  • @choochyauhoong3
    @choochyauhoong3 Před 6 lety +1

    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?

    • @PVPDS
      @PVPDS  Před 6 lety

      +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

    • @choochyauhoong3
      @choochyauhoong3 Před 6 lety +1

      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

    • @fr3akoutp161
      @fr3akoutp161 Před 6 lety

      Yh me too

  • @JuniorTrajano2000
    @JuniorTrajano2000 Před rokem

    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.

  • @cherlyde9634
    @cherlyde9634 Před 4 lety +1

    I want to create interfaces in all activity how will i do it please help me

  • @Haleymrn
    @Haleymrn Před 6 lety

    thanks for this.

    • @PVPDS
      @PVPDS  Před 6 lety

      +Haley Morn most welcome :') please do subscribe share and like :)

  • @juansebastiandazaguevara1760

    Thanks!!!!!

    • @PVPDS
      @PVPDS  Před 6 lety

      +Juan Sebastian Daza Guevara welcomeeee

  • @ian9453
    @ian9453 Před 6 lety

    thanks a lot bro

    • @PVPDS
      @PVPDS  Před 6 lety

      +Ianjay Mamansag welcome :') please do subscribe like and share :)

  • @fearless-trader
    @fearless-trader Před 6 lety

    Nice tutorial... please provide full android studio project...

    • @PVPDS
      @PVPDS  Před 6 lety

      +Vinod Patil what full android studio project? I didn't get you

    • @fearless-trader
      @fearless-trader Před 6 lety

      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....

    • @PVPDS
      @PVPDS  Před 6 lety

      +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

  • @vishwajitnaik7952
    @vishwajitnaik7952 Před 4 lety

    Android ka konsa version install hai apka

  • @education_beauty
    @education_beauty Před 3 lety

    Sir how can we get numbers from sqlite and store them in string variables

  • @nizzh488
    @nizzh488 Před 6 lety

    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

    • @PVPDS
      @PVPDS  Před 6 lety

      +nurul izzah yes, you need to create a new content.xml for each of your activity

    • @nizzh488
      @nizzh488 Před 6 lety

      then how to connect to the activity? Sorry I'm did not know so much about this stuff. Thank you for replying btw.

    • @PVPDS
      @PVPDS  Před 6 lety

      +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

    • @nizzh488
      @nizzh488 Před 6 lety

      It's working! Thank you so much!

  • @wannassirahma
    @wannassirahma Před 6 lety +1

    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

    • @PVPDS
      @PVPDS  Před 6 lety +1

      Bro I don't know kotlin language, sorry :/

    • @PVPDS
      @PVPDS  Před 6 lety +1

      But in future I'll surely make :)

    • @wannassirahma
      @wannassirahma Před 6 lety +1

      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

    • @euginekandie9636
      @euginekandie9636 Před 6 lety +1

      hehe

    • @PVPDS
      @PVPDS  Před 6 lety

      Oops sorry :P

  • @miguelunch4
    @miguelunch4 Před 6 lety

    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!!

  • @PrinceKumar-qm9ic
    @PrinceKumar-qm9ic Před 5 lety

    Sir I want navigation drawer and main page pr list view kaise link kre

  • @amritanshusemalti3065
    @amritanshusemalti3065 Před 3 lety

    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

  • @bijoyabanik2796
    @bijoyabanik2796 Před 6 lety

    So helpful

    • @PVPDS
      @PVPDS  Před 6 lety

      +Bijoya Banik thank you

  • @omacu5185
    @omacu5185 Před 5 lety +2

    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!!

  • @genevadaugdaug8717
    @genevadaugdaug8717 Před 6 lety

    Thanks for this sir. It surely helps. It's just that my design/content layouts are not appearing on the menu. Any idea?

    • @PVPDS
      @PVPDS  Před 6 lety

      +Geneva Daugdaug you need to add your name of the content in the menu.xml

    • @genevadaugdaug8717
      @genevadaugdaug8717 Před 6 lety

      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 :)

    • @PVPDS
      @PVPDS  Před 6 lety

      +Geneva Daugdaug no problem, you found it helpful please do like subscribe and share for more such tutorials

    • @genevadaugdaug8717
      @genevadaugdaug8717 Před 6 lety

      sure will do (y)

  • @sarahsyafitri-xiipplg2

    can i get access for the drive folder?
    i already send access request, thank you

  • @shamaangel5629
    @shamaangel5629 Před 6 lety

    how to add content in activity it not showing textview which u added in linear layout when u executed

  • @mohammedshakeelmirza1969
    @mohammedshakeelmirza1969 Před 6 lety +1

    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

    • @PVPDS
      @PVPDS  Před 6 lety

      Crypto Coins please add content.xml for tools and content.xml for slideshow.

    • @mohammedshakeelmirza1969
      @mohammedshakeelmirza1969 Před 6 lety +1

      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

    • @PVPDS
      @PVPDS  Před 6 lety

      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

    • @mohammedshakeelmirza1969
      @mohammedshakeelmirza1969 Před 6 lety +1

      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

    • @PVPDS
      @PVPDS  Před 6 lety

      Crypto Coins okayy, I'll look at it and send you :)

  • @acheerra
    @acheerra Před 6 lety

    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?

    • @PVPDS
      @PVPDS  Před 6 lety

      +alim ahmad u can't remove it bro. It's the most important code to show your app bar home in your activity home

    • @acheerra
      @acheerra Před 6 lety

      Oh i'm sorry, I mean @layout/content_home. As you show in min 5.15

    • @PVPDS
      @PVPDS  Před 6 lety

      +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

  • @harikrishnak3752
    @harikrishnak3752 Před 6 lety

    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

  • @erikglory08
    @erikglory08 Před 6 lety

    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

    • @PVPDS
      @PVPDS  Před 6 lety

      +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

    • @erikglory08
      @erikglory08 Před 6 lety +1

      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 :)

    • @PVPDS
      @PVPDS  Před 6 lety

      +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

    • @erikglory08
      @erikglory08 Před 6 lety

      Thank you for your respond, but is it on paid or free? Sorry for disturbing on your exams

    • @PVPDS
      @PVPDS  Před 6 lety

      +Eduardo Richard Eko what? Paid or free?
      I didn't get you

  • @YaseenKhan-kq1hh
    @YaseenKhan-kq1hh Před 6 lety

    thanks helped

    • @PVPDS
      @PVPDS  Před 6 lety

      Please do subscribe , will help me back in return

  • @ofinsanitiesss688
    @ofinsanitiesss688 Před 6 lety

    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 ;)

    • @PVPDS
      @PVPDS  Před 6 lety

      +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

  • @PlayStationJuegos
    @PlayStationJuegos Před 5 lety +4

    I'm trying to do the navigation drawer in other activity besides the MainActivity. Someone know how?

    • @PVPDS
      @PVPDS  Před 5 lety

      I recommend you to use fragments If you want navigation in every activity.

    • @omacu5185
      @omacu5185 Před 5 lety +1

      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.

    • @sajadwani7564
      @sajadwani7564 Před 5 lety +1

      How

    • @omacu5185
      @omacu5185 Před 5 lety +2

      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?

    • @PVPDS
      @PVPDS  Před 5 lety +1

      Yep

  • @jaysonoliveros1820
    @jaysonoliveros1820 Před 6 lety +1

    You have a tutorial for material search ?

    • @PVPDS
      @PVPDS  Před 6 lety +1

      I'll make it broo , very soon

    • @jaysonoliveros1820
      @jaysonoliveros1820 Před 6 lety

      I can't wait bro. I have a problem on this. Can you teach me? Thanks for replying by the way.

  • @carlorichter965
    @carlorichter965 Před 6 lety +1

    can you make a video drawer with tab that not using fragments

    • @PVPDS
      @PVPDS  Před 6 lety

      Carlo Richter I'll surely give a try on that :) please do subscribe and stay tuned ;)

  • @00hambog
    @00hambog Před 6 lety

    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..

  • @srijeetsaha6011
    @srijeetsaha6011 Před 6 lety

    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.

    • @PVPDS
      @PVPDS  Před 6 lety

      +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

  • @tomb759
    @tomb759 Před 6 lety

    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 !

    • @PVPDS
      @PVPDS  Před 6 lety

      +Tom B clean and rebuild the app

    • @tomb759
      @tomb759 Před 6 lety

      PVPDS thanks and is it possible that you've forgotten the "text view" in the java datas in the dropbox ?

    • @PVPDS
      @PVPDS  Před 6 lety

      +Tom B I didn't get you?

    • @tomb759
      @tomb759 Před 6 lety

      PVPDS in the video you added text view in layout/content_** but in the dropbox only content_home is filled with the text view

  • @sagarahlawat502
    @sagarahlawat502 Před 6 lety

    Which is the last song please

  • @Just4techIn
    @Just4techIn Před 6 lety +1

    anand,dev,manjeet

  • @ErwinMarkPH
    @ErwinMarkPH Před 6 lety

    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.

    • @PVPDS
      @PVPDS  Před 6 lety

      +Erwin Mark different people have different choices ❤️
      Thanks alot and good luck on your project :')
      Please do subscribe share and like :3

  • @emmanuellamanda
    @emmanuellamanda Před 6 lety +1

    if i change activity to fragments and tabs, does it work ?

  • @akshaybengani
    @akshaybengani Před 6 lety

    I have my seperate activities already designed
    How can i connect already made activities with the navigation Drawer

    • @nuirby
      @nuirby Před 5 lety

      Hello did you figure it out how to solve that if yes can you please help me !!

  • @basakabakmasud1664
    @basakabakmasud1664 Před 5 lety

    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

    • @PVPDS
      @PVPDS  Před 5 lety

      True, please do create app bar activity and content_activity for all the activities and include the content_activity in the app_bar_activity

    • @amritanshusemalti3065
      @amritanshusemalti3065 Před 3 lety

      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

    • @PVPDS
      @PVPDS  Před 3 lety

      I'll definitely help you out. I'll make a video on this so please stay tuned

  • @fr3akoutp161
    @fr3akoutp161 Před 6 lety +2

    Nice but the content is content_main always

    • @PVPDS
      @PVPDS  Před 6 lety

      You need to add different content.xml for different activity, that will get the work done :)
      All the best

  • @jaysonoliveros1820
    @jaysonoliveros1820 Před 6 lety

    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 :)

    • @PVPDS
      @PVPDS  Před 6 lety

      +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

    • @jaysonoliveros1820
      @jaysonoliveros1820 Před 6 lety

      Thank you for reply man. But i solve the problem already :) Thanks man.

    • @PVPDS
      @PVPDS  Před 6 lety

      +Jayson Oliveros good luck :)
      Please do subscribe and like my video

    • @jaysonoliveros1820
      @jaysonoliveros1820 Před 6 lety

      Done subscribe. Do you have some code for google maps?

    • @PVPDS
      @PVPDS  Před 6 lety

      +Jayson Oliveros I'll make a video on that soon :)

  • @C4C4NDY
    @C4C4NDY Před 5 lety

    How do I get my navigation bar to appear infront of my activities?

  • @multimusingsounds5505
    @multimusingsounds5505 Před 6 lety +1

    Any link from this code?

    • @PVPDS
      @PVPDS  Před 6 lety

      +MultiMusingSounds it's there in the description

  • @wangcheats9682
    @wangcheats9682 Před 6 lety

    hy buddy ...when new activity open , it open in a new a page and when i press back button it closes one by one.....????????????????

    • @PVPDS
      @PVPDS  Před 6 lety

      +DEE JYY bro there are options for that

    • @wangcheats9682
      @wangcheats9682 Před 6 lety

      sir please tell me how to do that , i am new on android studio please help me to do this......plzzzzzzzzz plzzzz sir

    • @PVPDS
      @PVPDS  Před 6 lety

      +DEE JYY how to do what?

    • @wangcheats9682
      @wangcheats9682 Před 6 lety

      I want to make an app like status,jokes,sms collection etc..

    • @PVPDS
      @PVPDS  Před 6 lety

      +DEE JYY alrighttttt, do you need any help?

  • @ihorcherep6772
    @ihorcherep6772 Před 5 lety

    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!

  • @LawM95
    @LawM95 Před 6 lety

    Followed every step but when I go to run the app it crashes in the emulator

  • @ritishaworld
    @ritishaworld Před 6 lety

    On clicking a button... I want to go from one activity to another activity... What should i write within INTENT... pls help me.

    • @PVPDS
      @PVPDS  Před 6 lety

      +Aniruddha Das to go from one activity to another, do the following
      Intent intent = new Intent(yourpresentclass.this, theclassyouwanttogo.class)
      startActivity(intent)

    • @ritishaworld
      @ritishaworld Před 6 lety +1

      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..

    • @PVPDS
      @PVPDS  Před 6 lety

      +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)

    • @PVPDS
      @PVPDS  Před 6 lety

      +Aniruddha Das if you have found my work useful, please do share subscribe and like the video :)

  • @ayushpatel5033
    @ayushpatel5033 Před 6 lety

    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

    • @PVPDS
      @PVPDS  Před 6 lety

      +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

    • @ayushpatel5033
      @ayushpatel5033 Před 6 lety

      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

    • @PVPDS
      @PVPDS  Před 6 lety

      +Ayush Patel it will reflect in the gallery, and one more thing, please create content for each of your activity.

    • @ayushpatel5033
      @ayushpatel5033 Před 6 lety

      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

    • @ayushpatel5033
      @ayushpatel5033 Před 6 lety

      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?

  • @nishantchoudhary7883
    @nishantchoudhary7883 Před 6 lety

    Hi, Its working but contain not showing

  • @Menris17
    @Menris17 Před 7 lety +4

    I don't see the content on screens that you made for each activity

    • @PVPDS
      @PVPDS  Před 7 lety

      +Amir Dautov use navigation drawer instead of empty activity for each activity.

    • @Menris17
      @Menris17 Před 7 lety +1

      I mean i don't see any textViews that you declared for each activity.

    • @PVPDS
      @PVPDS  Před 7 lety

      +Amir Dautov wait I shall show you the source code, u might understand

    • @PVPDS
      @PVPDS  Před 7 lety

      +Amir Dautov wait I shall show you the source code, u might understand
      drive.google.com/folderview?id=0B3OcjiZgz7U4c0FMNDRvcTc5cFk
      Here you go ^

    • @PVPDS
      @PVPDS  Před 7 lety

      +Amir Dautov wait I shall show you the source code, u might understand
      drive.google.com/folderview?id=0B3OcjiZgz7U4c0FMNDRvcTc5cFk
      Here you go ^

  • @Gedlix
    @Gedlix Před 3 lety

    Can you Do this video again. The speed has been reduced. As soon as it is taught

  • @moneshsahu9524
    @moneshsahu9524 Před 6 lety

    In activities how to use textview and many more 🤔

    • @PVPDS
      @PVPDS  Před 6 lety

      +Monesh Sahu I'll make a video on that

  • @RockyPictures
    @RockyPictures Před 6 lety +1

    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.

    • @PVPDS
      @PVPDS  Před 6 lety

      +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

    • @RockyPictures
      @RockyPictures Před 6 lety

      I have 5 activities so will each of them be called context.xml?

    • @PVPDS
      @PVPDS  Před 6 lety

      +Rocky Pictures yeah like if you have Activities named , home, gallery and camera. Create content_home.xml, content_gallery.xml and content_camera.xml

    • @RockyPictures
      @RockyPictures Před 6 lety

      I'll try it out now...

    • @RockyPictures
      @RockyPictures Před 6 lety

      Thank You SOOO Much!!! Subscribed!

  • @amritanshusemalti3065
    @amritanshusemalti3065 Před 3 lety

    Please add button or text in every activity please then I can slove my problem

  • @saikrishna-nx3rk
    @saikrishna-nx3rk Před 6 lety

    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

    • @PVPDS
      @PVPDS  Před 6 lety

      +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

  • @MAXXGSD
    @MAXXGSD Před 5 lety

    Bro How to add firebase user database

    • @PVPDS
      @PVPDS  Před 5 lety

      Check my video ,I've shown it :)

  • @smarchz
    @smarchz Před 6 lety +2

    y every page is same?

    • @PVPDS
      @PVPDS  Před 6 lety

      Create different content for each activity. I've connected all the activities with one content.xml

  • @kritshmmy
    @kritshmmy Před 6 lety +1

    Your source code link doesnt work :(

    • @PVPDS
      @PVPDS  Před 6 lety

      +kritshmmy is it so? I'll create a new link, buttt this source code link should work perfectly na

    • @PVPDS
      @PVPDS  Před 6 lety +1

      +kritshmmy drive.google.com/folderview?id=0B3OcjiZgz7U4c0FMNDRvcTc5cFk try this

    • @kritshmmy
      @kritshmmy Před 6 lety

      unfortunately ,it also says "Not Found Error 404"!! But you answer me so quickly!!!! WOW

  • @SJ-kt8ed
    @SJ-kt8ed Před 4 lety

    textviews are not showing

  • @epueu2
    @epueu2 Před 6 lety

    Can you explain why you guys use activity instead of fragment?

    • @PVPDS
      @PVPDS  Před 6 lety

      +epueu I would prefer Activities over fragments because I will working with Activities is much easier and also Activities allow more features

    • @epueu2
      @epueu2 Před 6 lety

      As far as I know fragment also support most of all android features. No? Thanks for answer btw.

    • @PVPDS
      @PVPDS  Před 6 lety +1

      +epueu it does support, but I prefer Activities more and your welcome

  • @lalit.1
    @lalit.1 Před 6 lety

    You should have given the same txt file you have used.....it would've been so better......

    • @PVPDS
      @PVPDS  Před 6 lety

      +Lalit Singh Fauzdar alright, next time :')

    • @ofinsanitiesss688
      @ofinsanitiesss688 Před 6 lety

      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 :)

    • @PVPDS
      @PVPDS  Před 6 lety

      +Of Insanitiesss it's in the description , call the best

    • @PVPDS
      @PVPDS  Před 6 lety

      +Of Insanitiesss all*

  • @logoteam4998
    @logoteam4998 Před 5 lety

    🙃🤕

  • @tylerewy113
    @tylerewy113 Před 5 lety

    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.

  • @youssefthestranger
    @youssefthestranger Před 5 lety

    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