MBegemot
06/27/2021, 5:48 PMAlejo
06/27/2021, 6:27 PMHatice Sarp
06/27/2021, 8:04 PMWaqas Tahir
06/28/2021, 4:28 AMKunal Raghav
06/28/2021, 6:51 AMWaqas Tahir
06/28/2021, 8:12 AMPaulo Pinheiro
06/28/2021, 9:17 AMYuri Drigin
06/28/2021, 10:20 AMSlackbot
06/28/2021, 11:22 AMWaqas Tahir
06/28/2021, 12:01 PMdimsuz
06/28/2021, 12:22 PMbeta09
?
ModalBottomSheetLayout(sheetContent = { Text("Hello, World") }) {
// empty content, but anything can be here
}
Adding the above immediately crashes my app with
java.lang.IllegalArgumentException: The initial value must have an associated anchor.
Louis
06/28/2021, 12:37 PMtestRule.onNode(hasScrollToKeyAction()).performScrollToIndex(index)
nglauber
06/28/2021, 3:45 PMisSystemInDarkTheme()
is always returning true even when I switch to light mode? 🤔Alexandros Boutakidis
06/28/2021, 4:03 PMsolidogen
06/28/2021, 4:28 PMsubashz
06/28/2021, 6:01 PMTash
06/28/2021, 7:22 PMAnimatedVisibility
, is it possible for the content to provide custom `Enter/ExitTransition`s, i.e. other than slide/fade/shrink/expand?Tash
06/29/2021, 12:24 AMMichał Diner
06/29/2021, 8:13 AMandroid:windowBackground
in xml? And I'm talking about an app-wide solution.Nathan Castlehow
06/29/2021, 9:06 AMBoris Kachscovsky
06/29/2021, 11:31 AMmonotonicFrameClock
, but see some stuttering at the beginning of the animation. Any idea why this stuttering might be happening?
var progress by remember { mutableStateOf(0f) }
LaunchedEffect(Unit) {
while (true) {
val frameTime = withInfiniteAnimationFrameMillis { it }
progress = (frameTime % Duration).toFloat() / Duration
}
My guess is that it’s because the initial progress is set to 0? How can we sync that (from the start) with the frame time? Another possibility is that because LaunchedEffect
is launched after the first frame, we start one frame behind. Don’t think I can use DisposableEffect
(which doesn’t have this issue) as withInfiniteAnimationFrameMillis
is a suspend
function.Se7eN
06/29/2021, 1:13 PMpointerInput
modifier on Box
and pointerInteropFilter
on its children. However, the pointerInteropFilter
modifiers on the children do not receive events because of the pointerInput
on the parent. When I remove the parent pointerInput
, the pointerInteropFilter
modifiers on children work fine. I'm creating a draggable, rotatable, and resizable composable with controls at the corner (see image). How can I fix this? Code in threadShabinder Singh
06/29/2021, 2:08 PMArtem Kopan
06/29/2021, 2:59 PMPeter Mandeljc
06/29/2021, 3:23 PMColumn(modifier = Modifier.padding(16.dp)) {
Surface(
elevation = 10.dp,
modifier = Modifier.fillMaxWidth(),
) {
Text(text = "Test")
}
}
Mehdi Haghgoo
06/29/2021, 4:00 PMpainterResource(R.drawable.vector)
?
I cannot load any vector asset from resources to show in Image.Chris Johnson
06/29/2021, 4:12 PMAnimatedVisibility
have a finished listener? I know it has MutableTransitionState
where you can check if all the animations are done via isIdle
but I guess I'm looking for an example of when to use that check. I assume it wouldn't be inside the AnimatedVisibility
content composable and outside of it would make it get hit on every recomposition if I'm remembering the MutableTransitionState
Colton Idle
06/29/2021, 4:33 PMimport androidx.compose.ui.text.style.TextOverflow.Ellipsis
is gone now? Auto import can't find a replacement.brandonmcansh
06/29/2021, 6:02 PMVinay Gaba
06/29/2021, 6:27 PMfindFragment(view: View)
method for Compose - https://developer.android.com/reference/androidx/fragment/app/FragmentManager#findFragment(android.view.View). Basically need a way to find the fragment that's hosting the composable (Don't judge me for saying that 😄 Need it for practical reasons). If there's no plans for first class support, how can I go about creating similar functionality. The view system essentially makes use of the get/setTag
method to associate a view to a fragment using this id R.id.fragment_container_view_tag
.Vinay Gaba
06/29/2021, 6:27 PMfindFragment(view: View)
method for Compose - https://developer.android.com/reference/androidx/fragment/app/FragmentManager#findFragment(android.view.View). Basically need a way to find the fragment that's hosting the composable (Don't judge me for saying that 😄 Need it for practical reasons). If there's no plans for first class support, how can I go about creating similar functionality. The view system essentially makes use of the get/setTag
method to associate a view to a fragment using this id R.id.fragment_container_view_tag
.Ian Lake
06/29/2021, 6:37 PMLocalLifecycleOwner
) or your own LocalFragment
?AndroidViewBinding
might be doing something similar to the hacking that you're proposing: https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:compose/[…]va/androidx/compose/ui/viewinterop/AndroidViewBinding.kt;l=66LocalView.current
with findFragment()
Vinay Gaba
06/29/2021, 7:13 PM