zoukankan      html  css  js  c++  java
  • Android Drawable资源

            Android资源保存目录为/res/drawable/

                                                  
           ClipDrawable代表从其他位图上截取一个“图片片段”,clip标签,<clip />

            LayerDrawable Drawable数组(图层叠加效果)
    <layer-list ...>

           <item../>

            <item../>

               ....

    </layer-list>

            ShapeDrawable(GradientDrawable)用XML资源文件定义一个基本的几何图形
    <shape  xmls:android="http://schemas.android....>
       android:shape=""//选择几何图形形状
       <corners/> 
       <size/>
       <gradient/>
       <padding/>
       <soild/>
       <stroke/>
    </shape>


            StateListDrawable对象所显示的Drawable对象会随着目标组件状态的改变而自动切换
    android:state_xxx:指定一个特定状态

    <selector ... >

       <item   android:color/drawable=""

              android:state_xxx="true/false"/>

    </selector>


            BitmapDrawable
    在xml资源文件中使用bitmap作为根节点来定义BitmapDrawable.
    在xml资源问价中使用bitmap作为子节点和其他父节点一起使用
    <Bitmap />标签位图参考:http://blog.csdn.net/pingchuanyang/article/details/9239271

       VectorDrawable矢量图,不会因为图像缩放而失真

       AnimationVectorDrawable 可以让矢量图有动画效果

     


    深入了解参考:http://blog.csdn.net/ouyang_peng/article/details/8800743

    http://blog.csdn.net/qq_33689414/article/details/51714456 矢量图

  • 相关阅读:
    c语言 12
    c语言中用结构体表示点的坐标,并计算两点之间的距离
    c语言 12
    c语言中结构体数组
    c语言 12-3
    c语言 12-2
    codevs3164 质因数分解
    codevs4438 YJQ Runs Upstairs
    codevs4439 YJQ Requires Food
    codevs4437 YJQ Arranges Sequences
  • 原文地址:https://www.cnblogs.com/feng-ye/p/5830151.html
Copyright © 2011-2022 走看看