title: ListView layout inconsistent rendering with RTL languages (Arabic)
body: <p>I have simple ListView with ArrayAdapter which is working <strong>just fine</strong>. The problems start with <strong>RTL language</strong> (Arabic in this case). </p>
  
  <p>When you open it for the first time, everything looks ok:</p>
  
  <p><a href="https://i.stack.imgur.com/bJxMw.png" rel="noreferrer"><img src="https://i.stack.imgur.com/bJxMw.png" alt="enter image description here"></a></p>
  
  <p>But after scrolling down and back up, some items appears to be rendered incorrectly:</p>
  
  <p><a href="https://i.stack.imgur.com/xYjDT.png" rel="noreferrer"><img src="https://i.stack.imgur.com/xYjDT.png" alt="enter image description here"></a></p>
  
  <p>The code is straightforward. Note that if I do not REUSE view and instead inflate it unconditionally every time (see the commented line below), the issue is GONE. But this is obviously not right, I want to REUSE items for better performance and smooth scrolling. </p>
  
  <p>Please also note that I have multiple <code>ListView</code>s in the app, and all of them shows this kind of incorrect rendering in Arabic. For this question I picked up the simplest case when I just set text and icon for every list item.</p>
  
  <p>Please advice. The portion of code of my implementation of <code>ArrayAdapter</code>:</p>
  
  <pre><code>    public class PagesListAdapter extends ArrayAdapter&lt;IPageRef&gt; {
  
          ...
  
          public View getView(int position, View convertView, @NonNull ViewGroup parent) {
  
              final IPageRef b = getItem(position);
              View row = convertView == null ? mInflater.inflate(R.layout.lang_item, parent, false) : convertView;
              //View row = mInflater.inflate(R.layout.wordlist_item, parent, false);
  
              TextView title = row.findViewById(R.id.title);
              ImageView img = row.findViewById(R.id.img);
  
              ... // (setting the title &amp; img properties)
  
              return row;
          }
      }
  </code></pre>
  
  <p>lang_item.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:gravity="center_vertical"
      android:orientation="horizontal" &gt;
  
      &lt;ImageView
          android:id="@+id/img"
          android:layout_marginBottom="5dp"
          android:layout_marginRight="10dp"
          android:layout_marginLeft="10dp"
          android:layout_marginTop="5dp"
          android:layout_width="50dp"
          android:layout_height="38dp"
          android:padding="1dp"
          /&gt;
  
      &lt;TextView
          android:id="@+id/title"
          android:layout_width="0dip"
          android:layout_height="wrap_content"
          android:layout_weight="1"
          android:gravity="center_vertical"
          android:textSize="25sp" &gt;
      &lt;/TextView&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>