摘要:
在XML中设置android:drawableRight="@drawable/input_error"在代码中设置txtName.setCompoundDrawablesWithIntrinsicBounds(null, null, getResources().getDrawable(R.drawable.indicator_input_error), null);原来一直以为是txtName.setCompoundDrawables(null,null,getResources().getDrawable(drawable.indicator_input_error) 阅读全文