Pet*_*ter 1 android background textview
我尝试在textview的背景上设置图像.一切都好但是..当我"setText("blyablya")"而不是文字没有显示.我试图使用setBackgroundResource和setBackgroundDrawable ...但总是在仅背景图像上,我无法从TextView看到文本(((
请任何人可以帮助我?
简单代码:
//tit - TextView tit
tit.setText("blabla");
tit.setTextColor(Color.BLACK);
tit.setBackgroundDrawable(getResources().getDrawable(R.drawable.popup_title));
Run Code Online (Sandbox Code Playgroud)
在帮助之后添加:如果正常可绘制比一切正常但是如果背景可绘制是9patch比这可能对你有帮助.
| 归档时间: |
|
| 查看次数: |
1430 次 |
| 最近记录: |