Hello,
When I lock my phone, then unlock it, the values of 100%y and Activity.height at Activity_Resume are wrong. When I close the app, or switch application, the values are correct.
My code is a simple line like this (I use XCustomListView):
If I Log at Activity_Create, the values are:
but after lock / unlock the values are:
I tried resizing later with CallSubDelayed, it has the same problem.
What can it be?
When I lock my phone, then unlock it, the values of 100%y and Activity.height at Activity_Resume are wrong. When I close the app, or switch application, the values are correct.
My code is a simple line like this (I use XCustomListView):
B4X:
xlv.sv.SetLayoutAnimated(250, xlv.sv.Left, xlv.sv.Top, xlv.sv.Width, 100%y - pnlTop.Height - pnlBottom.Height - AdsOffset)
If I Log at Activity_Create, the values are:
B4X:
Log(100%y) = 1737
Log(Activity.Height) = 1737
but after lock / unlock the values are:
B4X:
Log(100%y) = 1018
Log(Activity.Height) = 1018
I tried resizing later with CallSubDelayed, it has the same problem.
What can it be?