获取整个文件的布局
设置布局的背景属性
Linearlayout layout= (Linearlayout)(findViewById(R.id.layout));
layout.setBackgroundColor(resources.getColor(R.color.calendar_zhe_day));
layout=(LinearLayout) findViewById(R.id.mylinearlayout);
button.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
layout.setBackgroundResource(R.drawable.a03);
}
});