Vivek Sharma
01/13/2022, 5:27 PMTolriq
01/13/2022, 6:03 PMMikael Alfredsson
01/13/2022, 6:07 PMmyanmarking
01/13/2022, 6:17 PMNikolas Alvelo
01/13/2022, 6:26 PMadjpd
01/13/2022, 8:00 PMmattinger
01/13/2022, 10:04 PMColton Idle
01/13/2022, 10:50 PMManojna Chintapalli
01/14/2022, 12:05 AMAlert Dialog
when I enter an invalid email address, as I click on Continue button the keyboard is dismissed and Alert Dialog
is also displayed, but the position of the Alert Dialog
starts above the center of the screen and moves to the Center as the keyboard is sliding down to be dismissed. How can I always position it to center?Stylianos Gakis
01/14/2022, 10:13 AM@Preview
and PreviewParameterProvider
classes to be private?
Right now I have for example a class which has one public composable meant to be used by other files and a bunch of private ones, but then what I really expose to the other files is this [picture attached].
Now this is polluting the auto-completion menu in a way that is very bad, as I absolutely never want to call those from other files, or call them in general to be exact.allan.conda
01/14/2022, 12:41 PMjoadar
01/14/2022, 3:17 PMOnly VectorDrawables and rasterized asset types are supported ex. PNG, JPG
Here is my code: (the drawable is a .webp)
Image(
painter = painterResource(R.drawable.bg_video),
contentDescription = null,
modifier = Modifier.fillMaxSize()
)
mattinger
01/14/2022, 3:18 PMNikos Kermanidis
01/14/2022, 4:08 PMSwipeToDismiss
within a LazyColumn
and facing an issue where the nestedScroll doesn’t work. SwipeToDismiss
seems to consume the scrolling event without giving the parent (LazyColumn
) a chance to consume the event.
Removing the SwipeToDismiss
fixes the issue. Basically the problem is described by someone else here https://stackoverflow.com/questions/70570319/swipetodismiss-nestedscroll-does-not-work-well-together-jetpack-compose
For what it’s worth, I am using this gist https://gist.github.com/chrisbanes/053189c31302269656c1979edf418310 for enabling interoperability with the view system. Works fine without the SwipeToDismiss
.
I am trying to understand if this is a bug or I am missing anything.Colton Idle
01/14/2022, 4:10 PMtasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions {
freeCompilerArgs += "-Xopt-in=kotlin.RequiresOptIn"
}
}
which I added to my root build.gradle, but I still get the warning. Should I just not care or should I just remove it completely?Brian Guertin
01/14/2022, 4:37 PMcompletionHandler
for suspend
functions only excepts an Error
, but on the Kotlin side I want to catch a specific exception type e.g. MyException
. How do I pass MyException
to the completionHandler
?Shakil Karim
01/14/2022, 6:59 PMjames
01/15/2022, 12:54 AMRoudy Korkis Kanaan
01/15/2022, 2:14 AMhenrikhorbovyi
01/15/2022, 3:47 AMste
01/15/2022, 10:03 AMTextSnackBar
which shows a pop-up message over the screen and then disappears) over different screens. There's a TextSnackBarState
that exports the method display(message: String)
.
I don't know which approach I should embrace: (see thread)elye
01/15/2022, 10:57 AMSideEffect
. I cannot create a case of to differentiate it’s use and without it’s use as per https://stackoverflow.com/questions/70720751/whats-the-different-using-sideeffect-and-not-using-it-in-jetpackcompose. Can someone enlighten? Thank you 🙏Ruben Quadros
01/15/2022, 2:04 PMstickyHeader
in LazyVerticalGrid
?Arkadii Ivanov
01/15/2022, 10:01 PM1.0.5
and compiler 1.1.0-rc02
. I want to finally update Kotlin to 1.6.10. Wondering if there any compatibility concerns I should be aware of.Roudy Korkis Kanaan
01/16/2022, 6:54 AMonGloballyPositioned
and I can denounce by a bit till it stops changing but that will delay the transition animation of the shared element itself which is not the expected behaviour. So basically is there a way to know if the position of a composable is not final and what would be its final position or would I have to know the transition and based on the animation properties calculate the final position of the element? Or am I going the wrong direction anyway hahaMichael Paus
01/16/2022, 2:54 PMdimsuz
01/16/2022, 5:51 PMColumn
Row { Text(); Text() }
Row { Text(); Text() }
can I somehow make it so that it renders like this:
text1: hello
text2longer: world
especially if Row
is some component defined in the different file.
I tried to read about alignment lines, but can't see how they could help achieve this here.Hussein Muhammad
01/16/2022, 8:33 PMRick Regan
01/16/2022, 10:26 PMButton
(Material 2 or 3) I get a ripple but no onClick
-- is that working as designed? (Unfortunately, button presses from my thumb when working one-handed tend to be swipes. )Florian Walther (live streaming)
01/17/2022, 11:22 AMAndroidView
which needs to call a method.Florian Walther (live streaming)
01/17/2022, 11:22 AMAndroidView
which needs to call a method.myanmarking
01/17/2022, 11:57 AMFlorian Walther (live streaming)
01/17/2022, 12:08 PMmyanmarking
01/17/2022, 12:11 PMZoltan Demant
01/17/2022, 12:13 PMAndroidView
itself, the factory call for it might be viable for that?myanmarking
01/17/2022, 12:14 PMFlorian Walther (live streaming)
01/17/2022, 12:26 PMupdateThisThing = true
boolean and a callback to reset itZoltan Demant
01/17/2022, 12:35 PMFlorian Walther (live streaming)
01/17/2022, 12:36 PMZoltan Demant
01/17/2022, 12:41 PMLaunchedEffect(Unit)
to collect the flow & call the method. I think that makes for the best/cleanest code too, as compared to sending in a boolean & a callback to reset it!Florian Walther (live streaming)
01/17/2022, 12:46 PMZoltan Demant
01/17/2022, 12:51 PMCompositionLocal
that contains the flow or some wrapper. How deep is this composable for you?Florian Walther (live streaming)
01/17/2022, 12:53 PMAndroidView
update
can be called multiple times. This probably makes it not suitable for side-effects like this.