Android
  • 官方文件
  • Android studio
    • Layout Editor
    • WebView
    • 發佈
    • 常見問題
  • 專案架構
    • AndroidManifest.xml
  • 程式相關
    • Material Design
    • 隱藏 title bar
    • HTTP GET
    • 使用 Java 8
    • onClick
    • 新增畫面
    • delay
    • Layout 檔案設定
    • WebRTC
  • listView
Powered by GitBook
On this page

Was this helpful?

  1. 程式相關

Layout 檔案設定

PreviousdelayNextWebRTC

Last updated 4 years ago

Was this helpful?

更改背景顏色

<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