0

I am trying to implement a gallery which always starts from left rather than center of the screen.
I have already overridden onLayout and onDraw methods and it works for the first time, but if I scroll the gallery, it again center itself to center.

Do you have any idea how to implement this? Or I am thinking of backup solution: if it's possible to make an horizontal listView?

Nick Craver
  • 610,884
  • 134
  • 1,288
  • 1,151
ingsaurabh
  • 15,170
  • 7
  • 51
  • 79

2 Answers2

0

Refer to this question:

Android horizontal scroll list

Community
  • 1
  • 1
mudit
  • 24,821
  • 31
  • 86
  • 132
  • the idea given on that page doesnt implements adapter and thus not memory optimized if the child items are large in number as I have many child to be added – ingsaurabh Apr 04 '11 at 11:59
0

Finally I used Android Horizontal ListView from below link with some modificqations to suit my needs

http://www.dev-smart.com/archives/34

ingsaurabh
  • 15,170
  • 7
  • 51
  • 79