• a

    aryk

    2 years ago
    Is it possible to convert a Bitmap into an Image?
    a
    1 replies
    Copy to Clipboard
  • k

    Kazemihabib1996

    2 years ago
    I'm playing with Clip and Draw components can someone explain me why this doesn't produce a rounded shape rectangle?
    Container(width = 400.dp, height = 400.dp) {
    Clip(shape = RoundedCornerShape(20.dp)) {
    Draw { canvas, parentsize ->
    val outer = Rect(10f, 10f, 100f, 100f)
    canvas.drawRect(outer, paint)
    }
    }
    }
    k
    Zach Klippenstein (he/him) [MOD]
    6 replies
    Copy to Clipboard
  • tcracknell

    tcracknell

    2 years ago
    Hello! The latest Jetpack Compose minor release, dev06, has just dropped and you can get it now on Google’s Maven Repository. Release notes are available at https://developer.android.com/jetpack/androidx/releases/compose and https://developer.android.com/jetpack/androidx/releases/ui. Please note that the majority of the documentation including codelabs, tutorials, and samples will only be updated for major releases so you may notice some discrepancies if you’re using the latest version of Compose. Feedback is always welcome; please log issues at https://issuetracker.google.com/issues/new?component=612128!
    tcracknell
    k
    +2
    9 replies
    Copy to Clipboard
  • k

    Kevin Hester

    2 years ago
    Hi ya'll any guess when the Compose support for better lifecycle awareness will drop? I'd eagerly use it (though currently onCommit and misc onStop glue is working fine.
    k
    l
    25 replies
    Copy to Clipboard
  • a

    aryk

    2 years ago
    What's the point of the
    indent
    parameter? Can't we just add a left offset with padding?
    @Composable 
    fun Divider(
        modifier: Modifier = Modifier.None, 
        color: Color = MaterialTheme.colors().surface, 
        height: Dp = 1.dp, 
        indent: Dp = 0.dp
    ): Unit
    a
    1 replies
    Copy to Clipboard
  • gumil

    gumil

    2 years ago
    I'm getting NoSuchMethodError setContent on
    0.1.0-dev06
    Is this a known error? I also get
    e: java.lang.IllegalStateException: Backend Internal error: Exception during code generation
    when adding Text Style
    gumil
    l
    15 replies
    Copy to Clipboard
  • henrikhorbovyi

    henrikhorbovyi

    2 years ago
    Hey folks, is there some ideia of how it will be the integration between Compose and Motion layout? I've been playing with both and I was wondering that.
    henrikhorbovyi
    kioba
    +2
    7 replies
    Copy to Clipboard
  • Ian Warwick

    Ian Warwick

    2 years ago
    Hey composers, what is the alternative to
    DrawShape
    now?
    Ian Warwick
    Zach Klippenstein (he/him) [MOD]
    +4
    14 replies
    Copy to Clipboard
  • Ian Warwick

    Ian Warwick

    2 years ago
    What is this voodoo magic (luckily it was just a hacky function I am not using)
    Ian Warwick
    shikasd
    +1
    9 replies
    Copy to Clipboard
  • gumil

    gumil

    2 years ago
    TextButton and OutlinedButton's children aren't updated by
    @Model
    classes. I suspect that the
    noinline
    might have affected this. It works okay using a plain button
    gumil
    l
    8 replies
    Copy to Clipboard