ListView very slow when scrolling (using ViewHolder/recycling)

后端 未结 10 515

I\'m back at trying out some Android dev again. I have an \"old\" HTC Hero phone lying around, so I booted that one up, did some updates and are now up n running again with Ecli

10条回答
  •  春和景丽
    2021-02-02 16:56

    I had the same issue before while i was using different layout like LinearLayout, RelativeLayout, CardView as parent of different child in same list view item. I solved that issue by changing all view inside RelativeLayout.

    Using RelativeLayout as main and it's child layout may increase the speed of loading each item. So scrolling will be smooth.

    
    
        
        
    
    
    
    
    

提交回复
热议问题