android svg矢量圖 可能包含的操做有:android
SVG圖還包括改變顏色,透明度,大小,矩陣操做(平移、旋轉、縮放),selector, (圖標,背景,按鈕),動畫,等git
setTint(int ColorRes) // 設置顏色github
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/0555b8c1d26asvg
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/52454927spa
SVG_Android github:
https://github.com/MegatronKing/SVG-Android
SVG-Sample地址:https://github.com/MegatronKing/SVG-Android/tree/master/svg-sample