I'm new to B4A so maybe I'm missing something.
But wouldn't it be easier to have the Designer accept values like:
left: 25%x
width: 75%x or 100dip
height: 25%y or 25dip
for the Views properties of Left, Top, Width, and Height? It would be executed just prior to activity_resume so it responds to a change in the device orientation.
I know I can do this using code, but if the Designer accepted these values, it would be one less thing to program. If the user prefers to handle it himself or override these default postions/dimensions, then he can still write his own code in activity_resume.
:sign0163:
Widget
But wouldn't it be easier to have the Designer accept values like:
left: 25%x
width: 75%x or 100dip
height: 25%y or 25dip
for the Views properties of Left, Top, Width, and Height? It would be executed just prior to activity_resume so it responds to a change in the device orientation.
I know I can do this using code, but if the Designer accepted these values, it would be one less thing to program. If the user prefers to handle it himself or override these default postions/dimensions, then he can still write his own code in activity_resume.
:sign0163:
Widget