Hi everyone,
I’ve been struggling with a layout rendering issue in production APK on Android and I’d love to hear how other developers handle this.
The problem: Screen Computed Height always returns 0 in production APK. Layout Computed Height returns the static value set in the designer, not the real device screen height. This makes it impossible to dynamically calculate the correct layout height across different devices.
My current workaround: I’m using a forever loop on when Screen Opens that waits until Map Computed Height >= 100, then calculates the layout height from there. The loop only works correctly if I add a wait 0 block before the if condition — without it, the computed height is never calculated even inside the loop.
This feels very fragile and I’m not confident it will work consistently across all devices.
My questions:
-
How do you reliably get the real device screen height at runtime in a production APK?
-
Is
wait 0a known pattern in Thunkable to force the UI thread to sync? -
Is there a cleaner way to handle layout sizing that doesn’t rely on computed height at all?
Any help or alternative approach is appreciated. Thanks!