<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:drawableLeft="@mipmap/地址" //将图片加载到按钮上
android:gravity="center_vertical" //让文字左对齐
android:drawablePadding="10dp" //文字和图片的间距
android:text="我的地址"
/>
Android Button内的图片和文字左对齐
猜你喜欢
转载自blog.csdn.net/qq_41173427/article/details/96975310
今日推荐
周排行