https://kotlinlang.org logo
#compose
Title
# compose
c

Colton Idle

03/23/2022, 9:11 PM
Compose Version 1.2.0-alpha06 is out today! Some release notes that I found interesting. • A bunch of focus related stuff!!!! • TextFields will now be kept above the keyboard when they are focused and the keyboard is shown, when inside a non-lazy scrollable and the soft input mode is
ADJUST_RESIZE
. WOOOOOOOOOOOOOOOOOO Thanks @Zach Klippenstein (he/him) [MOD] 😄 • Added
RequestFocus
semantics action to request focus on the focusable target. •
FocusOrder
has now been merged into
FocusProperties
and
focusProperties()
now has all the capabilities of
focusOrder()
.
FocusOrder
and
focusOrder()
have been deprecated.
focusOrder()
that accepts a
focusRequester
should be replaced with a
focusRequester()
modifier in combination with
focusProperties()
. This allows the modifiers to have a stronger separation of concerns. •
WindowInsets.asPaddingValues(Density)
was added to allow developers to do the conversion without needing to be in composition. • Updated parsing of vector drawables to support auto mirroring to flip the content of a
VectorPainter
if the current layout direction is RTL. • Scroll modifiers (
Modifier.verticalScroll()
,
Modifier.horizontalScroll()
, and
Modifier.scrollable()
) will now scroll to keep the focused composable visible if the scroll area is resized and the focused composable was previously visible. • Upgrading both
RecyclerView
and
Compose
will now result in much better scrolling performance for RecyclerViews with Compose views as children. • Reference devices added to the Devices list for @Preview (I071c9) • compose-ui: Add
ambientShadowColor
and
spotShadowColor
properties to
GraphicsLayerScope
(I1ba1a, b/160665122) • Plural resources are now supported via the
pluralStringResource
functions. (Ib2f23, b/191375123) • Material3 - Added support for Material 3 text fields. (I795cc, b/199377790)
❤️ 16
🙏 2
z

Zach Klippenstein (he/him) [MOD]

03/23/2022, 9:13 PM
That caveat about non-lazy scrollables is a pretty big one, unfortunately. I probably should have made it bold or something.
d

divid3d

03/23/2022, 11:10 PM
Finally some good stuff. TextField focus problem took so long to fix 🎉
z

Zach Klippenstein (he/him) [MOD]

03/23/2022, 11:36 PM
Colton immediately found another one 😂
😄 2
f

FunkyMuse

03/24/2022, 7:22 AM
Thanks guys for that ADJUST_RESIZE thingy, won't have to keep the PO waiting. Do you have any info about 2D scrolling, is it coming anytime near?
l

lsiret

03/26/2022, 2:30 AM
Very strange, I bumped from 1.0.5 to 1.2.0-alpha06 Tonight, because I’m interested in RecyclerView optimisation and includeFontPadding=false. But when I’m looking in my library I see the old class not the on on gerrit https://android-review.googlesource.com/c/platform/frameworks/support/+/2028663/27/compose/u[…]mmonMain/kotlin/androidx/compose/ui/text/TextStyle.kt . Did I miss something when switching to the alpha ? I just replace ref to 1.0.5 to 1.2.0-alpha-06 in my gradle files
c

Colton Idle

03/28/2022, 2:42 AM
If you print out your dependency tree do you see anything refering to 1.0.5?
6 Views