Drawable drawable = getResources().getDrawable(R.drawable.xxx); drawable.setBounds(0,0,drawable.getMinimumWidth(), drawable.getMinimumHeight());//不调用这句 将不显示drawable mTextView.setCompoundDrawables(null, drawable, null, null);
TextView代码设置一个TopDrawable
最新推荐文章于 2021-05-25 23:07:41 发布