我在程序中加了一段
final TextView add = new TextView(this);
add.setId(ID_ADD);
RelativeLayout lo = new RelativeLayout(this);
//lo.setBackgroundColor(Color.BLUE);
lo.setBackgroundResource(R.drawable.default_bg);
图确定存在,而且已经clean project了,为什么relativeLayout的背景就是无法显示?求帮助啊
final TextView add = new TextView(this);
add.setId(ID_ADD);
RelativeLayout lo = new RelativeLayout(this);
//lo.setBackgroundColor(Color.BLUE);
lo.setBackgroundResource(R.drawable.default_bg);
图确定存在,而且已经clean project了,为什么relativeLayout的背景就是无法显示?求帮助啊
lo 控件已经加到界面上了 ?
因为我在这个layout里还加了一个TextView,里面的内容都可以显示
setContentView(lo); 也加上了
只是背景图片显示不出来