当前位置:网站首页>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
、 partAnimatedVisibility
API、 - Vector correlation API:
rememberVectorPainter
、VectorProperty
、VectorConfig
andRenderVectorGroup
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 API
Send request to parent , Scroll elements into the view .
Update announcement :https://android-developers.googleblog.com/2022/02/jetpack-compose-11-now-stable.html
边栏推荐
- Activiti directory (IV) inquiry agency / done, approved
- Resume of a microservice architecture teacher with 10 years of work experience
- vscode
- Train 100 pictures for 1 hour, and the style of the photos changes at will. There is a demo at the end of the article | siggraph 2021
- mysql的合计/统计函数
- Flink源码解读(三):ExecutionGraph源码解读
- Basic knowledge of assembly language
- Instructions for Redux
- MySQL date function
- ByteDance overseas technical team won the championship again: HD video coding has won the first place in 17 items
猜你喜欢
原型链继承
Fdog series (I): think about it. It's better to write a chat software. Then start with the imitation QQ registration page.
1. JVM入门介绍
Coursera cannot play video
Fdog series (V): use QT to imitate QQ to realize login interface to main interface, function chapter.
arithmetic operation
JVM之垃圾回收器上篇
Flink 解析(四):恢复机制
Activiti目录(四)查询代办/已办、审核
姚班智班齐上阵,竞赛高手聚一堂,这是什么神仙编程大赛?
随机推荐
À propos de l'utilisation intelligente du flux et de la carte
8086 内存
MySQL date function
When it comes to Google i/o, this is how ByteDance is applied to flutter
字节跳动海外技术团队再夺冠:高清视频编码已获17项第一
汇编课后作业
唯有学C不负众望 TOP5 S1E8|S1E9:字符和字符串&&算术运算符
Assembly language segment definition
SQL调优小记
Which is more important for programming, practice or theory [there are some things recently, I don't have time to write an article, so I'll post an article on hydrology, and I'll fill in later]
Instructions for Redux
vscode
Idea breakpoint debugging skills, multiple dynamic diagram package teaching package meeting.
唯有学C不负众望 TOP2 p1变量
Control transfer instruction
Idea resolving jar package conflicts
Activit fragmented deadly pit
Activit零零碎碎要人命的坑
JVM garbage collection overview
登陆验证koa-passport中间件的简单使用