Recycle bitmaps used in XML layouts



i am using single XML file to show app's SplashScreen and MainActivity... SplashScreen has images that are causing memory heap to grow up (tested using Memory Analyser)... currently i set visibility of the splashScreen to "Gone"... also tried removing splashScreen layout from XML like parent.removeChild(splashScreen); but no effect on memory heap.


Can someone help with recycling the bitmaps in XML or i am to use other activity for splashScreen or create splashScreen Layout through code?


No comments:

Post a Comment