Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android scrollview performance

Is there any way to improve ScrollView performance?

This is just a theoretical question now - I know I can use ListView, when I have data which can be easilly placed in a list. But sometimes you just need to use ScrollView...

Everything is ok when you place TextView inside it. But when you place multiple ImageViews with different styles etc. the performance of ScrollView beggins to fade... It looks like the entire view and all its childs are redrawn after moving ScrollView.

Maybe there is a way to turn a drawing cache for it?

EDIT: To be specific - the question is about optimizing scrolling fluency.

like image 899
Kocus Avatar asked Nov 28 '25 06:11

Kocus


1 Answers

Yes you can use Cache Memory for Loading Images. Here is sample for Loading images from Server and store it in Cache and use it..

Check this Lazy List Sample...

Also Additionally check link..

like image 122
Venky Avatar answered Nov 29 '25 19:11

Venky



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!