N ned New Member Licensed User Longtime User Dec 7, 2013 #1 Please see the codes. What do I need to put in activity_pause and activity_resume to retain the current background image on the ImageView when the table orientation changes. Thanks. Attachments pec.zip 9.2 KB · Views: 181
Please see the codes. What do I need to put in activity_pause and activity_resume to retain the current background image on the ImageView when the table orientation changes. Thanks.
Erel B4X founder Staff member Licensed User Longtime User Dec 7, 2013 #2 Create a process global Bitmap variable and then: B4X: Sub Activity_Create If GlobalBmp.IsInitialized Then ImageView1.Bitmap = GlobalBmp End Sub Sub Activity_Pause GlobalBmp = ImageView1.Bitmap End Sub Upvote 0
Create a process global Bitmap variable and then: B4X: Sub Activity_Create If GlobalBmp.IsInitialized Then ImageView1.Bitmap = GlobalBmp End Sub Sub Activity_Pause GlobalBmp = ImageView1.Bitmap End Sub