Bottom navigation bar | Android studio | with Fragments and activity

Поделиться
HTML-код
  • Опубликовано: 22 сен 2020
  • Hello Everyone In this video i design the navigation bar with fragments and i also show you how to move from fragment to activity
    I hope you like this video
    -----------------------------------------------------------------------
    Disclaimer:
    This video is for educational purpose only.
    Copyright Disclaimer Under Section 107 of the Copyright Act 1976, allowance is made for "FAIR USE" for purposes such as criticism, comment, news reporting, teaching, scholarship, and research.
    "FAIR USE" is a use permitted by Copyright Statute that might otherwise be infringing.
    Non-profit, Educational or Personal use tips the balance in favour of Fair Use.
    ------------------------------------------------------------------------
    If you think that I have used your property in my video by mistake then I am ready to give you whole credit.
    You can contact me on my Email or Instagram Id.
    Email Is :- brijeshtechprojects@gmail.com
    Instagram Is :- / tech__projects
    ------------------------------------------------------------------------
    Visit My Channel Playlists for amazing Content
    Click Here to Check All Android Projects:- • Android Projects
    Click Here to Check All Java GUI Projects:- • JAVA Projects
    Click Here to Check All Basic Programming Information:- • Basic Programming Info...
    Click Here to Check Git and GitHub Series:- • Git and GitHub Series
    Click Here to Check All Web Development Projects:- • Html , css , JavaScript
    Click Here to Check All Python Projects:- • Python
    Click Here to Check All C Language Projects:- • C Language Projects
    Click Here to Check Quiz App In Android Studio:- • Quiz App in Android St...
    Click Here to Check Guess the Output Series In C Language:- • Guess the output | Pr...
    Click Here to Check Tips And Tricks:- • Playlist
    Click Here to Check Weather App in Android Studio:- • Weather App in Android...
    -----------------------------------------------------------------------
    Follow My Instagram Page For Best Coding Content Daily :- / tech__projects
    Visit My GitHub Profile for All Projects Source Codes:- github.com/Brijesh-kumar-sharma
    ------------------------------------------------------------------------
    Thanks For Watching
    If you have Any Query Comment Down Below
    Thank You
    Tech Projects

Комментарии • 72

  • @user-iv4uf3vx8t
    @user-iv4uf3vx8t Год назад

    Easy to understand with grate explaining

  • @Meikemuffin
    @Meikemuffin 3 года назад +1

    Thank you!! This helped so much!!! You are very good at explaining!!

  • @kennethpacatang1177
    @kennethpacatang1177 Год назад

    I love your tutorials, I hope you can make tutorial how to display user information in account fragment in bottom navigation

  • @isweat5571
    @isweat5571 3 года назад

    Everything works, thank you!

  • @mohamedmire8646
    @mohamedmire8646 Год назад

    Hats to you off sir.

  • @shyamsharma8302
    @shyamsharma8302 3 года назад +1

    Such a great explanation

  • @abosolutions1967
    @abosolutions1967 3 года назад

    Nice video with a lot of useful details.
    I have one question if I have a header and I have a banner ad in the header how can I disable it or remove it from let's say for example "fragment user" only but show the header banner ad on the other fragments?

    • @TechProjects
      @TechProjects  3 года назад

      I can't say anything in this but you can set visibility of header gone if you switch between fragments or I have to reasech on it then I will let you know

  • @mohitnegi2255
    @mohitnegi2255 3 года назад +1

    Clean code 👏👏

    • @TechProjects
      @TechProjects  3 года назад +1

      Thanks brother please subscribe

  • @ahmedcruze3532
    @ahmedcruze3532 3 года назад

    Thank you so much!

  • @haziqfirdaus4956
    @haziqfirdaus4956 3 года назад +1

    Very good video with excellent explanation. In less than an hour, you taught me a lot about this IDE. Thank you!
    PS: Please take a deep breath and slow down 😂

    • @TechProjects
      @TechProjects  3 года назад

      Thanks brother for your amazing suggestions 🤗

  • @centipedebeats8689
    @centipedebeats8689 3 года назад

    Sir can you plz tell me,
    only the difference is about intent and view or there are some more indifference in between them?
    As in activity we write all the code in ONCREATE so we should write all the code in OnCreateView for fragment...? (Custom methods excluded) ......
    Plz relpy to this sir am finding on whole internet but cant find answer for this

  • @wahid686
    @wahid686 3 года назад

    thanks bro

  • @67Diadem
    @67Diadem 3 года назад

    Can you please tell me how to change the button icons colour? Like here your icon colour is purple when clicked and your background is white.. how to achieve this when you click so that colour if icon will change to different... But the background colour should not change..

  • @handsomeman5098
    @handsomeman5098 3 года назад

    it works... thank you. Btw you speak too fast. but it's okay... time is money right... :D

    • @TechProjects
      @TechProjects  3 года назад

      Thanks brother keep supporting
      I will improve myself

  • @mathmatics9999
    @mathmatics9999 2 года назад

    A.o.A sir jo activity aap ny bnai hai camera fragment sy ab is activity sy wapis camera fragment pr kasy jain gy..kindly aim lecture is pr bhi.

  • @arunkumar-vk6ld
    @arunkumar-vk6ld 3 года назад

    Amazing man

  • @robertocampos8463
    @robertocampos8463 2 года назад

    Hi ! Tks for your video. Please. I have a questio. I created a project with Botton design template, which created 1 main activity class and 3 fragments classes (Home, Dashboard and notification) and theirs fragments layouts. Default by Android Studio. In home layout, I created a Image and a button. Where can I make my coding regarding to this button ? Shoul be in main activity java or homefragment java ? Where should i place the variables ? should they be public or private ? Do you have an example of this kind a project or drawner project where you code any activity button inside home page ? Thank you !!!

  • @trvijay6812
    @trvijay6812 3 года назад

    i am getting an error in main activity - BottomNavigationView bottomNavigationView=findViewById(R.id.bottom_nav );
bottomNavigationView.setOnNavigationItemReselectedListener(navigationItemSelectedListener);
getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container,new HomeFragment()).commit();
    pl suggest to clear this error

  • @alishidqiealfaruqi873
    @alishidqiealfaruqi873 3 года назад

    Why there is no suggestion about setOnNavigationItemSelectedListener(navigationItemSelectedListener) on my Android Studio? Can you help me?

    • @TechProjects
      @TechProjects  3 года назад

      Maybe you try to use that function where it is not possible
      So check out your code again

  • @joseemallah4492
    @joseemallah4492 2 года назад +1

    Hello there! In this video you navigate from a fragment into an activity. Any idea on how to do the opposite way from activity into fragment?
    So if I have a login screen in a separate activity before these and I want to go from it into the home screen.

  • @centipedebeats8689
    @centipedebeats8689 3 года назад

    Sir wo tool bar wrap content karnepar dikh nahi raha toh maine use 55dp height dedi... ab dikh raha hai nav_ bar par icon preview nahi horahe hai.... maine app:menu bhi diya phir bhi

  • @Arun_rajak2786
    @Arun_rajak2786 3 года назад

    Passing 'null' argument to parameter annotated as @NotNull warning show kr rha hai or run time pr exception generate kr rha hai
    SelectedFragment main
    Plz solve my error

  • @galataworld558
    @galataworld558 3 года назад

    Bro . Can we add sub menu in button navigation in Android studio

    • @TechProjects
      @TechProjects  3 года назад

      Please clarify what you need exactly

  • @hemagupta2319
    @hemagupta2319 3 года назад

    When I use image chooser in fragment, after choosing image and uploading in firebase, it goes to first fragment screen? Please help

    • @TechProjects
      @TechProjects  3 года назад

      Maybe you take a image view inside a fragment

    • @hemagupta2319
      @hemagupta2319 3 года назад

      Yes, I want user to choose image from the fragment and upload it in the firebase. But, after uploading the screen goes back to the first fragment. I tried every solution. Please hep

    • @TechProjects
      @TechProjects  3 года назад

      After uploading end the lifecycle of fragments

    • @hemagupta2319
      @hemagupta2319 3 года назад

      How to do it can you give me an example.? Do I have to end the lifecycle in fragment. Where image is uploading? Give me an example

    • @TechProjects
      @TechProjects  3 года назад

      Just after the successfully image upload
      You have to finish the lifecycle of that fragment

  • @tanmaysinghal8370
    @tanmaysinghal8370 3 года назад

    bro os it possible to make this change by swiping?

  • @devasheshtyagi3475
    @devasheshtyagi3475 3 года назад

    Cool

  • @alirazakhuhro3738
    @alirazakhuhro3738 3 года назад

    Dear Kindly make a full video.
    In which bottom navigation and drawer navigation are applicable.

    • @TechProjects
      @TechProjects  3 года назад

      It is not a hard task check out my navigation drawer video then merge the code

    • @alirazakhuhro3738
      @alirazakhuhro3738 3 года назад

      @@TechProjects
      I have watched your video but code is not work۔ so kindly guide me۔

    • @TechProjects
      @TechProjects  3 года назад

      Please check the code

    • @alirazakhuhro3738
      @alirazakhuhro3738 3 года назад

      Please contact me۔ this is my WhatsApp number
      03430376713

    • @alirazakhuhro3738
      @alirazakhuhro3738 3 года назад

      @@TechProjects
      I've checked the code. But I don't understand the error.

  • @azharqureshi5001
    @azharqureshi5001 3 года назад

    sir your video is very informative I add fab button in home fragment bit is not working .same your code:fab = view.findViewById(R.id.fab);
    fab.setOnClickListener(new View.OnClickListener() {
    @Override
    public void onClick(View v) {
    Intent AskQuestionIntent = new Intent(getActivity(), AskQuestion.class);
    startActivity(AskQuestionIntent);
    }
    });
    return view;

  • @mohitnegi2255
    @mohitnegi2255 3 года назад

    I have follw the same steps but my bottom navigation is not showing menu in it.
    Please help me to slove this issue

    • @TechProjects
      @TechProjects  3 года назад +1

      Recheck your code again
      Because it is not possible if you write same code and it won't work 🙁

    • @mohitnegi2255
      @mohitnegi2255 3 года назад

      I think it is somehow the problem of version, i try it in seperate project may be it work

    • @TechProjects
      @TechProjects  3 года назад +1

      Maybe it can but I shoot this video very long time ago so I don't remember the exactly code
      But you can dm your problem on Instagram
      Id is tech__projects

  • @mr.strength1221
    @mr.strength1221 3 года назад

    Bhai jab bottom navigation me.. Set Itme listener lagta hu to public boolean ki jagah Public void aaraa h So now what i do in this case🙄🙄🙄

    • @TechProjects
      @TechProjects  3 года назад

      Khud change krdo or Boolean likhdo

    • @mr.strength1221
      @mr.strength1221 3 года назад

      @@TechProjects bhai mene kiya tha error Aa gya error pe click kiya to or kuch aayega bhai me tera beginner fatt ke haath me Aa gyi.. Ki kya h ye.. Bhai agr.. Or koi solution ho to btana.. Sir by the way thnx for reply 😊😊😊

    • @TechProjects
      @TechProjects  3 года назад +1

      Neeche bhi change krna hota h otherwise video dubara dekho ni to kuch miss kiya hoga

    • @mr.strength1221
      @mr.strength1221 3 года назад

      @@TechProjects neeche kahan,, mtlb Sir.

    • @TechProjects
      @TechProjects  3 года назад

      Jo return type hota h vo bhi change krna hota

  • @mahadevmushrooms
    @mahadevmushrooms Год назад

    setOnNavigationItemSelectedListener is deprecated make a new video