Curios about Compose but haven’t had the chance to look into it? 🤔

Here’s a collection of 12 core Composable functions used to build UI!

🧵Thread 👇

#indiedev #JetpackCompose #Android #AndroidDev #DEVCommunity #coding
1. Text Composable

You can use the Text composable to display text. You can use the style argument to define things like TextDecoration or FontFamily.

It's similar to the TextView in the classic Android View system.
2. Image Composable

Image is used to display images. It’s similar to an ImageView in the classic Android View system.

You can use painterResource to load an image from the resources.
3. Button composable

A Button Composable has an onClick callback function. You can add a Text Composable or any other Composables as child elements of the Button.

It's similar to the Button in the classic Android View system.
4. TextField Composable

TextField can be used to insert text. This is the equivalent to EditText from the Android View system.
5. Column Composable

A Column Composable will show each child below the previous children. It’s similar to a LinearLayout with vertical orientation.
6. Row Composable

A Row Composable will show each child next to the previous children. It’s similar to a LinearLayout with a horizontal orientation.
7. LazyColumn Composable

A LazyColumn is a vertically scrolling list that only composes and lays out the currently visible items.

It’s similar to a RecyclerView in the classic Android View system but with vertical orientation.
8. LazyRow Composable

A LazyRow is a horizontal scrolling list that only composes and lays out the currently visible items.

It’s similar to a horizontal RecyclerView in the classic Android View system.
9. Spacer Composable

Spacer is a Composable that can be used when you want to add an additional space between Composables.
10. Surface Composable

The Surface Composable represents a material surface. A surface allows you to setup things like background color, elevation or border.
11. Box Composable

The children of the Box Composable will be stacked over each other. In this case, a FAB will be placed on top of the blue background.

The order matters as they are drawn. You can use the align modifier to specify where the composable should be drawn.
12. Card Composable

Card Composableis the equivalent of a CardView in the old Android View System.

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with ⚡ Catalin Ghita

⚡ Catalin Ghita Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @CatalinGhita4

23 Aug
15 essential topics you should know when starting out as an #AndroidDev:

🧵Thread 👇

#indiedev #JetpackCompose #Android #100DaysOfCode #DEVCommunity #coding Image
1. Learn Java first and then Kotlin.

Kotlin is the best choice as the code is compact and less verbose than Java.

But start with Java as it's essential for your professional portfolio. Java is your core dev language. Only when confident with Java, one should jump into Kotlin! Image
2. Start from the official resources

Don't directly jump into tutorials. Check out the official courses:
developer.android.com/courses

Or codelabs:
codelabs.developers.google.com/?cat=Android

Then you can search for third party courses for more advanced topics
Read 16 tweets
2 Aug
15 Github repos that you must check out as an #AndroidDev:

🧵Thread 👇

#indiedev #JetpackCompose #Android #100DaysOfCode #DEVCommunity #coding
1. Android Guides
Updated guides and learning materials on core topics on Android.

github.com/codepath/andro…
2. Google Architecture components samples

Awesome resource for those who want to explore how Android architecture components should or could be used.

github.com/android/archit…
Read 16 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!

Follow Us on Twitter!

:(