Skip to content

Material Theming: Android Basics with Compose #148

Description

@gaizka-navarro

URL of codelab
https://developer.android.com/codelabs/basic-android-kotlin-compose-material-theming?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-3-pathway-3%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-material-theming#3

In which task and step of the codelab can this issue be found?
Add Color - Dimens File

Describe the problem
The example refers to R.id when it should be R.dimens

To add a value from the dimens.xml file, this the correct format:

dimensionResource(id = R.id.add dimension name here )  <-- Should be R.dimen instead of R.id

Steps to reproduce?

  1. Go to...
    https://developer.android.com/codelabs/basic-android-kotlin-compose-material-theming?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-3-pathway-3%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-material-theming#3
  2. Scroll down to Dimens File
  3. See error...
    Versions
    Android Studio version: N/A
    _API version of the emulator:_N/A

Additional information
Include screenshots if they would be useful in clarifying the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions