https://github.com/leticiafarias/sorteador
The developed application is a simple draw that allows the user to draw a random number from 0 to 100 with the touch of a button.
https://github.com/leticiafarias/sorteador
android android-application android-jetpack kotlin
Last synced: about 2 months ago
JSON representation
The developed application is a simple draw that allows the user to draw a random number from 0 to 100 with the touch of a button.
- Host: GitHub
- URL: https://github.com/leticiafarias/sorteador
- Owner: LeticiaFarias
- License: apache-2.0
- Created: 2023-01-17T22:45:52.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-17T18:39:56.000Z (about 3 years ago)
- Last Synced: 2025-05-30T19:40:16.696Z (about 1 year ago)
- Topics: android, android-application, android-jetpack, kotlin
- Language: Kotlin
- Homepage:
- Size: 1.43 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Sorteador
About |
Features |
Technologies |
Code |
Future Features |
License |
Author
## :dart: About
The developed application is a simple draw that allows the user to draw a random number from 0 to 100 with the touch of a button.
## :sparkles: Features
:heavy_check_mark: Draw a random number between 1 and 100;\
:heavy_check_mark: Show on screen the randomly drawn number in the range from 1 to 100;\
:heavy_check_mark: Change the state of the text by clicking on the raffle button.
## :rocket: Technologies
The following tools were used in this project:
- [Kotlin](https://kotlinlang.org/)
- [Android Jetpack](https://developer.android.com/jetpack)
- [Android Studio](https://developer.android.com/studio)
## :pushpin: Code
```kotlin
fun sortear(view: View){
var resultado: TextView = findViewById(R.id.numeroResultado)
var numero: Int = (1..100).random()
resultado.setText("O número sorteado é: $numero")
}
```
## :construction: Future Features
:round_pushpin: Implement a button to reset the drawn number;\
:round_pushpin: Allow the user to choose the range of numbers that will be drawn;\
:round_pushpin: Dark theme for application.
## :memo: License
This project is under license from Apache 2.0. For more details, see the [LICENSE](LICENSE.md) file.
Made with :heart: by Letícia Farias