![](/img/trans.png)
[英]How to use an image other than the app icon in the splash screen for android
[英]Can I use SVG for app icon and splash screen? for both ios and android
我想知道是否允許使用像icon.svg
和splash.svg
這樣的大型 SVG 圖像,並讓操作系統根據需要將其縮放到相應的大小?
如果是,適用於哪個操作系統?
這會被認為是一種不好的做法嗎?
在 iOS 上,答案是否定的,您不能將 SVG 圖像用於圖標或啟動畫面。 您需要對兩者都使用 PNG。
AFAIK,android 本身不支持。 Android Visual Studio 允許在設計時將 SVG 轉換為 PNG。
允許在運行時使用 svg 圖形的 Android 第三方庫:
https://code.google.com/archive/p/svg-android/downloads
https://code.google.com/archive/p/svg-android-2/
幾年前我試過它們,但不是很准確。 也許現在已經修復了。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.