Relative Content

Tag Archive for javaandroidkotlinmobilefrontend

Lazy Loading In List View In Android

Hello, everyone! How are you? I have a question. I had looked at other Stack Over Flow questions that teach lazy loading, but they were using Glide. I do not want to use Glide, because I’m working with drawables. And I want to implement a lazy loading mechanism for my list view, whose adapter extends BaseAdapter. I have around 100 texts and therefore 100 images. But the images are not from any remote server, they are from my Android project’s drawable (like R.drawable.image_111). If I load these items to my list view directly, this leads to critical performance issues in my application. So I think that I have to implement a lazy loading mechanism. How can I do it? Please share your Android Java code.