title: Android API 21 ignores layout_marginEnd and uses layout_marginRight instead in EditText
body: <p>Here is my EditText.
  My issue is that Android ignores the layout_marginEnd in Lollipop and above
  and uses layout_marginRight instead.
  See two screenshots below:</p>
  
  <pre><code>&lt;EditText
          android:id="@+id/foo_count_edit_text"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentEnd="true"
          android:layout_alignParentRight="true"
          android:layout_below="@+id/foo_container"
          android:layout_marginEnd="20dp"
          android:layout_marginRight="100dp"
          android:layout_marginTop="-6dp"
          android:hint="@string/foo_default_value"
          android:imeOptions="actionDone"
          android:inputType="number"/&gt;
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/xUCqV.jpg" alt="enter image description here"></p>
  
  <p>As can be seen, in API 21 (left) the margin is 100dp, taken from layout_marginRight and not layout_marginEnd.</p>
  
  <p><strong>Edit:
  @ErnirErlingsson Nailed it: Need to enable android:supportsRtl in the manifest in order to use layout_marginEnd instead of layout_marginRight.
  Thanks.</strong></p>
  
  <p><strong>Edit 2:
  Note however that in API 17 (right screenshot) the right margin is taken from layout_marginEnd while the android:supportsRtl is false.</strong></p>