DiceApp is a simple Android application that simulates the rolling of a dice. It displays a random result each time the user clicks a button, showing the corresponding dice image. The app is designed using Jetpack Compose to create a modern and responsive UI.
DiceApp is a fun, easy-to-use app that lets users simulate a dice roll. It uses Jetpack Compose for the UI and random number generation to display a result between 1 and 6, showing the corresponding dice face as an image. This app is perfect for users who need a dice roll for board games, decision-making, or just for fun.
- π² Random Dice Roll: The app generates a random number between 1 and 6 when the button is clicked.
- πΌοΈ Dynamic UI: Displays the corresponding dice face as an image based on the result.
- π‘ Modern Design: The app is built with Jetpack Compose and follows modern Android development practices.
- π± Edge-to-Edge Display: The app uses edge-to-edge support for a fullscreen experience.
To install and run the DiceApp on your Android device, follow these steps:
-
Clone the Repository:
git clone https://github.com/softwarchoreographer/dicerollerapp.git
-
Open the Project: Open the project in Android Studio.
-
Build and Run: Click on the "Run" button in Android Studio to build and launch the app on an emulator or physical device.
Once the app is installed and running, youβll see a dice face displayed in the center of the screen. To roll the dice:
- Press the Roll Dice button.
- The app will generate a random number between 1 and 6 and display the corresponding dice face.
- You can keep pressing the button to roll again and get a new random result.
The main UI of the app consists of:
- π² Dice Image: Shows the current dice result (from 1 to 6).
- π Roll Button: A button that triggers the dice roll, generating a new random result.
- The UI is centered on the screen using Jetpack Compose's layout modifiers for a clean, modern design.
This project uses the following libraries:
- Jetpack Compose: For building the UI.
- Material3: For the button and text styling.
- AndroidX: For general Android framework support.
Make sure you have the following dependencies in your build.gradle
file:
dependencies {
implementation 'androidx.compose.ui:ui:1.0.0'
implementation 'androidx.compose.material3:material3:1.0.0'
implementation 'androidx.activity:activity-compose:1.3.1'
}
This project is licensed under the MIT License - see the LICENSE file for details.
- SoftwareChoreographer - Creator and Developer
- Contributors - Feel free to contribute via pull requests!
π Thank you for using DiceApp! Have fun rolling the dice! π²