How to scale views created by code in B4XPages?
I found Klaus's Scale module (from 2012) which works on old Activity. On B4XPages it ends with an error in this module.
Error occurred on line: 641 (Scale)
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference
I am attaching a small project.
I found Klaus's Scale module (from 2012) which works on old Activity. On B4XPages it ends with an error in this module.
B4X:
Scale.SetReferenceLayout(480, 800, 1.5)
Scale.ScaleAll(Root, True) - error
Error occurred on line: 641 (Scale)
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference
I am attaching a small project.