如何显示在文本视图背景图片 [英] How to display background image in text view
本文介绍了如何显示在文本视图背景图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
任何人可以告诉如何在Android中显示的背景图像中的的TextView
?
can anybody tell how to display background image in a TextView
in android?
推荐答案
如果您正在使用XMLS你可以将其添加为普利文Chandrasekaran说,这样做的:
If you are working with xmls you can add it as Praveen Chandrasekaran said doing:
android:background="@drawable/myResouce"
您可以将它从code做的还改变:
You can also change it from the code doing:
mTextView.setBackgroundResource(R.drawable.myResouce);
这篇关于如何显示在文本视图背景图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文