Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个具有我自己风格的 EditText。基本上它是 EditText 的边框。问题是文本从这个边界开始,所以它不是很好。有没有办法在 EditText 中设置文本的起点?
像这样在布局的起始侧提供填充
<EditText android:layout_width="fill_parent" android:layout_height="wrap_content" ... android:paddingLeft="10dp" />