https://github.com/Gracker/ListHeaderAnimationPerformance
https://github.com/Gracker/ListHeaderAnimationPerformance
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/Gracker/ListHeaderAnimationPerformance
- Owner: Gracker
- Created: 2020-04-29T08:11:09.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-10T07:57:53.000Z (almost 6 years ago)
- Last Synced: 2026-01-23T01:50:00.554Z (5 months ago)
- Language: HTML
- Size: 2.62 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
这个项目主要是一个 Demo ,用来对比 ListView 和 RecyclerView 的 Header 在做动画时候的性能表现
## ListView
ListView 的自定义 HeaderView 做动画的时候, 整个 ListView 都会触发 Layout ,导致每一帧的渲染性能大大下降
其中每一帧都如下


## RecyclerView
RecyclerView 的自定义 HeaderView 在做动画的时候, 整个 RecyclerView 不会触发 Layout 操作.