先从main.xml中获得布局组件:LinearLayout ll = (LinearLayout) findViewById(R.id.mainLayout);
然后通过 ll.setBackgroundColor(R.drawable.×××);
就可以了啊!
相关文章:
先从main.xml中获得布局组件:LinearLayout ll = (LinearLayout) findViewById(R.id.mainLayout);
然后通过 ll.setBackgroundColor(R.drawable.×××);
就可以了啊!
相关文章: