Jetpack Compose

Jetpack Compose

Jlozorik

1) LazyLayouts

2) Retrofit2

3) CommonMistakes

3)Internal Storage

3) Theming:

>>> MaterialYou In Compose (

>>> Material You: Applying dynamic color (

>>> Compose: Implementing responsive UI for larger screens (

>>> Canonical layouts and visual hierarchy: Designing for larger screens (

Extra: https://developer.android.com/design/ui


4) Интересные кнопки:

Button, ElevatedButton, FilledTonal & FilledIconToggleButton


5) Базовые анимации:

1. AnimatedVisibility(Boolean){content)

1. Modifier.animateContentSize()

Example 1.

var showDetails by remember {mst(false)}

Column(){ClickableText( text = .. , onClick{showDetails = !showDetails} }

AnimatedVisibility(showDetails){Text(text = "SOMETEXT")

Example 2.

var isExpanded by remember {mst(false)}

Text("LargeText",clickable = { isExpanded = 1isExpanded} , maxLines = if(!isExpanded) 2 else 10, modifier = Modifier.animateContentSize(animationSpec = spring(dampRa = Spring.DRLB, stiffness = Spring.StiffnessLow))

A dalshe mne len', so just watch THIS video.

В кратце:







Report Page