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