ste
05/07/2021, 1:10 PMandroidx.compose.ui.text.TextStyle
to androidx.graphics.Typeface
?
I'm currently doing:
val fontResourceId = ((textStyle.fontFamily as FontListFontFamily).fonts[0] as ResourceFont).resId // a lot of doubts about this
val typeface = ResourcesCompat.getFont(context, fontResourceId)
I need to ellipsize text at start, but this isn't possible yet, so I just draw that on a Canvas
. Code in threadandrew
05/07/2021, 2:21 PMrobnik
05/07/2021, 2:30 PMrememberSaveable
to work? I stopped using the standard `NavController`/`NavHost` and now it (and rememberLazyListState
) stopped working.MaxUt
05/07/2021, 4:09 PMSlackbot
05/07/2021, 4:42 PMMjahangiry75
05/07/2021, 6:26 PMbottomsheet
in compose when backpressed
Francisco Noriega
05/07/2021, 6:29 PMBottomDrawer
but that gave me issues when the content was scrollable (swiping would actually show the drawer instead of scrolling my content), so I migrated to a BottomSheetScaffold
, but I don't seem to find away to add a scrim/darkened layer when the bottom sheet is showing like BottomDrawer
does. Is this not supported by BottomSheetScaffold
?Nthily
05/07/2021, 7:30 PMnglauber
05/07/2021, 7:36 PMHorizontalPager
from accompanist library. In version 0.9.0
the offscreenLimit
parameter was removed, but it’s still in the docs…
Is there any replacement for this param? cc: @cbLilly
05/07/2021, 7:54 PM@Preview
@Composable
private fun Preview() {
MyTheme {
DashboardContent(
scaffoldState = rememberScaffoldState(),
appBarTitle = "Preview",
presenter = // TODO
)
}
}
spencer
05/07/2021, 7:57 PMrobnik
05/07/2021, 10:11 PMAnimatable
to move a Float from 0 to 1.0 and then set some state to null at the end. I thought animateTo
might have an onDone
block, but no.Nat Strangerweather
05/08/2021, 9:29 AMNthily
05/08/2021, 12:36 PMBackHandler
? I want to use it to collapse ModalBottomSheet
, but I didn't find a good way to use itZhelyazko Atanasov
05/08/2021, 2:04 PMTopAppBar
in a general case where every screen of an app has one. Do we create a single TopAppBar
and mutate the title and menus via events or we'd rather have a TopAppBar
defined in each screen? What bothers me in the second option is that if you animate the transition between screens, the TopAppBar
will also be animated (I haven't looked into transition animations yet) unless we do something more custom for the app bar itself. And there are cases where the TopAppBar
shouldn't be animated and only its title and/or menus should be updated when changing screens.YASAN
05/08/2021, 4:41 PMTextField
its bottom is not fully visible but after that one time it works fine. Is this a bug or I am doing something wrong? [Gif in thread]Archie
05/08/2021, 6:06 PMsubcompose(...)
inside SubcomposeLayout(…)
? Is there a good source that dives deep into SubcomposeLayout
? Thanks in advance.stkent
05/08/2021, 8:51 PMCarson Holzheimer
05/09/2021, 5:26 AMAjay Venugopal
05/09/2021, 12:09 PMandrew
05/09/2021, 3:10 PMVinay Gaba
05/09/2021, 3:54 PMNat Strangerweather
05/09/2021, 7:13 PMdraggable
modifier, I don't really want the whole layout to be dragged, but only the individual elements of the layout. I have posted this on 😒tackoverflow:, if anyone wanted to have a look... https://stackoverflow.com/questions/67457124/how-to-apply-the-layout-modifier-to-each-placeable-individually-in-jetpack-compo . Thanks! 😊Ngenge Senior
05/09/2021, 7:30 PMSpikey Sanju
05/09/2021, 10:40 PMColor
to room db
in Jetpack Compose?. I’m trying to save an Article to room db (One of the params is Compose Color
).
Currently it shows error like to Use TypeConverter
for color
field to save the data.
How to achieve this?. Below I’ve attached my Model class.AN
05/10/2021, 3:26 AMNathan Castlehow
05/10/2021, 5:42 AMAnton Shilov
05/10/2021, 9:57 AM@Preview
annotation has @Retention(AnnotationRetention.SOURCE)
but not RUNTIME
? I'm trying to build a component gallery app, and would like to find all the Preview composables using reflection. Unfortunately I cannot do it right now without using codegen. Would it make sense for me to send a PR changing retention from SOURCE
to RUNTIME
?Noé Casas
05/10/2021, 11:25 AMtextAlign = TextAlign.Center
) with ClickableText
(see https://developer.android.com/jetpack/compose/text)? The ClickableText
API seems not to support it. My goal is to have hyperlinks on some of the words, like this: https://stackoverflow.com/a/65656351/674487 , but I would like the text to be centeredAjay Venugopal
05/10/2021, 11:41 AMAjay Venugopal
05/10/2021, 11:41 AMnglauber
05/10/2021, 12:50 PMAjay Venugopal
05/10/2021, 1:03 PMnglauber
05/10/2021, 2:15 PMZach Klippenstein (he/him) [MOD]
05/10/2021, 3:49 PMjim
05/10/2021, 3:55 PMAjay Venugopal
05/14/2021, 6:37 PMjim
05/14/2021, 7:55 PMMaxUt
08/03/2021, 7:57 AMAjay Venugopal
08/03/2021, 7:59 AMChris Miller
08/14/2021, 11:57 PM