Be notified when an Activity's size is going to change, and when it has changed
Can I be notified of the following events for an Activity:
开发者_JAVA技巧- screenSizeWillChange
- screenSizeDidChange
I realize that I can probably override the main View's onSizeChanged()
and be notified when the View has changed, but how can I be notified when it's about to change?
Thats what you are looking for:
http://developer.android.com/reference/android/app/Activity.html#ConfigurationChanges
精彩评论