android - Recyclerview grid layout manager that fills one column first -
i recyclerview layout manager works gridlayoutmanager 2 columns fills first column first before adds items 2nd column. or rather adds remaining items second column. suggestions?
there's no direct layout manager but, guess it's better, easier, more rational re-order list or whatever data structure filling adapter trying mess layout manager.
an example of how during bindview
:
public void onbindviewholder (vh holder, int position) { position = translateposition(position); // carry on normal bind code }
then create method translateposition
simple math re-order stuff way want/need.
Comments
Post a Comment