当前位置:网站首页>Jetpack compose 1.1 release, based on kotlin's Android UI Toolkit
Jetpack compose 1.1 release, based on kotlin's Android UI Toolkit
2022-07-06 17:15:00 【Open source China Information】
Jetpack Compose yes Android be based on Kotlin Modern primordial UI tool kit , It can help developers build applications faster , Open source by Google .Jetpack Compose 1.1 The version includes some new features , Such as improved focus processing 、 Forcibly expand the touch target size 、ImageVector cache , And support Android 12 Stretching and rolling effect , In addition, some experimental api Become stable , And support Kotlin A new version of the .
Be careful : Use Compose 1.1 Need to use Kotlin 1.6.10.
Image vector cache
Compose 1.1 Image vector cache is introduced , by painterResource API Added a caching mechanism : Cache all given resources id And topic resolution ImageVectors example , Brings huge performance improvements .
Be careful : When changing the configuration , The cache will be invalidated .
Force extended touch target size
stay Jetpack Compose 1.1 edition ,Material Components will expand the layout space , To satisfy Material Of Accessibility guide - Touch the target size standard .
for example RadioButton's, Even if developers will RadioButton The size of is set smaller , The minimum size of the touch target will also be expanded to 48x48dp. Figure below :

Left for Jetpack Compose 1.0 Available touch settings , The right to Jetpack Compose 1.1 Forcibly expand the effect after touching the target size .
Can be set by LocalMinimumTouchTargetEnforcement by false To disable this feature .
From experimental to stable API
- Animation related API, Such as :
EnterTransition、ExitTransition、 partAnimatedVisibilityAPI、 - Vector correlation API:
rememberVectorPainter、VectorProperty、VectorConfigandRenderVectorGroup
New experimental API
- Use
rememberSaveable. when , It can also be saved and restoredAnimatedContent - have access to
Modifier.animateItemPlacement(). Yes LazyColumn/LazyRow Perform animation positioning - You can use the new
BringIntoView APISend request to parent , Scroll elements into the view .
Update announcement :https://android-developers.googleblog.com/2022/02/jetpack-compose-11-now-stable.html
边栏推荐
- Activiti目录(五)驳回、重新发起、取消流程
- DOS function call
- After idea installs the plug-in, restart the plug-in and disappear
- 字节跳动春招攻略:学长学姐笔经面经,还有出题人「锦囊」
- README. txt
- ByteDance overseas technical team won the championship again: HD video coding has won the first place in 17 items
- Flink 解析(三):内存管理
- js垃圾回收机制和内存泄漏
- 一个数10年工作经验的微服务架构老师的简历
- 学习投资大师的智慧
猜你喜欢
随机推荐
Brush questions during summer vacation, ouch ouch
程序员定位解决问题方法论
JVM之垃圾回收器上篇
ByteDance overseas technical team won the championship again: HD video coding has won the first place in 17 items
登陆验证koa-passport中间件的简单使用
[graduation project] QT from introduction to practice: realize imitation of QQ communication, which is also the last blog post in school.
In the command mode in the VI editor, delete the character usage at the current cursor__ Command.
Activiti目录(四)查询代办/已办、审核
GCC error: terminate called after throwing an instance of 'std:: regex_ error‘ what(): regex
Thank you for your invitation. I'm in the work area. I just handed in the code. I'm an intern in the next ByteDance
MySQL日期函数
Eight part essay that everyone likes
Shell_ 06_ Judgment and circulation
mysql 基本增删改查SQL语句
Many papers on ByteDance have been selected into CVPR 2021, and the selected dry goods are here
Interpretation of Flink source code (III): Interpretation of executiongraph source code
唯有学C不负众望 TOP3 Demo练习
Wu Jun trilogy insight (IV) everyone's wisdom
IDEA断点调试技巧,多张动图包教包会。
SQL调优小记









