hiepnh
hiepnh

Reputation: 447

How to get all child visible on screen in HorizontalScrollView android

I add many ImageView to HorizontalScrollView, each ImageView load image from internet. But screen only display 3 ImageView.

I want to know what ImageView is on screen because I want to remove image from another ImageView that not display in screen.

Is there anyway to do that ?

Sorry for my bad English.

Upvotes: 1

Views: 891

Answers (1)

iTurki
iTurki

Reputation: 16398

You need to consider using lazy ListView instead of <ScrollView> for your images. With a lazy ListView, the app won't download the hidden images until the user scroll to view them.

I'm not familiar with such a ListView but I think those links might help you:

Upvotes: 1

Related Questions