• Chris Johnson

    Chris Johnson

    1 year ago
    :android-wave: Is there a way to remove the padding/extra height from a
    TextButton
    ? I've tried setting
    ContentPadding
    to 0.dp and using
    Modifier.heightIn(min = 0.dp
    but neither work for my use case. I'm trying to make my TextButton be the same height as a
    Text
    I have in a Row. I would use Intrinsics.Min but it doesn't respect that.
    Chris Johnson
    Sergey Y.
    3 replies
    Copy to Clipboard
  • theapache64

    theapache64

    1 year ago
    🔴 🧪 Compose Testing : How do I test if the exception is thrown or not? See more details in the SO thread
    theapache64
    Zach Klippenstein (he/him) [MOD]
    5 replies
    Copy to Clipboard
  • d

    darkmoon_uk

    1 year ago
    Common problem around keeping focused things visible here; I'm curious how people are solving it.Scenario: • Screen with a text field (inside a scrollable area with IME insets), soft keyboard is not yet showing • User taps on text field - so it gets focused and the soft keyboard shows. • Insets shrink down, but the text field gets obscured behind the keyboard 🤦. The scrollable viewport has been shrunk, but its scroll state does not adjust to maintain view of the focused element. • How do you make sure the field stays scrolled-to-visible? Solutions in 🧵 👉
    d
    adjpd
    +1
    12 replies
    Copy to Clipboard
  • rajesh

    rajesh

    1 year ago
    How to show composable like
    Box
    for few seconds and make it disappears.
    rajesh
    chris-horner
    2 replies
    Copy to Clipboard
  • m

    miqbaldc

    1 year ago
    [SOLVED] Using
    addPathNodes
    addPath(
       pathData = addPathNodes(
                       "M5.778,8.81a0.6,0.6 0,0 0,0 -1.2v1.2z" +
                       ...
       ),
       ...
    )
    Anyone already try to convert vector
    pathData
    to
    androidx.compose.ui.graphics.vector.ImageVector
    ?
    m
    5 replies
    Copy to Clipboard
  • Jordan Silva

    Jordan Silva

    1 year ago
    I’m implementing Snapshot Testing with Compose, however, when I compare the bitmap from different APIs (28 and 30 for example), I get an error saying they don’t match. So, I checked what was different, and looks like it’s the background color. The first pixel (0,0) gives me a different color using depending on the emulator API version. Looks like it renders a grey gradient at the very top (API 28 #E0E0E0 and API 30 #E2E2E2). It is reproducible with the following code.
    Box(Modifier.background(Color.White)) {
        Button(onClick = {}) {
            Text(text = "Label")
        }
    }
    I’m using the Snapshot code example from @ppvi.
    Jordan Silva
    theapache64
    +2
    13 replies
    Copy to Clipboard
  • ppvi

    ppvi

    1 year ago
    yes that is totally normal, you'll get differences even between emulators running on different platforms
    ppvi
    Jordan Silva
    5 replies
    Copy to Clipboard
  • Paul Woitaschek

    Paul Woitaschek

    1 year ago
    Is there any way to make each element in a row the height of the largest element? I have these two cards and they should have the same height. I've tried a lot with requireHeight(Intrinsics.Min) but couldn't find a solution
    Paul Woitaschek
    t
    5 replies
    Copy to Clipboard
  • a

    athos

    1 year ago
    Hi, is there a way to load and draw an xml shape drawable into a Canvas?
    a
    4 replies
    Copy to Clipboard
  • Spikey Sanju

    Spikey Sanju

    1 year ago
    Hello all, I’ve been working on new task manager app with jetpack compose app. I’m facing
    huge performance issues
    when I’m
    navigating
    from
    all task composable
    👉
    add task composable
    .
    Add task composable
    screen is having multiple
    OutlineTextField
    . Is there any workaround solution for this? Here’s the sample video 👇 . See more details in thread below.
    Spikey Sanju
    adjpd
    +2
    5 replies
    Copy to Clipboard