title: how to put the text on the left of a radio button in android
body: <p>I want to put the text of a radio button on the left not on the right</p>
  
  <p>I found this solution</p>
  
  <pre><code>        &lt;RadioGroup
          android:id="@+id/radios"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:layout_alignParentLeft="true"
          android:layout_gravity="right"
          android:inputType="text"
          android:orientation="vertical" &gt;
  
          &lt;RadioButton
              android:id="@+id/first"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:layout_gravity="right"
              android:background="@color/white"
              android:button="@null"
              android:drawablePadding="30dp"
              android:drawableRight="@android:drawable/btn_radio"
              android:text="first"
              android:textColor="@color/Black"
              android:textSize="20dip" /&gt;
  
          &lt;RadioButton
              android:id="@+id/second"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:background="@color/Black"
              android:button="@null"
              android:drawablePadding="30dp"
              android:drawableRight="@android:drawable/btn_radio"
              android:text="second"
              android:textColor="@color/White"
              android:textSize="20dp" /&gt;
  
          &lt;RadioButton
              android:id="@+id/third"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:background="@color/Maroon"
              android:button="@null"
              android:drawablePadding="30dp"
              android:drawableRight="@android:drawable/btn_radio"
              android:text="third"
              android:textColor="@color/Vanilla"
              android:textSize="20dp" /&gt;
      &lt;/RadioGroup&gt;
  </code></pre>
  
  <p>but the problem is that the text gravity will be at the left what I want is to put it to right because i'm writing Arabic words</p>
  
  <p><img src="https://i.stack.imgur.com/MWCYU.png" alt="enter image description here"></p>