android 機器人動畫,Android 5.X與Android4.X版本機器人動畫的區別以及制作動畫的方法...

今天翻了下墻,解決了一直以來的疑惑問題:

為什么Android5.0以及6.0的recovery版本,機器人動畫怎么就只有一張圖片?

這個問題,我百思不得其解,看了很多網文,也只是有了個概念。

請參考以下文檔,這是我從谷歌Android開源網拉下來的原文:

https://source.android.com/devices/tech/ota/device_code

Recovery UI images

Android 5.x

The recovery user interface consists images. Ideally, users never interact with the UI: During a normal update, the phone boots into recovery, fills the installation progress bar, and boots back into the new system without input from the user. In the event of a system update problem, the only user action that can be taken is to call customer care.

An image-only interface obviates the need for localization. However, as of Android 5.x the update can display a string of text (e.g. "Installing system update...") along with the image. For details, see?Localized recovery text.

b04e63a5e55876e37b2db628c2e29076.png

The installing animation is represented as a single PNG image with different frames of the animation interlaced by row (which is why Figure 2 appears squished). For example, for a 200x200 seven-frame animation, create a single 200x1400 image where first frame is rows 0, 7, 14, 21, ...; the second frame is rows 1, 8, 15, 22, ...; etc. The combined image includes a text chunk that indicates the number of animation frames and the number of frames per second (FPS). The toolbootable/recovery/interlace-frames.pytakes a set of input frames and combines them into the necessary composite image used by recovery.

efault images are available in different densities and are located inbootable/recovery/res$DENSITY/images(e.g.,bootable/recovery/res-hdpi/images). To use a static image during installation, you need only provide the icon_installing.png image and set the number of frames in the animation to 0 (the error icon is not animated; it is always a static image).

以上文檔意思就是說,Android5.x以上的版本,機器人的動畫是PNG圖片和幀動畫組成的,我們可以使用recovery目錄下的interlace-frames.py這個python腳本來進行合成,具體的合成方法可以參考這位新浪網友的文章,親身試過,問題已經解決,那么,既然可以這么來合成,我就可以把android原生態的動畫給換了,因為這個機器人實在是丑。

Android 4.x and earlier

The Android 4.x and earlier recovery UI uses the error image (shown above) and the installing animation plus several overlay images:

35005913621f07cef5bd35442c470153.png

During installation, the on-screen display is constructed by drawing the icon_installing.png image, then drawing one of the overlay frames on top of it at the proper offset. Here, a red box is superimposed to highlight where the overlay is placed on top of the base image:

77fa9469a9c53a34104e1da1b05869ea.png

Subsequent frames are displayed by drawing only the next overlay image atop what's already there; the base image is not redrawn.

The number of frames in the animation, desired speed, and x- and y-offsets of the overlay relative to the base are set by member variables of the ScreenRecoveryUI class. When using custom images instead of default images, override the Init() method in your subclass to change these values for your custom images (for details, see ScreenRecoveryUI). The script bootable/recovery/make-overlay.py can assist in converting a set of image frames to the "base image + overlay images" form needed by recovery, including computing of the necessary offsets.

Default images are located in bootable/recovery/res/images. To use a static image during installation, you need only provide the icon_installing.png image and set the number of frames in the animation to 0 (the error icon is not animated; it is always a static image).

上面說了這么多,其實也是把這上面的圖片通過make-overlay.py這個python腳本來對4.x以及早期版本的android recovery的圖片進行合成,中間讓我們看到的轉轉轉那個overlay的效果就是上面這些組圖合成的,合成最終的圖片存放在bootable/recovery/res/images這個路徑下。

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/news/529629.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/529629.shtml
英文地址,請注明出處:http://en.pswp.cn/news/529629.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

android盒子smb,普通安卓盒子smb方法 - 懷舊游戲長廊 - A9VG電玩部落論壇 - Powered by Discuz!...

本帖最后由 slime525 于 2018-10-20 21:00 編輯1安卓下安裝盒子伴侶一鍵自動安裝Optware2win下安裝Putty,記下盒子ip端口,賬戶密碼分別是:root,toor。小寫!3然后直接輸入:ipkg-opt install samba就會自動下…

android .9編譯,在Ubuntu 9.04下編譯Android源碼

一直都是刷官方的版本,準備自己編譯一下刷機。首先是下載,Android的源碼是托管在Linux Kernel的源碼站點,所以版本工具是git。關于git的使用和安裝請見我的另一篇文章《在Ubuntu Server上安裝Git》。創建一個存放Andorid的目錄,然…

android reshare.c病毒,惡意軟件分析 URL鏈接掃描 免費在線病毒分析平臺 | 魔盾安全分析...

META-INF/MANIFEST.MFtNDfEFTy~s{Cg\V/OxIl[Mf"JC E_UcB1$^x6"i]6U#3D5Tmw>20#&hG;bVl*XK]xJU"#k})ek?w&);ViFd0iCFvye{(jB9w%^!yEj2,DGAW|^8ws%bD*eQ6n]fI_w3_nP_gxWll)zf[}l[[Rpn7x7?vbxfuVzgOj^x^lZ,b;%TK7k^mro)AYQJ2o^sL/EDh"^qND9V|Gn(…

imeoptions android,軟鍵盤小記Android:imeOptions

1.actionUnspecified 未指定,對應常量EditorInfo.IME_ACTION_UNSPECIFIED.2.actionNone 沒有動作,對應常量EditorInfo.IME_ACTION_NONE3.actionGo 去往,對應常量EditorInfo.IME_ACTION_GO4.actionSearch 搜索,對應常量EditorInfo.IME_ACTION_SEARCH5.actionSend 發送,對應常量E…

android rn框架開發的例子,RN與安卓通信架構篇

本篇文章介紹的搭建Android與Rn之間的簡易通信架構,需要了解通信的基本使用的同學可以參考下面的鏈接開篇先上圖 - “簡易版的通信架構圖”RN與Android之間通信的架構圖本架構實現的功能有:自定義通信規則,并以Json作為數據傳輸格式進行傳輸實…

android 查詢所有圖片和視頻,Android系統詳解之獲取圖片和視頻的縮略圖

從Android 2.2開始系統新增了一個縮略圖ThumbnailUtils類,位于framework的android.media.ThumbnailUtils位置,可以幫助我們從mediaprovider中獲取系統中的視頻或圖片文件的縮略圖,該類提供了三種靜態方法可以直接調用獲取。1.static Bitmap c…

node將圖片轉換成html文件,node+puppeteer將整個網頁html轉換為圖片并保存【滾動截屏】...

Puppeteer 是 Chrome 開發團隊在 2017 年發布的一個 Node.js 包,用來模擬 Chrome 瀏覽器的運行。demo只支持將簡單不需要翻頁,不需要登陸的頁面轉換為圖片需要node環境,以及npm或cnpm包管理工具(自行百度)開始進入一個新的項目目錄&#xff0…

html hover效果下拉個框,關于下拉菜單(CSS)中,“:hover”樣式的設置問題?

各位大大,請幫忙解決一下這個問題,先謝謝!由于之前的代碼不是全部帖出,可能造成一點信息誤解。以下是針對這個問題另外寫的代碼:.nav {width: 50px;height: 50px;overflow:hidden;background-color: #09F;transition: …

計算機基礎知識離線作業答案,浙大遠程教育計算機離線作業1.計算機基礎知識題...

浙大遠程教育計算機離線作業1.計算機基礎知識題第1章 計算機基礎知識(單選題)這些題目必須做一遍,來自統考題庫(期末考試題也多半出在這里),參考答案在另一個Word文檔中(上傳自己做的答案后才可以下載…)。據說,統考題庫中大約有10,000測試題…

go 生成hash_go基礎之map-寫在前面(一)

為什么分析map在計算機編程語言當中,用的最多的數據結構估計就是map。map以他近乎o(1)的查找效率和修改效率讓他在大多數場景下都比較受青睞。map的常規的實現方式都是hash其他數據結構,如java是hash紅黑樹,而我現在即將要分析的go的實現方式…

大學數學建模大賽是用計算機,北京大學第十屆“江澤涵杯”數學建模與計算機應用競賽試題...

消息來源:http://www.math.pku.edu.cn:8000/news/read.php?newsid8014A題:投籃問題投籃是籃球運動中一項關鍵性技術,是一項重要的得分手段。在籃球賽中有三種特殊的投籃方式,“三分球”、“兩分球”和“一分球(罰籃)”。其中&…

dynamo方程怎么寫_【簡明自控】為什么特征方程如此重要

簡明自動控制——為什么特征方程如此重要。熱場視頻:自平衡桿-雙軸反作用輪倒立擺_嗶哩嗶哩 (゜-゜)つロ 干杯~-bilibili?www.bilibili.com頂個棍子!具有主動腳輪的全向移動機器人_嗶哩嗶哩 (゜-゜)つロ 干杯~-bilibili?www.bilibili.com我自行車怎么少…

用戶計算機可以通過電話撥號,用戶計算機可以通過大型局域網、小型局域網、無線連接、電話撥號和()等方式接入Internet。...

_在保險合同中,用于體現保險利益載體的保險對象條款,被稱為()條款。何為C/H比?原料中的C/H比與原性能的關系是什么?選址意見書、規劃條件、建設用地規劃許可證、建設工程規劃許可證的有效期為()福建木偶戲頗負盛名,以(…

和佳股份有沒有納米機器人_新高賽復賽入圍項目(49)一種納米硅質絕熱材料及其制備方法...

點擊上方“藍字”關注我們“2020中國山東新舊動能轉換高價值專利培育大賽”(簡稱“新高賽”)是由山東省市場監督管理局(知識產權局)主辦,由山東省知識產權事業發展中心、知識產權出版社有限責任公司共同承辦的以新舊動能轉換高價值專利培育為主題的創新大賽。新高賽…

分數乘整數計算機在線應用,分數乘整數應用題.doc

分數乘法應用題【知識要點】求一個數的幾分之幾是多少和求一個數的幾倍是多少的分數應用題的解題思路和解答方法。1、一本書100頁,看了,看了多少頁?想:看了,是看了 的,就是把 看作單位“1”,求看…

mastercam加工報表生成_2020北京加工中心編程培訓工廠教學行業

2020北京加工中心編程培訓工廠教學行業河北德瑪數控培訓自辦工廠 全程四軸五軸實踐 學生直接面對客戶 承攬加工各種異形件復雜件 終身技術支持 可勤工儉學 解決企業各種技術問題,每個校區都有實訓車間,實訓圖檔不限、不限、時間不限、并且不另收費&#…

背景調查 跳槽_分享 | 錄用背景調查,查的到底是什么?

招聘對于HR而言,是一項常規工作,同時也是一項非常重要的工作,招聘有一系列的步驟和程序,每一道步驟和程序都必不可少,顯得那么的重要,這其中包括我們常說的筆試、面試、體檢,還包括不常說的正式…

html鏈接word,word添加網址超鏈接方法

word添加網址超鏈接方法大家對于超鏈接都了解嗎?那么在word中應該如何設置超鏈接呢?下面是小編分享給大家的word添加網址超鏈接方法,希望對大家有幫助。1、直接拖動選定文本這個方法是最簡單的方法,在word文檔中直接拖動鼠選定的文…

.class文件轉換.java_Java中的動態鏈接VS操作系統動態鏈接

在操作系統OS中為了優化內存的使用會采用一種動態鏈接方式,一個文件想要在操作系統中運行必須經過編譯、匯編譯、鏈接、裝載等步驟。可以參考Java程序是怎么跑起來的。本篇主要講解Java棧幀中動態鏈接部分與操作系統的的動態鏈接的區別與聯系操縱系統為什么需要動態…

計算機組成原理與應用,計算機組成原理簡答與應用

簡答與應用1.何謂中斷??中斷是由外圍設備或其他非預期的急需處理的事件引起的,CPU暫時中斷正在執行的程序,轉至另一服務程序去處理這一事件,待事件處理完畢后返回原程序繼續執行。2.(不算CPU中的寄存器級)存…