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
Easy to understand with grate explaining
Thank you!! This helped so much!!! You are very good at explaining!!
Thanks keep supporting
I love your tutorials, I hope you can make tutorial how to display user information in account fragment in bottom navigation
Everything works, thank you!
Hats to you off sir.
Such a great explanation
Thanks brother keep supporting
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?
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
Clean code 👏👏
Thanks brother please subscribe
Thank you so much!
You're welcome!
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 😂
Thanks brother for your amazing suggestions 🤗
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
thanks bro
You're welcome!
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..
it works... thank you. Btw you speak too fast. but it's okay... time is money right... :D
Thanks brother keep supporting
I will improve myself
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.
Amazing man
Thanks for supporting
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 !!!
Use home fragment
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
Why there is no suggestion about setOnNavigationItemSelectedListener(navigationItemSelectedListener) on my Android Studio? Can you help me?
Maybe you try to use that function where it is not possible
So check out your code again
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.
Dm me on instagram
I also facing the same issue
@@TechProjects how to go from login screen to bottom navigation
Same issue please ajj hi koi solution dain please...
@@TechProjects main Instagram use nae krti..
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
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
Bro . Can we add sub menu in button navigation in Android studio
Please clarify what you need exactly
When I use image chooser in fragment, after choosing image and uploading in firebase, it goes to first fragment screen? Please help
Maybe you take a image view inside a fragment
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
After uploading end the lifecycle of fragments
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
Just after the successfully image upload
You have to finish the lifecycle of that fragment
bro os it possible to make this change by swiping?
Yes
Cool
Thanks keep supporting
Dear Kindly make a full video.
In which bottom navigation and drawer navigation are applicable.
It is not a hard task check out my navigation drawer video then merge the code
@@TechProjects
I have watched your video but code is not work۔ so kindly guide me۔
Please check the code
Please contact me۔ this is my WhatsApp number
03430376713
@@TechProjects
I've checked the code. But I don't understand the error.
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;
I have follw the same steps but my bottom navigation is not showing menu in it.
Please help me to slove this issue
Recheck your code again
Because it is not possible if you write same code and it won't work 🙁
I think it is somehow the problem of version, i try it in seperate project may be it work
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
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🙄🙄🙄
Khud change krdo or Boolean likhdo
@@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 😊😊😊
Neeche bhi change krna hota h otherwise video dubara dekho ni to kuch miss kiya hoga
@@TechProjects neeche kahan,, mtlb Sir.
Jo return type hota h vo bhi change krna hota
setOnNavigationItemSelectedListener is deprecated make a new video