"This RelativeLayout layout or its RelativeLayout parent is possibly useless" - 衡量绩效
"This RelativeLayout layout or its RelativeLayout parent is possibly useless" - measure performance
Android Lint 给我这些警告
"This RelativeLayout layout or its RelativeLayout parent is possibly useless; transfer the background attribute to the other view" or similar.
我只是想知道:如何衡量修复此问题对 性能 的影响?我需要监控什么?
我相信 lint 会警告您透支:
An app may draw the same pixel more than once within a single frame, an event called overdraw. Overdraw is usually unnecessary, and best eliminated. It manifests itself as a performance problem by wasting GPU time to render pixels that don't contribute to what the user sees on the screen.
有一个开发人员设置,您可以打开它来可视化设备上的过度绘制。观看 Colt McAnlis 关于该主题的视频:https://www.youtube.com/watch?v=T52v50r-JfE
另请查看此内容以获得更深入的了解:https://developer.android.com/topic/performance/rendering/overdraw.html
Android Lint 给我这些警告
"This RelativeLayout layout or its RelativeLayout parent is possibly useless; transfer the background attribute to the other view" or similar.
我只是想知道:如何衡量修复此问题对 性能 的影响?我需要监控什么?
我相信 lint 会警告您透支:
An app may draw the same pixel more than once within a single frame, an event called overdraw. Overdraw is usually unnecessary, and best eliminated. It manifests itself as a performance problem by wasting GPU time to render pixels that don't contribute to what the user sees on the screen.
有一个开发人员设置,您可以打开它来可视化设备上的过度绘制。观看 Colt McAnlis 关于该主题的视频:https://www.youtube.com/watch?v=T52v50r-JfE
另请查看此内容以获得更深入的了解:https://developer.android.com/topic/performance/rendering/overdraw.html