Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/SmartToolFactory/Jetpack-Compose-Tutorials

🚀🧨📝 Series of Tutorials to learn about Jetpack Compose with subjects Material Widgets, Layout, SubcomposeLayout, custom layouts, State, custom rememberable, recomposition, LaunchedEffect, side-effects, Gesture, Animation, Navigation, Canvas, UIs like whatsapp and others.
https://github.com/SmartToolFactory/Jetpack-Compose-Tutorials

android android-ui canvas compose-animation compose-canvas compose-ui-test custom-layout jetpack-compose jetpack-compose-animation jetpack-compose-canvas jetpack-compose-navigation jetpack-compose-tutorial material-components material-design sideeffects unit-testing

Last synced: 4 months ago
JSON representation

🚀🧨📝 Series of Tutorials to learn about Jetpack Compose with subjects Material Widgets, Layout, SubcomposeLayout, custom layouts, State, custom rememberable, recomposition, LaunchedEffect, side-effects, Gesture, Animation, Navigation, Canvas, UIs like whatsapp and others.

Lists

README

        

### Jetpack Compose Tutorials and Playground

## 🤓 Overview

Series of Tutorials to learn about Jetpack Compose, Material Widgets, State, Animation, and
Navigation. Easy to search in code and in app. Each chapter module contains its own content in code.
SearchBar can be used to search with a tag or description available for each tutorial.

Recommended section is under constructions for now, when finished it will get recommended tags using
previous searches using a database, domain with ViewModel.








| Tutorial | Preview |
|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------|
|

1-1 Column, Row, Box, Modifiers


Create Row that adds elements in horizontal order, and Column that adds elements in vertical order.

• Column
• Row
• Box
• Modifier
| |
| | |
|

1-2 Surface, Shape, Clickable


Create and modify Surface to draw background for Composables, add click action to any composable. Set weight or offset modifiers.

• Surface
• Shape
• Clickable
| |
| | |

### Material Widgets

| Tutorial | Preview |
|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------|
|

2-1 Text


Create Text component with different properties such as color, background, font weight, family, style, spacing and others

• Text
• Row
• FontStyle
• Annotated String Hyperlink
| |
| | |
|

2-2 Button, IconButton, FAB, Chip


Create button with text and/or with image, Floating Action Button or Chips. Modify properties of buttons including color, text, and click actions.

• Button
• IconButton
• FloatingActionButton
• Chip
| |
| | |
|

2-3 TextField


Create TextField component with regular style or outlined. Set error, colors, state, icons, and IME actions.

• TextField
• OutlinedTextField
• IME
• Phone format VisualTransformation
• Regex
| |
| | |
|

2-4 Image


Create Image with image, vector resource or with Painter, set image and Content scales to fit, expand or shrink image. Change shape of Image or apply ColorFilter and PorterDuff modes.

• Image
• Canvas
• Drawable
• Bitmap
| |
| | |
|

2-5 LazyColumn/Row/VerticalGrid


Vertical, horizontal grid lists with LazyColumn, LazyRow and LazyVerticalGrid. Use contentPadding set paddings for lists, verticalArrangement or horizontalArrangement for padding between items, rememberLazyListState to manually scroll.

• LazyColumn(Vertical RecyclerView)
• LazyRow(Horizontal RecyclerView
• LazyVerticalGrid(GridLayout)
• StickyHeaders
| |
| | |
|

2-6 TopAppbar & Tab


TopAppbar with actions, overflow menus. Tabs with text only, image only and image+text with different background, divider, and indicators.

• TopAppBar
• Overflow menu
• TabRow and Tab
• Tab Indicator, Divider
| |
| | |
|

2-7 BottomNavigation


Bottom navigation bars allow movement between primary destinations in an app. BottomNavigation should contain multiple BottomNavigationItems, each representing a singular destination.

• BottomNavigation
• BottomNavigationItem
| |
| | |
|

2-8 BottomAppBar


A bottom app bar displays navigation and key actions at the bottom of screens.

• BottomAppBar
• Scaffold
| |
| | |
|

2-9-1 Side Navigation


A backdrop appears behind all other surfaces in an app, displaying contextual and actionable content.

• Scaffold
• Side Navigation
• DrawerState
| |
| | |
|

2-9-2 ModalDrawer


Modal navigation drawers block interaction with the rest of an app’s content with a scrim. They are elevated above most of the app’s UI and don’t affect the screen’s layout grid.

• ModalDrawer
• DrawerState
• Scaffold
| |
| | |
|

2-10-1 BottomSheet


Create bottom sheet using BottomSheetScaffold and rememberBottomSheetScaffoldState, create modal bottom sheets.

• BottomSheetScaffold
• BottomSheetState
• ModalBottomSheetLayout
| |
| | |
|

2-10-4 BottomDrawer


BottomDrawer with BottomAppBar.

• BottomDrawer
• BottomAppBar
• Scaffold
| |
| | |
|

2-10-5 BackdropScaffold


BackdropScaffold provides an API to put together several material components to construct your screen.
| |
| | |
|

2-11 Snackbar, Progress, Selection


Create Snackbars with various layouts and styling, Checkboxes with selectable text, tri state checkbox, grouped radio buttons and sliders.

• SnackBar
• ProgressIndicator
• Checkbox
• TriStateCheckbox
• Switch
• RadioButton
• Slider
• RangeSlider
| |
| | |
|

2-12 Dialog, AlertDialog


Create Dialog, and AlertDialog with standard and custom layouts. Implement on dismiss logic and get result when dialog is closed.

• AlertDialog
• Dialog
• DialogProperties
| |
| | |

### Layout

| Tutorial | Preview |
|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------|
|

3-1-1 Custom Modifier


Create custom layout using using layout, Measurable, Constraint, Placeable.

• Custom Modifier
• Measurable
• Constraint
• Placeable
| |
| | |
|

3-1-2 onGloballyPositioned


Use Modifier.onGloballyPositioned to get position of a Composable in parent, root or window.br>
• Modifier
• onGloballyPositioned
| |
| | |
|

3-1-3 graphicsLayer


Use Modifier.offset{} and Modifier.graphicsLayer{} to scale, translate or change other properties of a Composable.

• Modifier
• graphicsLayer
| |
| | |
|

3-1-4 BoxWithConstraints


BoxWithConstraints is a composable that defines its own content according to the available space, based on the incoming constraints or the current LayoutDirection.

• BoxWithConstraints
• Constraint
| | | |
| | |
|

3-1-6 Chaining Size Modifiers


Observe how chaining Modifier.size.size, Modifier.sizeIn.size or Modifier.size.requiredSize or other combination of size modifiers effect final Constraints.

• Modifier
• size/sizeIn
• requiredWidth/requiredHeight/requiredSize
| |
| | |
|

3-1-7 Modifier.wrapContentSize


Use Modifier.wrapContentSize/Width/Height to use content constraints instead of Constraints forced by parent.

• Modifier
• Custom Layout
• Measurable
| |
| | |
|

3-1-8 Modifier.layout


Use Modifier.layout to create LayoutModifier to measure with Constraints and place Placeables based on which order Modifier.layout is assigned.

• Modifier
• Custom Layout
• Measurable
• Constraints
• Placeable
| |
| | |
|

3-2-1 Custom Layout


Create custom layout using using MeasurePolicy and use intrinsic dimensions.

• Custom Layout
• Measurable
• Constraint
• Placeable
| |
| | |
|

3-2-10 Constraints & Modifier.layout


Constraints to measure measurables with Constraints.offset and Constraints.constrainWidth to limit maximum width or available space for Placeable.

• Custom Layout
• Measurable
• Constraint
• Placeable
• Modifier.layout
| |
| | |
|

3-3-1 Scope&ParentDataModifier


Add custom modifiers to Composable inside a custom layout using its scope like align modifier only available in specific Composable like a custom Column.

• Custom Layout
• Scope
• ParentDataModifier
• Measurable
• Constraint
• Placeable
| |
| | |
|

3-5 SubcomposeLayout


Subcompose layout which allows to subcompose the actual content during the measuring stage for example to use the values calculated during the measurement as params for the composition of the children.

• SubcomposeLayout
• Constraint
• Measurable
• Constraint
• Placeable
| |
| | |
|

3-6-1 Custom Chat Layouts1


Custom layout like whatsapp chat layout that moves time and message read status layout right or bottom based on message width.

• Custom Layout
• Measurable
• Constraint
• Placeable
| |
| | |
|

3-6-2 Custom Chat SubcomposeLayout


Custom layout like whatsapp chat. Added quote and name tag resized to longest sibling using SubcomposeColumn from previous examples to have whole layout.

• Custom Layout
• SubcomposeLayout
• Measurable
• Constraint
• Placeable
| |
| | |
|

3-9 Visibility Percentage


Detect percentage of visibility of a Composable using Modifier.onPlaced inside Column with vertical scroll or LazyColumn.

• Modifier
• LazyColumn
• LazyListState
• onPlaced
| |
| | |
|

3-10 Center Item on Scroll


Detect position in parent and center an item while its parent is scrolled.

• Modifier
• LazyColumn
• onPlaced
| |
| | |

### State

| Tutorial | Preview |
|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------|
|

4-1-1 Remember&MutableState


Remember and mutableState effect recomposition and states.

• remember
• State
• Recomposition
| |
| | |
|

4-2-3 Scoped Recomposition


How hierarchy of Composables effects Smart Composition.

• remember
• Recomposition
• State
| |
| | |
|

4-4 Custom Remember


Create a custom remember and custom component to have badge that changes its shape based on properties set by custom rememberable.

• remember
• State
• Recomposition
• Custom Layout
| |
| | |
|

4-5-1 SideEffect1


Use remember functions like rememberCoroutineScope, and rememberUpdatedState and side-effect functions such as LaunchedEffect and DisposableEffect.

• remember
• rememberCoroutineScope
• rememberUpdatedState
• LaunchedEffect
• DisposableEffect
| |
| | |
|

4-5-2 SideEffect2


Use SideEffect, derivedStateOf, produceState and snapshotFlow.

• remember
• SideEffect
• derivedStateOf
• produceStateOf
• snapshotFlow
| |
| | |
|

4-7-3 Compose Phases3


How deferring a state read changes which phases of frame(Composition, Layout, Draw) are called.

• Modifier
• Recomposition
• Composition
• Layout
• Draw
| |
| | |
|

4-11-6 LazyList Scroll Direction


Detect scroll direction of a LazyColumn using LazyListStated.

• Modifier
• LazyColumn
• LazyListState
• derivedStateOf
• snapshotFlow
| |
| | |
| |

### Gesture

| Tutorial | Preview |
|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------|
|

5-1-1 Clickable


Use clickable modifier, Indication. Indication to clip ripples, or create custom ripple effects.

• clickable
• Indication
• rememberRipple
• pointerInput
• pointerInteropFilter
| |
| | |
|

5-1-2 InteractionSource1


Use Interaction source to collect interactions or change scale of Composables based on interaction state.

• clickable
• InteractionSource
| |
| | |
|

5-1-3 InteractionSource2


Use InteractionSource to update touch state of multiple Composable or another Composable based on current interaction.

• clickable
• InteractionSource
| |
| | |
|

5-2 Tap&Drag Gesture


Use PointerInput to listen press, tap, long press, drag gestures. detectTapGestures is used for listening for tap, longPress, doubleTap, and press gestures.

• pointerInput
• pointerInteropFilter
• detectTapGestures
• detectDragGestures
• onPress
• onDoubleTap
| |
| | |
|

5-3 Transform Gestures


Use PointerInput to listen for detectTransformGesture to get centroid, pan, zoom and rotate params.

• pointerInput
• detectTransformGestures
• centroid
• pan
• zoom
| |
| | |
|

5-4-1 AwaitPointerEventScope1


Use AwaitPointerEventScope to get awaitFirstDown for down events, waitForUpOrCancellation for up events, and awaitPointerEvent for move events with pointers.

• AwaitPointerEventScope
• PointerInputChange
• awaitFirstDown
• waitForUpOrCancellation
• awaitPointerEvent
• awaitTouchSlopOrCancellation
• awaitDragOrCancellation
| |
| | |
|

5-4-3 Centroid, Zoom, Pan, Rotation


Use AwaitPointerEventScope to calculate centroid position and size, zoom, pan, and rotation.

• AwaitPointerEventScope
• centroid
• pan
• zoom
| |
| | |
|

5-6-2 Gesture Propagation1


Consume different type of touch events in Composable in an hierarchy to display gesture propagation between parent and children with MOVE gestures.

• AwaitPointerEventScope
• pointerInput
• consume
• consumePositionChange
• anyChangeConsumed
| |
| | |
|

5-6-4 Transform Propagation


Consume events to rotate, zoom, move or apply drag or move events on Composables.
• AwaitPointerEventScope
• detectTransformGestures
• consume
• consumePositionChange
• anyChangeConsumed
• pan
• zoom
| |
| | |
|

5-9-6 Collapsing TopAppBar


Create a collapsing TopAppBar using Modifier.nestedScroll and NestedScrollConnection.
• nestedScroll
• NestedScrollConnection
| |
| | |
|

5-9-7 Collapsing TopAppBar2


Create a collapsing TopAppBar using Modifier.nestedScroll and NestedScrollConnection.
• nestedScroll
• NestedScrollConnection
| |
| | |
|

5-10-1 Image Touch Detection


Detect touch position on image and get color at touch position.
• Image
• AwaitPointerEventScope
| |
| | |
|

5-11 Zoomable LazyColumn


Zoom images inside a LazyColum.
• Image
• Zoom
• AwaitPointerEventScope
| |
| | |

### Graphics

| Tutorial | Preview |
|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------|
|

6-1-1 Canvas Basics 1


Use canvas draw basic shapes like line, circle, rectangle, and points with different attributes such as style, stroke cap, brush.

• Canvas
• DrawScope
• Path
• Path Effect
| |
| | |
|

6-1-2 Canvas Basics 2


Use canvas to draw arc, with path effect, stroke cap, stroke join, miter and other attributes and draw images with src, dst attributes.

• Canvas
• DrawScope
• Path
• Path Effect
| |
| | |
|

6-1-3 Canvas Paths


Use canvas to draw path using absolute and relative positions, adding arc to path, drawing custom paths, progress, polygons, quads, and cubic.

• Canvas
• DrawScope
• Path
• Path Effect
| |
| | |
|

6-1-4 Canvas Path Ops


Use canvas to clip paths, or canvas using path, or rectangle with operations such as Difference, Intersect, Union, Xor, or ReverseDifference..

• Canvas
• DrawScope
• Path
• PathOperation
• ClipOperation
| |
| | |
|

6-1-5 Canvas Path Segments


Use canvas to flatten Android Path to path segments and display PathSegment start and/or end points.

• Canvas
• DrawScope
• Path
• PathSegment
| |
| | |
|

6-1-6 Canvas PathEffect


Use PathEffect such as dashedPathEffect, cornerPathEffect, chainPathEffect and stompedPathEffect to draw shapes add path effects around Composables

• Canvas
• DrawScope
• Path
• Path Effect
| |
| | |
|

6-2-1 Blend(Porter-Duff) Modes


Use blend(Porter-Duff) modes to change drawing source/destination or clip based on blend mode ,and manipulate pixels.

• Canvas
• DrawScope
• Path
• Path Effect
• BlendMode
| |
| | |
|

6-2-3 Multi-Color VectorDrawable


Use blend(Porter-Duff) to create multi colored VectorDrawables or VectorDrawables with fill/empty animations

• Canvas
• DrawScope
• VectorDrawable
• BlendMode
| |
| | |
|

6-4-2 Drawing App


Draw to canvas using touch down, move and up events using array of paths to have erase, undo, redo actions and set properties for each path separately.

• Canvas
• DrawScope
• Path
• AwaitPointerEventScope
• PointerInputChange
• BlendMode
| |
| | |
|

6-5 Color Picker


Color Picker that calculates angle from center and gets a color using hue and returns a color as in HSL or RGB color model.

• Canvas
• DrawScope
• Path
• AwaitPointerEventScope
• PointerInputChange
• BlendMode
| |
| | |
|

6-6 Scale/Translation Edit


Editable Composable that changes position and scale when touched and dragged from handles or changes position when touched inside.

• Canvas
• DrawScope
• Scale
• Translate
• AwaitPointerEventScope
• PointerInputChange
| |
| | |
|

6-7 Gooey Effect


Create basic Gooey Effect with static circles and one with moves with touch.

• Canvas
• DrawScope
• Gooey
• Translate
• AwaitPointerEventScope
• PointerInputChange
| |
| | |
|

6-8-1 Cutout Arc Shape


Use Path.cubicTo, Path.arcTo to draw cutout shape.

• Canvas
• Path
• Scale
| |
| | |
|

6-9-1 Neon Glow Effect


Use paint.asFrameworkPaint() to create blur effect to mimic neon glow
and infinite animation to dim and glow infinitely.

• Canvas
• Path
• Neon
• AwaitPointerEventScope
• PointerInputChange
| |
| | |
|

6-11 Canvas Erase Percentage


Use blend(Porter-Duff) modes with androidx.compose.ui.graphics.Canvas to erase and compare pixels with erased Bitmap to find ou percentage of erased area.

• ActualCanvas
• Path
• AwaitPointerEventScope
• PointerInputChange
| |
| | |
|

6-12 Diagonal Price Tag


Use Modifier.drawBehind and Modifier.composed to draw diagonal price tag with shimmer effect

• TextMeasurer
• Canvas
• Composed
• Brush
• Image
| |
| | |
|

6-13 Border Progress


Use Path segments to create path with progress to display remaining time

• Canvas
• Path
• PathSegment
| |
| | |
|

6-14 Pie Chart


Draw pie chart with dividers, and text between angles.

• Canvas
• Path
• Animatable
• TextMeasurer
| |
| | |
|

6-15 Pie Chart with Touch Animation


Animate Pie Chart on touch and get data of touched section.

• Canvas
• Path
• Animatable
• TextMeasurer
• detectTapGestures
| |
| | |
|

6-17 Animated Rainbow Border


Draw animated rainbow color border using BlendMode.SrcIn and Modifier.drawWithCache

• Canvas
• Shape
• BlendMode
• Brush
| |
| | |
|

6-20 PathParser and PathMeasure


Create Path from string and animate segments via PathMeasure.

• Canvas
• Path
• PathParser
• PathMeasure
• PathSegment
• animateFloatAsState
| |
| | |
|

6-21 Constant Velocity Animation


Create constant time animation.

• Canvas
• animateOffsetAsState
• animateValueAsState
| |
| | |
|

6-23 Tab/Switch Animation


Create a Tab/Switch with fluent blending text and shadow.

• Canvas
• BlendMode
• animateDpAsState
| |
| | |
|

6-24 Projection change with Lerp


Animate projection of rotating circle between inner and outer projection with lerp function.

• Canvas
• rememberInfiniteTransition
• animateFloatAsState
| |
| | |
|

6-25 BeforeAfter Layout


Create animatable BeforeAfter layout with Generic or BlendMode.

• Generic Shape
• BlendMode
• rememberInfiniteTransition
• animateFloatAsState
| |
| | |

### Stability, Skippable, Restartable

Add snippet below to app's gradle module

```
subprojects {
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
kotlinOptions {
if (project.findProperty("composeCompilerReports") == "true") {
freeCompilerArgs += [
"-P",
"plugin:androidx.compose.compiler.plugins.kotlin:reportsDestination=" +
project.buildDir.absolutePath + "/compose_compiler"
]
}
if (project.findProperty("composeCompilerMetrics") == "true") {
freeCompilerArgs += [
"-P",
"plugin:androidx.compose.compiler.plugins.kotlin:metricsDestination=" +
project.buildDir.absolutePath + "/compose_compiler"
]
}
}
}
}
```

And run task to check for compiler reports for stability inside **build/compiler_reports**

```./gradlew assembleRelease -PcomposeCompilerReports=true```

### Some of the answers i posted on Stackoverflow

#### Composable Functions, Recomposition

[Difference Between Composable and Normal Functions](https://stackoverflow.com/questions/73220189/what-are-differents-between-composable-function-and-normal-function-in-android/73261429#73261429)

[What does Jetpack Compose remember actually do, how does it work under the hood?](https://stackoverflow.com/a/69961175/5457853)

[Scoped/Smart Recomposition](https://stackoverflow.com/a/71016788/5457853)

[Why does mutableStateOf without remember work sometimes?](https://stackoverflow.com/a/71047185/5457853)

[Lambdas, Scopes, and Recomposition](https://stackoverflow.com/a/73681007/5457853)

[MutableState vs MutableStateFlow](https://stackoverflow.com/a/70217911/5457853)

[Destructuring MutableState](https://stackoverflow.com/a/71970915/5457853)

[Does a 0dp sized composable even get composed](https://stackoverflow.com/questions/73179090/does-a-0dp-sized-composable-even-get-composed/73181512#73181512)

[** Jetpack Compose - Recomposition ignoring function parameter](https://stackoverflow.com/a/73610519/5457853)

[Unable to call @Composable function from remember block](https://stackoverflow.com/a/74363923/5457853)

[Composable doesn't re-compose on button click](https://stackoverflow.com/a/74588794/5457853)

[Jetpack Compose - avoid unnecessary recomposition](https://stackoverflow.com/a/74363723/5457853)

[In compose, why modify the properties of the List element, LazyColumn does not refresh](https://stackoverflow.com/a/74506067/5457853)

#### Composables

[How to get exact size without recomposition?](https://stackoverflow.com/a/73357119/5457853)

[When should I use Android Jetpack Compose Surface composable?](https://stackoverflow.com/a/73030914/5457853)

[How can I select only 3 element in a grid/list (jetpack compose)?](https://stackoverflow.com/a/73501341/5457853)

[Android Compose: Difference between LazyColumn and Column with verticalScroll](https://stackoverflow.com/a/73735069/5457853)

[Remove default padding from CheckBox](https://stackoverflow.com/a/71609165/5457853)

[How to give different color to textDecoration?](https://stackoverflow.com/a/73570822/5457853)

[Jetpack compose custom snackbar material 3](https://stackoverflow.com/a/73369351/5457853)

[How to place hanging icon in upper right corner of Card composable](https://stackoverflow.com/a/73182325/54578533)

[Icon drawable inside IconButton is black despite it being white](https://stackoverflow.com/a/73180131/5457853)

[What is clickable indication in jetpack compose?](https://stackoverflow.com/a/73175067/5457853)

#### LaunchedEffect, SideEffect, DerivedStateOf, snapshotFlow

[Using SnapshotFlow to observe MutableState changes](https://stackoverflow.com/a/69235908/5457853)

[Callback function can be changed in Compose? rememberUpdatedState](https://stackoverflow.com/a/72873305/5457853)

[How can I launch a function only onetime when I use Jetpack Compose?](https://stackoverflow.com/questions/72946503/how-can-i-launch-a-function-only-onetime-when-i-use-jetpack-compose/72946980#72946980)

[Does lazyColumn listen for events when items enter or leave the screen](https://stackoverflow.com/a/73077507/5457853)

[Why do I need use derivedStateOf in Compose?](https://stackoverflow.com/a/73132540/5457853)

[Click a close button on a bottomsheet to hide it in compose](https://stackoverflow.com/a/73552425/5457853)

[How to show a composable just for e few seconds?](https://stackoverflow.com/a/73333356/5457853)

[What would be the most 'lightweight' way to observe current time for a an android composable?](https://stackoverflow.com/a/73333458/5457853)

[Difference between remember and rememberUpdatedState in Jetpack Compose?](https://stackoverflow.com/a/70223293/5457853)

[Use of LaunchedEffect vs SideEffect in jetpack compose](https://stackoverflow.com/a/73802448/5457853)

[Jetpack Compose recomposition race condition](https://stackoverflow.com/a/74242627/5457853)

[how can I do resend email timer LaunchedEffect](https://stackoverflow.com/a/74633185/5457853)

[LaunchedEffect vs rememberCoroutineScope. This explanation makes me confused. Please make it clear to me](https://stackoverflow.com/a/72824656/5457853)

[MutableState callback in non-Composable](https://stackoverflow.com/a/73347171/5457853)

#### Modifiers

[Jetpack Compose - Order of Modifiers](https://stackoverflow.com/a/74145347/5457853)

[Create Custom Modifier](https://stackoverflow.com/a/70439902/5457853)

[Composed Modifier](https://stackoverflow.com/a/70169164/5457853)

[Why are the modifier sizes not overwritten?](https://stackoverflow.com/a/71678948/5457853)

[How to achieve layout with where icon is position absolute on column layout Modifier.offset](https://stackoverflow.com/a/73091505/5457853)

[Define Custom Boundaries for a Composable GraphicsLayer](https://stackoverflow.com/a/73470355/5457853)

[Modifier- Is there a way to create and apply a style to multiple elements in Compose like we do with CSS](https://stackoverflow.com/a/73654523/5457853)

[JetPack Compose - weight() in Row in Card doesn't work](https://stackoverflow.com/a/73643865/5457853)

[How to calculate empty space in lazy column after last visible item](https://stackoverflow.com/a/74011277/5457853)

[How To Get The Absolute Position Of My Composable Function/Children?](https://stackoverflow.com/a/74434621/5457853)

[Use of LaunchedEffect vs SideEffect in jetpack compose](https://stackoverflow.com/a/73802448/5457853)

#### Layout, Constraints

[Creating a SearchView](https://stackoverflow.com/a/69605371/5457853)

[Create custom badges with size and colorful shadows](https://stackoverflow.com/a/70143863/5457853)

[How to align one item to bottom using weight or Layout](https://stackoverflow.com/a/70905004/5457853)

[How to create chat bubbles](https://stackoverflow.com/a/70938029/5457853)

[Custom Tabs](https://stackoverflow.com/a/71377299/5457853)

[Take screenshot of a Composable](https://stackoverflow.com/a/71902319/5457853)

[Make last Item of the Compose LazyColumn fill rest of the screen](https://stackoverflow.com/questions/72936954/make-last-item-of-the-compose-lazycolumn-fill-rest-of-the-screen/72937753#72937753)

[Row IntrinsicSize.Min not working when the children are async loading images SubcomposeLayout](https://stackoverflow.com/a/73105010/5457853)

[Observing position of item in Lazy Column in Jetpack Compose](https://stackoverflow.com/a/73148733/5457853)

[Jetpack Compose width / height / size modifier vs requiredWidth / requiredHeight / requiredSize](https://stackoverflow.com/a/73316247/5457853)

[Jetpack Compose - layouting reusable components](https://stackoverflow.com/a/74286507/5457853)

[Can't represent a size of 357913941 in Constraints in Jetpack Compose](https://stackoverflow.com/a/74575756/5457853)

[Android compose, Indicator size problem with coil](https://stackoverflow.com/a/74491759/5457853)

#### SubcomposeLayout

[How does SubcomposeLayout work?](https://stackoverflow.com/a/70383694/5457853)

[How to create a Slider with SubcomposeLayout](https://stackoverflow.com/a/71792822/5457853)

[Setting width of 2 buttons with SubcomposeLayout](https://stackoverflow.com/a/72940620/5457853)

[How to adjust size of component to it's child and remain unchanged when it's child size will change?](https://stackoverflow.com/a/73706182/5457853)

[Get information about size before is drawn in Compose](https://stackoverflow.com/a/73802696/5457853)

#### Animation

[Animating with single recomposition with Canvas](https://stackoverflow.com/a/73274631/5457853)

[Android Compose create shake animation](https://stackoverflow.com/a/73631379/5457853)

[Issue with jetpack compose animation performance](https://stackoverflow.com/a/74588077/5457853)

[animation o a lazycolumn android](https://stackoverflow.com/a/73325826/5457853)

[Rotate Animation Compose](https://stackoverflow.com/a/73291875/5457853)

[How to animate Rect position with Animatable?](https://stackoverflow.com/q/73555446/5457853)

#### Gestures

[How gestures work in Jetpack Compose and onTouchEvent](https://stackoverflow.com/a/70847531/5457853)

[Detect which section of image is touched](https://stackoverflow.com/a/71491531/5457853)

[Detect when the user lifts their finger (off the screen)](https://stackoverflow.com/a/72210341/5457853)

[How to detect the end of transform gesture in Jetpack Compose?](https://stackoverflow.com/a/72897829/5457853)

[Combine detectTapGestures and detectDragGesturesAfterLongPress?](https://stackoverflow.com/a/72897829/5457853)

[What is clickable indication in jetpack compose?](https://stackoverflow.com/a/73175067/5457853)

[Prevent dragging box out of the screen with Jetpack Compose](https://stackoverflow.com/a/73307256/5457853)

[JetPack Compose: Adding click duration](https://stackoverflow.com/a/73419818/5457853)

[compose gestures, zoom in zoom out move and rotation](https://stackoverflow.com/a/73542156/5457853)

[How to set Double back press Exit in Jetpack Compose?](https://stackoverflow.com/a/73754359/5457853)

[Jetpack Compose detect drag gesture and detect Interaction source](https://stackoverflow.com/a/73488761/5457853)

[How can one composible's clicks pass through to a composible underneath?](https://stackoverflow.com/a/73444016/5457853)

#### Canvas, DrawScope

[How to apply Porter-Duff mode to image?](https://stackoverflow.com/a/69790654/5457853)

[How to create drawing app with Jetpack Compose?](https://stackoverflow.com/a/71090112/5457853)

[How to create HSL saturation and lightness change gradient or brush editor with Jetpack Compose?](https://stackoverflow.com/a/71496228/5457853)

[How to create Angular gradient in Jetpack compose?](https://stackoverflow.com/a/71705164/5457853)

[Angled gradient background in Jetpack Compose](https://stackoverflow.com/a/71716708/5457853)

[how to draw a square with stroke and neon glow with Jetpack Compose Canvas?](https://stackoverflow.com/a/72975726/5457853)

[Jetpack compose Drawing over shapes in a path](https://stackoverflow.com/a/72969383/5457853)

[Cubic with Canvas](https://stackoverflow.com/a/73469065/5457853)

[What is the unit of Canvas's size when I use Compose?](https://stackoverflow.com/a/73233376/5457853)

[How to draw a multicolored bar with Canvas in Jetpack Compose?](https://stackoverflow.com/a/73547525/5457853)

[How to clip or cut a Composable with BlendModes?](https://stackoverflow.com/a/73590696/5457853)

[How to center Text in Canvas in Jetpack compose?](https://stackoverflow.com/a/73352227/5457853)

[How to divide the stroke of a circle at equal intervals in Jetpack compose canvas?](https://stackoverflow.com/a/73677601/5457853)

[Jetpack compose custom shape with pie effect](https://stackoverflow.com/a/73950607/5457853)

[How to apply PathEffect without using Stroke with Jetpack Compose?](https://stackoverflow.com/a/74327086/5457853)

[Jetpack Compose - CardView with Arc Shape on border](https://stackoverflow.com/a/74285035/5457853)

[Jetpack Compose: how to cut out card shape?](https://stackoverflow.com/a/74076087/5457853)

[Jetpack Compose: How to create a rating bar?](https://stackoverflow.com/a/73996333/5457853)

[Watermark or write on Bitmap with androidx.compose.ui.graphics.Canvas?](https://stackoverflow.com/a/74603521/5457853)

[Image Cropper](https://stackoverflow.com/a/73819758/5457853)

[Vertical scroll on Canvas (Jetpack Compose)](https://stackoverflow.com/a/73225175/5457853)

[Why can I draw a line out of the canvas when I use Jetpack Compose?](https://stackoverflow.com/a/73303026/5457853)

[implement a spinning activity indicator with Jetpack Compose](https://stackoverflow.com/a/74199392/5457853)

### Resources and References

[Codelab Jetpack Compose Basics](https://developer.android.com/codelabs/jetpack-compose-basics)


[Codelab Jetpack Compose Layouts](https://developer.android.com/codelabs/jetpack-compose-layouts?hl=en#0)


[Codelab Jetpack Compose States](https://developer.android.com/codelabs/jetpack-compose-state?hl=en#0)


[Codelab Jetpack Compose Advanced State](https://developer.android.com/codelabs/jetpack-compose-advanced-state-side-effects?hl=en#0)


[Developer Android](https://developer.android.com/jetpack/compose/mental-model)


[Developer Android Material](https://developer.android.com/reference/kotlin/androidx/compose/material/package-summary#theming)


[Jetpack Compose Samples](https://github.com/android/compose-samples)


[Under the hood of Jetpack Compose — part 2 of 2- Leland Richardson](https://medium.com/androiddevelopers/under-the-hood-of-jetpack-compose-part-2-of-2-37b2c20c6cdd)


[What is “donut-hole skipping” in Jetpack Compose?-Vinay Gaba](https://www.jetpackcompose.app/articles/donut-hole-skipping-in-jetpack-compose)


[Android Graphics](https://developer.android.com/jetpack/compose/graphics)


[Playing with Paths-Nick Butcher](https://medium.com/androiddevelopers/playing-with-paths-3fbc679a6f77)


[Custom Shape with Jetpack Compose-Julien Salvi](https://juliensalvi.medium.com/custom-shape-with-jetpack-compose-1cb48a991d42)


[Porter Duff Mode](https://developer.android.com/reference/android/graphics/PorterDuff.Mode)


[Porter/Duff Compositing and Blend Modes](http://ssp.impulsetrain.com/porterduff.html)


[Practical Image PorterDuff Mode Usage in Android-Elye](https://medium.com/mobile-app-development-publication/practical-image-porterduff-mode-usage-in-android-3b4b5d2e8f5f)


[Android Image Lighting Control and Color Filtering-Elye](https://medium.com/mobile-app-development-publication/android-image-lighting-control-and-color-filtering-89f51a139a79)


[Android Image Color Change With ColorMatrix-Elye](https://medium.com/mobile-app-development-publication/android-image-color-change-with-colormatrix-e927d7fb6eb4)


[Manipulating images and Drawables with Android’s ColorFilter-Nick Rout](https://medium.com/over-engineering/manipulating-images-and-drawables-with-androids-colorfilter-25bf061843e7)


[Curved (Cut out) Bottom Navigation With Animation in Android](https://medium.com/swlh/curved-cut-out-bottom-navigation-with-animation-in-android-c630c867958c)


[Gooey Effect Using Canvas API In Android](https://laewoong.github.io/android-gooey-effect/)


[movableContentOf and movableContentWithReceiverOf-Jorge Castillo](https://newsletter.jorgecastillo.dev/p/movablecontentof-and-movablecontentwithreceivero)


[Jetpack Compose Stability Explained-Ben Trengrove](https://medium.com/androiddevelopers/jetpack-compose-stability-explained-79c10db270c8)


[Composable metrics-Chris Banes](https://chrisbanes.me/posts/composable-metrics/)