• t

    Tin Tran

    1 year ago
    Hi guys! I’m trying to navigate to a composable using navigation compose. It’s worked fine until i tried to navigate to a screen from a button inside a
    ModalBottomSheetLayout
    , the app crashed. Has anyone had the same problem?
    t
    1 replies
    Copy to Clipboard
  • Tiago Nunes

    Tiago Nunes

    1 year ago
    Hey everyone, I have a RecyclerView with items; each item has an imagePath; in onBindViewHolder, a new coroutine is launched, to check if the image is already stored locally. If it is, it sets the image. If it isn't, it downloads and sets the image. This is the code inside onBindViewHolder:
    lifecycleScope.launch {
        val bitmap = withContext(<http://Dispatchers.IO|Dispatchers.IO>) {
            getLocalImageAsBitmap(imageName) ?: run {
                val file = requireContext().cacheDir.resolve("places").apply { mkdirs() }.resolve(imageName)
                try {
                    repository.downloadFile(imageName, file)
                    getLocalImageAsBitmap(imageName)
                } catch (e: Exception) {
                    e.printStackTrace()
                    null
                }
            } ?: return@withContext null
        }
        binding.imageView.setImageBitmap(bitmap)
    }
    How can I migrate this to Compose (LazyColumn)?
    Tiago Nunes
    Adam Powell
    +1
    6 replies
    Copy to Clipboard
  • Rodri Represa

    Rodri Represa

    1 year ago
    Hello everyone! I've finish my Item Indicator for the Accompanist
    HorizontalPager
    . The idea is extend it in the future for
    LazyRow
    . If you like you can check my Jetpack Compose animations repo here https://github.com/rodrirepresa/ComposeAnimations
    Rodri Represa
    Colton Idle
    +1
    3 replies
    Copy to Clipboard
  • s

    Se7eN

    1 year ago
    I'm animating the progress of this meter from 0 to 100 infinitely. When some data from the network is loaded, containing the progress value, I want it to transition to that value and stop the infinite animation. How can I achieve this? Code in thread.
    s
    Tash
    +1
    11 replies
    Copy to Clipboard
  • d

    Daniel

    1 year ago
    How do people indicate when the combination of multiple fields in a form is invalid, when it isn't clear which one specifically is invalid? I'm thinking about just marking every fields as an error with the red outline, or outlining the group of fields in red (Context is a bit esoteric. I'm making an entry form for UTM coordinates. You basically specify one of a bunch of sections of the globe, and also where in that section. Different sections have different sizes. If you specify somewhere outside the section you either specified the wrong sub-position or the wrong section or both. Also users will generally be copying all the fields from somewhere else).
    d
    k
    5 replies
    Copy to Clipboard
  • n

    nglauber

    1 year ago
    I know it’s a recurrent question here… but is there a way to remove this extra padding from
    TextField
    without implement it from
    BasicTextView
    ? Or have this “LineTextField” + everything from “Material Design TextField” (label, leading icon, trailing icon, …)?
    n
    iamthevoid
    +2
    33 replies
    Copy to Clipboard
  • t

    tad

    1 year ago
    I may be doing something wrong with LazyColumn or I've triggered a bug by using this code for transition animations:
    t
    3 replies
    Copy to Clipboard
  • Muhammad Zaryab Rafique

    Muhammad Zaryab Rafique

    1 year ago
    Muhammad Zaryab Rafique
    1 replies
    Copy to Clipboard
  • m

    ms

    1 year ago
    @cb Do you have any plan to support (un)hiding status bar & navigation bar or to go full-screen in
    Insets
    API?
    m
    cb
    3 replies
    Copy to Clipboard
  • z

    Zan Skamljic

    1 year ago