【发布时间】:2015-10-28 17:59:08
【问题描述】:
我正在使用以下代码将可绘制对象附加到 TextView
TextView tv = new TextView(this);
tv.setText(text);
tv.setTextSize(55);
tv.setBackgroundResource(R.drawable.bubble);
tv.setCompoundDrawablesWithIntrinsicBounds(0, 0, android.R.drawable.presence_offline, 0);
drawable 已显示,但唯一的问题是它与文本相比非常小,我想重新缩放它并使其更大,但我还没有找到方法。
这是可绘制对象的外观。有什么建议吗?
【问题讨论】:
-
这绝对不行,你有没有想过这个答案?
-
我觉得这个链接可以解决你的问题stackoverflow.com/questions/5483828/…
-
你能详细说明你想要什么吗?