Android Horizontal Scroll In Grid View
Solution 1:
My suggestion would be to swap out the GridView for a RecyclerView. The RecyclerView + LayoutManager combination allows much more variety in layouts of this type. From the RecyclerView.LayoutManager documentation:
By changing the LayoutManager a RecyclerView can be used to implement a standard vertically scrolling list, a uniform grid, staggered grids, horizontally scrolling collections and more.
You would want to look at the GridLayoutManager
to start with. My guess is that the orientation parameter in the constructor:
GridLayoutManager(Context context, int spanCount, int orientation, boolean reverseLayout)
may allow you to set up horizontal scrolling quite easily. At worst, you may have to do some custom touch handling to manage horizontal motion.
Post a Comment for "Android Horizontal Scroll In Grid View"