'Jetpack Compose play pause animation
Solution 1:[1]
You need to combine different shapes you have made using transform like below translate and rotate a triangle on the canvas. For Reference Graphics Docs
withTransform({
translate(left = canvasWidth / 5F)
rotate(degrees = 45F)}) {
drawRect(
color = Color.Gray,
topLeft = Offset(x = canvasWidth / 3F, y = canvasHeight / 3F),
size = canvasSize / 3F
)}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Jawad |