我在滚动视图中有图像视图。 ImageView必须滚动。图像分辨率1278x4987(png)这是我的代码:
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<ImageView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:adjustViewBounds="true"
android:scaleType="fitStart"
android:src="@drawable/image_test" />
</LinearLayout>
</ScrollView>
在我的日志中:
位图太大,无法上传到纹理(1923x7500, max = 4096x4096)
但是我的图像视图未在某些设备上显示。图像尺寸不大。是什么原因造成的?请帮助我