View profile

jetc.dev Newsletter - Issue #116

jetc.dev Newsletter - Issue #116
By Mark Murphy, CommonsWare • Issue #116 • View online
Google I|O 2022 happened, and we have the pictures (well, OK, videos) to prove it!
Beyond that, we peek at what’s new in the beta01 releases for Compose and Wear Compose. We look at the underpinnings of the state system and how to leverage drawBehind() for performance. We see libraries for credit card fields and app intros. And, we learn what a “horologist” is, at least from the standpoint of Wear Compose.

Beta Breakdown
Reviewing the release notes for the latest Jetpack Compose update!
1.2.0-beta01 was released in time for Google I|O 2022. Of note:
  • We got several changes to the line height APIs, mostly types being renamed, plus LineHeightBehavior (to control what happens with the top and bottom lines of text)
  • LazyLayoutItemsProvider received several changes
  • TextStyle and SpanStyle now have access to a Brush for gradient fills
  • We got a new platform-independent test API, in the form of ComposeUiTest interface — implementations (AndroidComposeUITest and DesktopComposeUiTest) can run Compose tests without a TestRule
Wear Compose also went to a beta (1.0.0-beta01). Of note there:
  • CurvedModifier.padding...() functions are now available to provide more space around a curved component
  • AppCard() and TitleCard() now have an enabled parameter
One Off the Stack, One Off the Slack
You’ve got questions. That’s understandable!
Why Does My Layout() Ignore My Size?
Composable Commentary
Posts, videos, and other new information related to Jetpack Compose!
What's new in Jetpack Compose
Implementing snapshot-aware data structures
Compose phases and optimizations
Strategies for Migrating to Jetpack Compose with Mohit Sarveiya
Resource Roundup
100% pure code!
Horologist
…And One More Thing
Google I|O 2022 is in the books, and remarkably few ground-breaking improvements came out of it for Compose developers. Admittedly, the Live Edit experience added to Android Studio Electric Eel was shocking to see.
(and, if you didn’t expect that awful pun, you don’t know me very well…)
Tooling improvements like that are very welcome. But if you were expecting Compose for Stoves, or a new “Material Us” design language with Compose support, you may have been disappointed. We got new betas, and some more Google libraries and samples, but that was about it. IMHO, going a bit slow this cycle is not a bad thing, in that it helps the broader Android ecosystem catch up. While many developers love a cycle of continuous change, many other developers deeply resent the “hamster wheel” that continuous change represents.
Here are YouTube links for the I|O 2022 sessions that specifically called out Compose in their descriptions, from my roster from two weeks ago.
Did you enjoy this issue?
Mark Murphy, CommonsWare

Jetpack Compose news and notes.

In order to unsubscribe, click here.
If you were forwarded this newsletter and you like it, you can subscribe here.
Powered by Revue