当前位置:网站首页>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
边栏推荐
- Flink源码解读(三):ExecutionGraph源码解读
- 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
- The QT program compiled on CentOS lacks a MySQL driven solution
- Only learning C can live up to expectations top3 demo exercise
- 8086 分段技术
- Idea resolving jar package conflicts
- After the subscript is used to assign a value to the string type, the cout output variable is empty.
- SQL tuning notes
- TypeScript基本操作
- Set up the flutter environment pit collection
猜你喜欢
Eight part essay that everyone likes
MySQL digital function
README. txt
Coursera cannot play video
MySQL日期函数
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
Shell_ 06_ Judgment and circulation
High performance mysql (Third Edition) notes
Activit零零碎碎要人命的坑
Activiti directory (V) reject, restart and cancel process
随机推荐
CentOS7上Redis安装
Activiti directory (III) deployment process and initiation process
Activiti目录(五)驳回、重新发起、取消流程
Programmer orientation problem solving methodology
一个数10年工作经验的微服务架构老师的简历
Activiti目录(四)查询代办/已办、审核
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
Only learning C can live up to expectations top5 S1E8 | S1E9: characters and strings & arithmetic operators
DS18B20數字溫度計系統設計
Only learning C can live up to expectations top3 demo exercise
Coursera cannot play video
Shell_ 07_ Functions and regular expressions
Shawshank's sense of redemption
吴军三部曲见识(五) 拒绝伪工作者
Some instructions on whether to call destructor when QT window closes and application stops
Mongodb在node中的使用
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
Mongodb learning notes
Flink 解析(六):Savepoints
JVM垃圾回收概述