I want to execute some code immediately after the form is shown.
I want to check the size of a button on the form and use the same size to create a new button at runtime.
I tried onStart() and onResumed(), but they do not work.
Home / DeveloperSection / Forums / Code execution after activity creation in android
I want to execute some code immediately after the form is shown.
I want to check the size of a button on the form and use the same size to create a new button at runtime.
I tried onStart() and onResumed(), but they do not work.
Anonymous User
19-Nov-2014You can add a globallayout listener. Add the listener at onActivityCreated. Check this example: