title: Layout is reversed?
body: <p>Please view the image below:</p>
  
  <p><a href="https://i.stack.imgur.com/Xw4eJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Xw4eJ.png" alt="enter image description here"></a></p>
  
  <p>The first image is the layout I did and it show normally on my device and another test devices. The second image is the layout showed on my friend device, it is reversed. I do not know why, and it just happened on few devices.</p>
  
  <p>This is my layout code on xml.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  
  &lt;android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:auto="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:id="@+id/coordinatorLayout"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      tools:context=".activities.ComposeSmsActivity"&gt;
  
  
      &lt;LinearLayout
  
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:orientation="vertical"&gt;
  
          &lt;include
              android:id="@+id/toolbar"
              layout="@layout/toolbar_action" /&gt;
  
          &lt;ScrollView
              android:layout_width="match_parent"
              android:layout_height="match_parent"&gt;
  
              &lt;LinearLayout
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"
                  android:orientation="vertical"
                  android:padding="@dimen/padding_5"&gt;
  
                  &lt;com.hnib.smslater.views.FlowLayout
                      android:id="@+id/layout_name_recipient"
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:layout_marginTop="@dimen/margin_10"
                      android:fontFamily="sans-serif-light"
                      android:orientation="horizontal"&gt;
  
                  &lt;/com.hnib.smslater.views.FlowLayout&gt;
  
  
                  &lt;RelativeLayout
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:padding="@dimen/padding_10"&gt;
  
                      &lt;com.hnib.smslater.views.ClearableAutoContactCompleteTextView
                          android:id="@+id/et_recipient"
                          android:layout_width="@dimen/width_et_contact"
                          android:layout_height="@dimen/height_et_default"
                          android:layout_centerVertical="true"
                          android:layout_marginTop="@dimen/margin_10"
                          android:background="@drawable/drawable_radius_gray_gray"
                          android:fontFamily="sans-serif-light"
                          android:hint="@string/to_"
                          android:imeOptions="actionDone"
                          android:padding="@dimen/padding_5"
                          android:textColorHint="@color/gray"
                          android:textSize="18sp"
                          android:textStyle="bold"
                          auto:displayPhotoIfAvailable="false"
                          auto:styleOfTypedLetters="bold"
                          auto:typeOfData="phone"
                          auto:typedLettersHaveDifferentStyle="true" /&gt;
  
  
                  &lt;/RelativeLayout&gt;
  
  
                  &lt;RelativeLayout
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:layout_marginLeft="@dimen/margin_5"
                      android:layout_marginTop="10dp"&gt;
  
                      &lt;TextView
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:layout_alignParentLeft="true"
                          android:fontFamily="sans-serif-light"
                          android:text="@string/message"
                          android:textColor="@color/gray"
                          android:textSize="18sp"
                          android:textStyle="bold" /&gt;
  
                      &lt;TextView
                          android:id="@+id/tv_message_length"
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:layout_alignParentRight="true"
                          android:fontFamily="sans-serif-light"
                          android:text="160/1" /&gt;
  
                  &lt;/RelativeLayout&gt;
  
  
                  &lt;com.hnib.smslater.views.ActionEditText
                      android:id="@+id/et_text_content"
                      android:layout_width="match_parent"
                      android:layout_height="@dimen/height_et_big"
                      android:layout_marginLeft="@dimen/margin_5"
                      android:background="@drawable/drawable_radius_gray_gray"
                      android:ems="10"
                      android:fontFamily="sans-serif-light"
                      android:gravity="top"
                      android:inputType="textMultiLine"
                      android:maxLines="10"
                      android:padding="@dimen/padding_5"
                      android:scrollbars="vertical" /&gt;
  
                  &lt;RelativeLayout
                      android:id="@+id/layout_time"
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:layout_marginTop="10dp"
                      android:padding="@dimen/padding_10"
                      android:showDividers="middle"&gt;
  
                      &lt;TextView
                          android:id="@+id/tv_title_time"
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:layout_centerVertical="true"
                          android:background="@drawable/drawable_radius_acent_gray"
                          android:fontFamily="sans-serif-light"
                          android:padding="@dimen/padding_5"
                          android:text="@string/time"
                          android:textAllCaps="true" /&gt;
  
                      &lt;LinearLayout
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:layout_alignParentRight="true"
                          android:layout_toRightOf="@+id/tv_title_time"
                          android:divider="?android:attr/dividerVertical"
                          android:gravity="center_vertical"
                          android:orientation="horizontal"
                          android:padding="@dimen/padding_10"
                          android:showDividers="middle"&gt;
  
                          &lt;TextView
                              android:id="@+id/tv_date"
                              android:layout_width="wrap_content"
                              android:layout_height="wrap_content"
                              android:layout_weight="1"
                              android:background="@drawable/selector_textview"
                              android:fontFamily="sans-serif-light"
                              android:gravity="center_horizontal"
                              android:text="12/06/2016"
                              android:textColor="@color/gray"
                              android:textSize="27sp"
                              android:textStyle="bold" /&gt;
  
  
                          &lt;TextView
                              android:id="@+id/tv_time"
                              android:layout_width="wrap_content"
                              android:layout_height="wrap_content"
                              android:layout_weight="1"
                              android:background="@drawable/selector_textview"
                              android:fontFamily="sans-serif-light"
                              android:gravity="center_horizontal"
                              android:text="09:10"
                              android:textColor="@color/gray"
                              android:textSize="27sp"
                              android:textStyle="bold" /&gt;
  
  
                      &lt;/LinearLayout&gt;
  
                  &lt;/RelativeLayout&gt;
  
                  &lt;LinearLayout
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:layout_marginTop="10dp"
                      android:gravity="center_vertical"
                      android:orientation="horizontal"
                      android:padding="@dimen/padding_10"&gt;
  
                      &lt;TextView
                          android:id="@+id/tv_title_repeat"
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:layout_alignParentLeft="true"
                          android:layout_centerVertical="true"
                          android:layout_marginRight="30dp"
                          android:background="@drawable/drawable_radius_acent_gray"
                          android:fontFamily="sans-serif-light"
                          android:padding="@dimen/padding_5"
                          android:text="@string/repeat"
                          android:textAllCaps="true" /&gt;
  
                      &lt;Spinner
                          android:id="@+id/spinner_repeat"
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"&gt;&lt;/Spinner&gt;
  
                  &lt;/LinearLayout&gt;
  
                  &lt;LinearLayout
                      android:id="@+id/layout_choose_sim"
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:layout_marginTop="10dp"
                      android:gravity="center_vertical"
                      android:orientation="horizontal"
                      android:padding="@dimen/padding_10"&gt;
  
                      &lt;TextView
                          android:id="@+id/title_choose_sim"
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:layout_centerVertical="true"
                          android:layout_marginRight="30dp"
                          android:background="@drawable/drawable_radius_acent_gray"
                          android:fontFamily="sans-serif-light"
                          android:padding="@dimen/padding_5"
                          android:text="@string/choose_sim"
                          android:textAllCaps="true" /&gt;
  
                      &lt;Spinner
                          android:id="@+id/spinner_choose_sim"
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"&gt;&lt;/Spinner&gt;
                  &lt;/LinearLayout&gt;
  
                  &lt;LinearLayout
                      android:id="@+id/layout_confirm"
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:layout_marginTop="10dp"
                      android:gravity="center_vertical"
                      android:orientation="horizontal"
                      android:padding="@dimen/padding_10"&gt;
  
                      &lt;TextView
                          android:id="@+id/tv_title_confirm"
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:layout_alignParentLeft="true"
                          android:layout_centerVertical="true"
                          android:layout_marginRight="15dp"
                          android:background="@drawable/drawable_radius_acent_gray"
                          android:fontFamily="sans-serif-light"
                          android:padding="@dimen/padding_5"
                          android:text="@string/ask_before_send"
                          android:textAllCaps="true" /&gt;
  
                      &lt;CheckBox
                          android:id="@+id/checkbox_confirm"
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                          android:layout_alignParentRight="true"
                          android:layout_marginLeft="20dp"
                          android:layout_toRightOf="@+id/tv_title_confirm" /&gt;
  
                  &lt;/LinearLayout&gt;
  
  
              &lt;/LinearLayout&gt;
  
  
          &lt;/ScrollView&gt;
  
  
      &lt;/LinearLayout&gt;
  
  
  &lt;/android.support.design.widget.CoordinatorLayout&gt;
  </code></pre>
  
  <p>Please have a help on this issue. Thanks.</p>