Skip to content

Dice Roller: A simple Android application that simulates dice rolls with dynamic images. Click the button to 'roll' and get a visual representation of a dice showing numbers 1 through 6. Perfect for understanding basic app structures, layouts, and activity lifecycles in Android development.

Notifications You must be signed in to change notification settings

Hiteshi-Singhal-17/DiceRoller

Repository files navigation

Dice Roller 🎲

Overview

Dice Roller is a simple application that features a button and an image view. Upon clicking the button, users are presented with a dice image that displays a number between 1 and 6, simulating the roll of a physical dice.

Features

  • Button Interaction: Users can click on a button to 'roll' the dice.
  • Dynamic Dice Images: Depending on the 'roll', the app displays one of the six dice images corresponding to numbers 1 through 6.

Concepts Learned

While developing Dice Roller, the following core concepts of Android development were explored and understood:

  • Basic App Structure: Acquired knowledge on the foundational structure of Android applications.

  • Layouts: Grasped the fundamentals of UI design and the organization of UI components through different layouts.

  • Activities: Explored the essentials of activities and their pivotal role as primary user interaction points in Android.

  • Inflation: Became familiar with the mechanism of transforming layouts into view objects, ensuring a fluid and adaptive UI.

Conclusion

Dice Roller is a beginner-friendly project but is crucial for understanding some fundamental concepts in Android development. It offers a hands-on approach to learn about user interactions and dynamic UI changes in response to those interactions.

Home screen of DiceRoller When roll is clicked


Feel free to clone, fork, and experiment with this repository! Happy coding! 🎲🚀

About

Dice Roller: A simple Android application that simulates dice rolls with dynamic images. Click the button to 'roll' and get a visual representation of a dice showing numbers 1 through 6. Perfect for understanding basic app structures, layouts, and activity lifecycles in Android development.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages