Fix RTL direction layout for LinearLayout.