Skip to content

Android Compose Add a Scrollable List #229

@pdmurty

Description

@pdmurty

Name of the Codelab or Codelab URL
https://developer.android.com/codelabs/basic-android-kotlin-compose-training-add-scrollable-list?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-3-pathway-2%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-training-add-scrollable-list#2

Describe the problem
.padding(
start = WindowInsets.safeDrawing.asPaddingValues()
.calculateStartPadding(layoutDirection),
end = WindowInsets.safeDrawing.asPaddingValues()
.calculateEndPadding(layoutDirection),
)
The above piece of code does not work. safeDrawing shows unresolved reference
Lesson number 3 + topic 3

How to reproduce?
copy and paste the code in Android studio.

Versions

  1. What version of Android Studio are you using?
    2.Android Studio Meerkat Feature Drop | 2024.3.2
    Build #AI-243.25659.59.2432.13423653, built on April 29, 2025
    Runtime version: 21.0.6+-13368085-b895.109 amd64
    VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
    Toolkit: sun.awt.windows.WToolkit
    Windows 11.0
    Kotlin plugin: K2 mode
    GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
    Memory: 2048M
    Cores: 8
    Registry:
    ide.experimental.ui=true

  2. What API level are you targeting? 35
    Additional information
    Add any other context about the problem here.

codelab: basic-android-compose-training-add-scrollable-list

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