Reputation: 55
When the Gallery first displays, it is centering the first item automatically. The behavior I want, is to left align the first item in the parent layout instead of centering it. How can I achieve this in all device?
Upvotes: 1
Views: 578
Reputation: 311
This is tough to implement this in Gallery view. So, You have to use the other better way to use HorizontalListview for that.
Refer this HorizontalVariableListView
Good luck.....
Upvotes: 1
Reputation: 969
Set gravity property to left: http://developer.android.com/reference/android/widget/Gallery.html#setGravity(int)
some constant values: http://developer.android.com/reference/android/widget/Gallery.html#attr_android:gravity
Upvotes: 0