zkeme
03/16/2021, 3:33 PMcodeslubber
03/16/2021, 5:26 PMBryan Herbst
03/16/2021, 5:53 PMDid you know you can copy the preview as an image by right clicking on it?Which doesn’t actually work for me in Android Studio 2020.3 Canary 9. Is this functionality that should be working, or is planned but just not quite working yet?
Daniele B
03/16/2021, 7:27 PMIcons.Default.Star
but not the “empty” one.
Anyone knows if it’s available?Colton Idle
03/16/2021, 8:23 PMColton Idle
03/16/2021, 10:04 PMJakub Ledwon
03/16/2021, 10:11 PMfontSize
(pulse effect animation). I want an animation to be infinite, but I want to be able to restart an animation from default value when state changes. So basically I have a switch which determines which text should be animating, and when switch changes the animation should reset. As my animation is infinite I tried rememberInfiniteTransition
, but there is no way to restart it (or I didn't find any). What would be the best approach for this problem? I would need something like InfiniteTransition
but I don't want to remember it during state changes.Deepak Gahlot
03/17/2021, 4:52 AMSlackbot
03/17/2021, 6:46 AMKshitij Patil
03/17/2021, 8:01 AMRow
Column
based Composable works way better than ConstraintLayout
. So you might lose some alignment constraint provisions but there won’t be any performance hits. ConstraintLayout
was accumulating lag over the time while Row
, Column
being simple enough, was able to handle heavy operations.Rafs
03/17/2021, 8:28 AMModifier.height
and Modifier.requiredHeight
?Danish Ansari
03/17/2021, 9:24 AMColton Idle
03/17/2021, 10:45 AMborder()
modifier to just draw on the bottom? Right now it's drawing a rectangle, but I'd love to tell it to just draw on bottom.Daniel Candeias
03/17/2021, 10:48 AMincludeFontPadding
in component Text()
? Is this supported in compose?ursus
03/17/2021, 1:43 PMActivity.onStop
?ursus
03/17/2021, 1:55 PMescodro
03/17/2021, 2:52 PMperformTextReplacement
because there is a TODO inside the function in Compose 1.0.0-beta02.
Is it “expected” for a beta? Should I open an issue tracker?
EditingBuffer.kt
internal fun delete(start: Int, end: Int) {
val deleteRange = TextRange(start, end)
if (deleteRange.intersects(TextRange(selectionStart, selectionEnd))) {
// Currently only target for deleteSurroundingText/deleteSurroundingTextInCodePoints.
TODO("support deletion within selection range.")
}
Thanks! ❤️Yang
03/17/2021, 3:01 PMluke_c
03/17/2021, 3:26 PMRolbin
03/17/2021, 4:01 PMDavid Attias
03/17/2021, 4:39 PM.idea/misc.xml
file updated by Android Studio every time I open a Compose Preview. I've read that I should keep this file under version control but it is very annoying. Anyone managed to handle this situation properly ?Samir Basnet
03/17/2021, 4:43 PMjulioromano
03/17/2021, 4:58 PMBottomSheetScaffold
have an intermediate state like for BottomSheetBehavior.STATE_HALF_EXPANDED
?
Right now I managed to have only 2 states, collapsed (defined by sheetPeekHeight
) and expanded.jaqxues
03/17/2021, 5:29 PMregisterForActivityResult
. I see the result when I override it in Activity, but the callback of the register.... function is not executing. The Intent in question is a GoogleSignInIntent.Danish Ansari
03/17/2021, 7:47 PMNoé Casas
03/17/2021, 8:15 PMSaveableStateProvider
that says java.lang.IllegalArgumentException: Type of the key XXXX is not supported. On Android you can only use types which can be stored inside the Bundle.
. What does it mean that a type can be stored inside the Bundle? Here, XXXX
is a mere sealed class, nothing exotic.Neal Sanche
03/17/2021, 8:25 PMColton Idle
03/17/2021, 8:43 PMVsevolod Ganin
03/17/2021, 10:07 PMsetContent
on Activity and then just nothing - nothing updates on screen, nothing bumps into my breakpoints except top-level composable. Don’t know where to look honestlyTlaster
03/18/2021, 6:58 AMcompositionLocal
seems like not a good idea, what about using built-in compositionLocal
like LocalContentColor
?Tlaster
03/18/2021, 6:58 AMcompositionLocal
seems like not a good idea, what about using built-in compositionLocal
like LocalContentColor
?jim
03/18/2021, 2:00 PMTlaster
03/18/2021, 2:53 PM