Code Monkey home page Code Monkey logo

diceroller's Introduction

  1. Before you begin In this codelab, you will create a Dice Roller Android app where users can click a Button in the app to roll a dice. The outcome of the roll will be shown in a TextView on the screen.

You will use the Layout Editor in Android Studio to build your app layout, and then write Kotlin code for what happens when the Button is clicked.

Prerequisites How to create and run a "Hello, World!" app in Android Studio. Familiar with using TextViews in an app. How to modify the attributes of a TextView in the Layout Editor. How to extract text into a string resource to make it easier to translate your app and reuse strings. Kotlin programming basics What you'll learn How to add a Button to an Android app. How to add behavior for when a Button is tapped in the app. How to open and modify the Activity code of an app. How to display a Toast message. How to update the contents of a TextView while the app is running. What you'll build A Dice Roller Android app that has a Button to roll a dice and updates the text on the screen with the result of the roll. What you need A computer with Android Studio installed. Here is what the app will look like when you have completed this codelab.

diceroller's People

Contributors

ibmmtr avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.