我也嘗試使用 java 代碼添加它;password.setCompoundDrawablesRelativeWithIntrinsicBounds(drawable, 0, 0, 0);我還搜索了解決此問(wèn)題的方法,但無(wú)濟(jì)于事,我只發(fā)現(xiàn) drawableStart 也不起作用。
2 回答

慕運(yùn)維8079593
TA貢獻(xiàn)1876條經(jīng)驗(yàn) 獲得超5個(gè)贊
editText.setCompoundDrawablesWithIntrinsicBounds(0, 0, R.drawable.drawableRight, 0);
嘗試:
setCompoundDrawablesWithIntrinsicBounds(left,top,right,bottom)
與:
setCompoundDrawablesRelativeWithIntrinsicBounds
添加回答
舉報(bào)
0/150
提交
取消