Optimizing GridLayout's memory usage
问题 I'm simulating a tile-based map in Android using android-support-v7-gridlayout. I implement it smoothly and fast during the debugging times until I test it on a huge data scale. The actual data would be about ~700x400 ( row-column ) and I just tested it in 400x100 but the application has just crashed and throws an OutOfMemoryException . I then reduced the data until it actually runs on 300x100 . It's not lagging or I don't have any CPU performance issue, the only issue is inadequate memory.