How to create a horizontal scroll view of a Recycler grid

I load the icons in the recycler using GridLayout. I can scroll the elements vertically in the grid. But I want to scroll the elements horizontally in the same GridLayout. I am looking for a pager view to view recyclers or horizontal scrollbars to view recycler grids. Can anyone suggest me how this can be achieved? Also, if I could use the best design to achieve the same. That is, load icons with optimal memory usage.

+4
source share
2 answers

GridLayoutManager has the following constructor: GridLayoutManager (Context context, int spanCount, int orientation, boolean reverseLayout)

, int . - HORIZONTAL. , .

: https://developer.android.com/reference/android/support/v7/widget/GridLayoutManager.html

+6
0

All Articles