• Artur Schwarz

    Artur Schwarz

    1 year ago
    Hi everyone! Can anyone explain why this is happening? This doesn’t happen when using views only. Could this be a bug in compose? Code in 🧵
    Artur Schwarz
    pawegio
    4 replies
    Copy to Clipboard
  • Rodri Represa

    Rodri Represa

    1 year ago
    Hello guys, i'm using
    mutableListOf<Int>
    to track my calendar days which are selected in a period of time and then fill the square Grey. When I select a new period of time, I first empty the mutableListOf and later I save on it my new days in order to react and show the Grey square animation. The problem is that when I empty the mutableListOf and quickly select a new period of time, as you see in the beginning of the video, it seems that the mutableList has my old dates on cache? and then only the new days added to the period of time react to the change (the old dates animation doesn't trigger, you just see the square filled). However if I select a new date, and wait some seconds to select the endDay, my animation is triggered in all the days, because the mutableListOf doesn't have any data saved.
    Rodri Represa
    l
    3 replies
    Copy to Clipboard
  • Danish Ansari

    Danish Ansari

    1 year ago
    I am trying to use
    paging-compose
    for creating a grid and I found out that there is no
    items
    function for
    LazyGridScope
    that accepts
    lazyPagingItems: LazyPagingItems<T>
    as there is one for
    LazyListScope
    Basically I'm not able to use pagination for creating a grid view. Is there any workaround for it?
    Danish Ansari
    Zach Klippenstein (he/him) [MOD]
    +1
    5 replies
    Copy to Clipboard
  • itnoles

    itnoles

    1 year ago
    How I can add the Up button on Navigation Compose in the Detail View?
    itnoles
    i
    3 replies
    Copy to Clipboard
  • s

    Se7eN

    1 year ago
    Is it acceptable to add like 50-100 (and possibly even more) destinations to a
    NavGraph
    ? I can pass the
    id
    in a route but it would be great if I could do something like this:
    SampleCategory.Buttons.samples.forEach { sample ->
        composable(sample.id) {
            sample.content()
        }
    }
    s
    z
    5 replies
    Copy to Clipboard
  • z

    Zun

    1 year ago
    I want to have a list in my ViewModel that tracks what checkboxes the user selected. I saw this post which shows my approach is wrong https://github.com/Kotlin/kotlinx.coroutines/issues/2516, but what would be the correct approach? See thread for more info
    z
    3 replies
    Copy to Clipboard
  • Jesse Hill

    Jesse Hill

    1 year ago
    So I asked a question on SO here about why the
    composable
    for a route was being recomposed whenever the state inside my HiltViewModel changed. After thinking through it a bit I think I know the answer but wanted some confirmation before updating the post. I’ll put what I think is going on in the thread.
    Jesse Hill
    m
    6 replies
    Copy to Clipboard
  • t

    tad

    1 year ago
    I would like to apply a draw transform to a wrapped
    IndicationInstance
    , but
    ContentDrawScope
    doesn't allow for that.
    t
    Nader Jawad
    5 replies
    Copy to Clipboard
  • s

    spencer

    1 year ago
    I’ve been trying for a long time to get exoplayer working in a LazyColumn, but I can’t get it to work without a lot of jankiness. I’ve created a minimum sample on github, link in thread.
    s
    2 replies
    Copy to Clipboard