Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
217 views
in Technique[技术] by (71.8m points)

android - How to avoid spacing in the start and end of Gallery

I don't want a circular gallery, but instead I don't want to show the free space in the left and right end of the gallery? Is there any possible way I can achieve this?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

I will suggest you to try HorizontalListView. Its not that good as other android components but proves to be worth in most of the cases

Horizontal ListView implementation has the following features:

Subclass AdapterView so I can make use of adapters
Fast – make use of recycled views when possible
Items are clickable – (accepts AdapterView.OnItemClickListener)
Scrollable
No center-locking

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...