android 动态设置android:drawableLeft|Right|Top|Bottom

http://blog.csdn.net/dadagm/article/details/8980515

 

Drawable drawable=getResources().getDrawable(R.drawable.img);

drawable.setBounds(0, 0, drawable.getMinimumWidth(), drawable.getMinimumHeight());

view.setCompoundDrawables(drawable, null, null,null);

posted @ 2014-11-03 11:08  口我  阅读(388)  评论(0编辑  收藏  举报