0

I want to show 3 images from URL(Now fetching Using Picasso) in a Horizondal Grid. Is there a library to so that or do i need to code starting from the bottom?

Please advice.

techno
  • 6,100
  • 16
  • 86
  • 192

1 Answers1

0

If you want to show just 3 images, why don't you just use a LinearLayout containing 3 ImageViews, each with a layout_weight of 1?

Have a look at this answer: Horizontal ListView in Android?. It will link you to open-source libraries. You could either look at them and come up with your own implementation or use them as-is.

Another option is to use a ViewPager.

Yet another option is to use a RecyclerView with LinearLayoutManager.

Community
  • 1
  • 1
An SO User
  • 24,612
  • 35
  • 133
  • 221
  • Thanks but i need this 3 image gallery within a fragment.Will this http://www.dev-smart.com/archives/34 approach work? – techno Mar 12 '15 at 07:00
  • @techno I suggest you look at `RecyclerView` first. It ships with Android API Level 21 and is available via compatibility library for pre-Lollipop devices. – An SO User Mar 12 '15 at 07:01