Slackbot
10/01/2021, 12:51 PMkenkyee
10/01/2021, 1:02 PMPiotr Prus
10/01/2021, 2:17 PMMarko Gajić
10/01/2021, 2:38 PMAnthony Martin
10/01/2021, 3:32 PMAlertDialog
work with Compose Preview
? I can't get it to work as it's saying "_The graphics preview in the layout editor may not be accurate - The preview does not support multiple windows._"
Just trying to gain an understanding on what's doing wrong.
Code:
@Preview
@Preview(uiMode = Configuration.UI_MODE_NIGHT_YES)
@Composable
private fun SimpleComposeUIPreview() {
AppTheme {
DialogUI(
message = "This is an example dialog message...",
onPopBackStack = {}
)
}
}
@Composable
private fun DialogUI(
title: String = stringResource(R.string.title),
message: String,
positiveBtn: String = stringResource(R.string.pos),
onPopBackStack: () -> Unit
) {
AlertDialog(
onDismissRequest = onPopBackStack,
title = {
Text(text = title)
},
text = {
Text(text = message)
},
confirmButton = {
TextButton(
onClick = onPopBackStack,
) {
Text(positiveBtn)
}
},
)
}
Using version 1.1.0-alpha04 for Composealorma
10/01/2021, 4:12 PMAlex Vanyo
10/01/2021, 5:37 PMMiguel Vargas
10/01/2021, 5:38 PMval composables: List<@Composable () -> Unit>
someComposableLoopingScope(composables) { composable ->
composable.invoke()
}
Rafs
10/01/2021, 7:23 PMBottomSheetScaffold
I can actually see the BottomSheet flying in from the top of the page to the bottom when the app starts. This happens when I set the initialValue
to BottomSheetValue.Expanded
, is this actually intended behavior, or am I doing something horribly wrong? Screencap in thread....Colton Idle
10/01/2021, 7:43 PMList<@Composable () -> Unit>
is it possible to write an if/when statement on what to do if mylist[0]
is of type MySpecialButton
?Daniele Segato
10/01/2021, 11:24 PMSwipeable.animateTo
throw a JobCancellationException
when it's done instead of just terminating. (actually ModalBottomSheetState.show()
and ModalBottomSheetState.hide()
.
Is this a bug or was a design decision? And in the latter case what motivated it?
(more details in thread)brabo-hi
10/02/2021, 6:49 AMAmrJyniat
10/02/2021, 7:58 AMMohammad Sianaki
10/02/2021, 1:28 PMText
between two TextStyle
?Zoltan Demant
10/02/2021, 4:33 PMVisualTransformation
& formatting duration input! 🧵Orhan Tozan
10/03/2021, 11:03 AMOdin
10/03/2021, 5:22 PMandrew
10/03/2021, 5:48 PMenum class DarkTheme(private val _enabled: @Composable () -> Boolean) {
NO({ false }),
YES({ true }),
AUTO({ isSystemInDarkTheme() });
val enabled: Boolean
@Composable
get() = _enabled()
}
Lilly
10/03/2021, 11:14 PMBox
with a vector image on various devices. I would like to scale the image to FillWidth
but this has the side effect that the height is different on various devices and so the bottom padding too. How can I arrange the text in the center of the gray area so it has the same position on all devices? What I also don't understand is why the smaller preview looks different on real device, although the given specs and the specs of device are the same (device = "spec:Normal;480;800;px;320dpi").gabriel dean
10/04/2021, 7:05 AMAndroidView(factory = {
EditText(it)
},modifier = Modifier.fillMaxWidth().wrapContentWidth())
I clicked mutiple "tab" on keyboard and editext height got full screen. When I pressed delete button on keyboard multiple times, it got a bit delay to resize editext height.Mini
10/04/2021, 9:01 AMNavHost
now always uses Crossfades when navigating through destinations. (I07049, b/172112072)
Is there no way to turn this off?? As in, I dont want any animation at allmyanmarking
10/04/2021, 9:22 AMAmrJyniat
10/04/2021, 11:09 AMjossiwolf
10/04/2021, 12:26 PMHachemi Hamadi
10/04/2021, 1:26 PMadjpd
10/04/2021, 2:30 PMAnimatable
and AnimationState
. I see the view pager in accompanist is using AnimationState
and the docs say the advantage Animatable
has over AnimationState
is mutable exclusiveness of animation. Does anyone have any other insights?Adrien de Sentenac
10/04/2021, 3:51 PMnglauber
10/04/2021, 6:54 PMitems
in a LazyColumn
declared inside of a bottomSheet
route 😕
No errors, but the bottom sheet is not shown… If I wrap my LazyColumn
with a Scaffold
, it works… (but it has some space below the content)…
Maybe it’s a measurement issue? 🤔Colton Idle
10/04/2021, 7:02 PMbitkiller
10/04/2021, 10:54 PMbitkiller
10/04/2021, 10:54 PM