首页 新闻 赞助 找找看

android LinearLayout setBackgroudColor()方法

0
悬赏园豆:10 [已关闭问题] 关闭于 2015-03-20 13:46

各位大侠,android代码中通过以下方式设置linearlayout背景颜色,编译时提示“The method setBackgroudColor(int) is undefined for the type LinearLayout”错误,百度上也有类似的写法,请大侠指点下哪里出错了,谢谢!

 final LinearLayout ll = (LinearLayout) this .findViewById(R.id.LinearLayout01);
  red.setOnClickListener(new OnClickListener() {
   public void onClick(View v) {
    ll.setBackgroudColor(Color.DKGRAY);
   }
  });

jxwolf_tcl的主页 jxwolf_tcl | 菜鸟二级 | 园豆:216
提问于:2015-03-18 18:44
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册