HeatKai C:
As the title stated, my problem is related to the Error. I have set 3 Layout that uses the same background but there's only 1 layout that keeps producing this error. The error started when I set the background. Without the background it can run with no problem. But the one that I want to solve is how to fix the outofmemory error and why does this layout produces the error, while the other two doesn't. The code is pretty much the same.
Related Articles
This is the layout that produces the error.
xmlns:app="http://ift.tt/GEGVYd"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/seabg">android:layout_width="match_parent"
android:layout_height="200dp"
app:srcCompat="@drawable/f1"
android:id="@+id/imageView"
android:layout_alignParentTop="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true" />
Meanwhile this is the one that can be run normally without the error. (It should be two layout, saving some space because the code looks exactly the same only the first ImageView is different.)
xmlns:app="http://ift.tt/GEGVYd"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/seabg">android:layout_width="match_parent"
android:layout_height="200dp"
app:srcCompat="@drawable/y1"
android:id="@+id/imageView"
android:layout_alignParentTop="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true" />
Posted in S.E.F
via StackOverflow & StackExchange Atomic Web Robots
This Question have been answered
HERE