Compose for Wear OS 1.2.0-alpha06 was released on ...
# compose-wear
s
Compose for Wear OS 1.2.0-alpha06 was released on Wed 8th March. It includes a new expandable item(s) API to support either a group of expandable items in a ScalingLazyColumn, or an expandable single item such as Text in which the number of lines expands. Also, we have introduced the wear.compose.compose-ui-tooling library, with custom preview annotations (requires Android Studio Giraffe Canary 6 or later) promoted from horologist/compose-tools. Please see the release notes for additional details.
๐Ÿ‘ 2
๐Ÿ‘๐Ÿผ 1
๐ŸŽ‰ 9
๐Ÿ‘๐Ÿป 1
๐Ÿš€ 5
๐Ÿผ 1
y
Is this expandable item somehow similar to
Copy code
AnimatedVisibility(visible = expanded) {}
and make things more simpler?
s
Expandable items support the UX pattern of 'Show More' - typically with a button to Show more/Show less, and animation around the expansion to display the additional items. So yes, AnimatedVisibility is one way you might have hand-coded it before and the intention is to make it easier to do it really well. Please take a look at the samples and let us know what you think ๐Ÿ™‚