I am defining some animations based on the inflated dimensions of some UI controls. What is the earliest point in the Activity life cycle I can tap into to know when the UI elements have been sized and I can query them for their dimensions?
I am defining some animations based on the inflated dimensions of some UI controls.
Share
Per Rich’s request:
You can determine when the width and height by using the
GlobalLayoutListenerlike so:Full (better) answer: How to retrieve the dimensions of a view?