android之Vector使用

準備圖片 圖片格式爲SVG,如果是其它的格式,需要使用Vector magic工具進行轉換 android studio生成SVG圖片到xml文件 1.點擊File->New->Vector Asset 2.選擇Local file(SVG,PSD),加載準備好的SVG圖片,點擊Next  3.點擊完成 4.生成xml文件 5.引用圖片資源 運行效果圖
相關文章
相關標籤/搜索