• Android 使用 SVG 矢量图


    android svg矢量图 可能包含的操作有:

    SVG图还包括改变颜色,透明度,大小,矩阵操作(平移、旋转、缩放),selector, (图标,背景,按钮),动画,等

    setTint(int ColorRes)  // 设置颜色

            iv_arrow = findViewById(R.id.iv_arrow);
            VectorDrawableCompat vectorDrawableCompat = VectorDrawableCompat.create(getResources(), 
                    R.drawable.ic_arrow, getTheme());
            assert vectorDrawableCompat != null;
    //        vectorDrawableCompat.setTint(getResources().getColor(R.color.color_blue));
            vectorDrawableCompat.setTint(Color.RED); // int color res value ~ 0x ARGB
            iv_arrow.setImageDrawable(vectorDrawableCompat);
            

    Android使用SVG小结
    https://blog.csdn.net/dick_zeng/article/details/72473591

    Android使用矢量图(SVG, VectorDrawable)实践篇
    https://www.jianshu.com/p/0555b8c1d26a


    SVG-Android开源库——项目简单接入与使用
    https://blog.csdn.net/megatronkings/article/details/52826456

    SVG-Android开源库——图片颜色Manage、Tint及Selector扩展
    https://blog.csdn.net/megatronkings/article/details/52878466

    SVG-Android开源库——关于动画的使用
    https://blog.csdn.net/megatronkings/article/details/53286958

    SVG-Android开源库——SVG生成Vector资源文件的编辑预览工具
    https://blog.csdn.net/megatronkings/article/details/54234394

    SVG-Android开源库——SVG图片兼容及性能优化解决方案
    https://blog.csdn.net/megatronkings/article/details/52454927

    SVG_Android github:
    https://github.com/MegatronKing/SVG-Android

    SVG-Sample地址:
    https://github.com/MegatronKing/SVG-Android/tree/master/svg-sample

  • 相关阅读:
    Y2K Accounting Bug(POJ 2586)
    Power of Cryptography(POJ 2109 math )
    codeforces C. Valera and Tubes
    codeforces C. Devu and Partitioning of the Array
    codeforces C. Ryouko's Memory Note
    codeforces C. k-Tree
    codeforces C. Prime Swaps
    codeforces C. Xor-tree
    codeforces B. Prison Transfer
    codeforces C. Sereja and Swaps
  • 原文地址:https://www.cnblogs.com/bluestorm/p/9268978.html
Copyright © 2020-2023  润新知