Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Scrollview with paging in android

is there a simple/native way to implement paging/pagination on scrollviews? By simple, I mean with a short piece of code mainly using classes from Android SDK, like, when programming on iPhone, writing "pagingEnabled = YES".

When I was looking for the topic on the Internet, I saw people putting pieces of code about that matter, but these pieces of code were very large, and I can't help myself to believe Google did put a simple way to do it in their SDK. I also think that the code to implement it could be much easier than what I saw when looking for it. I'm currently working on it, but in the meantime, if anyone know a easier way to do it, I would be delighted to know about it.

Thanks for reading!

like image 501
user1083284 Avatar asked Dec 06 '11 10:12

user1083284


1 Answers

I think that there is not a fast solution to do this.

But what you can do is to take the gallery component and override the layout. The gallery component has paging :)

Another solution could be:

Horizontal Pager - https://github.com/ysamlan/horizontalpager

Real View Switcher http://marcreichelt.blogspot.com/2010/09/android-use-realviewswitcher-to-switch.html

Hope this helps...

like image 188
oriolpons Avatar answered Oct 02 '22 21:10

oriolpons