• l

    Libor Bicanovsky

    1 year ago
    Hey, is there a way to get rid of font padding within a Text element in jetpack compose? I have a Button and the text within it is slightly off center, which I assume is due to font padding. Is there an equivalent to includeFontPadding=false?
    l
    1 replies
    Copy to Clipboard
  • Colton Idle

    Colton Idle

    1 year ago
    How do I get the size of a composable AFTER it's been laid out and measured? i.e. I want to know that my image is laid out on the screen at a final resolution of 200px x 400px.
    Colton Idle
    Albert Chang
    +1
    4 replies
    Copy to Clipboard
  • m

    Mohamed Ibrahim

    1 year ago
    hello, I’ve noticed running Compose apps in
    Android Studio Bumblebee | 2021.1.1 Canary 3
    , requires uninstalling and installing app so updates got reflected on the testing device. clicking instant run doesn’t always reflect all the changes which make it harder to debug.
    m
    Colton Idle
    +1
    5 replies
    Copy to Clipboard
  • Nathan Castlehow

    Nathan Castlehow

    1 year ago
    Hey has anyone seen interesting behaviour where lazy lists (in our case lazy columns) recompose most of the visible items without the data changing? We are observing a calc based on the first index / first item offset to hide /show something which doesn’t look like its in the same compose scope as the list. When this value becomes stable it stops this recomposing behaviour. Theories in thread.
    Nathan Castlehow
    i
    7 replies
    Copy to Clipboard
  • Jeff

    Jeff

    1 year ago
    Hey. I want to call a ViewModel function only ONCE in a composable. e.g. viewModel.getMovies() It should not be called on re-composition. How do I achieve this?
    Jeff
    m
    +1
    5 replies
    Copy to Clipboard
  • t

    Tin Tran

    1 year ago
    Hi. After upgrading to
    navigation-compose:2.4.0-alpha05
    my view model
    init {}
    is called continuously. Does anyone having the same issue? I’m using
    hilt-navigation-compose:1.0.0-alpha03
    t
    j
    23 replies
    Copy to Clipboard
  • Dominaezzz

    Dominaezzz

    1 year ago
    Is it possible to snap an animation,
    Animatable
    or
    updateTransition
    , during the same composition? When I update the state or call
    snapTo
    , the update happens in the next frame or so.
    Dominaezzz
    Doris Liu
    10 replies
    Copy to Clipboard
  • m

    ms

    1 year ago
    Is anyone facing a crash at app startup after updating to
    Android Studio Bumblebee | 2021.1.1 Canary 4
    LOGS in 🧵
    m
    2 replies
    Copy to Clipboard
  • Jeff

    Jeff

    1 year ago
    Getting this error when I upgrade to navigation-compose 2.4.0-alpha05
    java.lang.ClassCastException: androidx.navigation.NavGraph cannot be cast to androidx.navigation.compose.ComposeNavigator$Destination
    This happens when I try to navigate
    navController.navigate(Screen.Authentication.route) {
        popUpTo(Screen.Main.route) {
            inclusive = true
        }
        launchSingleTop = true
    }
    Worked fine with 04
    Jeff
    j
    +1
    9 replies
    Copy to Clipboard
  • d

    dbaelz

    1 year ago
    I've posted a Compose puzzler on Twitter about multiple
    Modifier.border()
    that overdraw each other (link and code in the thread). Gave an explanation why it's this way, but after I read it again I'm unsure if it's correct and I have second thoughts. Can someone shed some light into the topic?
    d
    Albert Chang
    4 replies
    Copy to Clipboard