I am using an image of size 720X1136 as splash screen for my app targeted only for Samsung Galaxy Nexus phones. The actual file size is 513Kb(Found from Browser). When the activity calls the onCreate method and sets the content view the log mentions about a memory allocation of 13.5 MB.
This is the activity which I am loading with an image in background.
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
<ImageView android:src="@drawable/splashscreen"
android:id="@+id/splashscreen"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
/>
<WebView xmlns:android="http://schemas.android.com/apk/res/android"
android:visibility="invisible"
android:id="@+id/webview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
/>
</RelativeLayout>
How can I reduce this memory allocation?
Thanks