• james

    james

    1 year ago
    this might be a silly question, but those of you who work on projects where unit tests are important but UI tests are much less common, what did you do when you started bringing in more and more Composables into your app? obviously the coverage drops significantly if you don’t write UI tests for everything because you now have a lot more kotlin code for Composables.. but I’m curious about what others have done. have you: • started being more strict about writing UI tests • not written UI tests and simply accepted the coverage % drop • something else?
    james
    K Merle
    +3
    10 replies
    Copy to Clipboard
  • Anastasia Rozovskaya

    Anastasia Rozovskaya

    1 year ago
    Hi! What do you do when you need to use colors inside a mapper, which is injected to your viewModel via DI? I’ll provide details in a thread below
    Anastasia Rozovskaya
    Csaba Szugyiczki
    +1
    9 replies
    Copy to Clipboard
  • m

    Michal

    1 year ago
    Have you experienced Compose memory leaks? When adding google maps (which had/maybe still has memory leaks in the view system), it will leak memory which adds up and app will be killed by system. I have found https://android-review.googlesource.com/c/platform/frameworks/support/+/1826246 which might be fixing the issue. How do I find out when this will be released?
    m
    1 replies
    Copy to Clipboard
  • Zoltan Demant

    Zoltan Demant

    1 year ago
    When using a
    Box
    that renders an arc with
    Canvas
    and a centered Text; why is the
    Box
    sizing wrong if contentAlignment is set to center? 🧵
    Zoltan Demant
    Zach Klippenstein (he/him) [MOD]
    +1
    13 replies
    Copy to Clipboard
  • b

    Bradleycorn

    1 year ago
    when writing a
    @Preview
    composable, is there any way to get it to render a piece of UI with focus applied? I tried adding a
    FocusRequester
    and using a
    LaunchedEffect
    in the preview to request focus, but that doesn’t seem to work in the preview.
    b
    l
    3 replies
    Copy to Clipboard
  • Napa Ram

    Napa Ram

    1 year ago
    Hi Team, is it good to have multiple NavHost in one project
    Napa Ram
    1 replies
    Copy to Clipboard
  • s

    Susheel

    1 year ago
    I heard that having R8 disabled will have a significant impact on Compose Render time. I was just reading this article about it. I was just wondering if Google recommends to enable R8 for compose?
    s
    Adam Powell
    +2
    7 replies
    Copy to Clipboard
  • theapache64

    theapache64

    1 year ago
    Animation API As per my understanding,
    MutableTransitionState
    (MTS) with
    updateTransition
    is only useful if we want to update the state within the composable. If we simply want to access the
    MTS#currentState
    ,
    MTS#targetState
    and
    MTS#isIdle
    , we can use
    Transition#currentState
    ,
    Transition#targetState
    and
    Transition#isRunning
    respectively. Please correct me if am wrong.
    theapache64
    Doris Liu
    4 replies
    Copy to Clipboard
  • Ernestas

    Ernestas

    1 year ago
    Hi guys, I’ve just started experimenting with Compose. Any ideas how to go about implementing something like iOS calendar with Compose (the timeline on the left, and events constrained to specific times)? ConstraintLayout, custom view, something else? (picture in thread)
    Ernestas
    Chris Sinco [G]
    6 replies
    Copy to Clipboard
  • Piotr Prus

    Piotr Prus

    1 year ago
    I am trying to make a square card with items horizontally aligned in center, thats size is dynamic, base on the content. In my case, the height is always the leading(higher) value. It is not possible to measure twice, so I am trying to use the
    IntrinsicSize
    and
    layout.measure
    , but I cannot make it work. I managed to have a square card, but items are not in center. More in thread 👇
    Piotr Prus
    5 replies
    Copy to Clipboard