yschimke
05/06/2022, 5:33 PMyschimke
05/10/2022, 12:43 PMlouiscad
05/11/2022, 9:58 PMKseniia Shumelchyk
05/12/2022, 12:07 AMyschimke
05/13/2022, 8:17 AM@WearPreviewDevices
@WearPreviewFontSizes
@Composable
@OptIn(ExperimentalHorologistAudioUiApi::class)
fun VolumeScreenPreview(
@PreviewParameter(AudioOutputProvider::class) audioOutput: AudioOutput
) {
yschimke
05/15/2022, 9:25 AMyschimke
05/15/2022, 10:02 AMBogdan C
05/16/2022, 8:40 AMBogdan C
05/16/2022, 5:56 PMyschimke
05/18/2022, 12:22 PMTgo1014
05/18/2022, 12:44 PMJohn Nichol
05/19/2022, 6:42 AMyschimke
05/20/2022, 7:50 AMVenthorus
05/23/2022, 5:13 PMJeremiah Jordan
05/24/2022, 6:51 PMbod
05/28/2022, 7:28 AMbod
05/28/2022, 10:07 AMHorizontalPager
), and the default Activity's swipe to dismiss behavior "vaguely works" 🙂 By that I mean, if I swipe with a quick enough gesture, it works. If I swipe slowly, it doesn't. (not using NavHost
or SwipeToDismissBox
) Any idea/pointers?barat
05/29/2022, 5:29 PMval scope = rememberCoroutineScope()
val focusRequester = remember { FocusRequester() }
LaunchedEffect(Unit) {
focusRequester.requestFocus()
}
Modifier
.onRotaryScrollEvent{
scope.launch{
scalingLazyListState.scollBy(it.verticalScrollPixels)
}
true
}
.focusRequester(focusRequester)
.focusable()
What I additionally found out about this is that focuseRequester() and focasable() must not be above onRotaryScrollEvent{}.
• working
.onRotaryScrollEvent{
scope.launch{
scalingLazyListState.scollBy(it.verticalScrollPixels)
}
true
}
.focusRequester(focusRequester)
.focusable()
• not working
.focusRequester(focusRequester)
.focusable()
.onRotaryScrollEvent{
scope.launch{
scalingLazyListState.scollBy(it.verticalScrollPixels)
}
true
}
John Nichol
06/03/2022, 6:23 AMScalingLazyColumn
to work in @Preview and also a change in its default behaviour so that content will be Center rather than Left aligned by default. We expect this to be the final beta release.Yingding Wang
06/06/2022, 3:28 PMYingding Wang
06/07/2022, 10:51 AMcompose-wear
with an AppCompactActivity
on Wear OS, if i want to migrate to wear compose along side my view system code.
The following steps are necessary:
1. the view code need to use Theme.AppCompat.DayNight.NoActionBar
from MDC lib com.google.android.material:material
2. use the AppCompatTheme Adaptor from the Accompanist com.google.accompanist:accompanist-appcompat-theme
to copy over the AppCompat Theme to a MaterialTheme composable
3. Add wear compose dependencies, and also horologist dependencies
I wish there is a codelab for this 🙂
I made an example project to demo this possibility that I can also migrate to compose-wear starting with new features along side view system code (https://github.com/yingding/wear-os-examples/tree/main/Wear3KtxPagerExample), would love to hear your thoughts on this.yschimke
06/07/2022, 12:49 PMZoltan Demant
06/08/2022, 7:58 AMyschimke
06/10/2022, 4:46 PMyschimke
06/13/2022, 7:41 AMTgo1014
06/13/2022, 12:49 PMyschimke
06/13/2022, 1:54 PMYingding Wang
06/13/2022, 5:07 PMTgo1014
06/13/2022, 11:25 PMscrollBy
the PositionIndicator
is not shown but if you use animateScrollBy
instead, it shows (at least when calling inside the onPreRotaryScrollEvent{}
. I'll post the code to reproduce on the 🧵bod
06/14/2022, 5:55 PMbod
06/14/2022, 5:55 PMLandry Norris
06/14/2022, 6:11 PMbod
06/14/2022, 9:53 PMyschimke
06/14/2022, 10:49 PM