Drawable drawable = getResources().getDrawable(R.drawable.bg);drawable.setBounds(0, 0, drawable.getMinimumWidth(), drawable.getMinimumHeight());// 设置边界// param 左上右下tv.setCompoundDrawables(drawable,null,null,null);
本文共 263 字,大约阅读时间需要 1 分钟。
Drawable drawable = getResources().getDrawable(R.drawable.bg);drawable.setBounds(0, 0, drawable.getMinimumWidth(), drawable.getMinimumHeight());// 设置边界// param 左上右下tv.setCompoundDrawables(drawable,null,null,null);
转载于:https://my.oschina.net/u/3705875/blog/1860234