Skip to content

Practice problem: Click behavior #59

Description

@cygnus-sawyer

On Step 5: Implement the App, The instructions say you can make the Image clickable, and provides a link to the "clickable" modifier documentation page. But the link doesn't work, it just goes to the general "androidx.compose.foundation Overview" page, and I can't find any description of how to make an image "clickable". Here's the line:

For an example, see the clickable documentation page.

And then in the solution code, it doesn't seem to use this "clickable" modifier for the image. Instead it uses a Button, with an Image as the "content" lambda for the button.

So is there a way to make an Image clickable, or do you have to use a Button? This is not clear.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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