Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Android Kotlin Fundamentals codelab: Made a more efficient code for this #573

Closed
@ps428

Description

@ps428

Name of the Codelab or Codelab URL
Android Kotlin Fundamentals Codelab 1.2: Get Started
Android Kotlin Fundamentals->DiceRoller App

Describe the problem
I have made a more efficient code for the same app.
Instead of using lateinit, I have modified the rollDice function, so that it has an input parameter of type ImageView, when we call this function in line 45, I have called the diceImage variable that is of type ImageView and "points to" the @id/dice_image.

In which lesson and step of the codelab can this issue be found?
Android Kotlin Fundamentals Codelab 1.2: Get Started. Not a specific step number but just enhancement for overall code.

How to reproduce?
Please check this unattended Pull Request that I had made earlier for solution.
#512

Versions

  1. What version of Android Studio are you using? 30.0.2

codelab: android-kotlin-fundamentals

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions