Skip to content

🎲 A Simple Dice Roller Built with Jetpack Compose. A fun and interactive Android app that lets you roll a virtual dice with just a tap! Built using Jetpack Compose, this app generates a random dice roll and displays the corresponding dice face. Perfect for board games, decision-making, or just for fun!

License

Notifications You must be signed in to change notification settings

SoftwareChoreographer/DiceRollerApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

14 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🎲 DiceApp

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.

πŸ“‘ Table of Contents

πŸš€ Introduction

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.

🌟 Features

  • 🎲 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.

πŸ“¦ Installation

To install and run the DiceApp on your Android device, follow these steps:

  1. Clone the Repository:

    git clone https://github.com/softwarchoreographer/dicerollerapp.git
  2. Open the Project: Open the project in Android Studio.

  3. Build and Run: Click on the "Run" button in Android Studio to build and launch the app on an emulator or physical device.

πŸ–±οΈ Usage

Once the app is installed and running, you’ll see a dice face displayed in the center of the screen. To roll the dice:

  1. Press the Roll Dice button.
  2. The app will generate a random number between 1 and 6 and display the corresponding dice face.
  3. You can keep pressing the button to roll again and get a new random result.

πŸ–₯️ UI Overview

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.

πŸ“Έ Example UI:

DiceApp Example

πŸ“š Dependencies

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'
}

πŸ“ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ‘₯ Contributors

  • SoftwareChoreographer - Creator and Developer
  • Contributors - Feel free to contribute via pull requests!

πŸŽ‰ Thank you for using DiceApp! Have fun rolling the dice! 🎲

About

🎲 A Simple Dice Roller Built with Jetpack Compose. A fun and interactive Android app that lets you roll a virtual dice with just a tap! Built using Jetpack Compose, this app generates a random dice roll and displays the corresponding dice face. Perfect for board games, decision-making, or just for fun!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages