Who has customized wheel picker to use compose? t...
# compose-wear
l
Who has customized wheel picker to use compose? thank you!
j
I don't know exactly which wheel picker you are talking about, but in Compose for WearOS we have a fisheye (scaling and tranparency effects) list component called
ScalingLazyColumn
which you can find our more about at https://developer.android.com/codelabs/compose-for-wear-os#6. This is used to under pin our in-development
Picker
components - that will evolve to support https://developer.android.com/training/wearables/components/pickers
l
This picker component is really great
message has been deleted
I learned that it currently does not support initial selection
Copy code
And including specifying a certain value to select
Thanks again
t
@John Nichol is it possible to use this time picker from wearable on a android app?
y
This new material picker is fantastic. I guess it doesn’t make much sense to customize it, since all wear-compose default element already supports material you.
s
@Tgo1014 the time picker is still under development in the Wear Compose library - but the general advice is not have dependencies on both Compose Material and Wear Compose Material libraries (for example, that can result in unexpected behaviour because each library has its own MaterialTheme).
t
@Steve Bower [G] my idea was to copy the code from the Picker but it relies on the scallable state which has a center item, I guess would need some adapting to make it work
j
The support for selecting center item in the ScalingLazyColumn that the picker builds on has just been added and will be available in the next Alpha release. The picker will be updated soon to use this new functionality. So I expect by the end of January we will have this available.
l
Hi, John Nichol I want to ask, is it because I didn't set some parameters, resulting in no selected number in the middle when the page is opened. And I can't specify how many items are displayed in front. For example, there are about 5 items in total, and we should usually see 3. The following is the performance
But the official style is very beautiful.
message has been deleted
@John Nichol Thank you !
368 Views