• why

    why

    1 year ago
    hi.. after compose alpha11 I can't use indication with clickable() I wanna set it to
    null
    like this:
    Modifier.clickable (indication = null){}
    any idea?
    why
    m
    +1
    7 replies
    Copy to Clipboard
  • m

    Michael Elgavi

    1 year ago
    Does
    LazyColumn
    measure the entire list on first composition, and only composes the visible items? Or is the measurement also only done for the visible items?
    m
    Zach Klippenstein (he/him) [MOD]
    4 replies
    Copy to Clipboard
  • Yuri Drigin

    Yuri Drigin

    1 year ago
    Hi folks! has anyone catch this strange bug? compose version: ‘1.0.0-alpha10’. compose navigation: ‘1.0.0-alpha06’. When navigation disabled all compiled successful
    Yuri Drigin
    Cyril Find
    2 replies
    Copy to Clipboard
  • l

    loloof64

    1 year ago
    Hi again. I'm trying to build a Canvas, but I don't know how. I've been looking at https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Canvas, but Canvas is an interface, and I don't know if there is a class implementing it.
    l
    j
    13 replies
    Copy to Clipboard
  • Neal Sanche

    Neal Sanche

    1 year ago
    I have a rather odd regression betweeen alpha07 and alpha11. I had followed some instructions on how to integrate with CameraView from CameraX using an AndroidView, and specifically I had implemented a preview use case, and had scaled the CameraView into a small thumbnail just as a view-finder for what the camera was looking at. This worked fine in alpha07, but in alpha11 it looks like the surface is being cropped instead of scaled as I was expecting. It'd take me a bit to make a minimal reproduction case, and will in the thread if required. Any ideas from the compose authors here on why a SurfaceView would be clipped now instead of scaled as before?
    Neal Sanche
    Adam Powell
    +2
    16 replies
    Copy to Clipboard
  • lewis

    lewis

    1 year ago
    Hopefully something simple that I'm missing. I'm trying to change the display when a collection of paged items is empty. While this works when the UI is initially composed with no items, once items appear and disappear, the display remains empty.
    val lazyItems = posts.collectAsLazyPagingItems()
    
        if(lazyItems.itemCount == 0) {
            NoItemsLeft()
        } else {
            LazyColumn(modifier = modifier) {
                items(lazyItems) {
    lewis
    Johan Reitan
    3 replies
    Copy to Clipboard
  • grandstaish

    grandstaish

    1 year ago
    is there a way to slow down animations in compose? (for debugging)
    grandstaish
    spierce7
    +5
    14 replies
    Copy to Clipboard
  • Tash

    Tash

    1 year ago
    Hi all, had a question for Compose devs: were there any discussions/concerns around misuse of Ambients? For example, I read something that suggested Ambients be used almost as a replacement for scoped DI components (i.e. Dagger @Scoped Component). That idea feels like a misuse of Ambients, but I cant put my finger on why. Are there any guidelines/mindsets we should follow when dealing with Ambients?
    Tash
    v
    +1
    7 replies
    Copy to Clipboard
  • spierce7

    spierce7

    1 year ago
    I’m using an
    AndroidView
    composable to embed a native Android View into Jetpack Compose. However, I’d when a certain event happens on my model, I’d like to re-create the
    AndroidView
    , removing the old, and replacing it with a newly created one. How would I go about doing that?
    spierce7
    jim
    4 replies
    Copy to Clipboard
  • Alexa_Gal

    Alexa_Gal

    1 year ago
    does anyone know if it’s possible to show two different views in a
    ModalBottomSheetLayout
    ? at the moment i only get the next view after the second click/compose
    Alexa_Gal
    Shakil Karim
    3 replies
    Copy to Clipboard