How to use Fragments in Android - Android Advanced Tutorial #1

preview_player
Показать описание
How to use Fragments in Android - Android Advanced Tutorial #1

In this video I go over how to use Fragments in Android. If you follow this tutorial you'll have a template you can use in all your Apps.

➤My Keyboard:

➤My Microphone:

➤Building Instagram Tutorial List:

➤Source Code:

➤Subscribe to my mailing list on my blog:
Рекомендации по теме
Комментарии
Автор

Where would I use Fragments instead of just opening another activity? What are the benefits?

brmmnlogik
Автор

Great videos man. Currently interning as an android dev at a small startup fresh out of learning java and these videos are saving my ass! Please keep them coming!

tangodelta
Автор

6:50 "and it's still angry.." why do i find it hilarious XD

suryarespati
Автор

i love the way he rattles through the code - it's inspiring! 😃

Clarke
Автор

Love the content. Thank you very much. My favorite part -- 6:49, its still angry. Lol!!!

deanking
Автор

I wish you could increase the text size in the next series.

Kay-hxxb
Автор

Thank you for your video. I started learning programming android last week, and your video was the missing link to understand the difference of fragments and activities. :-)

werbemuellbauer
Автор

I like this tutorial but I had to do this twice. When messing things up I take a break, I think about what might have gone wrong and I start a new. Then success follows so on to the next project. Thanks for the lesson.

allenrowland
Автор

this is a good tutorial - but I had to convert it to FragmentStateAdapter and use ViewPager2. I am wondering, at 7:22 you add the mFragmentTitlesList array for the fragments, but you never use them. How would you use the titles array? or should I omit this line of code?

BeepBoopHmmm
Автор

I didnt catch where you used your mSectionsStatePagerAdapter object. you have created another adapter called "adapter" in setupView. so what happened the first one.

btw just heard you from John's channel. keep going man you explain very well. and the best thing is you are fast and clear.

subbed. thumbs up.

yiiabma
Автор

Finest approach to create viewpager adapter.

SaddaHussain
Автор

This helps me understand fragments!thanks for the tutorial please keep this comming i'm just new in android and i find this channel really helpful

bubba
Автор

Awesome tutorial! Helped me out big time on my new Application. Couldn't decide between Activities or Fragments. This swayed me into the best choice of action!

Atlantis
Автор

Great video, FragmentStatePageradapter is now de[precated, change this to FragmentPagerAdapter if having issues. Remember to implement new constructor as well.

MRKEDYT
Автор

Thank you Mitch, your solution is just what i was looking for.

Jarmundx
Автор

That wasn't usefull It was awsome man u clear all of my fragments doubt in one video Thanks for you video

mtzaroon
Автор

Thanks.
Any easy shortcut to control video speed, SHIFT + < to slow down and SHIFT+> to make it faster .

MohamedFouadA
Автор

great video, wanted to ask what is the difference between using a viewpager and frame layout?

mohammadrezam
Автор

I think you ended up with circular dependencies, your MainActivity uses FragmentX and FragmentX uses MainActivity ... using handlers and messages could be a better alternative to let your Activity know that it should perform a change in the UI.

chuxv
Автор

DUDE THESE TUTORIALS ARE WHAT I HAVE BEEN LOOKING FOR! THANK YOU!

adamburnett
join shbcf.ru