• k

    Kazemihabib1996

    2 years ago
    Any chance we could use drawLayout with Dialogs in future? I'm trying to implement Overshoot animation with Dialogs
    Transition(
                definition = transDef,
                initState = AnimState.StartScale,
                toState = AnimState.EndScale
            ) { state ->
                Box(
                    modifier = Modifier.drawLayer(
                        scaleX = state[scale],
                        scaleY = state[scale]
                    )
                ) {
                    Dialog(onCloseRequest = onDismiss) {
                    ...
    This doesn't work and I hope this works in future 🙂 And using
    Dialog(onCloseRequest = onDismiss) {
                        Surface(
                            shape = MaterialTheme.shapes.medium, modifier = Modifier.drawLayer(
                                scaleX = state[scale],
                                scaleY = state[scale]
                            )
                        ) {
                        ...
    Just overshoots inside of the dialog not the dialog it self.
    k
    Mihai Popa
    +1
    11 replies
    Copy to Clipboard
  • l

    len

    2 years ago
    Is it possible (or planned) to draw a
    Text
    with outline? This was done with
    Paint.Style.STROKE
    , but there's no painter on
    Text
    parameters. I want to draw a text in white with a black border (like a shadow, but without blur)
    l
    n
    +2
    15 replies
    Copy to Clipboard
  • Klaas Kabini

    Klaas Kabini

    2 years ago
    Are coroutines supported in dev10 and does kapt play well with compose in this release?
    Klaas Kabini
    1 replies
    Copy to Clipboard
  • l

    Leland Richardson [G]

    2 years ago
    yeah, i’d still like to do that. Right now there are still parts of the runtime APIs that would make this possible that are getting changed significantly, so i’d rather wait until those are closer to a “final” state
    l
    1 replies
    Copy to Clipboard
  • g

    Guy Bieber

    2 years ago
    Is there an easy way to rotate an Image in compose?
    g
    Zach Klippenstein (he/him) [MOD]
    3 replies
    Copy to Clipboard
  • manueldidonna

    manueldidonna

    2 years ago
    Which is the best way to start an activity from a composable function and receives a result?
    manueldidonna
    Adam Powell
    5 replies
    Copy to Clipboard
  • shikasd

    shikasd

    2 years ago
    Are kotlin compiler sources of version 1.3.70 used for compose available anywhere? I am especially curious regarding solution for issues reported here.
    shikasd
    1 replies
    Copy to Clipboard
  • c

    codeslubber

    2 years ago
    I am updating an android app I have had out there a long time. (Not using Compose in it yet, want to.. 🙂 ).. Question is, I am running this app on a Pixel4XL and it was originally written a while ago. I have a screen where you use a slider to set a target amount and it’s too small. Just read a bunch of stuff and it seems like I literally have to make a duplicate layout for higher density phones? I guess that’s what I have to do? my other question is how is Compose going to handle this? Thanks.
    c
    l
    +2
    19 replies
    Copy to Clipboard
  • flosch

    flosch

    2 years ago
    Regarding testing with the AndroidComposeTestRule: What is the reason that I cannot declare
    <activity android:name="androidx.activity.ComponentActivity" />
    in the
    androidTest/AndroidManifest.xml
    but have to do it in
    main/AndroidManifest.xml
    ? 🤔
    flosch
    louiscad
    5 replies
    Copy to Clipboard
  • manueldidonna

    manueldidonna

    2 years ago
    Do we need to avoid deep "view" hierarchy in compose as we usually do with the native android view system? https://developer.android.com/training/improving-layouts/optimizing-layout
    manueldidonna
    l
    +1
    3 replies
    Copy to Clipboard