java - android edit text padding "only text not left drawable image"
问题描述
my problem's photo enter image description here
I wanna add padding to edit text but i want only text padding. Can you help me?
解决方案
参考这个:-
<TextView
android:id="@+id/textView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="asdasasa@gmail.com"
android:padding="10dp"
android:drawableLeft="@drawable/icon_drop"
android:drawablePadding="5dp" />
对于可绘制的图像填充
安卓:drawablePadding="5dp"
对于 TextView 填充
机器人:填充=“5dp”
推荐阅读
- r - 为 R 中的 2D 矩阵图的每个单元格添加文本(plotrix 和/或 ggplot2)
- c# - xml从url到c#
- java - 转换和复制对象的所有属性
- python - 更改 Python 可执行文件的背景颜色
- r - 基于 R 中非数字的百分比的箱线图
- charts - 如何在highcharts中对图例上的标签柱形图进行分组
- functional-programming - 倒转 Functor 顺序的通用配方(一个可折叠)
- r - 如何在 tidymodels 框架下提取分类器对单个数据点的预测?
- reactjs - 如何在 React 中按升序对过滤器下拉列表中的 UniqueValues 进行排序
- excel - 子名称上的 VBA“无效限定符”错误