In my application I set android:hardwareAccelerated="true"
. I have one layout that have large image (1600 x 2500).
When I run my application the background was gone all I have black background. So when I set
myView.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
the background image shows again. When I set background as a color it works fine.
So what is the problem here or what I did wrong. I want show image when android:hardwareAccelerated is turned on.
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/firstbg"
android:clickable="true">
</LinearLayout>