• m

    mattinger

    11 months ago
    Has anyone else used the accompanist animated navigation? I have the following (along with a rememberAnimatedNavController)
    AnimatedNavHost(
        navController = navController,
        startDestination = router.currentStep.id,
        exitTransition = { _, _ ->
            slideOutOfContainer(
                AnimatedContentScope.SlideDirection.Left,
                animationSpec = tween(700)
            )
        },
        enterTransition = { _, _ ->
            slideIntoContainer(
                AnimatedContentScope.SlideDirection.Left,
                animationSpec = tween(700)
            )
        })
    However, not a single one of my transitions is animated. It all still seems to just pop in and out like it would with the standard NavHost. (as a side note, i’ve tried putting animation specs in the composable function as well for the individual routes with no luck.
    m
    i
    9 replies
    Copy to Clipboard
  • myanmarking

    myanmarking

    11 months ago
    is there any standard practice for conditional modifiers inside a composable? Something like this:
    modifier.run { 
        if(featureA){
            modifierX()
        } else{
            this
        }
    }
    myanmarking
    m
    +4
    13 replies
    Copy to Clipboard
  • s

    ste

    11 months ago
    My app needs to spawn a long-living process (that follows the app lifetime) and it has to communicate with it using stdin/stdout/stderr. I wanted to go full-compose, but it seems that it's still not possible to
    rememberSaveable
    a
    Parcelable
    (I need it to encapsulate the
    Process
    object); should I just declare an
    object
    at this point?
    s
    Csaba Kozák
    3 replies
    Copy to Clipboard
  • myanmarking

    myanmarking

    11 months ago
    navigating back and forth between two composable fragments sometimes cause a ‘lag’ navigating back and i narrowed it down to this composable:
    Image(
        modifier = Modifier
            .fillMaxSize(),
        painter = painterResource(id = state.itemList[page].imageRes),
        contentDescription = null,
        contentScale = ContentScale.Crop
    )
    This is loading a webp image. Maybe it is related to the image size. But most of the times it has no lag. What could it be ?
    myanmarking
    Zach Klippenstein (he/him) [MOD]
    +1
    9 replies
    Copy to Clipboard
  • Kirill Langer

    Kirill Langer

    11 months ago
    Hi, I'm trying to make a dashboard like in the attached image. Nothing really needs to be scrollable aside from the main display. However, I keep getting this error:
    Nesting scrollable in the same direction layouts like LazyColumn and Column(Modifier.verticalScroll()) is not allowed. If you want to add a header before the list of items please take a look on LazyColumn component which has a DSL api which allows to first add a header via item() function and then the list of items via items()
    Anyone have an idea for how I can add the grid pressure display inside a column of rows that arranges the displays?
    Kirill Langer
    Ravi
    +1
    4 replies
    Copy to Clipboard
  • Jason Roberts

    Jason Roberts

    11 months ago
    Hi. Can we use Java or Kotlin libraries (libraries that use XML to design) in the Android JetpackCompose project? And how can we do it?
    Jason Roberts
    1 replies
    Copy to Clipboard
  • Job Guldemeester

    Job Guldemeester

    11 months ago
    I have some issues using the
    Modifier.clip
    to apply a custom shape when there is an
    Image
    composable + bitmap somewhere in the view (separated from the shape). The clipped shape disappears when the bitmap reaches a certain size or multiple bitmaps in the view reach a certain combined size. Though the limits can differ on different devices.
    Job Guldemeester
    Daniele Segato
    +1
    6 replies
    Copy to Clipboard
  • d

    Daniel Oliveira

    11 months ago
    Hi everyone, Is it possible to use SavedStateHandle in ViewModel with navigation compose?
    d
    1 replies
    Copy to Clipboard
  • j

    julioromano

    11 months ago
    Is there a way to “disable” (as in “grey out and don’t allow interaction with”) an entire UI subtree? I was thinking via a modifier at the root of the subtree or a CompositionLocal but I’m not aware of any.
    j
    1 replies
    Copy to Clipboard
  • jossiwolf

    jossiwolf

    11 months ago
    Has anybody here seen an open-source example of using Compose to drive a non-UI tree?
    jossiwolf
    Foso
    5 replies
    Copy to Clipboard