Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在标准的“基于视图”的 Android 应用程序中测量帧速率的最佳方法是什么?我没有任何自定义视图或使用 OpenGL 或类似的东西,只是在布局中存储 Android 视图。我对滚动 ListView 时测量帧速率特别感兴趣。
您需要扩展ListView并覆盖其onDraw方法和调用时间super.onDraw。
ListView
onDraw
super.onDraw