logo
  • 教程列表
  • SO官方文檔
  • 向量 Drawables
    • VectorDrawable 用法示例
    • VectorDrawable xml 示例
    • 將 SVG 檔案匯入為 VectorDrawable
  1. StackOverflow 文件
  2. Android 教程
  3. 向量 Drawables
  4. 將 SVG 檔案匯入為 VectorDrawable

將 SVG 檔案匯入為 VectorDrawable

Created: November-22, 2018

你可以在 Android Studio 中將 SVG 檔案匯入為 VectorDrawable,請按照下列步驟操作:

在 res 資料夾上右鍵單擊,然後選擇新建 > 向量資產。

StackOverflow 文件

選擇“ 本地檔案” 選項並瀏覽到 .svg 檔案。根據自己的喜好更改選項,然後點選下一步。完成。

StackOverflow 文件

  • VectorDrawable xml 示例

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 關於本站
  • 免責聲明