26

Jetpack Compose Primer [FREE]

 4 years ago
source link: https://www.raywenderlich.com/7111549-jetpack-compose-primer
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Jetpack Compose Primer

Learn about the origins of the new modern toolkit for building Android UI, Jetpack Compose, including comparisons with Flutter and SwiftUI.

See the sample project that will be built using Jetpack Compose, and explore and run the starter project.

Use the @composable annotation to write your first composable function, and learn about MaterialTheme.

See how to preview your Jetpack Compose user interfaces right in Android Studio, without the need to build and run your app on a device or emulator.

Use Row to place separate items along a horizontal axis, and also learn about using images, containers, alignment, and spacing.

Switch to FlexRow for greater control over how the items in a horizontal layout expand to fill the available horizontal space.

See how to manage state in your Jetpack Compose user interfaces using the Model annotation, and display real data in the running app.

Refactor the members screen to a more standard set of composable functions, then add a TopAppBar to the layout.

See how to use VerticalScroller and Column to display multiple items in a list, and add a divider between the items.

Who is this for?

This course is for Android developers who are interested in getting an early start with the Developer Preview of the Jetpack Compose toolkit from Google for building user interfaces in Kotlin code. It expects you to be familiar with the basics of Android development, Android Studio, and Kotlin programming.

Covered concepts

  • Composable functions
  • Compose preview
  • Compose layouts
  • Flexible rows
  • Using @model for state
  • Adding an App Bar
  • Showing a list of items using Compose

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK