Layout 檔案設定

更改背景顏色

<LinearLayout 
  android:background="#FFFFFF"
  ....

或是

getWindow().getDecorView().setBackgroundColor(Color.WHITE);

https://stackoverflow.com/questions/4761686/how-to-set-background-color-of-an-activity-to-white-programmatically

Last updated

Was this helpful?