2

I'm wondering how to implement gallery of screenshots like Google Play (Android Market). If i use typical Gallery, the problem is the first item of gallery is at the center(it has big big space at the beginning and the same at the end). I tried some horizontal listview but it seem has problem with scrolling when i push my horizontal listview in another scrollview link. In Google Play, the "gallery" doesn't have space at the beginning. Thanks in advance.

Community
  • 1
  • 1
Trung Nguyen
  • 7,442
  • 2
  • 45
  • 87
  • 1
    Please don't approve suggested edits [like this](http://stackoverflow.com/review/suggested-edits/1142597). If needed, refer to [this meta post](http://meta.stackexchange.com/q/157423/187824) for details. – Himanshu Dec 07 '12 at 06:46
  • @hims056 My bad.Maybe wrong tab. I searched but it can not reverse. If there's a way, please give me link. – Trung Nguyen Dec 07 '12 at 07:27
  • Always read the comment from the editor and read the suggested edit carefully. :-) – Himanshu Dec 07 '12 at 07:29

2 Answers2

1

use a ViewPager. it's used extensively in Google's in-house apps and works quite well for horizontal paging. it's also a pretty excellent replacement for TabHost.

Gallery is actually deprecated in favor of ViewPager.

Jeffrey Blattman
  • 22,176
  • 9
  • 79
  • 134
1

Actually i finished my project long ago and forgot close question. Using this Android: Create an image Viewer using ViewPager.

For future guests, you can see another training from Android Developer about ViewPager here: Displaying Bitmaps in Your UI

Trung Nguyen
  • 7,442
  • 2
  • 45
  • 87