Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How did the Android BBC news and Pulse news apps implement the horizontal scroll view?

How did the Android BBC news and Pulse news apps implement the horizontal scroll view with adapter?

There is no native Android support for horizontal scroll view with adapters. I am curious how they recycled the views.

like image 739
user1697965 Avatar asked Nov 13 '22 20:11

user1697965


1 Answers

You have to write your own Horizontally scrollable ViewGroup using AdapterView, look into the source code of the Android's Gallery view and modify it, it is the closest implementation you can use to get started.

like image 143
Ragunath Jawahar Avatar answered Nov 15 '22 11:11

Ragunath Jawahar