您的位置:首页 > 移动开发 > Android开发

android中getCompoundDrawables()方法,设置文本框中图片的位置

2016-07-21 16:58 507 查看
extView.setCompoundDrawables(Drawable left, Drawable top, Drawable right, Drawable bottom)

这个看你设定的是在哪个方向了,就把drawable放在哪个对应的位置。
如果放在文本框的右面,这样就可以了 getCompoundDrawables()[2]

如果放在其他的位置按着这样写就可以了
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: