Ash
12/16/2021, 1:02 AMJohn Nichol
12/16/2021, 8:07 PMSrSouza
12/17/2021, 12:55 AMJohn O'Reilly
12/17/2021, 7:35 PM1.1.0-rc02
(well, Compose Compiler part anyway) works with Kotlin 1.6.10....should there be wear compose version right now that also works with that?
https://kotlinlang.slack.com/archives/CJLTWPH7S/p1639683988274300Ash
12/18/2021, 10:52 PMif
statement.
These should both just be Row and each WearOS device doing the correct rendering ...
if (LocalConfiguration.current.isScreenRound) {
CurvedRow(
} else {
Row(
This does not feel like Declarative to me ??? 🤷🏽yschimke
12/20/2021, 10:43 AMSteve Bower [G]
12/20/2021, 4:11 PMAsh
12/21/2021, 3:43 AMLebron James
12/21/2021, 5:59 AM이준학
12/27/2021, 4:40 AMYingding Wang
12/30/2021, 12:01 PMYingding Wang
12/30/2021, 9:43 PMlayoutInfo.visibleItemsInfo
and its offset
?
...
val listState = rememberScalingLazyListState()
Scaffold(
timeText = {
val itemInfoList = listState.layoutInfo.visibleItemsInfo
// the first element is scrolled up more than 15dp, deactivate the Time Text
if (itemInfoList.isNotEmpty()
&& itemInfoList[0].index == 0 // the first visible index is the first element
&& itemInfoList[0].offset >= -15 // the first element is scrolled up less than 15dp
) {
// show time text
TimeText()
}
},
yschimke
01/04/2022, 12:20 PMThomas
01/06/2022, 5:43 PMAustin Nelson
01/08/2022, 12:06 AMyschimke
01/12/2022, 12:06 PMyschimke
01/12/2022, 7:31 PMJohn Nichol
01/12/2022, 10:01 PMYingding Wang
01/13/2022, 7:45 PMoffset
of ScalingLazyListItemInfo
are ScalingLazyListAnchorType.ItemCenter
or ItemStart
while initialising the ScalingLazyColumn, the option of offset to its initial position of Alpha 13 are now gone.
How can I detect that the ScalingLazyColumn has been scrolled up e.g. 15dp?Dmitry Kroz
01/17/2022, 10:49 PMyschimke
01/19/2022, 5:58 PMLebron James
01/21/2022, 3:21 AMBernt Julian
01/21/2022, 9:21 AMyschimke
01/24/2022, 11:57 AMSteve Bower [G]
01/25/2022, 10:30 AMLebron James
01/26/2022, 10:55 AMJohn Nichol
01/26/2022, 8:22 PMScalingLazyColumn
removing the need to provide top/bottom/vertical content padding - so look to update your padding as part of upgrading.Austin Nelson
01/27/2022, 2:28 PMThomas
01/29/2022, 1:27 AMFatal Exception: java.lang.IllegalArgumentException: No WearNavigation.Destination has been added to the WearNavigator in this NavGraph. For convenience, build NavGraph using androidx.wear.compose.navigation.composable.
at androidx.wear.compose.navigation.SwipeDismissableNavHostKt.SwipeDismissableNavHost(SwipeDismissableNavHostKt.java:166)
at androidx.wear.compose.navigation.SwipeDismissableNavHostKt.SwipeDismissableNavHost(SwipeDismissableNavHostKt.java:87)
... (redacted)
Note that it works great for most users, so far this crash is only affecting a few users. I am not able to reproduce it myself. I am creating my nav host like this:
SwipeDismissableNavHost(
navController = navController,
startDestination = "mydestname"
) {
// Note that composable is from androidx.wear.compose.navigation package.
composable("mydestname") {
...
}
... more composables
}
The crash seems unexpected to me as there are always destinations added, so I suspect this is a bug. This is using androidx.wear.compose:* snapshot 8104636 and androidx.navigation:* 2.4.0-rc01.
Any suggestions?John O'Reilly
01/29/2022, 11:58 AMJohn O'Reilly
01/29/2022, 11:58 AMThomas
01/29/2022, 12:59 PMJohn Nichol
01/29/2022, 1:23 PM