Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/iamsuatzengin/football-starting-lineup-compose

Football team starting lineup with Compose 😍 and canvas
https://github.com/iamsuatzengin/football-starting-lineup-compose

android canvas custom-view football jetpack-compose kotlin kotlin-android

Last synced: 10 days ago
JSON representation

Football team starting lineup with Compose 😍 and canvas

Awesome Lists containing this project

README

        

# Football team starting lineup
Football team starting lineup. Built with Compose and canvas

### Drawing ground
```kt
...

val canvasHeight = size.height
val rectHeight = size.height / 10

...

for (i in 0 until 10) {
val color = if (i % 2 == 0) Green else DarkGreen

drawRect(
color = color,
topLeft = Offset(0f, i * rectHeight),
size = Size(width = canvasWidth, height = rectHeight)
)
}
```
and other [codes...](https://github.com/iamsuatzengin/football-starting-lineup-compose/tree/main/app/src/main/java/com/example/footballstartinglineup/football)
### Screenshots
| Team-1 (4-2-3-1) | Team-2 (4-3-3) |
|:----------------------:| :----------------------: |
| | |