TheMrCodes
03/31/2021, 9:04 PMBoxWithConstraints
update lag*
Can someone confirm the stange flickering occuring om the content inside the BoxWithConstraints
and that it's gone wenn replaced by a regular Box? Code in the 🧵Colton Idle
03/31/2021, 10:29 PMAlex
04/01/2021, 7:35 AMview.onLayoutDone { view ->
downloadImageWith(view.width, view.height)
}
Extremely simplified of course, but you get the idea.adauguet
04/01/2021, 10:51 AM@Composable
functions? Do I have do use fragments?Nthily
04/01/2021, 11:13 AMDanish Ansari
04/01/2021, 11:53 AMSergey Y.
04/01/2021, 12:00 PMSlackbot
04/01/2021, 12:27 PMjulioromano
04/01/2021, 3:34 PMRow
to invert the order it lays out its content? (e.g. LTR instead of RTL)Nthily
04/01/2021, 3:37 PMval delayedHandler = Handler()
delayedHandler.postDelayed({
navController.navigate("mainPage") {
popUpTo("welcome") { //delete
inclusive = true //close stack
}
}
}, 2000)
Muhammad Zaryab Rafique
04/01/2021, 3:52 PMMuhammad Zaryab Rafique
04/01/2021, 4:13 PMeschrag
04/01/2021, 6:01 PMAbhishek Dewan
04/02/2021, 5:25 AMColumn(modifier = Modifier.verticalScroll(rememberScrollState()) {
LazyVerticalGrid()....
}
I am trying to make something like but with the entire page being scrollable. Is there a way to do this using the above snippet or would I have to make the grid manually?Socheat KHAUV
04/02/2021, 7:19 AMLucien Guimaraes
04/02/2021, 10:31 AMCyril Find
04/02/2021, 1:54 PMSlider
components but they're not very customizable and I can't put one over the other over the "timeline" because only the top-most one is interacting then.
I'm thinking I need to implement a custom DoubleSlider
but it seems complicated, any thoughts ? Thanks 🙂Nthily
04/02/2021, 8:38 PMmanueldidonna
04/02/2021, 11:27 PMtherealbluepandabear
04/03/2021, 1:02 AMMuhammad Zaryab Rafique
04/03/2021, 5:05 AMTimo Drick
04/03/2021, 11:49 AMknthmn
04/03/2021, 2:18 PMIllegalStateException: Start/end imbalance
@Composable fun A() = Row { if (true) return }
It does not happen if I remove the if
or if I use return@Row
subashz
04/03/2021, 4:36 PMzsperske
04/03/2021, 6:51 PMsashjakk
04/03/2021, 6:59 PMnatario1
04/03/2021, 7:37 PM@Composable
autocomplete suggestion, adding tons of opinionated newlines and indentation? It's so annoying.enighma
04/03/2021, 10:35 PMvar expanded by remember { mutableStateOf(false) }
Currently this gives me a compilation issue in beta2.
I can write
var expanded = remember { mutableStateOf(false) }
But that makes more painful to use.
Is this something that has changed, or a bug?Muhammad Zaryab Rafique
04/04/2021, 7:37 AMallan.conda
04/04/2021, 8:47 AMallan.conda
04/04/2021, 8:47 AMjava.lang.IllegalStateException: You can consumeRestoredStateForKey only after super.onCreate of corresponding component
at androidx.savedstate.SavedStateRegistry.consumeRestoredStateForKey(SavedStateRegistry.java:77)
Mark Murphy
04/04/2021, 11:05 AMallan.conda
04/04/2021, 11:52 AMMark Murphy
04/04/2021, 11:55 AMallan.conda
04/05/2021, 2:40 PMdispatchTouchEvent
to ignore touches, and I can’t find a Compose way to ignore touches.
Any ideas?Mark Murphy
04/06/2021, 12:11 PMThe Box is taking all the touches however so I can’t touch the view behind itI don't think that is a Compose issue. Do you have a sample app working outside of Compose that is doing what you want?
ComposeView is final so I can’t overrideAFAIK, that has not been relevant since Android 4.0. AFAIK, you need to look at window flags to provide to the window, such asto ignore touchesdispatchTouchEvent
FLAG_NOT_TOUCHABLE
or perhaps FLAG_NOT_TOUCH_MODAL
. And, this is not tied to Compose. I recommend that you get a sample working first without Compose UI, then (and only then) adapt it to Compose.allan.conda
04/06/2021, 12:19 PMFLAG_NOT_TOUCHABLE
won’t let me touch my overlay button. FLAG_NOT_TOUCH_MODAL
is the closest that could work but I cannot move around my compose button without having a fillMaxSize() parent where it could move around.
You’re right, I should try to make this work without compose… There’s a bunch of apps that were able to achieve this though (without using the new Bubble API)handstandsam
04/08/2021, 11:29 AMallan.conda
04/23/2021, 5:49 PM