Elad Benda Elad Benda - 3 months ago 15
Java Question

how to create android linearlayout with RTL horizontal orientation

I want to create a linear layout with horizontal orientation

but I want it to position its children aligned to its right and not to its left as usual

how can I do this?

I know how to do this using relativeLayout, but I want to practice linearLayout


You can use android:layoutDirection attribute which is introduced in 4.2(jelly bean).

The following links will help.