android - Spannable Grid Layout manager with fixed size of first items -
i using twowayview library. have found spannablegridlayoutmanager useful me. trying achieve next result.
let me explain this. need same layout. first grid cell rowspan = 2. can see on screenshot.
may ask me, why ask question if post desired result.
here 1 problem, current orientation of layout manager vertical, may notice gray space under layout. there 3 items in recycler view.
if add more 3 that, depending on specified height.
what need need have same result on first screenshot,but horizontal scroll.
if change layout manager orientation horizontal following result.
of course can play row , colspans desired result, different on each screen dimension.
i need first 3 items of list same on first screenshot, ability scroll horizontally if there more 3 items.
must scaled independently screen orientation, dimension, works vertical layout manager orientation. there shouldn't appear fourth, fifth item if there enough space 3 , in such layout.
i have tried play colspans , rowspans, layoutmanager implementation, layout params (match parent, wrap content) , other. haven't got desired result.
please such result, or @ least can set in code.
Comments
Post a Comment