In this video we will build score counter application. Application will allow for tracking score for two teams. Score will be displayed using text view components. Using image buttons user will be able to increment and decrement score for the specific team. At any time it is also possible to reset score to the default values.
To build this application we will use TableLayout, TableRow, TextView, ImageButton and Material icons for the UI part. From the code perspective we will learn how to create class properties and how to use lazy initialization in onCreate function. Then, we will implement business logic by creating functions which we will assign to onClick events for specific buttons. At the end we will also learn how to create companion objects. Companion object allows to define properties and function that are shared across class and not specific instances of this class. To summarize everything we will test our application using new emulator view introduced in Android Studio 4.1
Keep Coding!
Android Studio installation and configuration: • Android Studio - Installation - Downl...
Greeter App Tutorial: • Android - Greeter App - Add Button - ...
Follow //CodefForgeYT on:
FB: / codeforgeyt
Twitter: / codeforgeyt
GitHub: https://github.com/codeforgeyt
Instagram: / codeforgeyt