android - How to place Compound drawable on top left of Text View -
we can set compound drawables textview below using drawableleft
or setcompunddrawables
using possible place drawable on left / right / top / bottom.but want set drawables @ top-left , top-right of textview. how can ?
<?xml version="1.0" encoding="utf-8"?> <relativelayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" > <imageview android:id="@+id/imageview1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignparentleft="true" android:layout_alignparenttop="true" android:src="@drawable/ic_launcher" /> <textview android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_torightof="@+id/imageview1" android:text="@string/text" />
it.
android drawable android-textview compound-drawables
No comments:
Post a Comment