<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="horizontal" > <TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:drawableLeft="@drawable/aa" android:text="abcee" android:gravity="center" android:drawableRight="@drawable/ic_launcher_foreground" /> //在textView 的左边添加了一张图片 //在textView 的右边添加了一张图片 //可在textView的上下左右都添加图片 </LinearLayout>
android UI控件属性 在文字周围添加上图片
猜你喜欢
转载自blog.csdn.net/weixin_41069726/article/details/86560339
今日推荐
周排行