Showing multiple images in a horizontal scroll in an android app

时间:2017-06-19 13:56:44

标签: android android-layout listview

I am a bit of an android app development noob, and am writing an app in which you take one or more pictures, and I would like to show these pictures sort of like the google play store shows images, where you scroll horizontally through the images. How would I do this? Thanks.

screenshot

1 个答案:

答案 0 :(得分:0)

You can use RecyclerView

follow the tutorial

LayoutManager is an object responsible for orientation (HORIZONTAL in your case)

instead of LinearLayoutManager(Context context)

use

LinearLayoutManager(Context context, int orientation, boolean reverseLayout