Erel,
I have my anchors and designer script all setup for an activity and it works great.
But, I would like my activity to automatically reposition all the views/controls (based on my designer scripts/anchors) when the software keypad pops up.
There used to be a Activty.RerunDesignerScript that might have worked (but didn't support anchors), but that function looks like it's no longer supported.
I notice in another thread that since RerunDesignerScript is no longer supported, you suggested to just remove all views and reload the layout which will rerun the scripts/anchors based on the new (smaller) screen size when the keyboard is displayed. But doing that would require me to first save the state/contents of all the views/controls in the current activity, then remove all views, reload in the layout and then restore the contents of all the views. This not only is visually kind of ugly, it also add programming overhead.
What would be much more useful is a way to manually initiate the script/anchor's of a layout (that has already been loaded) so it will simply reposition all the views based on my script/anchors for the new screen size, and keep the already user-entered settings/content of all the views.
Is this possible?
I have my anchors and designer script all setup for an activity and it works great.
But, I would like my activity to automatically reposition all the views/controls (based on my designer scripts/anchors) when the software keypad pops up.
There used to be a Activty.RerunDesignerScript that might have worked (but didn't support anchors), but that function looks like it's no longer supported.
I notice in another thread that since RerunDesignerScript is no longer supported, you suggested to just remove all views and reload the layout which will rerun the scripts/anchors based on the new (smaller) screen size when the keyboard is displayed. But doing that would require me to first save the state/contents of all the views/controls in the current activity, then remove all views, reload in the layout and then restore the contents of all the views. This not only is visually kind of ugly, it also add programming overhead.
What would be much more useful is a way to manually initiate the script/anchor's of a layout (that has already been loaded) so it will simply reposition all the views based on my script/anchors for the new screen size, and keep the already user-entered settings/content of all the views.
Is this possible?