- Open SVG file with illustrator and convert all to compound path with (Ctrl + 8)
- Save new SVG file
- Use saved file in Android Studio's Vector Asset Studio without any error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ShardPreferencesHandler<T>( | |
private val `class`: Class<T>, | |
context: Context, | |
private val initValue : T?, | |
private val key: String? = null, | |
private val addNameToKey: Boolean = false | |
) { | |
enum class Type(val theClass: KClass<*>) { | |
Float(kotlin.Float::class), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun Modifier.gradientProcessingBackground() : Modifier = composed { | |
val infiniteYTransition = rememberInfiniteTransition() | |
val state = infiniteYTransition.animateFloat( | |
initialValue = 0f, | |
targetValue = 0.7f, | |
animationSpec = infiniteRepeatable( | |
animation = tween(500, easing = EaseInOutExpo), | |
repeatMode = RepeatMode.Restart | |
) | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Composable | |
fun BitmapComposable( | |
onBitmapped: (bitmap: Bitmap) -> Unit = { _ -> }, | |
backgroundColor: Color = Color.Transparent, | |
dpSize : DpSize, | |
readyToDraw : State<Boolean> = mutableStateOf(true), | |
composable: @Composable () -> Unit | |
) { | |
var lastBitmap : Bitmap? = remember { | |
null |