1

R.styleable.VectorDrawable_viewportWidth

该资源的名字并非VectorDrawable_viewportWidth

而是 attrs.xml 下的声明

 <!-- Drawable used to draw vector paths. --><declare-styleable name="VectorDrawable"><!-- If set, specifies the color to apply to the drawable as a tint. By default,no tint is applied. May be a color state list. --><attr name="tint" /><!-- When a tint color is set, specifies its Porter-Duff blending mode. Thedefault value is src_in, which treats the drawable as an alpha mask. --><attr name="tintMode" /><!-- Indicates if the drawable needs to be mirrored when its layout direction isRTL (right-to-left). --><attr name="autoMirrored" /><!-- The intrinsic width of the Vector Drawable. --><attr name="width" /><!-- The intrinsic height of the Vector Drawable. --><attr name="height" /><!-- The width of the canvas the drawing is on. --><attr name="viewportWidth" format="float"/><!-- The height of the canvas the drawing is on. --><attr name="viewportHeight" format="float"/><!-- The name of this vector drawable --><attr name="name" /><!-- The opacity of the whole vector drawable, as a value between 0(completely transparent) and 1 (completely opaque). --><attr name="alpha" /></declare-styleable>

pathRenderer.mViewportWidth = a.getFloat(
R.styleable.VectorDrawable_viewportWidth, pathRenderer.mViewportWidth);

     
     
     

转载于:https://www.cnblogs.com/conncui/p/4223466.html

Android 源码VecotorDrawable相关推荐

  1. android源码下载方法 批量下载 基于windows os

    安装win版的Gitbash, 在这里 http://msysgit.googlecode.com/files/Git-1.6.0.2-preview20080923.exe. 选择默认安装路径(否则 ...

  2. I.MX6 android 源码下载

    /************************************************************************** I.MX6 android 源码下载* 说明:* ...

  3. Android源码下载资料

    最近上网上寻找android源码包,找了很久才找到,为了感谢那些好心人,特在此撒种 http://rgruet.free.fr/public/ 里面包含:1.5到2.3.3的源码 然后这个是我下载后传 ...

  4. eclipse工程中查看android源码

    在用eclipse开发Android程序时,经常会想看android源码. 下面介绍一种简单的方法,能够方便大家查看android源码. 首先要用SDK Manager将相应版本的android源码下 ...

  5. android开发环境建立以及开发工具的使用--怎样使用eclipse来开发android源码

    /** 版本:1.0 日期:2009-04-01 作者:HKjinzhao 备注: 转自:http://blog.csdn.net/hkjinzhao/article/details/4043997 ...

  6. Android源码之Camera系统架构

    2019独角兽企业重金招聘Python工程师标准>>> https://blog.csdn.net/ljsbuct/article/details/7094670 https://w ...

  7. android源码模块编译错误,Android 源码编译错误记录

    构建环境 mac os 10.14.5 在构建过程中报如下错误: Could not find a supported mac sdk: ["10.10" "10.11& ...

  8. Mac下编译Android源码,并导入IntelliJ IDEA进行源码阅读

    macOS High Sierra 版本 10.13.4 Xcode 9.3 aosp分支:android-8.1.0_r20 准备编译环境 具体参考官方文档 安装 jdk8u45 or newer ...

  9. Android源码解析(一)动画篇-- Animator属性动画系统

    Android源码解析-动画篇 Android源码解析(一)动画篇-- Animator属性动画系统 Android源码解析(二)动画篇-- ObjectAnimator Android在3.0版本中 ...

最新文章

  1. 反编译工具jad简单用法
  2. 【Linux】 iptables vs firewalld
  3. python collections模块(数据结构常用模块)计数器Counter 双向队列deque 默认字典defaultdict 有序字典OrderedDict 可命名元组namedtuple
  4. 概述SharePoint 2007
  5. matlab 若当标准型,若当标准型求解.pdf
  6. .NET Core 在中国的现状调研
  7. mybatis 查询之神坑
  8. [摘]IIS上部署WCF的问题
  9. 2015年第一届数据科学家大会
  10. 新建工程后编译运行出现,无法找到*.obj问题解决方案
  11. MySQL的事务处理
  12. npm ERR! Unexpected end of JSON input while parsing near '...Comment: https://open'
  13. OSChina 周五乱弹 ——我们测算过无数代码却依旧算不准没钱的这一生
  14. 实验室设备管理系统C语言——课程设计实习
  15. 各种数据传输总线的传输速率是多少?这些速率是如何计算出来的?数据传输的速率单位有哪些以及有哪些区别?Bps,bps,Byte/s,bit/s,kbps等等
  16. pcd 地图转 栅格地图
  17. 动态规划-背包问题(易懂)
  18. Win10安全中心误删隔离文件怎么恢复
  19. 国际化进程加速,上海树图区块链研究院联合创始人伍鸣博士受邀访问香港科技园...
  20. Typecho 源码分析(8)-- 后台插件列表

热门文章

  1. 【设计模式系列】OO设计原则之LSP-Liskov替换原则
  2. [小改进]Blog页面导航调整
  3. 第十一周编程总结--助教
  4. poj2411 Mondriaan's Dream (状压dp+多米诺骨牌问题)
  5. PHP类中的__get()和__set函数到底有什么用
  6. 赛思信安携手太极 助力《甘肃省公安厅大数据警务云》项目
  7. Java集合源码学习(五)几种常用集合类的比较
  8. iOS开发那些事--iOS6 UI状态保持和恢复
  9. 发现“郝茵晴”:屌丝们的社会性传播实验
  10. 用JSON技术加快AJAX程序开发