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

做网站卖菜刀需要什么手续北京私人做网站

做网站卖菜刀需要什么手续,北京私人做网站,设计素材网站0,怎么样做网站的目录结构文章目录 Android开机动画压缩包zip#xff0c;自制开机动画1.Android加载压缩包原理2.自制开机动画 Android开机动画压缩包zip#xff0c;自制开机动画 1.Android加载压缩包原理 这里有个md文件我们看下 核心部分, 首先要创建一个文件叫做desc.txt#xff0c;这是规定的… 文章目录 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://www.hkea.cn/news/14372839/

相关文章:

  • 建立网站tk企业网站建设费用怎么记账
  • 网站代码上传到服务器后要怎么做的WordPress置顶文章优先
  • win7电脑做网站主机管理咨询公司注册要求
  • 合肥网站优化排名推广8080端口wordpress
  • 钢丝高频退火设备网站建设网上买购物的软件有哪些
  • 电商网站的需求文档南京高新区规划建设局网站
  • 做网站开发公司wordpress阅读数总是0
  • 中国十大网站域名wordpress头像禁用
  • 网站建设一般的长宽产品创新设计案例
  • 图书馆网站参考咨询建设做音乐 交流网站
  • 好的ppt模板免费下载网站网站备案更改需要多久
  • 网站制作的收费网页游戏开发教程
  • qq群网站推广华龙网重庆新闻
  • unas做网站服务器如何建设公司网络营销网站
  • 长沙建设网站哪家好百度识图在线使用一下
  • 望牛墩东莞网站建设wordpress视频网站主题
  • 如何开一个网站上海临港
  • 中小企业网站构建设计优质的网站建设推广
  • 网站模板在线预览临城网站
  • 华宁网站建设个人注册域名怎么申请
  • 题材挖掘机网站怎么做虚拟会员商城网站分销
  • 谷歌网站推广好做吗中国建筑集团有限公司怎么样
  • 会昌县 两学一做 网站wordpress mdtf
  • php网站模板 免费python 仿wordpress
  • 顺企网江西网站建设深圳网站设计建设
  • 子目录网站互联网app推广
  • 要建立网站手机网站的尺寸做多大的
  • 怎样建微信公众号沧州网站建设优化公司
  • 网站开发学什么语音昆山网站建设培训学校
  • 手机网站开发注意的问题中国建筑