Tutorial from: https://developer.android.com/jetpack/compose/tutorial
@Composable
annotation- Define app’s UI programmatically
- Composable functions can only be called from other composable functions
- UI elements are organized in a hierarchy
- Can have nested elements
Column
- arranges elements verticallymodifiers
- used to configure/decorate composable
- With
Compose
, Material Design and its UI elements are provided out of the box. - 3 Pillars of Material Design: Color, Typography, Shape
Theme.kt
- File where themes (i.e light, dark) are defined
LazyRow
,LazyColumn
- composables that only render visible elements on screen, very efficient for long lists, avoids the complexity ofRecyclerViews
in XML layoutsremember
- stores local state in memorymutableStateOf
- a single value holder whose reads and writes are observed by ComposeRecomposition
- Allows Composables to be redrawn automatically when observing state that changes