eenriquelopez
04/08/2025, 12:21 PMval fakeCanvas = Canvas()
val composeView =
ComposeView(parent.context)
.apply {
layoutParams = ViewGroup.LayoutParams(
ViewGroup.LayoutParams.WRAP_CONTENT,
ViewGroup.LayoutParams.WRAP_CONTENT,
)
setParentCompositionContext(compositionContext)
setContent(content)
}
.also(parent::addView)
composeView.draw(fakeCanvas)
composeView.measure(measureSpec, measureSpec)
At this point, composeView.measureWidth
or measuredHeight
is zero. This only happens during the Preview, not when I am using the Composable itself. What happens differently during the preview process?Hinaka
04/10/2025, 4:18 PMAnimatedPane
, the LaunchedEffect(Unit)
inside my list pane gets triggered again when navigating back from the details pane. However, if I include the panes without using AnimatedPane
, the effect only triggers once on the initial launch. Is this expected behavior when using AnimatedPane
?Kevin Worth
04/11/2025, 4:34 PMandroid:autoLink="web"
attribute, in some form or another?
• In the meantime, anyone have a suggested/preferred approach?Sam
04/13/2025, 8:17 PMChoreographer: Skipped 69 frames! The application may be doing too much work on its main thread.
). I get the initial frame drops when the code is just being JITed, however, it doesn't seem to recover at all (testing in Android 12L). Can anyone give some pointers as to what is happening in the debug version?Zeming
04/14/2025, 7:32 AMorg.jetbrains.kotlin.gradle.plugin.ide.dependencyResolvers.IdeVisibleMultiplatformSourceDependencyResolver failed on :jetpack-compose:material3:material3-adaptive-navigation-suite::jetpack-compose:material3:material3-adaptive-navigation-suite/commonMain
java.io.FileNotFoundException: ~/androidx-main/out/androidx/compose/material3/material3/build/kotlinProjectStructureMetadata/kotlin-project-structure-metadata.json (No such file or directory)
Mahmoo
04/16/2025, 4:19 AMAdnan memon
04/19/2025, 9:24 AMYusuf Ibragimov
04/21/2025, 6:02 AMMatti MK
04/22/2025, 5:14 PMpadding
or height
?
The Compose Resources doc mentions the dimensionResource API, and it is used in some codelabs like Simple Animation with Jetpack Compose. This leads me to think we should maybe use the dimensionResource
API. However, there are some other points that make me reconsider:
• The Migrating to Jetpack Compose codelab mentions the following: "Compose provides convenient methods to get values from the dimens.xml
... With this, you have the View system as the source of truth"
◦ I'd rather stay away from the View system
• Dimensions are not used anywhere in the NIA app, for example the Catalog.kt
has multiple hardcoded padding values, for example here.
◦ NIA is not a small app, and as such I'd imagine they'd use the "best" approach available
So far I can tell there's three clear options:
1. Hardcode dimensions
2. Use dimensionResource
3. Use a CompositionLocalProvider
to provide the values
Opinions on which way to go?buszi0809
04/22/2025, 8:18 PMsetFragmentResultListener
pattern, but is designed to be modular, minimal, and easy to drop into both Compose and Fragment projects—no matter what navigation library you use.
A few things I focused on:
• Decoupling producers and consumers of navigation results
• Preserving results across configuration changes and process death
• Supporting mixed projects (Compose + Fragments)
• Keeping dependencies minimal
There’s a sample app in the repo showing both Compose and Fragment usage. Feedback, bug reports, and feature requests are all welcome! (via Github Issues)
Repo: https://github.com/buszi/BoomerangMd Anas Shikoh Shikoh
04/24/2025, 6:47 AMAhmed
04/24/2025, 6:53 AMnon-wear
ui? Is it okay to use wear
dependency for mobile?Yusuf Ibragimov
04/25/2025, 11:44 AMJonathan
04/25/2025, 7:41 PMNat Strangerweather
04/27/2025, 5:09 PMNavigationSuiteScaffold
does not allow Edge-to-Edge to function in Android 35. Is that correct or am I missing something?Jonathan
04/28/2025, 3:41 PMNavDestination.id
is annotated with:
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
In the JetBrains navigation library the same property in the native AndroidX Navigation library is publicly accessible.Zoltan Demant
04/29/2025, 9:00 AMRihards
04/29/2025, 1:06 PMNavigableListDetailPaneScaffold
.dazza5000
04/30/2025, 1:31 PMAndrey Beryukhov
05/02/2025, 2:15 PM>Android resource linking failed
.
Probably because of trying to access them from another module.MarkRS
05/04/2025, 11:05 AMeygraber
05/05/2025, 4:18 PMFlowFan
05/06/2025, 3:18 AMVerticalPager
? I want to perform certain actions when a page becomes visible or hidden such as onResume/onPause in ViewPager2
.Sergio Moral
05/06/2025, 11:26 AMLazyColumn
that displays several composables, and I’d like each of them to manage their own logic independently.
My use case:
Each composable in the list has its own state — for example, a “like” button that can be either active or inactive. I think it would make sense for each item to have its own ViewModel, so it can connect to the Room database and manage its own state.
I’ve tried a few approaches, but haven’t had much luck so far. I’d love to hear if anyone has tackled something similar and what worked for you. Thanks in advance!Rihards
05/06/2025, 2:21 PMeygraber
05/08/2025, 3:47 AMabbic
05/08/2025, 10:56 AM@Stable
fun Font(
path: String,
assetManager: AssetManager,
weight: FontWeight = FontWeight.Normal,
style: FontStyle = FontStyle.Normal,
variationSettings: FontVariation.Settings = FontVariation.Settings(weight, style)
): Font = AndroidAssetFont(assetManager, path, weight, style, variationSettings)
Not holding my breath but would be niceeygraber
05/11/2025, 2:47 AMautoSize
for material3 Text
planned for 1.4 or will it not get added until 1.5?marlonlom
05/11/2025, 7:11 PMAtul Kumar
05/13/2025, 4:10 AM