The two main files you will be working with for this tutorial are MainActivity.kt and activity_main.xml. Try setting a new limit, and adding cups of coffee to see how the app works. Once it finishes loading and building, you will be able to run the application on a device or emulator. Then open the project in Android Studio 3.0.1 or greater by going to File/New/Import Project, and selecting the adle file in the root of the project. Start by downloading the starter project.
To show how much of the limit has been consumed, there is a coffee cup that fills up as more cups are consumed, reaching full when the limit is reached. There is also a button to add cups of coffee that have been consumed. There is an EditText field to enter the number of cups you want to limit consumption to. The app you will be improving allows you to set the number of cups of coffee you want to limit yourself to, and keeps track of where you are within that limit. If you know Android, but are unfamiliar with Kotlin, take a look at Kotlin For Android: An Introduction. If you’re new to Android, check out our Android tutorials. This tutorial assumes you have basic knowledge of Kotlin and Android. Design guidelines to allow your user to use your app with ease.Android attributes you can use to make your app more accessible.