mattinger
10/06/2020, 5:14 PMArkadii Ivanov
10/06/2020, 5:40 PMrememberScrollState
is used inside Crossfade
, it receives different generates keys every time the screen is rotated. This prevents the state from being restored and also causes more and more keys accumulating in the UiSavedStateRegistryAmbient
. Is it expected behaviour or a bug?mattinger
10/06/2020, 5:47 PMGuy Bieber
10/06/2020, 10:25 PMSam
10/06/2020, 11:39 PMModalDrawerLayout
but that is more for a side menu..streetsofboston
10/06/2020, 11:41 PMsindrenm
10/07/2020, 9:52 AMModifier.drawIndicatorLine()
in TextField.kt but it's private. I could go ahead and make a “completely” custom text field using BaseTextField
, I guess, it's just that TextField
already had placeholders, leading/trailing icons and shapes and stuff built-in.Prashant Priyadarshi
10/07/2020, 11:42 AM@Composable
fun getSampleDataUI(list : List<SampleData>){
MaterialTheme {
LazyColumnFor(modifier = Modifier.fillMaxWidth(),
items = list) {item ->
ColumnScope.getSampleDataRow(data = item)
}
}
}
@Composable
fun ColumnScope.getSampleDataRow(data: SampleData){
return Card(modifier = Modifier.padding(15.dp).zIndex(5.0f)
.align(Alignment.CenterHorizontally)) {
Column(modifier = Modifier.padding(10.dp))
{
CoilImage(data.url, modifier = Modifier.size(50.dp).clip(CircleShape))
Text(text = data.value)
Text(text = data.value)
}
}
}
streetsofboston
10/07/2020, 2:38 PMclipChildren=false
and clipToPadding=false
?Alejandro Rios
10/07/2020, 4:00 PMsynthetics
?, should I use dataBinding
or viewBinding
instead of synthetics
?Colton Idle
10/07/2020, 8:27 PMlouiscad
10/07/2020, 8:38 PMsetContentView
in an Activity) the same as Compose at the root of an Activity, or is there layout render node related optimizations or whatever that cannot take place when Compose is used in a ViewGroup
?sindrenm
10/08/2020, 7:11 AMGeert
10/08/2020, 8:59 AMSocheat KHAUV
10/08/2020, 9:59 AMOmar Miatello
10/08/2020, 2:06 PMJimK
10/08/2020, 3:26 PMjava.lang.IllegalStateException: KeyEvent can't be processed because this key input node is not active.
When I hit tab on the emulator to switch fields, I get this exception; is this attempting to forward the keyevent to the hidden drawer fragment? I'm unsure why adding the AndroidView would cause thisbruno.aybar
10/08/2020, 4:45 PMSam
10/08/2020, 7:06 PMandroidx-master-dev
?) so I can browse compose/navigation/navigation/samples/src/main/java/androidx/compose
. It’s so different than github/gitlab and I have no idea why tapping the branch doesn’t take me to a directory of filesGuy Bieber
10/08/2020, 9:07 PM@Composable
private fun PagerLikeDemo() {
val pages = listOf(Color.LightGray, Color.White, Color.DarkGray)
LazyRowFor(pages) {
Spacer(Modifier.fillParentMaxSize().background(it))
}
}Sam
10/08/2020, 11:21 PMButton
with a LinearGradient
for the background? I see that the Button composable is not that hard to recreate, but internally using a Surface
which takes a Color
. Does this mean I have to recreate both Surface
and it’s private composable SurfaceLayout
to achieve a gradient background?Sam
10/09/2020, 12:27 AM<activity android:colorMode="wideColorGamut" …>
in AndroidManifest.xml
and using the colorSpace but it definitely does not look like the right color:
Color(red = r, green = g, blue = b, alpha = 1f, colorSpace = ColorSpaces.DisplayP3)
Afzal Najam
10/09/2020, 1:36 AMkotlinCompilerVersion
set to 1.4.10 in composeOptions
in build.gradle
Karthick
10/09/2020, 3:38 AMChristian
10/09/2020, 4:00 AMCannot import 'weight', functions and properties can be imported only from packages or objects
on Jetpack-Compose-Playground-master project?Irving
10/09/2020, 7:16 AMSam
10/09/2020, 7:25 AMalpha04
came out, but I searched every answer here along with compose-samples
. How do we horizontally center all children in a Column
? This doesn’t compile:
Column(Modifier.align(Alignment.Horizontal)) { ... }
And this compiles but doesn’t do the job:
Column(Modifier.align(Alignment.CenterHorizontally)) { ... }
I’ve resorted to putting Modifier.align(Alignment.CenterHorizontally)
on all the children within the Column, but I’m betting that’s not the intended solution.Gabriel
10/09/2020, 11:08 AMChethan
10/09/2020, 11:22 AMfabio.carballo
10/09/2020, 11:36 AMTypography
? in the previous theming system we relied in color selectors
. I guess there is nothing equivalent in Compose.fabio.carballo
10/09/2020, 11:36 AMTypography
? in the previous theming system we relied in color selectors
. I guess there is nothing equivalent in Compose.nickbutcher
10/09/2020, 1:50 PMval emphasis = AmbientEmphasisLevels.current
ProvideEmphasis(if (enabled) emphasis.high else emphasis.disabled) {
Text(…)
}
nglauber
10/09/2020, 3:51 PMval emphasis = EmphasisAmbient.current
nickbutcher
10/09/2020, 3:54 PMfabio.carballo
10/14/2020, 2:34 PM