LinearLayout iv = new LinearLayout(activity);
iv.setBackgroundColor(resources.getColor(R.color.calendar_zhe_day));
这是设置背景颜色的代码,我想换成drawable文件夹下的title_btn.png图片要如何写代码呢???
代ç å¦ä¸ï¼
LinearLayout temp=(LinearLayout)findViewById(R.id.LinearLayoutçid);