android:drawableLeft|Right|Top|Bottom

在Android中有的时候需要动态设置控件四周的drawble,这个时候就需要调用 setCompoundDrawables(left, top, right, bottom);,四个参数类型都是drawable。

http://blog.csdn.net/cwuhao/article/details/7578843

猜你喜欢

转载自284772894.iteye.com/blog/1776040