[英]svg icons are not showing properly in different screen sizes or dimention android
在drawable文件夾中使用svg圖標並在值hdpi,xdhpi,xxhpi,xxxhpi文件夾中創建dimen.xml文件,但svg圖標在不同的維度設備中顯示不同或svg圖標獲得有點不同的布局,如hdpi,xdhpi,xxhpi,xxxhpi。 那么這個問題是否有任何解決方案。
SVG內容
<vector
android:height="24dp"
android:viewportHeight="96.0"
android:viewportWidth="96.0"
android:width="24dp"
xmlns:android="schemas.android.com/apk/res/android">;
<path android:fillColor="#00000000" android:pathData="M32.74,87A23.74,23.74 0,1 0,9 63.26,23.74 23.74,0 0,0 32.74,87ZM63.26,87A23.74,23.74 0,1 0,39.52 63.26,23.74 23.74,0 0,0 63.26,87ZM48,56.48A23.74,23.74 0,1 0,24.26 32.74,23.74 23.74,0 0,0 48,56.48Z"
android:strokeColor="#141515"
android:strokeWidth="4"/>
</vector>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.