Developing the UI with Jetpack Compose
A composable function is any function marked with the @Compose
annotation. You’ve created and used composable functions, also known as composables, in the previous chapters to achieve tasks within the exercises. Some of the composables used were built-in composables such as Text
and Button
, and built-in layout groups of Row
and Column
. You then created your own composable functions using these building blocks.
This chapter provides a more in-depth look at basic composable functions and layout groups in Jetpack Compose. It demonstrates how to use them to build the UI and respond to state changes by recomposing the UI.
By the end of this chapter, you will be able to use all the main composable functions to create UI elements and will have learned how to lay out these elements using the major composable layout groups.
In this chapter, you will cover the following topics:
- Transitioning from XML layouts to Jetpack Compose...