button按钮中的文字和drawableLeft的图片距离太远
来源:互联网 发布:网络促销手段 编辑:程序博客网 时间:2024/05/01 13:52
可以通过当中的属性来设置。
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="小鸡炖蘑菇"android:textAlignment="textStart"
android:layout_gravity="start"
android:drawableLeft="@android:drawable/ic_menu_search"
在 17 版本 之前
需要 在button中 添加
android:textAlignment="textStart"
android:layout_gravity="start"
在 17 版本之后
android:textAlignment="textStart"
0 0
- button按钮中的文字和drawableLeft的图片距离太远
- EditText组件drawableLeft属性设置的图片和hint设置的文字之间的距离
- EditText组件drawableLeft属性设置的图片和hint设置的文字之间的距离
- TextView用drawableLeft时,改变文字和图片间的距离
- button中图片跟文字之间距离的设置
- 怎么将Button上的文字和android:drawableLeft都居中
- Android在Button按钮上同时显示文字和图片
- iOS Button 按钮 设置图片在文字的右边
- iOS 带文字和图片的button
- iOS 带文字和图片的button
- Android button设置左边图片离按钮左边的距离,离文本的距离
- 设置Textview的Drawableleft、Drawableright 等图片与文字间距、位置和大小的方法
- android:drawableLeft的Button不能切换图片问题之解决办法
- 自定义控件使用DrawableLeft/Right图片和文字同时居中
- 自定义控件使用DrawableLeft/Right图片和文字同时居中
- 自定义按钮图片和文字的位置
- Button添加图片和文字
- Android中的ListView实现图片文字和按钮
- Spring 全注解配置 bean 和 调用 (3) @Conditonal 条件化的配置bean
- django view.py error 'function' object has no attribute 'objects' 解决办法
- Android实现列表抽屉展示效果
- poj3617 Best Cow Line 贪心
- 修改PHP上传文件大小限制的方法
- button按钮中的文字和drawableLeft的图片距离太远
- Excel单元格里面提取或去掉某些字符
- jquery 跨域
- JPA 、 @ManyToOne、@OneToMany 外键 关联 设置关联项为NULL的问题完美解决
- jquery Ajax实现代码
- HTML 标签速查
- algorithm 1.4.18
- Maven入门基础
- 原生jsAJax实现代码