当前位置:网站首页>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
边栏推荐
- JVM之垃圾回收器下篇
- SQL调优小记
- 程序员定位解决问题方法论
- Set up the flutter environment pit collection
- vscode
- Interview collection library
- 8086 segmentation technology
- Some instructions on whether to call destructor when QT window closes and application stops
- 姚班智班齐上阵,竞赛高手聚一堂,这是什么神仙编程大赛?
- Ce n'est qu'en apprenant que c est à la hauteur des attentes Top5 s1e8 | s1e9: caractères et chaînes & opérateurs arithmétiques
猜你喜欢
8086 CPU internal structure
redux使用说明
汇编语言段定义
Set up the flutter environment pit collection
JVM运行时数据区之程序计数器
The QT program compiled on CentOS lacks a MySQL driven solution
Shell_ 06_ Judgment and circulation
Idea breakpoint debugging skills, multiple dynamic diagram package teaching package meeting.
Flink 解析(一):基础概念解析
Fdog series (VI): use QT to communicate between the client and the client through the server (less information, recommended Collection)
随机推荐
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
Prototype chain inheritance
TCP的三次握手和四次挥手
MySQL string function
唯有学C不负众望 TOP3 Demo练习
JVM garbage collector part 1
JVM garbage collector part 2
Flink 解析(三):内存管理
Flink源码解读(二):JobGraph源码解读
唯有学C不负众望 TOP1环境配置
JVM garbage collection overview
案例:检查空字段【注解+反射+自定义异常】
Flink 解析(六):Savepoints
Flink 解析(四):恢复机制
唯有学C不负众望 TOP5 S1E8|S1E9:字符和字符串&&算术运算符
Notes on how the network is connected
DOS 功能调用
搭建flutter环境入坑集合
8086 内存
Akamai浅谈风控原理与解决方案