```
   <RelativeLayout
        android:id="@+id/ShortTextTip"
        android:layout_width="150dp"
        android:layout_height="200dp"
        android:background="@drawable/bg_tip_left"
        android:gravity="center"
        android:paddingBottom="7dp"
        android:paddingLeft="7dp"
        android:paddingRight="7dp"
        android:paddingTop="6dp"
        android:layout_alignParentLeft="true"
        android:visibility="visible">

    <com.me.view.text.MyTextView
           android:id="@+id/tipTitleText"
            style="@style/popupTitle"
            android:layout_width="wrap_content"
            android:layout_height="60dp"
            android:layout_alignParentTop="true"
            android:layout_gravity="left"
            android:layout_marginLeft="5dp"
            android:layout_marginRight="38dp"
            android:layout_marginTop="10dp"
            android:gravity="left"
            android:text="Tip" />

  </RelativeLayout>

```

but my code doesn't change the gravity when `ltrMode` is on.

I want to change this programmatically.

How come?

```
  private void setUpforRTL(){
if (AppService.getNativeManager().getLanguageRtl()) {

    TextView addText2 = ((TextView)findViewById(R.id.tipText));
    addText2.setGravity(Gravity.RIGHT);

    TextView title = ((TextView)findViewById(R.id.tipTitleText));
    title.setGravity(Gravity.RIGHT);

}

}

```