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. 程式相關

delay

因為避免 block 到 main thread,所以不用 thread.sleep

        new android.os.Handler().postDelayed(
                () -> Log.i("tag", "This'll run 300 milliseconds later"),
                300);
Previous新增畫面NextLayout 檔案設定

Last updated 4 years ago

Was this helpful?