Delphi Android - detect device orientation change
问题 New to both Delphi Android development. How do I detect that the screen orientation has changed? i.e. from Portrait to Landscape and vice versa? And how do I fire off code when this happens? For example I have an image sized at let's say 300x200 in portrait mode but when the device switches to landscape I want it to adjust and take up full screen width. 回答1: In your form implement a method procedure DoOrientationChanged(const Sender: TObject; const M: TMessage); where you handle the current