Window Proportion Adjustment for Android Layout Compatibility
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing electronic devices face issues with window proportions not matching the display layout, leading to incomplete page display and reduced user experience due to user-adjusted window proportions that are not supported by the Android system.
Innovation Solution
An electronic device method and apparatus that adjusts window proportions by detecting user operations to determine candidate proportions based on window types, calculating differences, and aligning the window to a target proportion supported by the Android system, ensuring compatibility and optimal display.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Ease of operation
If the window proportion is adjusted freely by the user, then the ease of operation is improved, but the reliability of display compatibility deteriorates
Solution Approach 1:
The system changes the window proportion parameter from a completely free-adjustable state to a constrained state where only predefined proportions are allowed. The processor detects user operations and automatically adjusts the window proportion to match one of several candidate proportions based on the window type, ensuring display compatibility while still allowing user-initiated adjustments.
2Reliability
If the window proportion is fixed to match display layout, then the reliability of display compatibility is improved, but the ease of operation deteriorates
Solution Approach 1:
The system implements a dynamic window proportion adjustment mechanism that responds to user operations. When the user interacts with the window (e.g., drags the edge), the processor detects the operation and dynamically adjusts the window proportion to the nearest candidate proportion. This creates a semi-automatic adjustment process that balances user control with system-enforced compatibility.
3Adaptability or versatility
If multiple candidate proportions are calculated, then the adaptability is improved, but the device complexity increases
Solution Approach 1:
The system pre-calculates and stores multiple candidate proportions corresponding to different window types (full-screen, split-screen, floating windows) and display orientations. These candidate proportions are prepared in advance based on the Android system's supported resolutions and aspect ratios, so that when the user adjusts the window, the system can quickly select the most appropriate pre-computed proportion without performing complex real-time calculations.
Data Source
Figure 1(a)
Figure 1(b)
Figure 2~3
AI summary
A method for adjusting a window includes: in response to detecting a first operation for triggering a specified position of the window, obtaining at least one candidate proportion of the current window based on a type of the window, and obtaining an actual proportion of the window that varies with the first operation; in response to detecting a second operation for stopping triggering the window, obtaining a difference between the at least one candidate proportion and the actual proportion, and determining a candidate proportion with the smallest difference as a target proportion; and adjusting a proportion of the window from the actual proportion to the target proportion. The disclosure may achieve an effect that the proportion of the current window is matched with that of the displayed page, and avoid the problem of mismatch between the window and the page.