Skip to content

Instantly share code, notes, and snippets.

View dgomolka's full-sized avatar

Daniel Gomółka dgomolka

  • Psycode Interactive
View GitHub Profile
@dgomolka
dgomolka / SkeletonModifier.kt
Last active June 5, 2020 11:03
Simple Modifier for creating skeleton view using Jetpack Compose
import androidx.compose.Composable
import androidx.compose.state
import androidx.ui.animation.animate
import androidx.ui.core.ContentDrawScope
import androidx.ui.core.DrawModifier
import androidx.ui.core.Modifier
import androidx.ui.core.composed
import androidx.ui.geometry.Size
import androidx.ui.graphics.Color
import androidx.ui.material.MaterialTheme