I am developing an Android app with many drawable resources
so the heap memory is growing too much, maybe to >28MB
. My app has 3 Activities
switching each other when using, each of them has a different background and currently, I just simply set
"android:background = "@drawable/bg.."
to each parent Layout.
My questions are:
1) Do we need to create a full pixels drawable design? I meant 480x800 for mdpi or 720x1280 for xhdpi... Is there a way that the design still good when pixels is smaller than screen? How?
2) Suppose I have the designed resources with full screen, how I set the background with the lowest heap using? The "android:background" propertie in XML
is not good way, with "Displaying Bitmaps Effeciently" the inSampleSize is always 1 because of fullscreen designs, if I manual set inSampleSize > 1
the background is blurry.
Thanks and best regards!