min
11/07/2025, 8:14 AMsetOwners method on ComponentActivity for? The method calls
• .setViewTreeLifecycleOwner(this)
• .setViewTreeViewModelStoreOwner(this)
• .setViewTreeSavedStateRegistryOwner(this)
on the window.decorView of this, but its only usage (in the setContent method) is followed by a call to the setContentView on the same ComponentActivity receiver. setContentView calls initializeViewTreeOwners,
open fun initializeViewTreeOwners() {
window.decorView.setViewTreeLifecycleOwner(this)
window.decorView.setViewTreeViewModelStoreOwner(this)
window.decorView.setViewTreeSavedStateRegistryOwner(this)
window.decorView.setViewTreeOnBackPressedDispatcherOwner(this)
window.decorView.setViewTreeFullyDrawnReporterOwner(this)
}
which makes the same three calls as setOwners and then two moreColton Idle
11/07/2025, 6:08 PMMi Re
11/08/2025, 11:33 AMModalBottomSheet(
onDismissRequest = onDismissRequest,
dragHandle = {}
) {
Box(modifier = Modifier.fillMaxSize().background(...)) {
AnimatedContent(content) {
// switches between different screens, one has LazyColumn
LazyColumn(modifier = Modifier.fillMaxSize()) {
// scrollable content
}
}
}
}
Tried: NestedScrollConnection with onPreScroll/onPostScroll consuming scroll when not at top, tracking scroll state with LaunchedEffect + canScrollBackward, applying nestedScroll to both Box and LazyColumn.
Any ideas? 🙏Yassine Abou
11/09/2025, 5:34 PMSargun Vohra
11/10/2025, 4:12 AMVineet Rathee
11/10/2025, 6:52 AM@Composable
fun B3TextStyle() = TextStyle(
fontFamily = proximaNovaFontFamily(),
fontWeight = FontWeight.Normal,
fontSize = DimenFont.nonScalingSp(DimenFont.font_14dp),
color = Colors.color_222222,
lineHeight = DimenFont.nonScalingSp(DimenFont.font_20dp)
)
However, the text looks compressed and narrower on Compose Multiplatform.
Has anyone else faced this issue before? Any suggestions on how to fix or match it with the native appearance?
when I use the same font on the native XML side, it renders differently compared to when I use it in the multiplatform setup — it appears noticeably compressed horizontally. also shared the image above of the changeMark
11/10/2025, 10:28 AMAnnotatedString.Builder does not support delete , replace etc like SpannableStringBuilder does? I’m often stuck with this when migrating code from Android to commonMain. Would also be very useful to have access to the underlying text String. This property is a StringBuilder but I don’t see why it couldn’t be exposed as a String so we can do simple checks like what the last Char is.Piero Silvestri
11/10/2025, 6:06 PMursus
11/11/2025, 12:02 AMSnapshotStateList appear atomic? I figured it would recompose twice but does seems to only once. Is it only recomposing come VSync time? Is this guaranteed?
(Real use case is navigation 3 where I want to push multiple screens, or rather mutate backstack more deeply and it needs to be in one "transaction")Angga Ardinata
11/11/2025, 12:49 AMAlex Styl
11/11/2025, 2:47 AMAlex Styl
11/11/2025, 4:06 AMalexhelder
11/11/2025, 4:15 AMAnders Kielsholm
11/11/2025, 8:47 AMjava.lang.InterruptedException when rendering previews in Android Studio? I've recently started getting it from one of our previews as a "Render issue" (the stacktrace states that it was thrown at com.android.tools.rendering.classloading.CooperativeInterruptTransformLoopBreaker.checkLoop(CooperativeInterruptTransform.kt:26)), but I have no clue what caused it. And it doesn't happen all the time at all.Ekaterina Volodko [JB]
11/11/2025, 10:00 AMIvan Samborskii
11/11/2025, 11:11 PMLazyColumn similar to what we see in the Gmail app:
1. Pull-to-refresh (PTR) works when the user drags the list with a finger (✅ works by default).
2. PTR indicator doesn’t show when the user scrolls using the mouse wheel (✅ achieved using pointerInput + awaitPointerEventScope to detect mouse input and disable PTR indicator).
3. Click-and-drag with a mouse should both scroll the list and trigger PTR — just like dragging with a finger (❌ currently stuck here).
I tried adding a draggable modifier so users can click-and-drag to scroll, but:
• There’s no momentum effect - if I scroll fast, the list stops instantly instead of continuing to glide.
• It doesn’t trigger PTR either.
Has anyone tackled something similar or knows how to achieve point (3)?
Any hints or directions would be appreciated 🙏Mi Re
11/12/2025, 10:40 AM@OptIn(ExperimentalMaterial3Api::class)
@Composable
fun TodayGoalsCarousel(
modifier: Modifier = Modifier,
items: List<@Composable CarouselItemScope.(Int) -> Unit>,
preferredItemWidth: Dp = 180.dp,
itemSpacing: Dp = 8.dp,
contentPadding: PaddingValues = PaddingValues(horizontal = 16.dp)
) {
key(items.size) {
val carouselState = rememberCarouselState(itemCount = { items.size })
HorizontalMultiBrowseCarousel(
state = carouselState,
modifier = modifier
.fillMaxWidth()
.wrapContentHeight()
.padding(vertical = 16.dp),
preferredItemWidth = preferredItemWidth,
itemSpacing = itemSpacing,
contentPadding = contentPadding,
) { index ->
items[index].invoke(this, index)
}
}
}Ihor Y
11/12/2025, 11:07 AMMark
11/12/2025, 12:31 PMTextIndent indentation values being TextUnit? The problem here is that TextUnit does not scale linearly, so we can’t just double the value to get double the margin size. To fudge it, we need access to the Density.Jonathan
11/12/2025, 2:44 PMPablichjenkov
11/12/2025, 3:50 PMalexhelder
11/13/2025, 1:07 AMLinearSnapHelper for RecyclerView (solved)Alex Styl
11/13/2025, 4:04 AM./gradlew clean and then a rebuild from the IDE. Worked everytime so far
PS: It seems like the dependency >has< to be on commonAlex Styl
11/13/2025, 5:27 AMAlex Styl
11/13/2025, 11:52 AMeygraber
11/14/2025, 5:45 PMSnapshotStateList need to be guarded against concurrent modifications? e.g.
remember {
derivedStateOf {
// paging.items is a SnapshotStateList
paging.items.count { ... }
}
}
should I be copying the list before iterating over it in the derivedStateOf, or do the semantics of the snapshot system prevent that view of it from being modified concurrently?alexhelder
11/15/2025, 8:15 AMTopAppBar that simply takes a single Composable (no slots for nav, title, subtitle, actions, etc) and has support for nested scrolling?bod
11/15/2025, 6:28 PM:ui which has the jvm() target, in it I'm calling val myFontFamily = FontFamily(Font(Res.font.myFont, FontWeight.Normal)) and use it.
Then I have :desktopApp and :androidApp modules that depend on :ui .
On Desktop it's working as expected but on Android I'm getting NoClassDefFoundError: Failed resolution of: Lorg/jetbrains/compose/resources/FontResources_skikoKt;
What am I missing?Jonas
11/16/2025, 11:31 AMabdl
11/17/2025, 7:25 AMThe following content provider authorities are in use by other developers: network.chaintech.cmp.screenshot.fileprovider . How to resolve it, any solution?