Android では関数 setCompoundDrawables(..) を使用してドローアブルを追加できることを知っています。
私の問題は、私の EditText が複数行であり、EditText の左上隅にドローアブルを配置したいということです。ただし、setCompoundDrawables() 関数で使用すると、ドローアブルを特定の側に配置する選択肢のみが与えられます。
Android APIでそれを行う可能性はありますか?
Android では関数 setCompoundDrawables(..) を使用してドローアブルを追加できることを知っています。
私の問題は、私の EditText が複数行であり、EditText の左上隅にドローアブルを配置したいということです。ただし、setCompoundDrawables() 関数で使用すると、ドローアブルを特定の側に配置する選択肢のみが与えられます。
Android APIでそれを行う可能性はありますか?
これを試してください:
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/scale_10"
android:orientation="horizontal">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/map_mark"/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/scale_10"
android:gravity="top"
android:text="TEXT HERE"/>
</LinearLayout>