Application Window Orientation Switching for Portrait Layout in Landscape
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Most applications are not adapted to display in landscape orientation, leading to impaired user experience when the screen orientation of electronic devices is switched to landscape mode.
Innovation Solution
An application display method that detects a screen orientation switch from portrait to landscape and changes the window orientation to portrait, allowing the application to load a portrait layout, thereby enabling display in landscape orientation.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Area of stationary object
If the screen orientation is switched to landscape mode, then the display area utilization is improved, but the application display adaptability deteriorates because most applications are not adapted to landscape orientation
Solution Approach 1:
The system introduces an intermediary mechanism (the operating system's display resource information) that mediates between the landscape screen orientation and the application's portrait-only design. The OS changes the window orientation in display resource information to portrait orientation, allowing the application to load its portrait layout while the window itself is displayed in landscape mode, thus resolving the conflict between screen orientation and application adaptability
Solution Approach 2:
The system dynamically adjusts the window orientation in display resource information based on the current screen orientation. When the screen is in landscape mode, the system dynamically changes the window orientation to portrait orientation for applications not adapted to landscape, enabling flexible adaptation without requiring application modifications
2Reliability
If the application loads a portrait layout in landscape orientation, then the application functionality is preserved, but the visual coherence deteriorates because the layout is not optimized for landscape
Solution Approach 1:
Instead of trying to force the application to adapt to landscape orientation (which would compromise functionality), the system inverts the approach by allowing the application to load its native portrait layout while the window is rotated to landscape orientation for display. This inversion preserves both functionality and visual coherence by maintaining the application's intended layout structure
Data Source
AI summary
In accordance with an embodiment, an application display method includes: starting an application on an electronic device; detecting a switching operation of switching a screen orientation of the electronic device from a portrait orientation to a landscape orientation; in response to detecting the switching operation, changing a window orientation of display resource information of the application to the portrait orientation; and sending the changed display resource information to the application, so that the application loads a portrait layout of an application window in the landscape orientation.


