Artifacts with setBackgroundDrawable in ListView
<p>I'm trying to set background drawable to TextView in elements of ListView but i have artifacts while scrolling.
When the ListView just load it's all right:</p>

<p><a href="https://dl.dropbox.com/u/1808855/so/normal.png" rel="nofollow">https://dl.dropbox.com/u/1808855/so/normal.png</a> </p>

<p>But but when I start scrolling:</p>

<p><a href="https://dl.dropbox.com/u/1808855/so/bug1.png" rel="nofollow">https://dl.dropbox.com/u/1808855/so/bug1.png</a> </p>

<p><a href="https://dl.dropbox.com/u/1808855/so/bug2.png" rel="nofollow">https://dl.dropbox.com/u/1808855/so/bug2.png</a></p>

<p>Code:</p>

<pre><code>    if(it.getOut() == 1){
            handler.post(new Runnable() {
                @Override
                public void run() {
                    mHolder.body.setBackgroundDrawable(BigFile.drawableCache.get(R.drawable.msgout));
                    RelativeLayout.LayoutParams lp = new RelativeLayout.LayoutParams
                            (RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT);
                    lp.addRule(RelativeLayout.ALIGN_PARENT_RIGHT);
                    mHolder.body.setLayoutParams(lp);
                    mHolder.body.setVisibility(View.VISIBLE);
                }
            });
        } else {
            handler.post(new Runnable() {
                @Override
                public void run() {
                    mHolder.body.setBackgroundDrawable(BigFile.drawableCache.get(R.drawable.msgin_inbox));
                    RelativeLayout.LayoutParams lp = new RelativeLayout.LayoutParams
                            (RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT);
                    lp.addRule(RelativeLayout.ALIGN_PARENT_LEFT);
                    mHolder.body.setLayoutParams(lp);
                    mHolder.body.setVisibility(View.VISIBLE);
                }
            });
        }
</code></pre>

<p>XML:</p>

<pre><code>     &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content" &gt;

        &lt;TextView android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:id="@+id/messages_dialog_list_body"
                /&gt;
      &lt;/RelativeLayout&gt;
</code></pre>
