Issue
I used android:drawableLeft
, but this led to Problem loading widget
.
<TextView
android:textColor="@color/white"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_weight="7"
android:ellipsize="end"
android:maxLines="1"
android:drawableLeft="@mipmap/classroom"
android:text="01A201" />
I've tried using a higher level API, but it doesn't work.
Solution
<TextView
android:textColor="@color/white"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_weight="7"
android:ellipsize="end"
android:maxLines="1"
android:drawableLeft="@mipmap/classroom"
android:text="01A201" />
my suggetion :
you can enter your icon in drwable and than add this line :
android:drwableleft = "@drwable/your icon"
Answered By - vraj kalathiya
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.