rkeazor
09/28/2020, 6:04 AMMadhava
09/28/2020, 6:16 AMAdriano Celentano
09/28/2020, 10:02 AMallan.conda
09/28/2020, 10:35 AMAnimatedVisibility
around the TopAppBar
, I lose the elevation. Is there something else I should be using to toggle it’s visibility?Julius Marozas
09/28/2020, 11:42 AMArchie
09/28/2020, 1:48 PMZach Klippenstein (he/him) [MOD]
09/28/2020, 1:50 PMYann Badoual
09/28/2020, 2:14 PMBuild on save
settings for preview instead of having to disable it in each file?Guy Bieber
09/28/2020, 6:24 PMSam
09/28/2020, 7:47 PMDaniele B
09/28/2020, 8:39 PMandroidx.compose.ui.graphics.Color
object ?Yann Badoual
09/29/2020, 11:53 AMZhelyazko Atanasov
09/29/2020, 5:47 PM@Preview
annotation. My intention was to have a single place with all the bits and pieces I've learned through different blog posts, docs, videos & my experimentations. If this is considered spam, I'm sorry about that and moderators/admins can delete this message. The article is not behind Medium's paywall, so - free for all 🙂 - Link. Any feedback or reporting errors are welcomed.Colton Idle
09/29/2020, 5:52 PMcomposeOptions {
kotlinCompilerVersion '1.4.10'
kotlinCompilerExtensionVersion '1.0.0-alpha03'
}
but now I updated to
composeOptions {
kotlinCompilerVersion '1.4.20-M1'
kotlinCompilerExtensionVersion '1.0.0-alpha03'
}
and the app won't even compile.
stack trace attached.
Is this a known issue by chance?sindrenm
09/29/2020, 8:45 PMFlowRow
and FlowColumn
don't have modifiers?Archie
09/30/2020, 8:09 AMArchie
09/30/2020, 1:14 PMDropDownMenu
work like TextInputLayout
with Spinner
? Like so?Prashant Priyadarshi
09/30/2020, 2:15 PMMini
09/30/2020, 6:09 PMjava.lang.AssertionError: Unbound symbols not allowed
Execution failed for task ':app:compileOmbordsalgStagingDebugKotlin'.
> Internal compiler error. See log for more details
Runtime JAR files in the classpath should have the same version. These files were found in the classpath:
And then a loooooong list of
Unbound public symbol for public kotlinx.android.synthetic......
Anyone know how to fix this?Michal Harakal
09/30/2020, 8:34 PMGuy Bieber
09/30/2020, 8:56 PMGuy Bieber
09/30/2020, 10:01 PMbruno.aybar
09/30/2020, 11:39 PMcomp
live template default value is:
@androidx.compose.Composable
fun $NAME$() {
$END$
}
it should be androidx.compose.runtime.Composable
, right?Chethan
10/01/2020, 4:16 AMJohnathan Leung
10/01/2020, 4:17 AMbruno.aybar
10/01/2020, 4:34 AMalpha02
to alpha03
.
alpha02
: animate alpha for a button, works fine
alpha03
: animate alpha for a button, main content animates correctly, but a weird border animation occurs
I made an small sample:
@Composable
fun Alpha(modifier: Modifier) {
val animation = animatedFloat(initVal = 1f)
onActive {
animation.animateTo(0f, anim = repeatable(
iterations = Infinite,
repeatMode = RepeatMode.Reverse,
animation = tween(1000))
)
}
Button(
onClick = { ... },
modifier = modifier.drawOpacity(animation.value)
) {
Text("test")
}
}
@Preview(showBackground = true)
@Composable
fun AlphaPreview() {
Stack(Modifier.fillMaxSize()) {
Alpha(Modifier.gravity(Alignment.Center))
}
}
And this is how it looks if I use alpha03
:fabio.carballo
10/01/2020, 5:23 AMtextAllCaps
when it comes to define the TextStyle/Typography
? I wanted one of my typography styles to always be in caps.mattinger
10/01/2020, 12:57 PMvar primary by mutableStateOf(primary, structuralEqualityPolicy())
internal set
mattinger
10/01/2020, 12:58 PMGuy Bieber
10/01/2020, 4:56 PMRow (Modifier.weight(.5f)) {
vehicleView()
}
However, when I do this the text disappears (though I see the main image):
ScrollableRow(
modifier = Modifier.weight(.5f),
scrollState = scrollState
) {
vehicleView()
}
Any thoughts?Guy Bieber
10/01/2020, 4:56 PMRow (Modifier.weight(.5f)) {
vehicleView()
}
However, when I do this the text disappears (though I see the main image):
ScrollableRow(
modifier = Modifier.weight(.5f),
scrollState = scrollState
) {
vehicleView()
}
Any thoughts?allan.conda
10/01/2020, 5:07 PM= scrollState
defined?Zach Klippenstein (he/him) [MOD]
10/01/2020, 5:08 PMGuy Bieber
10/01/2020, 6:00 PMval scrollState = rememberScrollState()