標籤:details draw 檔案的 —圖 com sel row 開源庫 vector
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小結
72473591
Android使用向量圖(SVG, VectorDrawable)實踐篇
https://www.jianshu.com/p/0555b8c1d26a
SVG-Android開源庫——項目簡單接入與使用
52826456
SVG-Android開源庫——圖片顏色Manage、Tint及Selector擴充
52878466
SVG-Android開源庫——關於動畫的使用
53286958
SVG-Android開源庫——SVG產生Vector資源檔的編輯預覽工具
54234394
SVG-Android開源庫——SVG圖片相容及效能最佳化解決方案
52454927
SVG_Android github:
https://github.com/MegatronKing/SVG-Android
SVG-Sample地址:
https://github.com/MegatronKing/SVG-Android/tree/master/svg-sample
Android 使用 SVG 向量圖