• Michael Paus

    Michael Paus

    1 year ago
    Does Compose have a concept to explicitly ask for a recomposition? I am currently using some dummy state for that but that looks awkward.
    Michael Paus
    Zach Klippenstein (he/him) [MOD]
    +1
    7 replies
    Copy to Clipboard
  • Abdalla Hassanin

    Abdalla Hassanin

    1 year ago
    how to Localization my app in compose without string XML file
    Abdalla Hassanin
    z
    +3
    12 replies
    Copy to Clipboard
  • Akram Bensalem

    Akram Bensalem

    1 year ago
    How to modify padding inside TextField ?! The default text padding is very tiny I want to modify it without give more height to the whole TextField Is any one have an idea how to do it ?!
    Akram Bensalem
    1 replies
    Copy to Clipboard
  • André Thiele

    André Thiele

    1 year ago
    Does the automatic saved state population of navigation arguments only work with HiltViewModel or is it also populated when using Koin for instance? Or do I need to use hiltNavGraphViewModel? (as shown here:

    https://youtu.be/0z_dwBGQQWQ?t=968

    )
    André Thiele
    Vipulyaara
    +1
    16 replies
    Copy to Clipboard
  • m

    Michal Klimczak

    1 year ago
    I had a piece of code that behaved in a way that I cannot understand:
    //causes infinite recomposition
        val playerUiStateWrong by player.observeState()
            .map { PlayerUIState(it, sound) }
            .collectAsState(PlayerUIState(null, null))
    
        //works fine
        val playerState by player.observeState().collectAsState(PlayerState.Stopped)
        val playerUiState = PlayerUIState(playerState, sound)
    I thought they would both do the same thing, but the first one, whenever I use
    playerUiStateWrong
    as a parameter in a modifier, causes infinite recompositions, whereas the second one works fine.
    m
    Adam Powell
    +1
    15 replies
    Copy to Clipboard
  • s

    Sunny

    1 year ago
    Can somebody help, need help in gesture part of jetpack composehttps://stackoverflow.com/questions/67752131/long-press-gesture-in-jetpack-compose
    s
    Zach Klippenstein (he/him) [MOD]
    4 replies
    Copy to Clipboard
  • c

    codeslubber

    1 year ago
    Went into the beta and tried to make a new project with an empty Compose view. That didn’t work. So I did upgrade to beta 3 from Canary and cannot make a new one here either.
    c
    Ash
    5 replies
    Copy to Clipboard
  • theapache64

    theapache64

    1 year ago
    [RESOLVED] What does it means? 🤔
    theapache64
    a
    +1
    7 replies
    Copy to Clipboard
  • z

    Zun

    1 year ago
    I'd like to use the Palette API to generate the dominant color from a remote Image inside a ViewModel. I am a bit confused as to how to retrieve the Bitmap when using an image loading library such as Coil that's included into Accompanist. Anyone got ideas? FWIW, this is what my image loader code looks like right now
    z
    cb
    4 replies
    Copy to Clipboard
  • d

    Daniel

    1 year ago
    Since there's not a compose exposed dropdown menu yet I built one myself (there's a WIP patch somewhere, but it uses a lot of compose internals so it's hard to copy). I'm happy with how it looks, but not with the complexity of the code. Is there a way to avoid needing subcomposeLayout but get the same result? Thanks!https://gist.github.com/danielzfranklin/a54260971aa51b2e2c4140c741f7650b
    d
    Colton Idle
    +1
    5 replies
    Copy to Clipboard