开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜