Setting DrawableLeft in a TextView problem
<p>I have a textView in xml here. </p>

<pre><code>&lt;TextView
        android:id="@+id/bookTitle"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_weight="1"
        android:drawableLeft="@drawable/checkmark"
        android:gravity="center_vertical"
        android:textStyle="bold"
        android:textSize="24dip"
        android:maxLines="1"

        android:ellipsize="end"/&gt;
</code></pre>

<p>As you can see i set the DrawableLeft in xml.</p>

<p>I would like to change the drawable in code. </p>

<p>Is there anyway to go about doing this? Or setting the drawableLeft in code for the text view??</p>
