android中textView周围显示图片在Android 中,TextView 是继承于View,而Button是继承于TextView.这个有一个
android中textView周围显示图片
在Android 中,TextView 是继承于View,而Button是继承于TextView.这个有一个API就可以实现的。android:drawableBottomsetCompoundDrawablesWithIntrinsicBounds(int,int,int,int)The drawable to be drawn below the text.?android:drawableLeftsetCompoundDrawablesWithIntrinsicBounds(int,int,int,int)The drawable to be drawn to the left of the text.?android:drawablePaddingsetCompoundDrawablePadding(int)The padding between the drawables and the text.?android:drawableRightsetCompoundDrawablesWithIntrinsicBounds(int,int,int,int)The drawable to be drawn to the right of the text.?android:drawableTopsetCompoundDrawablesWithIntrinsicBounds(int,int,int,int)The drawable to be drawn above the text.?
