TextView代码设置一个TopDrawable

来源:互联网 发布:淘宝买家怎么升级 编辑:程序博客网 时间:2024/06/06 16:27
Drawable drawable = getResources().getDrawable(R.drawable.xxx);drawable.setBounds(0,0,drawable.getMinimumWidth(), drawable.getMinimumHeight());//不调用这句 将不显示drawablemTextView.setCompoundDrawables(null, drawable, null, null);
0 0