google-developer-training / basic-android-kotlin-compose-training-woof

Apache License 2.0
55 stars 87 forks source link

Material Theming: Android Basics with Compose #38

Open TranDatk opened 1 year ago

TranDatk commented 1 year ago

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%3Fhl%3Dvi&hl=vi#5

In which task and step of the codelab can this issue be found? In task 6 (More shapes) - Step "Add height for list item"

Describe the problem When I get to this step in Vietnamese language, "elevation = 4.dp" is Type mismatch. Required: CardElevation. Found: Dp

@Composable fun DogItem( dog: Dog, modifier: Modifier = Modifier ) { Card(modifier = modifier.padding(8.dp), elevation = 4.dp) {

Steps to reproduce?

  1. Go to...
  2. Click on...
  3. See error...

Versions Android Studio version: Android Studio Dolphin | 2021.3.1 API version of the emulator: 30

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