我设置背景图片为TextView
:背景图像(TextView的)大如TextView的内容
<TextView
...
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:background="@drawable/fumetto"
...
/>
的问题是,现在的TextView
尺寸不一样大,它的内容,但它是作为作为背景图像很大。
有没有办法让背景图像适应TextView大小,而不是让TextView适应其背景图像的大小?
预先感谢您。
这应该工作正常。请检查你的父母布局或张贴一些更多的代码。 –