https://developer.android.com/training/transitions/index.html

interface n. 界面;<計>接口;交界面
hierarchy n. 層級;等級制度
elaborate adj. 精心製作的;詳盡的;煞費苦心的
diagram n. 圖表;圖解

動畫框架的侷限性

  • Animations applied to a SurfaceView may not appear correctly. SurfaceView instances are updated from a non-UI thread, so the updates may be out of sync with the animations of other views.
  • Some specific transition types may not produce the desired animation effect when applied to a TextureView.
  • Classes that extend AdapterView, such as ListView, manage their child views in ways that are incompatible with the transitions framework. If you try to animate a view based on AdapterView, the device display may hang.
  • If you try to resize a TextView with an animation, the text will pop to a new location before the object has completely resized. To avoid this problem, do not animate the resizing of views that contain text.

incompatible adj. 不相容的;矛盾的;不能同時成立的

把動畫應用到SurfaceView 上可能會表現的不正確,因爲SurfaceView 的更新發生在非UI線程,所以更新可能會和其他動畫不同步
某些特定的轉換類型在應用到TextureView時可能不會產生所需的動畫效果
像listview這種繼承自AdapterView的類,管理子類動畫和動畫框架不兼容,所以要對繼承自AdapterView的的視圖添加動畫,設備可能會掛起
如果嘗試對TextView執行動畫,文字會在視圖動畫結束前跳到一個新的位置,爲了避免這個問題,不要對包含文本的view執行大小調整

根基不牢,地動山搖,走火入魔,切記,切記。
Crossfade n. 淡入淡出;交叉漸變
gradually adv. 逐步地;漸漸地
simultaneously adv. 同時地

https://developer.android.com/training/wide-color-gamut/index.html#overview
gamut n. 全音階;全音域;整個範圍

When wide color gamut mode is enabled, the activity’s window uses more memory and GPU processing for screen composition. Before enabling wide color gamut mode, you should carefully consider if the activity truly benefits from it. For example, an activity that displays photos in fullscreen is a good candidate for wide color gamut mode, but an activity that shows small thumbnails is not.

當啓用了寬色域模式時,activity的窗口將使用更多的內存和GPU處理來處理屏幕組合。在啓用寬色域模式之前,您應該仔細考慮值得,比如當activity需要通過全屏來顯示一張圖片時候可以開啓寬色域模式,如果只是展示一個縮略圖則沒必要。

發佈了46 篇原創文章 · 獲贊 1 · 訪問量 1萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章