simple preview for android l
DESCRIPTION
just a simple preview for android LTRANSCRIPT
![Page 1: Simple preview for android L](https://reader034.vdocuments.net/reader034/viewer/2022051818/5497c612b479596f4d8b5232/html5/thumbnails/1.jpg)
google I/OPolly chou
![Page 2: Simple preview for android L](https://reader034.vdocuments.net/reader034/viewer/2022051818/5497c612b479596f4d8b5232/html5/thumbnails/2.jpg)
Material Design
New theme
New widgets
New APIs
![Page 3: Simple preview for android L](https://reader034.vdocuments.net/reader034/viewer/2022051818/5497c612b479596f4d8b5232/html5/thumbnails/3.jpg)
Principles
Material is the metaphor
Bold, graphic, intentional
Motion provides meaning
![Page 4: Simple preview for android L](https://reader034.vdocuments.net/reader034/viewer/2022051818/5497c612b479596f4d8b5232/html5/thumbnails/4.jpg)
Theme@android:style/
!
Theme.Material (dark version) !
Theme.Material.Light (light version) !
Theme.Material.Light.DarkActionBar
![Page 5: Simple preview for android L](https://reader034.vdocuments.net/reader034/viewer/2022051818/5497c612b479596f4d8b5232/html5/thumbnails/5.jpg)
UI WidgetsRecyclerView
![Page 6: Simple preview for android L](https://reader034.vdocuments.net/reader034/viewer/2022051818/5497c612b479596f4d8b5232/html5/thumbnails/6.jpg)
UI WidgetsRecyclerView
![Page 7: Simple preview for android L](https://reader034.vdocuments.net/reader034/viewer/2022051818/5497c612b479596f4d8b5232/html5/thumbnails/7.jpg)
UI WidgetsRecyclerView !
notifyItemInserted(int position)
notifyItemRemoved(int position)
http://www.grokkingandroid.com/first-glance-androids-recyclerview/
![Page 8: Simple preview for android L](https://reader034.vdocuments.net/reader034/viewer/2022051818/5497c612b479596f4d8b5232/html5/thumbnails/8.jpg)
UI WidgetsCardView
![Page 9: Simple preview for android L](https://reader034.vdocuments.net/reader034/viewer/2022051818/5497c612b479596f4d8b5232/html5/thumbnails/9.jpg)
APIsShadows
![Page 10: Simple preview for android L](https://reader034.vdocuments.net/reader034/viewer/2022051818/5497c612b479596f4d8b5232/html5/thumbnails/10.jpg)
APIsShadows !
View.setElevation
View.setTranslationZ
![Page 11: Simple preview for android L](https://reader034.vdocuments.net/reader034/viewer/2022051818/5497c612b479596f4d8b5232/html5/thumbnails/11.jpg)
APIsAnimations
Touch feedback
Reveal effect
Activity transitions
Curved motion
View state changes
![Page 12: Simple preview for android L](https://reader034.vdocuments.net/reader034/viewer/2022051818/5497c612b479596f4d8b5232/html5/thumbnails/12.jpg)
ART - Android Run Time
![Page 13: Simple preview for android L](https://reader034.vdocuments.net/reader034/viewer/2022051818/5497c612b479596f4d8b5232/html5/thumbnails/13.jpg)
Runtime environment
Dalvik VM
ART
![Page 14: Simple preview for android L](https://reader034.vdocuments.net/reader034/viewer/2022051818/5497c612b479596f4d8b5232/html5/thumbnails/14.jpg)
Dalvik VM 運⾏行⽅方式:bytecode 在每次運⾏行時,都需透過即時編譯器轉換為機器語⾔言
缺點:
執⾏行時間⻑⾧長
電池續航能⼒力差
系統性能差
優點:
安裝時間短
機器語⾔言佔⽤用的儲存空間⼩小
![Page 15: Simple preview for android L](https://reader034.vdocuments.net/reader034/viewer/2022051818/5497c612b479596f4d8b5232/html5/thumbnails/15.jpg)
ART運⾏行⽅方式:app在第⼀一次安裝的時候, bytecode 就會 AOT (Ahead-Of-Timeapp)成機器語⾔言,使其成為 local app
缺點:
安裝時間⻑⾧長
機器語⾔言佔⽤用儲存空間⼤大
優點:
執⾏行時間減半
提升電池的續航能⼒力
提升系統的性能
![Page 16: Simple preview for android L](https://reader034.vdocuments.net/reader034/viewer/2022051818/5497c612b479596f4d8b5232/html5/thumbnails/16.jpg)
Settings
![Page 17: Simple preview for android L](https://reader034.vdocuments.net/reader034/viewer/2022051818/5497c612b479596f4d8b5232/html5/thumbnails/17.jpg)
Dalvik VM vs ART
![Page 18: Simple preview for android L](https://reader034.vdocuments.net/reader034/viewer/2022051818/5497c612b479596f4d8b5232/html5/thumbnails/18.jpg)
Notifications
Form & Function
Lock Screen
MetaData
Watch
![Page 19: Simple preview for android L](https://reader034.vdocuments.net/reader034/viewer/2022051818/5497c612b479596f4d8b5232/html5/thumbnails/19.jpg)
Form & Function
![Page 20: Simple preview for android L](https://reader034.vdocuments.net/reader034/viewer/2022051818/5497c612b479596f4d8b5232/html5/thumbnails/20.jpg)
Notifications
Material theme !
bg - card, shadow
fg - dart text, actions
![Page 21: Simple preview for android L](https://reader034.vdocuments.net/reader034/viewer/2022051818/5497c612b479596f4d8b5232/html5/thumbnails/21.jpg)
Notifications
Accent color !
setColor()
fills a circle
![Page 22: Simple preview for android L](https://reader034.vdocuments.net/reader034/viewer/2022051818/5497c612b479596f4d8b5232/html5/thumbnails/22.jpg)
Notifications
Small icon badging
have largeIcon
placed on top
![Page 23: Simple preview for android L](https://reader034.vdocuments.net/reader034/viewer/2022051818/5497c612b479596f4d8b5232/html5/thumbnails/23.jpg)
Notifications
Custom View
expanded views
else you want
![Page 24: Simple preview for android L](https://reader034.vdocuments.net/reader034/viewer/2022051818/5497c612b479596f4d8b5232/html5/thumbnails/24.jpg)
Lock Screen
![Page 25: Simple preview for android L](https://reader034.vdocuments.net/reader034/viewer/2022051818/5497c612b479596f4d8b5232/html5/thumbnails/25.jpg)
Public
Private
PublicVersion
Secret
Lock Screen
![Page 26: Simple preview for android L](https://reader034.vdocuments.net/reader034/viewer/2022051818/5497c612b479596f4d8b5232/html5/thumbnails/26.jpg)
MetaData
Smart Sorting
Notification.category
Extra People
notification settings
![Page 27: Simple preview for android L](https://reader034.vdocuments.net/reader034/viewer/2022051818/5497c612b479596f4d8b5232/html5/thumbnails/27.jpg)
Watch