Jeff
07/01/2021, 8:46 AMmmaillot
07/01/2021, 12:53 PMbrandonmcansh
07/01/2021, 1:16 PMdimsuz
07/01/2021, 1:29 PM.onFocusChange
modifier and set some State
?miskalinn
07/01/2021, 2:25 PMdimsuz
07/01/2021, 2:26 PMState
? Is there some estimate when this will be fixed?FunkyMuse
07/01/2021, 4:12 PMVM
07/01/2021, 5:16 PMTolriq
07/01/2021, 5:58 PMMarko Novakovic
07/01/2021, 6:10 PMandroidx.compose.ui.res.animatedVectorResource
. not found. did this got removed? can’t find another importTolriq
07/01/2021, 6:15 PMThe following classes could not be found:
- androidx.compose.ui.tooling.preview.ComposeViewAdapter
So the IDE (AGP 7.0.0 B4) still reference the previous package name. Will this require a new AGP / IDE build ?Craig Citro
07/01/2021, 6:44 PMNat Strangerweather
07/01/2021, 8:17 PMJorge Cordero
07/01/2021, 8:27 PMOrhan Tozan
07/01/2021, 9:04 PMrusshwolf
07/01/2021, 11:00 PMFabio
07/02/2021, 2:48 AMpainterResource
throws exception for some drawables and we can't write try/catch in @Composable
functions, how can I work around not crashing my app?
painterResource
calls loadVectorResource
who calls loadVectorResource
private fun loadVectorResource(theme: Resources.Theme, res: Resources, id: Int): ImageVector {
@Suppress("ResourceType") val parser = res.getXml(id)
if (parser.seekToStartTag().name != "vector") {
throw IllegalArgumentException(errorMessage)
}
return loadVectorResourceInner(theme, res, parser)
}
It crashes for an image such as this
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="<http://schemas.android.com/apk/res/android>">
<item>
<shape android:shape="oval">
<solid android:color="@color/colorBardeenBrand" />
</shape>
</item>
</layer-list>
Tolriq
07/02/2021, 5:26 AMTlaster
07/02/2021, 7:54 AMTin Tran
07/02/2021, 8:21 AMBox
height 2/3 of the parent box intrinsic height?martinsumera
07/02/2021, 8:23 AMLaunchedEffect
. When the state changes then the value of this state in the LaunchedEffect
contains the correct updated value.
2. Second one is basically a refactoring of the first one but the state is moved outside of the composable and then is passed as the parameter. When the state change outside of the composable then the LaunchedEffect
does not contain correct updated value but the initial value.
I know that in the second case it can be fixed by using rememberUpdateState, but I do not understand why is this happening? Can somebody explain it to me please?
The code samples are in the ThreadTolriq
07/02/2021, 9:01 AMEric Ampire [MOD]
07/02/2021, 11:00 AMYuri Drigin
07/02/2021, 11:44 AMRelocationRequester
and want to use it to scroll Column to focused TextField. Does anyone have example how to use it ?Napa Ram
07/02/2021, 12:48 PMjulioromano
07/02/2021, 2:18 PMBasicTextFiled
?
More details in 🧵dimsuz
07/02/2021, 2:23 PMconfirmStateChange
for HorizontalPager
planned? With bottom sheets I often use the pattern:
1. Sheet tells the State holder that it wants to change to e.g. Expanded
2. State holder decides whether to allow or disallow
3. State holder sets new state
4. Sheet uses that to run LaunchedEffect with animateTo(Expanded)
Currently HorizontalPager
provides no callback through which this can be done, it seems to change PagerState
internally.Peter Mandeljc
07/02/2021, 3:31 PM@Preview
@Composable
private fun Test() {
Surface(
modifier = Modifier.size(40.dp),
color = Color.Green,
) {
Box(
modifier = Modifier
.size(20.dp)
.clip(CircleShape)
.background(Color.Red)
)
}
}
curtjrees
07/02/2021, 4:53 PMNavHost
when I add a .verticalScroll()
modifier to it
It seems that the composables in my NavHost can’t fillMaxHeight()
anymore and fallback to wrapping the content size
Has anyone else managed to have “scrollable” NavHost? (reasoning behind this is to have a scrollState in which a collapsing toolbar can react to)Tomáš
07/02/2021, 5:23 PMonTextChange
and persist both up somewhere in my domain logic where I 1) update the list of suggestions 2) propagate text and selection back into this composable via descriptionWithSelection
parameter. As you can see from the sample code below, I use this descriptionWithSelection
only to populate the initial textFieldValueState
state but I don't know how to update that state later when a new description comes. See code examples in the thread 🧵
Thanks for any help.