Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/iamsuatzengin/football-starting-lineup-compose
- Owner: iamsuatzengin
- Created: 2024-04-22T16:46:28.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-04-22T17:04:57.000Z (7 months ago)
- Last Synced: 2024-04-22T19:28:11.206Z (7 months ago)
- Topics: android, canvas, custom-view, football, jetpack-compose, kotlin, kotlin-android
- Language: Kotlin
- Homepage:
- Size: 325 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 DarkGreendrawRect(
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) |
|:----------------------:| :----------------------: |
| | |