Android 使用 SVG 向量圖

來源:互聯網
上載者:User

標籤: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 向量圖

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.