Setting the background of an Activity

后端 未结 3 1878
南旧
南旧 2020-12-04 01:15

In the onCreate() method of my Activity, I grab the outermost LinearLayout of the Activity\'s layout. I then check to see what the orientation of the phone is. If it is po

3条回答
  •  温柔的废话
    2020-12-04 01:36

    When you load the background image in onCreate, save a reference to it. I'm assuming its a Bitmap, so in onDestroy call recycle on the Bitmap and you should be fine.

提交回复
热议问题