Fragments (Part 1) – Beginner's Guide to Android App Development In 2023



Fragments (Part 1) – Beginner's Guide to Android App Development In 2023

Fragments (Part 1) - Beginner's Guide to Android App Development In 2023

In the first part of Fragments, we learn how they are crucial in creating dynamic user interfaces by breaking down screens into reusable components. Learn about the relationship between fragments and activities, and see how they work together to enhance your app’s UI. Explore practical examples, like adapting layouts for different screen sizes, and understand the role of the Fragment Manager in controlling fragment transactions. We also create a simple app showing how can use them in practice.

About fragments: https://developer.android.com/guide/fragments
Create fragments: https://developer.android.com/guide/fragments/create
Fragment Manager: https://developer.android.com/guide/fragments/fragmentmanager
Fragment transaction: https://developer.android.com/guide/fragments/transactions
Scope functions: https://kotlinlang.org/docs/scope-functions.html

Timestamps:
0:00 Intro
0:08 What are fragments in Android?
0:28 Fragments vs activities
1:00 How are fragments useful?
1:45 Fragment Transaction & Fragment Manager
2:18 Fragments lifecycle
4:04 Fragments in action

Regular coding shorts on TikTok
https://www.tiktok.com/@astroscoding

Regular coding posts on Instagram
https://www.instagram.com/astroscoding/

Regular coding tips on Twitter
https://twitter.com/astroscoding

If you’d like to support me buy me a coffee at
https://www.buymeacoffee.com/astroscoding

Comments are closed.