# 6/10 (Fri) ## Startover ``` if (seekRange.end - current < 10 sec) { // 視同 on Live, 故 UI seek bar 填滿 } ``` ## Android App Entry Point - AndroidManifest.xml - 會寫用到哪些畫面 xxxActivity - SERVICE,例如 app1 可以叫起 app2 - activity(Android) = controller(iOS) - class App: Application() { ... } - 自己弄一個,要在 androidManifest.xml - gradle - applicationId - minSDK - dependency - okhttp - exoplayer - 只要有改動,就會有 sync 按鈕 ## android layout - xml 檔案 - linearLayout (horizontal/verticle) - frameLayout (z axis) - relativeLayout - constrains layout - 跟 relativeLayout 很像,用法差不多 - 很像 iOS auto layout - 切換兩個 layout - 最後會生成 view tree - playcraft 現在上面的 layout 都有在用 - flutter 沒有 constraint layout 的概念 - 網頁也沒有 - 寬度不夠、文字太長 - 自動換行 - 設定行數,超過的話會截斷 - 跑馬燈 (AndroudSDK build in) :::warning - 文字,太長怎麼擠?縮小字級?換行? - Right to left - 兩個 text 在 linearLayout 的權重 :::
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up