Alex

    Alex

    1 year ago
    Can I query a composable for its height and width dimensions? The use case is downloading an image in a specific size (to save bandwidth). In standard Android I would do something like
    view.onLayoutDone { view ->
      downloadImageWith(view.width, view.height)
    }
    Extremely simplified of course, but you get the idea.
    Albert Chang

    Albert Chang

    1 year ago