Android RecyclerView 滾動性能 - Android RecyclerView Scrolling Performance

問題:

I have created RecyclerView example basing on Creating Lists and Cards guide.我根據創建列表和卡片指南創建了 RecyclerView 示例。 My adapter have a pattern implementation only for inflate the layout.我的適配器有一個僅用於膨脹佈局的模式實現。

The problem is the poor scrolling performance.問題是滾動性能不佳。 This in a RecycleView with only 8 items.這在只有 8 個項目的 RecycleView 中。

In some tests I verified that in Android L this problem does not occurs.在一些測試中,我驗證了在 Android L 中不會出現此問題。 But in the KitKat version the decreasing of performance is evident.但是在 KitKat 版本中,性能的下降很明顯。


解決方案:

參考: https://stackoom.com/en/question/1q4ym
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章