

Android Studio Chipmunk Brings Animation Preview, CPU Profiler, and More
source link: https://www.infoq.com/news/2022/05/android-studio-chipmunk/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Android Studio Chipmunk Brings Animation Preview, CPU Profiler, and More
May 14, 2022 1 min read
The latest release of Google's IDE for Android app development, Android Studio Chipmunk, includes a new Compose animation previewer, a CPU profiler, and an extended build analyzer.
The new Compose Animation Preview aims to make it simpler for developers to create animation based on Jetpack Compose. Currently, it supports animations using AnimatedVisibility
, which allows to control the appearance and disappearance of a composable, and updateTransition
. updateTransition
can be used to create transitions between given states modifying multiple properties at the same time, for example the opacity and size of a composable. Those are only two of many available animations, but Google says they will introduce support for more of them in future.
Thanks to Animation Preview, developers can pause an animation, loop it, fast forward it, or slow it down. Additionally, you can inspect the current value of animated properties at any moment. To enable previewing a composable, you can use the @Preview
annotation to wrap it into a new ad-hoc composable, as in the following example:
@Preview
@Composable
fun ComposablePreview() {
MyComposable()
}
Android Studio Chipmunk also includes a new UI flicker detector to simplify troubleshooting UI problems such as slow rendering or animation skipping frames. The new flicker/jank detector exposes frame lifecycle information in system traces, showing which frames belong to each of a number of possible states, which can help you understand how long it took for the GPU and application to render a frame, and so on. UI jank analysis involves identifying which frames took longer to render to understand which factor may be causing it.
The build analyzer in Android Studio Chipmunk has been extended to identify those cases where all of your dependencies support AndroidX natively and you do not need to force their migration to AndroidX. This will typically reduce build times by 5-10%. According to Google, the vast majority of Android Studio projects still use the Jetifier flag although most libraries are already supporting AndroidX natively, thus making the forced migration step unnecessary.
As a last note, Android Studio Chipmunk also updates its underlying IntelliJ platform, adopting IntelliJ 2021.2, featuring a new project-wide analysis tool that tracks errors before compiling; new IDE actions such as reformatting code and optimizing imports; and a new package search utility.
About the Author
Sergio De Simone
Recommend
-
56
Android Studio 3.0 采用全新的 Android Profiler 窗口取代 Android Monitor 工具。 这些全新的分析工具能够提供关于应用 CPU、内存和网络活动的实时数据。 您可以执行基于样本的函数跟踪来记录代码执行时间、采集堆
-
3
Backyard Wildlife Drama, with Chipmunk
-
9
抛弃 leakcanary 使用 Android Profiler 进行内存泄露分析? 2021-06-16 做 Android 的都知道,目前最流行的内存泄露检测工具就是 leakcanary ,其简单高效的集成方式,直观的结果,似乎非常好用,但实际上 Android Studio 4.2 (多次迭...
-
7
Azure Data Studio SQL Server Profiler Extension By: Mohammed Moinudheen | Updated: 2021-12-22 |
-
8
YouTube brings some cheer to its 'like' button with a fun new animation By Jon Gilbert Published 2 days ago Clearly, the one thing YouTube needed was c...
-
5
从狐狸,蜜蜂到现在的花栗鼠,这次虽然也是 Android Studio 的大版本更新,但是本次更新的内容不多,主要是针对 Jetpack Compose 和 profiling 的更新~ 原文链接 :
-
5
One UI 5.0 is the next major iteration of Samsung’s custom Android skin. The company is going to release it later this year alongside
-
13
New Profiler feature in Visual Studio Misty Hays...
-
5
Choosing a .NET Memory Profiler in Visual Studio – part 1 Clément Habinshuti
-
6
The Android Profiler The Android Profiler in Android Studio 3.0 and higher replaces the Android Monitor tools. The Android Profiler tools provide real-time data to help you to u...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK