Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Recycler view of vertical scrolling list with Horizontal scrollable row

I want an RecyclerView in which we have vertical scrollable list of items. From this scrollable list of items some should have ability to scroll in horizontal direction. As shown in below image enter image description here

can anyone please guide me how to do it?

Thank You.

like image 797
Ashwin N Bhanushali Avatar asked Jun 30 '15 04:06

Ashwin N Bhanushali


1 Answers

Custom LayoutManagers

  • StaticGridLayoutManager - 2D scrolling grid with variable column count based on data set. Window of visible (non-recycled) views is
    determined statically.
  • DynamicGridLayoutManager - 2D scrolling grid where window of visible views is determined dynamically. Results in fewer views in memory, but scrolling performance is questionable.

I have met the same problem and I found this library. Maybe it will help you. https://github.com/devunwired/recyclerview-playground

More detail about RecyclerView LayoutManager: http://wiresareobsolete.com/2014/09/building-a-recyclerview-layoutmanager-part-1/

p/s: For your case http://lucasr.org/2014/07/31/the-new-twowayview/

like image 125
qmn1711 Avatar answered Oct 14 '22 17:10

qmn1711