问题标签 [svg-android]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
38 浏览

android - 可绘制的图像未在 imageview 中显示

我正在我的应用程序中使用 svgs。问题是当我创建大小为 1500 像素 x 500 像素的图像视图时,我的 svg 没有加载。我必须以像素为单位保持图像视图的大小,并且它是固定的。但是当我将图像视图的大小减小到 950 像素 x 430 像素时,svg 会正确显示。我将 svgs 保存在我的资产中。

我正在使用 oppo,我的设备有 android 版本 4.2

(PS 我已经在其他设备上检查了具有相同尺寸的图像视图的相同 svg 并且它工作正常)

请帮忙