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

Apache License 2.0
55 stars 87 forks source link

Testing For Accessibility: Android Basics In Compose #23

Open Miro-Kramar opened 1 year ago

Miro-Kramar commented 1 year ago

URL of codelab Woof app

In which task and step of the codelab can this issue be found? in all branches in function:

@Composable fun WoofApp() { Scaffold( topBar = { WoofTopAppBar() } ) { LazyColumn(modifier = Modifier.background(MaterialTheme.colors.background)) { items(dogs) { DogItem(dog = it) } } } }

Describe the problem My installed Android Studio Electric Eel 2021.1.1 still reports:

Content padding parameter it is not used

Steps to reproduce?

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

Versions Android Studio version: Electric Eel 2021.1.1 API version of the emulator:

Additional information Include screenshots if they would be useful in clarifying the problem. Snímka obrazovky 2023-02-23 094759

TheAlphaApp commented 1 year ago

I added an annotation above WoofApp and the error is gone. @SuppressLint("UnusedMaterialScaffoldPaddingParameter") . but it is not a recommended solution. I found the explanation here.