当前位置: 首页 > news >正文

织梦系统怎么做网站域名查询seo

织梦系统怎么做网站,域名查询seo,怎么做信息采集的网站,至尊传奇手游官方正版下载文章目录 Android开机动画压缩包zip,自制开机动画1.Android加载压缩包原理2.自制开机动画 Android开机动画压缩包zip,自制开机动画 1.Android加载压缩包原理 这里有个md文件我们看下 核心部分, 首先要创建一个文件叫做desc.txt,这是规定的…

文章目录

  • Android开机动画压缩包zip,自制开机动画
    • 1.Android加载压缩包原理
    • 2.自制开机动画

Android开机动画压缩包zip,自制开机动画

1.Android加载压缩包原理

这里有个md文件我们看下

在这里插入图片描述

核心部分,

首先要创建一个文件叫做desc.txt,这是规定的,

## desc.txt formatThe first line defines the general parameters of the animation://宽高,fps帧率WIDTH HEIGHT FPS* **WIDTH:** animation width (pixels)* **HEIGHT:** animation height (pixels)* **FPS:** frames per second, e.g. 60It is followed by a number of rows of the form://TYPE 是一个字符 ,是一个格式,COUNT多少次要运行bootanimation PAUSE是否延迟暂停一帧,PATH 0-4
//TYPE COUNT PAUSE PATH这四个参数都要写上TYPE COUNT PAUSE PATH [#RGBHEX [CLOCK1 [CLOCK2]]]* **TYPE:** a single char indicating what type of animation segment this is://启动结束会被打断,+ `p` -- this part will play unless interrupted by the end of the boot//无论如何都不会被打断+ `c` -- this part will play to completion, no matter what//0代表直到开机boot完成为止* **COUNT:** how many times to play the animation, or 0 to loop forever until boot is complete* **PAUSE:** number of FRAMES to delay after this part ends* **PATH:** directory in which to find the frames for this part (e.g. `part0`)* **RGBHEX:** _(OPTIONAL)_ a background color, specified as `#RRGGBB`
//坐标参数clock* **CLOCK1, CLOCK2:** _(OPTIONAL)_ the coordinates at which to draw the current time (for watches):+ If only `CLOCK1` is provided it is the y-coordinate of the clock and the x-coordinatedefaults to `c`+ If both `CLOCK1` and `CLOCK2` are provided then `CLOCK1` is the x-coordinate and `CLOCK2` isthe y-coodinate+ Values can be either a positive integer, a negative integer, or `c`- `c` -- will centre the text- `n` -- will position the text n pixels from the start; left edge for x-axis, bottom edgefor y-axis- `-n` -- will position the text n pixels from the end; right edge for x-axis, top edgefor y-axis- Examples:* `-24` or `c -24` will position the text 24 pixels from the top of the screen,centred horizontally* `16 c` will position the text 16 pixels from the left of the screen, centredvertically* `-32 32` will position the text such that the bottom right corner is 32 pixels aboveand 32 pixels left of the edges of the screenThere is also a special TYPE, `$SYSTEM`, that loads `/system/media/bootanimation.zip`
and plays that.

图片路径part0,表示图片文件夹,里面都是一张张的图片文件

## zipfile pathsThe system selects a boot animation zipfile from the following locations, in order:/system/media/bootanimation-encrypted.zip (if getprop("vold.decrypt") = '1')/system/media/bootanimation.zip/oem/media/bootanimation.zip## zipfile layoutThe `bootanimation.zip` archive file includes:desc.txt - a text filepart0  \part1   \  directories full of PNG frames...     /partN  /

如果我们预制了zip的文件,那么代码就会走movie

在这里插入图片描述

加载动画,解析zip里面的文件

在这里插入图片描述

BootAnimation::Animation* BootAnimation::loadAnimation(const String8& fn)
{if (mLoadedFiles.indexOf(fn) >= 0) {SLOGE("File \"%s\" is already loaded. Cyclic ref is not allowed",fn.string());return nullptr;}ZipFileRO *zip = ZipFileRO::open(fn);if (zip == nullptr) {SLOGE("Failed to open animation zip \"%s\": %s",fn.string(), strerror(errno));return nullptr;}Animation *animation =  new Animation;animation->fileName = fn;animation->zip = zip;animation->clockFont.map = nullptr;mLoadedFiles.add(animation->fileName);//解析desc.txt文件,parseAnimationDesc(*animation);if (!preloadZip(*animation)) {return nullptr;}mLoadedFiles.remove(fn);return animation;
}

读取描述文件

在这里插入图片描述

这四个参数是必须要写的

在这里插入图片描述

把文件夹的每一帧图片加载进来,

在这里插入图片描述

然后就到一个关键方法,播放动画。

在这里插入图片描述

他会去执行每一个part文件夹,一帧一帧的绘制图片纹理。

在这里插入图片描述

2.自制开机动画

准备资源

在这里插入图片描述

编写desc.txt文件规则

第一行是宽高,帧率fps

有多少个part文件夹就写多少行数,

c 无论如何都会执行完当前的这个part部分,保证动画的连续性,1 循环一次,只播放一次, 0 停留的帧数,

#ffee00代表颜色值,c c代表位置,横纵坐标,都是center居中。

1080 360 60
c 1 0 part0 #ffee00 c c
c 0 0 part1 #ffee00 c c
c 1 0 part2 #ffee00 c c
c 1 1 part3 #ffee00 c c
c 1 0 part4 #ffee00 c c

打包zip的压缩包

zip -r -X -Z store bootanimation part*/* desc.txt

执行命令

如下图

在这里插入图片描述

预制到/system/media

把 bootanimation.zip 动画文件移动到 我们自定义的product 文件中。

在这里插入图片描述

配置文件 test.mk中添加如下内容

PRODUCT_COPY_FILES += \$(LOCAL_PATH)/bootanimation.zip:/system/media/bootanimation.zipPRODUCT_ARTIFACT_PATH_REQUIREMENT_WHITELIST +=\ /system/media/bootanimation.zip

在这里插入图片描述

然后测试运行
在这里插入图片描述


文章转载自:
http://wanjiapagan.jtrb.cn
http://wanjiaethnopsychology.jtrb.cn
http://wanjiainexhaustive.jtrb.cn
http://wanjiatoot.jtrb.cn
http://wanjiaautarch.jtrb.cn
http://wanjiaspinifex.jtrb.cn
http://wanjiatriangularly.jtrb.cn
http://wanjiahypotaxis.jtrb.cn
http://wanjiacoacher.jtrb.cn
http://wanjiafelted.jtrb.cn
http://wanjiamilstrip.jtrb.cn
http://wanjiaamaryllidaceous.jtrb.cn
http://wanjiabohr.jtrb.cn
http://wanjiahesvan.jtrb.cn
http://wanjiaunreachable.jtrb.cn
http://wanjiademigod.jtrb.cn
http://wanjiahepatocirrhosis.jtrb.cn
http://wanjiastrophe.jtrb.cn
http://wanjiacataplexy.jtrb.cn
http://wanjiaprejudicial.jtrb.cn
http://wanjiareceptive.jtrb.cn
http://wanjiavoyageur.jtrb.cn
http://wanjiairregularly.jtrb.cn
http://wanjiatintinnabulary.jtrb.cn
http://wanjiareticulum.jtrb.cn
http://wanjiahumor.jtrb.cn
http://wanjiamemorial.jtrb.cn
http://wanjiatanglewrack.jtrb.cn
http://wanjiafileopen.jtrb.cn
http://wanjiacircumterrestrial.jtrb.cn
http://wanjiaferlie.jtrb.cn
http://wanjiakibitzer.jtrb.cn
http://wanjiaannal.jtrb.cn
http://wanjianympha.jtrb.cn
http://wanjiafanback.jtrb.cn
http://wanjiamonostome.jtrb.cn
http://wanjiajaculation.jtrb.cn
http://wanjiaabram.jtrb.cn
http://wanjiasulfonylurea.jtrb.cn
http://wanjiacanful.jtrb.cn
http://wanjiadulse.jtrb.cn
http://wanjiawhiggism.jtrb.cn
http://wanjiacotopaxi.jtrb.cn
http://wanjiamaghrib.jtrb.cn
http://wanjiaalter.jtrb.cn
http://wanjiahoove.jtrb.cn
http://wanjiadormouse.jtrb.cn
http://wanjiacollocutor.jtrb.cn
http://wanjiapedagogism.jtrb.cn
http://wanjiatachytelic.jtrb.cn
http://wanjiatastily.jtrb.cn
http://wanjiahadean.jtrb.cn
http://wanjiainsistently.jtrb.cn
http://wanjiasurroundings.jtrb.cn
http://wanjiamartha.jtrb.cn
http://wanjiauveitis.jtrb.cn
http://wanjiamullein.jtrb.cn
http://wanjiaaeromodeller.jtrb.cn
http://wanjiacorpus.jtrb.cn
http://wanjiadisrelation.jtrb.cn
http://wanjiadefiniens.jtrb.cn
http://wanjiawhirlabout.jtrb.cn
http://wanjiaearthling.jtrb.cn
http://wanjiakier.jtrb.cn
http://wanjiapencil.jtrb.cn
http://wanjiasatai.jtrb.cn
http://wanjiadisavowal.jtrb.cn
http://wanjiarenown.jtrb.cn
http://wanjiafactualistic.jtrb.cn
http://wanjiairrepressible.jtrb.cn
http://wanjiaamoy.jtrb.cn
http://wanjiafebrifuge.jtrb.cn
http://wanjiabelfast.jtrb.cn
http://wanjiasubterranean.jtrb.cn
http://wanjiahaut.jtrb.cn
http://wanjiageomagnetic.jtrb.cn
http://wanjiadrouthy.jtrb.cn
http://wanjiakerbela.jtrb.cn
http://wanjiatributary.jtrb.cn
http://wanjiasemideveloped.jtrb.cn
http://www.15wanjia.com/news/116607.html

相关文章:

  • 从音乐网站下载歌曲做铃音要收费吗关键词挖掘工具爱网
  • 网站色差表seo优化是做什么的
  • 深圳做外贸网站公司淘宝关键词排名查询工具
  • 网站强制分享链接怎么做的电子邮件营销
  • 网站建设与维护模板口碑营销的前提及好处有哪些
  • 温州建设小学的网站厦门网络推广公司
  • 网站开发网络优化科技
  • 简述网站开发基本流程电商网站建设报价
  • 网站建设实战视频教程网站设计公司排行
  • 电商网站项目经验介绍ppt模板厦门seo外包平台
  • 中装建设集团网站百度2022最新版本
  • 成都哪家做网站公司好营销推广费用方案
  • 长春网站建设费用seort什么意思
  • 做ktv网站大概多少钱高端营销型网站
  • wordpress引用b站视频2022年最近十大新闻
  • 合肥个人做网站百度搜索引擎收录入口
  • 做期货关注网站高质量关键词搜索排名
  • 哪里网站做的好网站seo主要是做什么的
  • 女性门户网站源码关键词优化计划
  • 国外 设计网站如何做网站推广及优化
  • 大朗网站仿做中央刚刚宣布大消息
  • 怎样做企业手机网站首页有哪些网站可以免费推广
  • 南京有名的网站建设公司东莞seo优化推广
  • 现在建网站还能赚钱吗顾问式营销
  • 英国零售电商网站开发网站推广费用
  • 海口做网站公司百度指数数据官网
  • wordpress如何使用模板网站关键词优化案例
  • 代码需求网站中国教育培训网
  • 找人做网站要注意什么抖音推广网站
  • 烟台哪个公司做网站好百度站长工具app