Orhan Tozan
03/02/2021, 5:01 PMandroid:includeFontPadding="false"
? Can't seem to find it.escodro
03/02/2021, 5:21 PMHome
screen that contains 4 tabs, each one with its own ViewModel
.
Today it is declared this way:
composable(Destinations.Home) {
Home(
onTaskClicked = actions.openTaskDetail,
onAboutClicked = actions.openAbout
)
}
But since calling viewModel()
to get the ViewModels for each Composable does not work, how should I proceed? Get the 4 ViewModels inside my NavGraph
and pass then all to my Home
? Should I create a HomeViewModelProvider
containing the 4 ViewModels? Is there a better approach?
Thanks a lot in advance! ❤️Tony Kazanjian
03/02/2021, 5:22 PMScrollableState
to a modifier that also includes a DraggableState
has no effect (also, seems like whichever modifier comes next pretty much overwrites the previous one). Code in threadJohn O'Reilly
03/02/2021, 5:55 PMUnresolved reference: BottomDrawerLayout
- I might be missing something obvious but I've searched this channel/web but didn't see anything about that changingBryan Herbst
03/02/2021, 6:52 PMModalBottomSheetLayout
is dismissed, either from accessibility actions or from tapping on the scrim outside the sheet?
Drop a DisposableEffect
inside the sheet’s content? I don’t see any sort of callback or observable state.zoha131
03/02/2021, 7:02 PMAnimatedVisibility
. More specifically why do we have RowScope
and ColumnScope
version of implementations? Isn’t without scope one is enough?
I think I have seen this pattern for couple of other Composables. My curious minds wants to the reason behind it. 🧐Orhan Tozan
03/02/2021, 7:28 PMAlexander Pataridze
03/02/2021, 7:31 PMDaniel
03/02/2021, 11:48 PMSam
03/03/2021, 1:49 AMalpha11
to beta01
is borderline unconstitutional, 600+ compile time errors down, still 44 more to go — fingers crossed our app actually works at runtimeColton Idle
03/03/2021, 2:57 AMfun ImageView.loadImageToSize(url: String) {
this.doOnLayout { <--- ktx method that replaced OnGlobalLayoutListener
// it.width and it.height are accessible here
...
}
Shivam Sethi
03/03/2021, 3:27 AMjacksparling
03/03/2021, 5:00 AMTlaster
03/03/2021, 5:19 AMjava.lang.IllegalArgumentException: 0 was already used with subcompose during this measuring pass
after beta01 when setting initialFirstVisibleItemIndex
for LazyColumn? Full stacktrace in thread.Vinay Gaba
03/03/2021, 5:35 AMTextField
as the title
slot of a TopAppBar
. I’m actually using a TextField
or a Text
depending on some state (search being active vs not). The thread has more details. Has anyone noticed something similar?wiktorl4z
03/03/2021, 9:08 AM> Task :app:spotlessKotlin FAILED
Can't parse copyright year '', defaulting to 2021
Step 'ktlint' found problem in 'app\src\main\java\com\example\androiddevchallenge\MainActivity.kt':
Error on line: 26, column: 1
Wildcard import
java.lang.AssertionError: Error on line: 26, column: 1
I assume that he has problems with reading the copyright but It's default one..Orhan Tozan
03/03/2021, 10:03 AMOutlinedButton(shape = RoundedCornerShape(28.dp))
It looks like it only applies it to the top corners? Is this a bug?note8g2018
03/03/2021, 10:12 AMDaniel
03/03/2021, 11:58 AMSlackbot
03/03/2021, 12:48 PMKulwinder Singh
03/03/2021, 1:17 PMAdriano Celentano
03/03/2021, 1:44 PMKevin Aude
03/03/2021, 2:07 PMHalil Ozercan
03/03/2021, 2:18 PMpointerInput
but when I tried implementing my own, I got totally lost.
My first try was a quick failure because predefined detectors consume the events so they cannot be used together.
On my second attempt, I tried to write my own detector with lower level await
calls and got confused so hard.
Is there a documentation that would shine even a little light on this API?zhuinden
03/03/2021, 2:41 PMPiotr Prus
03/03/2021, 3:22 PMCrane
app sample, provide your google map api and make only one small change, enable gestures on map. The map will not update on your gestures until you tap on button or any other interactive element on screen. Anyone encounter such behavior?
I am building the mapApp and this behaviour occurs only on Huawei devices.Zhelyazko Atanasov
03/03/2021, 3:31 PMModifier
passed in as an argument and then adding more modifiers on top of it, e.g.:
fun Info(modifier: Modifier) {
Text(modifier.size(16.dp)
}
Versus having the same case, but using then
to merge the 2 modifiers:
fun Info(modifier: Modifier) {
Text(modifier then Modifier.size(16.dp)
}
Daniel
03/03/2021, 4:12 PMFunkyMuse
03/03/2021, 5:42 PMFunkyMuse
03/03/2021, 5:42 PMIan Lake
03/03/2021, 5:48 PMFunkyMuse
03/03/2021, 5:48 PMIan Lake
03/03/2021, 5:51 PMFunkyMuse
03/03/2021, 5:51 PMIan Lake
03/03/2021, 5:52 PMFunkyMuse
03/03/2021, 5:53 PMIan Lake
03/03/2021, 5:53 PMFunkyMuse
03/03/2021, 5:53 PMIan Lake
03/03/2021, 5:57 PMGabriel Melo
03/03/2021, 5:58 PMIan Lake
03/03/2021, 5:58 PMGabriel Melo
03/03/2021, 5:59 PMGabriel Melo
03/03/2021, 6:00 PMFunkyMuse
03/03/2021, 6:06 PMIan Lake
03/03/2021, 6:14 PMFunkyMuse
03/03/2021, 6:15 PMIan Lake
03/03/2021, 6:16 PMFunkyMuse
03/03/2021, 6:44 PMGabriel Melo
03/03/2021, 6:49 PMFunkyMuse
03/03/2021, 6:52 PMGabriel Melo
03/03/2021, 8:47 PMGabriel Feo
03/04/2021, 1:08 AM@Parcelize
for state restoration going forward: https://developer.android.com/jetpack/compose/state#restore-ui-state