How to set the button in horizontal linearLayout with Persian language?

LinearLayout is not support swap childView.

You can use FrameLayout or RelativeLayout to dynamically control the margin of this button from the top。