Followed the following tutorial: https://www.raywenderlich.com/4738-your-first-kotlin-android-app/lessons/5
Below are my random notes for me to remember what I tried doing.
- Install Android Studio
- Launch Android Studio
- On the Android Studio welcome screen, Click Configure
- Click
Check for Updates
to ensure the IDE is updated. - In the Configure menu click
SDK Manager
- Ensure SDK Platforms are up to date.
- Ensure SDK Tools are up to date.
- Create a new project.
- Click on
AVD Manager
to add a new emulator, choose something likePixel 2
. Ensure it's an x86 CPU/ABI image. This will run faster.
- Create a canvas/page/activity?
- Create a
Tap Me
button- Button needs a way to record the number of clicks.
- Number of clicks should only record once the game is started.
- Number of clicks should only record while the count down is going.
- Create a
Start
button- Button needs to start a count down timer.
- Game needs to know when the count down timer finishes to show the results.
- Store the results on a score table.
- Handle a tap
- Increment a score
- Show countdown timer
- Start the game
- var, val, object instantiation in Kotlin.
- resource values to be stored in strings.xml, helps with translations later.
- layout creating with TextView and Button and constrain settings.
- Only one activity at the moment.
- Orientation changes cause the main activity to be re-created. Use saveInstanceState.
- Changing and setting colours via the styles.xml and colors.xml
- Adding an animation
- This was a bit harder. Had to understand what's in the set tag and what animation to run.
- Adding a menu
- Adding an icon. Should be 512x512 pixels in size and png format