<p><TextView
<span style="white-space:pre"> </span>android:id="@+id/txt1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:drawableLeft="@drawable/checkmark"
android:textStyle="bold"
android:gravity="center_vertical"
android:textSize="24dip"
android:maxLines="1"
android:ellipsize="end"/></p>
程序中设置TextView的drawable
public void setCompoundDrawables (Drawable left, Drawable top, Drawable right, Drawable bottom);