【发布时间】:2015-05-13 07:12:50
【问题描述】:
众所周知,我们可以使用
在EditText 上设置drawable_left
edittext.setcCompoundDrawablesWithIntrinsicBounds(R.drawable.icon,0,0,0);
是否可以在编辑文本的左侧设置一个不可编辑的文本说“A”?
【问题讨论】:
-
使用
RelativeLayout -
@SpringBreaker..是的,我看到了,但是用户可以在 settext 之前输入..但我不想在文本之前做任何操作。
-
你愿意实现
android:hint吗? developer.android.com/reference/android/widget/…