private LinearLayout linearLayout;
linearLayout = (LinearLayout)findViewById(R.id.linearLayout);
linearLayout.setBackgroundResource(R.drawable);
这样就可以在代码里修改控件的背景图片了。
private LinearLayout linearLayout;
linearLayout = (LinearLayout)findViewById(R.id.linearLayout);
linearLayout.setBackgroundResource(R.drawable);
这样就可以在代码里修改控件的背景图片了。