In layman's definition fragment may be the sub activity inside the main activity right?? where each sub activity works separately without depending on other however data can be passed on from one fragment to another
One doubt sir. Onclicking frag1 button it replaces framelayout that ok how on clicking frag2 button frag2 getting replaced by frag1 but in code u shown framelayout is getting replaced by frag2
Brother, thank you for the tutorial. Is it possible when open the activity, then shows fragments 1 instead of white blank page. What code do i need to add to make it possible ?
Sir, how to start my app directly from any Fragment,,bcz here when we click one btn then only only first fragment opens,, but in "Flipkart" they opens the "Shop" fragment directly without opening any activity,,,plz reply...
@@_foxandroid Its not happening sir, when I am doing this app is keeps stopping in my phone...please explain it sir how can I do it correctly? waiting for ur reply...
Hello brother i need help I have a home screen in that i have to display some person info with recyclerview In homescreen i created fab which is Add button so it will person details input activity. So how send that data like Actvity B to Activity A I tried with interface to transfer data object and override the method in Activity A and calling from Activity B It showing an exception calling a null a method on null reference
Bhai m beginner aur mujhe abhi fragment use nhi krna h but mere pc m phle se hi first fragment main activity second fragment krke project wale section m aa rha h aur Mera emulator bhi nhi chl rha pls help gradle failed bta rha h
Hello brother, You referred me here from your other video bother. Your videos are great and you explain things in detail. I have download sample source code and I am playing around with it. It would really be great if on the sample source code you could implement banner ad on the header section, and only make the banner visible in fragment 1 and make it disabled in fragment 2
You can support the channel --> www.buymeacoffee.com/foxandroid
Recently started learning android studio and this was very helpful and informative. Thank you sir❤
You make it so easy thanks man
Nice easy explanation. Helpful for basic implementations
I used Frame Layout instead of Relative Layout in fragemnt that works better to present the fragment.
Good 1.
Excellent tutorial presentation. Thank you for posting it!
I just subscribed, finally learned fragments!
It is fantastic video. Only suggestion is please change background to white so it will be clear.
Works grear...ps: anybody in a rush. Take time to start the entire playList😉
Simply superb explanation sir
It's so easy and works so well... thanks a lot for this :)
Glad it helped
what if the button is inside the fragment itself? and if I click it, it will send me to another fragment but still same activity
Btw can you recommend some books that point out how the methods are used for example the getSupportFragmentManager and others in more detail
Read the documentation...no specific book
Explications très claires merci !
Excellent
whats the difference between relative and frame layout ???
In layman's definition fragment may be the sub activity inside the main activity right?? where each sub activity works separately without depending on other however data can be passed on from one fragment to another
Good tutorial and clean code. Thumbs up for u!
Thank You So Much Bruh!! You Helped Me Alot...😊❤
One doubt sir. Onclicking frag1 button it replaces framelayout that ok how on clicking frag2 button frag2 getting replaced by frag1 but in code u shown framelayout is getting replaced by frag2
Worked perfectly for me and very informative. Thanks for the wonderful video!
Hi
If you do not turn on the automatic english subtitle, please make an own english subtitle for the videos.
Nice explanation. Thanks a lot for this ❤
wonderful tutorial, thank you so much!
Brother, thank you for the tutorial. Is it possible when open the activity, then shows fragments 1 instead of white blank page. What code do i need to add to make it possible ?
very easy to understand, thanks brother
❤️❤️❤️
Sir, how to start my app directly from any Fragment,,bcz here when we click one btn then only only first fragment opens,, but in "Flipkart"
they opens the "Shop" fragment directly without opening any activity,,,plz reply...
Directly call the same function in oncreate of activt
@@_foxandroid Its not happening sir, when I am doing this app is keeps stopping in my phone...please explain it sir how can I do it correctly? waiting for ur reply...
@@_foxandroid please reply
Nice video ever ❤️💯😊🌄👍😎◾❤️🌻💯😊🌄💯😊
thank you very much😄 but the music is very annoying i think if you mute it will be better 👍
Thanks man helped me a ton!
Conteúdo super fantástico....
sir how to display the fragment 1 whenever launch the application without explicit click
So bloody good! It's always the indians aswell 😂
Nice and simple.
Hello brother i need help
I have a home screen in that i have to display some person info with recyclerview
In homescreen i created fab which is Add button so it will person details input activity.
So how send that data like Actvity B to Activity A
I tried with interface to transfer data object and override the method in Activity A and calling from Activity B
It showing an exception calling a null a method on null reference
If you want to share data between activites i have a video on that "share data between activities foxandroid" search this
v good
great
i don't get the part fragment1() with the replace method ?????
what does that mean?
It basically passes the object of fragment 1 class
@@_foxandroid Oh, do you have any tutorials on room DB CRUD using fragment?
I have linked my app to Google maps. Trailer doesn't work. Build and run gives no errors but codes don't work why?
Share code pics on IG
@@_foxandroid I wrote to you on Facebook, can you contact me?
Thanks for the tutorial but on my device the backgroundInt don't work. The buttons always purple
helpful bro...
Glad it helped!!!
Bhai m beginner aur mujhe abhi fragment use nhi krna h but mere pc m phle se hi first fragment main activity second fragment krke project wale section m aa rha h aur Mera emulator bhi nhi chl rha pls help gradle failed bta rha h
why is your video so grainy? I need to be able to see to follow along!
Thanks bro..
How to pass data from Activity to fragments?
Thank you sir.
Thank you!
How to solve ANDROID RESOURCE LINKING ?😭
please sir make a video on ViewPager2, tabLayou, swipe
Sure bro!❤️❤️❤️
Oh~ thank you so so much. you saved me ^^
thank you very much, i love you.
Unintelligible. Auto-generated English subtitles don't work. Please add manual English subtitles.
Thanks
thank you so mosh man
Glad it helped man
how to set admob banner ad in navigation drawer hindi
Please watch Navigation drawer tutorial and put a baaner ad there
thankss!!!
Hello brother,
You referred me here from your other video bother. Your videos are great and you explain things in detail.
I have download sample source code and I am playing around with it.
It would really be great if on the sample source code you could implement banner ad on the header section, and only make the banner visible in fragment 1 and make it disabled in fragment 2
Hello brother I can't change this source code as other users are also using it...i hope you understand
Showing error in last two lines :(
I need source code of this tutorial
It's not working on me
i didnt get the output in mobile i will write the same code
Seach in fragment
Good work. but keep it short. very lengthy video. so litte boring.
Thanks for the feedback!!
Pls add caption with English Language
Sure sir! Thanks for the feedback...means a lot❤
too poor explaination
Bro R.id.framelayout.fragment is not working 😕
It help me a lot❣... Thanks .@DanyalKarney
Thank you!