android中getCompoundDrawables()方法,设置文本框中图片的位置
2016-07-21 16:58
507 查看
extView.setCompoundDrawables(Drawable left, Drawable top, Drawable right, Drawable bottom) 这个看你设定的是在哪个方向了,就把drawable放在哪个对应的位置。 如果放在文本框的右面,这样就可以了 getCompoundDrawables()[2]
如果放在其他的位置按着这样写就可以了
相关文章推荐
- android AsyncTask
- android 将开源项目发布到JCenter及问题总结
- Android冷启动白屏解析,带你一步步分析和解决问题
- Android API之Drag&Drop
- android 黑名单中电话拦截
- android TextView中文字通过SpannableString设置属性
- Android studio基本使用(1)
- Android Studio 使用的快捷键
- android基础(四)
- Android4.4 Sensor APP-->HAL代码流程
- 使用Jenkins自动化构建Android和iOS应用
- android:descendantFocusability用法简析
- Android Dialog 的一些特性
- Android Studio新功能解析,你真的了解Instant Run吗?
- Android ListView介绍及优化方案
- Android Studio开发,加入SVN管理
- android的广播发送与接收
- Android开发-数字选择进度条-步骤方法
- Android Studio中添加自定义字体的方法
- android中的图像压缩