先从main.xml中获得布局组件:LinearLayout ll = (LinearLayout) findViewById(R.id.mainLayout);

然后通过 ll.setBackgroundColor(R.drawable.×××);

就可以了啊!

相关文章:

  • 2021-11-08
  • 2022-01-01
  • 2022-02-17
  • 2021-07-14
  • 2021-10-11
  • 2022-12-23
  • 2022-02-05
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-02-21
  • 2021-05-20
  • 2021-09-19
  • 2021-11-19
  • 2021-11-08
  • 2021-10-25
相关资源
相似解决方案