我有一个图像视图,我想在它上面设置一个图像。图像大小为 7,707,446 字节。每当我尝试设置布局时,应用程序崩溃并且错误是内存不足错误。任何人都可以建议我如何解决它。xml 是:-
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<ScrollView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:scrollbars="none">
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@drawable/image" >
</RelativeLayout>
</ScrollView>