在TextView我设置drawableLeft在drawable从中心示出.我需要像这个图像一样对齐drawableLeft顶部TextView.

是否有可能实现这一目标?
我知道在Android中我们可以使用函数setCompoundDrawables(..)来添加drawable.
我的问题是我的EditText是多行的,我想把drawable放在EditText的左上角.但是在setCompoundDrawables()函数中使用,只能选择将drawable放在特定的一面.
Android API是否有可能做到这一点?
我们可以为textview设置复合drawables,如下所示使用drawableLeft 或者setCompundDrawables使用它只能将drawable放在left/right/top/bottom.But我想把drawables只放在Textview的左上角和右上角.我怎样才能做到这一点 ?
我只是想将图标设置到我的TextView. 这是我的代码和输出分别:
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/Content"
android:drawableLeft="@drawable/icon" />
Run Code Online (Sandbox Code Playgroud)
输出:

但我想将我的图标设置为顶部和左侧,如下所示: