I am using Recyclerview
with GridLayoutManager
. data is shown like this :
1 2 3
4 5 6
.
.
.
But I want this :
3 2 1
6 5 4
.
.
.
How can I do that?
I am using Recyclerview
with GridLayoutManager
. data is shown like this :
1 2 3
4 5 6
.
.
.
But I want this :
3 2 1
6 5 4
.
.
.
How can I do that?
override the isLayoutRTL method of GridLayoutManager Object,like this:
GridLayoutManager gl= new GridLayoutManager(context , 4)
{
@Override
protected boolean isLayoutRTL() {
return true;
}
};