Upload
-
View
96
Download
1
Embed Size (px)
Citation preview
第十堂:Android 5.0 Lollipop
柯力中 Jason Ko
Jason 的 Android 快樂應用程式學習班
課程內容• Material Design
• Android Auto
• Android TV
• Android Watch
• ART (Android Run Time)
• 其他
Jason 的 Android 快樂應用程式學習班
Material Design
Jason 的 Android 快樂應用程式學習班
Material Design 的 Goal
• 結合傳統設計與科技 , 發展出適合在各裝置 (Mobile, TV, Watch, Glasses) 適用的一體設計
Jason 的 Android 快樂應用程式學習班
Material Design 的 Principle
• 物質感的設計 Material is the metaphor
Jason 的 Android 快樂應用程式學習班
好像觸摸得到物質的感覺!
Material Design 的 Principle
• 鮮明的 , 圖案式的 , 充滿意圖的 bold, graphic, intentional
Jason 的 Android 快樂應用程式學習班
明顯的指示與輸入!
Material Design 的 Principle
• 有意義的動作 motion provide meaning
Jason 的 Android 快樂應用程式學習班
畫面的轉換保有連貫性!
Material Design 的環境• 3D 的質感 , 彷彿我們看物質是一層層的
Jason 的 Android 快樂應用程式學習班
• 除了視角的光外 , 還有周圍光
Material 的物理性質• 1 dp 的厚度
• 有紙板的陰影
• 內容的變化不會影響這個厚度
• 壓到最上層就不會傳到下一層
• 板子跟板子之間是有厚度的
• 板子不可穿越
Jason 的 Android 快樂應用程式學習班
Material 的變形性質
• 變形時 , 只在同一個平面變形
• 不可彎曲或凹折
• 不同的板塊可以分開再合起來
• 如果分開的話 , 板塊即可抬起
Jason 的 Android 快樂應用程式學習班
Material 的動作性質
• 可以在任何地方產生或銷毀
• 可以沿著任何轉軸移動
• z 軸的移動通常用來顯示與使用者互動
Jason 的 Android 快樂應用程式學習班
Material 的 3D 高度
Jason 的 Android 快樂應用程式學習班
Material 的動畫設計
Jason 的 Android 快樂應用程式學習班
• 考量到重量與加速度 , 如果要平貼回來 , 應是不對稱的加速
Material 的回饋感設計
Jason 的 Android 快樂應用程式學習班
• 手的按壓點會造成波紋 ( Surface 面板 跟 Material 稍有微差 )
• 物質產生於按壓 ( 鈕 ) 處
• 板塊被點擊的時候 , 會升起以表示 activited
Material 的有意義轉換
Jason 的 Android 快樂應用程式學習班
• 要有連續性與一貫性
dp, px 與 sp
Jason 的 Android 快樂應用程式學習班
• sp 跟 dp 同 , 但加入了使用者自己在設定調整字體大小的因素
Resolution 與 dpi
Jason 的 Android 快樂應用程式學習班
• dpi 是 dots per inch, 每一英吋裡有多少點 , 是衡量手機解析度的單位
Material 的 Layout 原則
Jason 的 Android 快樂應用程式學習班
• 想像它就是紙 !
seam: 縫合線 step: 堆疊
其他
Jason 的 Android 快樂應用程式學習班
在 Android Material Design
Guideline
• Style
• Components
• Patterns ….
http://www.google.com/design/spec/material-design/introduction.html
Ex: Material Design 的 Sample Code
Jason 的 Android 快樂應用程式學習班
Android Auto ( 汽車 )
Jason 的 Android 快樂應用程式學習班
Android Auto
Jason 的 Android 快樂應用程式學習班
https://developer.android.com/auto/index.html
Android TV
Jason 的 Android 快樂應用程式學習班
Android TV
Jason 的 Android 快樂應用程式學習班
• https://developer.android.com/training/tv/index.html?utm_campa
ign=lollipopsamples-1214&utm_source=dac&utm_medium=blog
Android Wear
Jason 的 Android 快樂應用程式學習班
Android Wear
Jason 的 Android 快樂應用程式學習班
https://developer.android.com/wear/index.html
Ex: Android Wear 的 Sample Code
Jason 的 Android 快樂應用程式學習班
ART (Android Run Time)
Jason 的 Android 快樂應用程式學習班
ART (Android Run Time)
Jason 的 Android 快樂應用程式學習班
• ART 前身是 Dalvik 虛擬機 , 在安裝時會將 dex 編譯為 oat, 提升運行速度 .
• ART 並非所有的 dex 檔皆可編譯• 改善 GC (Garbage Collection), 減少因為
記憶體不足引起的程式錯誤• 支援 64 位元
其他
Jason 的 Android 快樂應用程式學習班
Lollipop 的其他 Sample
Jason 的 Android 快樂應用程式學習班
• Concurrent DocumentMultiTasks by documents, 可以先開了某個 APP 讓他執行 ,等等再回去 , 例如 : 讓手機先 Load 購物資訊
• HDR Viewfinder可以擷取兩個不同的 Camera Frame
• Job Scheduler使用 Project Volta API, 達到更省電的效果