bohregard
08/07/2020, 1:48 PMcaelum19
08/07/2020, 2:51 PMsetContent {
ConstraintLayout(modifier = Modifier.fillMaxSize()) {
val d = createRef()
ScrollableColumn(modifier = Modifier.constrainAs(d) {
top.linkTo(<http://parent.top|parent.top>, 30.dp)
bottom.linkTo(parent.bottom, 30.dp)
width = Dimension.value(360.0.dp)
height = Dimension.fillToConstraints
}) {
for (i in 0..30) {
Box(
Modifier.size(135.dp, 60.dp).background(Color.Red)
.drawBorder(1.dp, Color.Black)
) {
// Text("scrrt scrrt")
for (i2 in 0..40 step 2)
Box(
Modifier.size((135 - i2).dp, (60 - i2).dp).background(Color.Red)
.drawBorder(1.dp, Color.Black)
) {
}
}
}
}
}
}
Uncomment // Text("scrrt scrrt") and scrolling is pretty stuttery (even without the many cascading boxes)
But with text, and height = Dimension.value(600.dp), the lag is gone. Without the ConstraintLayout there is also no lag.
Am I doing something silly? I'll create an issue if I'm not 🙂
Using dev 16, though was equally an issue in 15 that I've just potentially isolatedJohn O'Reilly
08/07/2020, 4:38 PMScaffold
and the LazyColumnFor
looks to be overlapping with BottomAppBar
...is there some modifier etc I should be using in this case (will add more code in thread)....Ji Hwan Min
08/07/2020, 7:10 PMgalex
08/07/2020, 8:27 PMgalex
08/08/2020, 8:28 AMadjustPan
so that the keyboard does not hide an OutlinedTextField
?galex
08/08/2020, 12:27 PMView.setVisibility
on Composables? I’d like to hide a Composable when needed but not just change its opacity because this means it still catches onClicks!galex
08/08/2020, 12:56 PMsoftwareKeyboardController
in onImeActionPerformed
but what about other places? I didn’t find an Ambient for thiscaelum19
08/08/2020, 4:30 PMDaniele B
08/08/2020, 6:32 PMKarthikeyan1241997
08/09/2020, 7:35 AMMeddy
08/09/2020, 12:34 PMMehdi Haghgoo
08/09/2020, 5:24 PMFailed to resolve: org.jetbrains.kotlin:kotlin-stdlib:1.4-M3
I don't have any usage of 1.4-M3 in my gradle files. My kotlin version in project level gradle file is 1.3.70.
This is almost a new project and I haven't made many changes.John O'Reilly
08/09/2020, 6:13 PMscaffold
with bodyContent
containing a list (using LazyColumnFor
) and a BottomAppBar
....selecting different options in bottom bar causes some state to change and for UI to be recomposed (with content of list updated).....the only issue is that list position remains the same. Is there way I can/should reset that when I select different option? https://github.com/joreilly/BikeShare/blob/master/app/src/main/java/com/surrus/bikeshare/MainActivity.ktMehdi Haghgoo
08/10/2020, 3:36 AMMehdi Haghgoo
08/10/2020, 3:45 AMBrett Best
08/10/2020, 3:46 AMbrandonmcansh
08/11/2020, 12:06 AMJoost Klitsie
08/11/2020, 7:56 AMMarcin Środa
08/11/2020, 8:17 AM@Preview
now. Any ideas how to achive it? My goal is to create a standalone component based on custom library / framework with defined fetching messages or something 🙂KamilH
08/11/2020, 8:41 AMClass 'androidx.compose.runtime.Composable' is compiled by a new Kotlin compiler backend and cannot be loaded by the old compiler
I can see this even though app is compiling and running on my deviceMarcin Środa
08/11/2020, 9:16 AMConstraintSet {
val image = tag(HEADER_MESSAGE_IMAGE_TAG)
...
}
Was looking for some similar id like layoutId
but cannot see anythingPhilip Blandford
08/11/2020, 10:17 AMColumn {
TextField(value = "", onValueChange = { }, label = {}, modifier = Modifier.width(50.dp))
TextField(value = "", onValueChange = { }, label = {}, modifier = Modifier.width(100.dp))
TextField(value = "", onValueChange = { }, label = {}, modifier = Modifier.width(150.dp))
}
Paolo Achdjian
08/11/2020, 11:00 AMZach Klippenstein (he/him) [MOD]
08/11/2020, 6:45 PMZach Klippenstein (he/him) [MOD]
08/11/2020, 6:57 PMCheckbox
requires an onCheckChanged
function, which is unfortunate if you want to make the label clickable as well, since now you’re passing the same handler twice, and the checkbox itself is still clickable but with its own ripple.lib
08/12/2020, 6:02 AMtmphey
08/12/2020, 8:26 AMWajahat Karim
08/12/2020, 9:04 AMVectorDrawable
in the Canvas. I can only see methods like drawLine
, drawCircle
or drawImage
etc, but there's no method for either bitmap drawing (like I get bitmap from VectorDrawable) or directly for VectorAsset
. I did tried it using the the vector path in form of string like in this example (https://github.com/JorgeCastilloPrz/ComposeFillableLoaders) from @Jorge Castillo . But, I am not able to fill color inside the path with this method. I want to fill the whole drawable from inside. Can anyone tell me how can I do this?Philip Blandford
08/12/2020, 9:26 AMPhilip Blandford
08/12/2020, 9:26 AMZach Klippenstein (he/him) [MOD]
08/12/2020, 1:36 PM