我有一个具有我自己风格的 EditText。基本上它是 EditText 的边框。问题是文本从这个边界开始,所以不太好。有没有办法在 EditText 中设置文本的起点?
最佳答案
像这样在布局的起始端提供填充
<EditText
android:layout_width="fill_parent"
android:layout_height="wrap_content"
...
android:paddingLeft="10dp"
/>
关于android - 设置Edittext的起点,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12226625/