• YASAN

    YASAN

    1 year ago
    Is it possible to limit a
    LazyVerticalGrid
    to specific number of rows or do I have to manually calculate how many items I need to pass to it in order to make it stay on the number of rows I want to show?
    YASAN
    z
    6 replies
    Copy to Clipboard
  • rsktash

    rsktash

    1 year ago
    I’ve an idea. What if every composable function returns virtual custom Unit void in order to restrict composable function content types. We could convert these custom units to void at compile time. For example: We have a composable function which accepts only Text composable
    @Cooposable
    fun RenderSomeUI(modifier: Modifier, content: @Composable () -> TextUnit){
    }
    rsktash
    jim
    +2
    11 replies
    Copy to Clipboard
  • Luis Mierez

    Luis Mierez

    1 year ago
    Is there an analog to TextLayout in compose? I’m trying to figure out the width of some text for animation purposes
    Luis Mierez
    k
    3 replies
    Copy to Clipboard
  • d

    dimsuz

    1 year ago
    I've heard that compose in release mode enables a lot of optimizations and feels more snappy. I wonder what does "release mode" mean here? I have a "custom" build type which has "debuggable = true; minifyEnabled = true", so I guess R8 does run. But app still feels not very snappy on older devices (especially around
    LazyColumn
    ). Will setting
    debuggable = false
    improve things? Or maybe something else?
    d
    Colton Idle
    2 replies
    Copy to Clipboard
  • d

    Devesh Sanghvi

    1 year ago
    I am trying to create a custom arc progress bar (Semi circle). I am able to create one but I am not able to figure out how can I crop/ clip the Red box (whitespace) as shown in the screenshot. If I reduce the box height then the semi circle gets spoiled (shown in other screenshot). My code is in the thread.
    d
    Colton Idle
    +1
    7 replies
    Copy to Clipboard
  • Colton Idle

    Colton Idle

    1 year ago
    Am I using Crossfade incorrectly? Not sure why adding crossfade causes my progress bar to glitch like this. Code in thread.
    Colton Idle
    Albert Chang
    +1
    18 replies
    Copy to Clipboard
  • h

    harry248

    1 year ago
    Conditionally showing or hiding the bottomBar of a Scaffold, the available height for the Scaffold content seems to be stuck at the one that was first determined. Is there a way to force measuring again or a better solution to show/hide the bottomBar?
    h
    Cicero
    +1
    12 replies
    Copy to Clipboard
  • k

    ken_kentan

    1 year ago
    Hello, I want to block all tap(click) inside a composable. How can I implement it?
    k
    t
    5 replies
    Copy to Clipboard
  • Daniele Segato

    Daniele Segato

    1 year ago
    Why the
    Modifier.onSizeChange()
    doesn't work in Preview?
    var cardSize by remember { mutableStateOf<IntSize?>(null) }
        Box(
            modifier = Modifier
                .background(Color.White)
                .aspectRatio(1f)
                .fillMaxSize()
                .onSizeChanged { cardSize = it }
        ) {
            Text(text = "Size is = $cardSize")
        }
    the preview always show "Size is null" while if I run it I get the size as I expect? Is there a way to fix the preview?
    Daniele Segato
    m
    +2
    10 replies
    Copy to Clipboard
  • Daniele Segato

    Daniele Segato

    1 year ago
    Is there a way to provide some
    @Preview
    placeholder feature? For instance if I'm creating a custom
    Painter
    and I want to provide a preview for that? Example: I've a QRCode to be generated and I want to provide a preview that look like a QRCode without actually running the code to generate it
    Daniele Segato
    Zach Klippenstein (he/him) [MOD]
    4 replies
    Copy to Clipboard