Android : Place items from right to left in gridLayout

on Monday, September 15, 2014


I am developing an app with persian version. I have a GridLayout in one of my layouts. I want to place items from right to left in that layout, Which means I want to have cell(1,1) in top right of my layout. I have tested:


1-



android:gravity="right"


and



android:layout_gravity="right"


but it doesn't work.


2- I also tested



android:layoutDirection="rtl"


and it doesn't work too. how can I place items from right to left?


0 comments:

Post a Comment