An adjustment method, apparatus, device, and computer-readable storage medium

By obtaining the application's display status and parameters, the size of the visible area of ​​the screen is adjusted to match the application, thus solving the problem of incomplete or blank display areas caused by inconsistent screen display and improving the display effect.

CN115640087BActive Publication Date: 2026-05-26LENOVO (BEIJING) LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
LENOVO (BEIJING) LTD
Filing Date
2022-09-27
Publication Date
2026-05-26

AI Technical Summary

Technical Problem

In screen display technology, when the aspect ratio of an application is inconsistent with that of the screen, the displayed objects cannot be fully displayed or there are blank areas, which affects the display effect.

Method used

By obtaining the application's display state, once the first condition is met, the display parameters are obtained, and the size of the visible area of ​​the display screen is adjusted based on these parameters to match the application's display objects, thus ensuring proper display on the screen.

Benefits of technology

This allows the application to be displayed completely on the screen, eliminating unnecessary blank areas and improving the display effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115640087B_ABST
    Figure CN115640087B_ABST
Patent Text Reader

Abstract

This application discloses an adjustment method, apparatus, device, and computer-readable storage medium. The method includes: obtaining the display state of an application; determining that the application meets a first condition based on the display state; obtaining display parameters corresponding to the application; and adjusting the size of the visible area of ​​the display screen based on the display parameters so that the application is adapted to be displayed on the visible area of ​​the electronic device's display screen.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of screen display technology, and more particularly to an adjustment method, apparatus, device, and computer-readable storage medium. Background Technology

[0002] With the continuous development of screen display technology, the screen display sizes of electronic devices have become more diverse, providing users with more choices. However, in reality, the aspect ratios of the displayed objects may differ between different applications. When the aspect ratio of the displayed object does not match the aspect ratio of the screen, the displayed object may not be fully displayed on the screen, or there may be extra blank areas on the screen, affecting the display effect.

[0003] In related technologies, the aspect ratio of the application's display objects is usually adjusted to adapt to the screen ratio of the electronic device. However, adjusting the aspect ratio of the application's display objects, such as adjusting the aspect ratio of images and videos, may cause the display objects to be compressed or enlarged, and the number of pixels corresponding to the display objects may change, thereby reducing the display effect of the application. Summary of the Invention

[0004] In view of this, embodiments of this application provide an adjustment method applied to an electronic device, wherein the size of the visible area of ​​the display screen of the electronic device is adjustable.

[0005] The technical solution of this application is implemented as follows:

[0006] This application provides an adjustment method for an electronic device, wherein the size of the visible area of ​​the display screen of the electronic device is adjustable, including:

[0007] Get the application's display status, determine if the application meets the first condition based on the display status, and get the corresponding display parameters of the application;

[0008] The size of the visible area of ​​the display screen is adjusted based on display parameters so that the application can be displayed in a way that fits the visible area of ​​the electronic device's display screen.

[0009] This application provides an adjustment device applied to an electronic device, wherein the size of the visible area of ​​the electronic device's display screen is adjustable, including:

[0010] The acquisition module is used to acquire the display status of the application, determine whether the application meets the first condition based on the display status, and acquire the corresponding display parameters of the application.

[0011] The adjustment module is used to adjust the size of the visible area of ​​the display screen based on display parameters so that the application can be adapted to the visible area of ​​the electronic device's display screen.

[0012] This application provides an adjustment device, including:

[0013] Memory, used to store executable adjustment instructions;

[0014] The processor, when executing executable adjustment instructions stored in memory, implements the adjustment method provided in the embodiments of this application.

[0015] This application provides a computer-readable storage medium storing computer-executable instructions configured to perform the steps of the above-described adjustment method.

[0016] This application provides an adjustment method, apparatus, device, and computer-readable storage medium. Using this technical solution, firstly, the display state of an application is obtained; based on the display state, it is determined that the application meets a first condition, and display parameters corresponding to the application are obtained; then, based on the display parameters, the size of the visible area of ​​the display screen is adjusted so that the application is adapted to be displayed on the visible area of ​​the electronic device's display screen. Attached Figure Description

[0017] Figure 1 This is a schematic diagram illustrating the display effect of an application in the viewable area of ​​a screen, as described in related technologies.

[0018] Figure 2 A flowchart illustrating an adjustment method provided in an embodiment of this application;

[0019] Figure 3 A schematic flowchart illustrating an adjustment method for a screen-stretchable electronic device provided in this application embodiment;

[0020] Figure 4 A flowchart illustrating a method for adjusting the width of the viewable area of ​​a screen, provided in an embodiment of this application;

[0021] Figure 5 A schematic diagram illustrating the display effect of an application after adjusting the width of the viewable area on the screen, provided as an embodiment of this application;

[0022] Figure 6 A schematic diagram illustrating the determination of the stretchable length of the currently viewable area on the screen, provided as an embodiment of this application;

[0023] Figure 7 A comparison diagram showing the width of the viewable area of ​​the screen before and after adjustment, provided as an embodiment of this application;

[0024] Figure 8 This is a schematic diagram of the composition of an adjustment device provided in an embodiment of this application;

[0025] Figure 9 This is a schematic diagram of the composition structure of an adjustment device provided in an embodiment of this application. Detailed Implementation

[0026] The technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings.

[0027] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limitations on this application. All other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0028] In the following description, references to “some embodiments” or “other embodiments” describe a subset of all possible embodiments. However, it is understood that “some embodiments” or “other embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0029] In the following description, the terms "first" and "second" are used merely to distinguish similar objects and do not represent a specific ordering of objects. It is understood that "first" and "second" may be interchanged in a specific order or sequence where permitted, so that the embodiments of this application described herein can be implemented in an order other than that illustrated or described herein.

[0030] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.

[0031] In related technologies, whether for electronic devices with fixed screen sizes or stretchable screens, the display effect of the application will be affected when the aspect ratio of the application differs from the aspect ratio of the currently viewable area of ​​the screen. For example, such as... Figure 1 As shown, for a laptop with a stretchable screen, the current viewable area of ​​the screen has an aspect ratio of 16:9, while the application has an aspect ratio of 4:3. This results in part of the application's display window being hidden inside the laptop, thus affecting the application's display effect.

[0032] Based on the problems existing in related technologies, this application provides an adjustment method applied to an electronic device. The size of the visible area of ​​the electronic device's display screen is adjustable. The viewable area of ​​the electronic device's screen changes due to different screen stretching lengths, therefore the aspect ratio of the viewable area is variable. Figure 2The diagram shown is a flowchart illustrating an adjustment method provided in an embodiment of this application. The method includes the following steps:

[0033] S101. Obtain the display status of the application, determine that the application meets the first condition based on the display status, and obtain the display parameters corresponding to the application.

[0034] It should be noted that the application can be of any type, such as office applications, communication applications, social applications, entertainment applications, etc. The display state of the application can include maximized display, full-screen display, split-screen display, etc. The display parameters of the application can be the display size, display ratio, etc. of the application's display objects. Of course, the application, the display state of the application, and the display parameters of the application are merely illustrative examples here, and this application does not limit them.

[0035] In some embodiments, the first condition may be a pre-defined target display state of the application, which may include maximized display, full-screen display, or split-screen display. In some embodiments, the current display state of the application may be obtained, and it may be determined whether the application meets the first condition based on the display state. When the application meets the first condition, the display parameters of the application may be further obtained.

[0036] In some embodiments, the application satisfies the first condition when the application's display state is the same as the pre-set target display state of the application, such as the application's display state being any one of maximized display, full-screen display, or split-screen display; in other embodiments, the application satisfies the first condition when the application receives a startup command and starts in response to the startup command.

[0037] S102. Adjust the size of the visible area of ​​the display screen based on the display parameters so that the application can be adapted to the visible area of ​​the electronic device's display screen.

[0038] In some embodiments, after obtaining the display parameters corresponding to the application, the size of the visible area of ​​the display screen can be adjusted based on the display size. For example, the height of the visible area of ​​the display screen can be adjusted according to the aspect ratio of the application's display object, so that the aspect ratio of the adjusted visible area of ​​the display screen is the same as that of the application's display object, ensuring that the application is displayed in a suitable way in the visible area of ​​the electronic device's display screen. The suitable display means that the application's display object is fully displayed in the visible area of ​​the display screen, and there is no extra blank area in the visible area of ​​the display screen excluding the application's display object.

[0039] For example, in some embodiments, when adjusting the size of the visible area of ​​the display screen, the adjustment value of the display screen height can be determined based on the aspect ratio of the application's display object and the aspect ratio of the visible area of ​​the display screen. When it is determined that the adjustment value is less than or equal to the maximum adjustable height of the display screen, the height of the visible area of ​​the display screen is adjusted based on the adjustment value, so that the aspect ratio of the adjusted visible area of ​​the display screen is equal to the aspect ratio of the application's display object.

[0040] In this embodiment, firstly, the display state of the application is obtained; based on the display state, it is determined that the application meets a first condition, and the display parameters corresponding to the application are obtained; then, the size of the visible area of ​​the display screen is adjusted based on the display parameters so that the application can be adapted to be displayed on the visible area of ​​the electronic device's display screen. Thus, by adjusting the size of the visible area of ​​the electronic device's display screen according to the application's display parameters, the screen ratio of the electronic device's display screen is kept consistent with the application's display parameters, thereby enabling the application to be adapted to be displayed on the electronic device's display screen and improving the application's display effect.

[0041] In some embodiments of this application, the step S101, "determining that the application meets the first condition based on the display state and obtaining the display parameters corresponding to the application", can be implemented by the following steps S201A to S202A. Each step is described below.

[0042] S201A: Determine that the display state is full-screen display, determine that the application meets the first condition, and obtain the first width value and first height value of the display object in the application.

[0043] In some embodiments, if the application is displayed in full-screen mode, it can be determined that the application meets the first condition. When the application is displayed in full-screen mode, the application's display object is also displayed in full-screen mode. This display object can be an image, video, PPT document, etc. The first width and first height values ​​of the display object can be the width and height values ​​of the display object in the current full-screen display state. For example, when the application is an image viewer, the application's display object is the image opened through the image viewer, the first width value of the display object is the width value of the opened image, and the first height value is the height value of the opened image.

[0044] S202A: The ratio of the first width value to the first height value of the display object is determined as the display parameter corresponding to the application.

[0045] In some embodiments, the ratio of the first width value to the first height value of the display object is the aspect ratio of the display object. After determining the aspect ratio of the display object, the aspect ratio can be directly used as the display parameter of the application.

[0046] In some other embodiments of this application, the step S101 of "determining that the application meets the first condition based on the display state and obtaining the display parameters corresponding to the application" can also be implemented by the following steps S201B to S202B, and each step is described below.

[0047] S201B: Determine that the display state is maximized, determine that the application meets the first condition, and obtain the first preset aspect ratio corresponding to the application.

[0048] In some embodiments, if the application is displayed in a maximized state, it can be determined that the application meets the first condition. In practice, a maximized display state can be understood as the application's interface being displayed in a maximized manner; the application could be Word, PDF, etc.

[0049] In some embodiments, the first preset aspect ratio can be a preset ratio of width to height. This first preset aspect ratio can be set by the developers during application design, and the application can be displayed with this preset aspect ratio after it is launched. The first preset aspect ratio can be stored as application attribute information in a preset storage path. In the process of obtaining the first preset aspect ratio corresponding to the application, the application can actively send its own attribute information to the electronic device, or the electronic device can also obtain the application's attribute information from the preset storage path, and then obtain the first preset aspect ratio corresponding to the application from that attribute information.

[0050] S202B: Determine the first preset aspect ratio as the display parameter of the application.

[0051] In some embodiments, after obtaining the first preset aspect ratio corresponding to the application, the first preset aspect ratio can be used as the display parameter of the application. Then, when it is determined that the first preset aspect ratio is different from the aspect ratio of the currently visible area of ​​the display screen, the size of the visible area of ​​the display screen can be adjusted based on the first preset aspect ratio.

[0052] In some other embodiments of this application, the step S101, "determining that the application meets the first condition based on the display state and obtaining the display parameters corresponding to the application", can also be implemented by the following steps S201C to S202C. Each step is described below.

[0053] S201C: Determine that the display state is split-screen display, determine that the application meets the first condition, and obtain the display type corresponding to the display objects in at least two applications of split-screen display.

[0054] In some embodiments, if an application is displayed in a split-screen mode, it can be determined that the application meets the first condition. In practice, there may be at least two applications in a split-screen mode, each of which can be displayed simultaneously in the visible display area of ​​the screen. The type of the split-screen applications can be any type. After determining that the split-screen applications meet the first condition, the display type corresponding to the displayed objects in each split-screen application can be obtained. This display type can include maximized display, full-screen display, etc.

[0055] S202C: Based on the display type of each display object in each application, obtain the display parameters corresponding to each application.

[0056] In some embodiments, after obtaining the display type corresponding to the display objects in each application of the split-screen display, the display parameters of each application of the split-screen display can be determined based on the display type. In some embodiments, the display parameters of the split-screen application can be the aspect ratio of the display objects in the application, or it can be a preset aspect ratio corresponding to the split-screen application.

[0057] In some embodiments of this application, the display parameters corresponding to each application are obtained based on the display type corresponding to the display object in each application. That is, the above step S202C can also be implemented by one of steps S202C1 and S202C2. The following describes each step.

[0058] S202C1. Determine that the display type of the object displayed in the first application is full-screen display, obtain the second width value and the second height value of the object displayed in the first application, and determine the ratio of the second width value and the second height value as the display parameter corresponding to the first application.

[0059] It should be noted that the first application can be a split-screen application, and the first application can be any type of application, such as Word, PDF, WeChat, etc. In some embodiments, if the display type of the displayed object in the first application is full-screen display, then the displayed object may be an image, video, etc. For example, if the displayed object in the first application is an image, then the second width value of the displayed object in the first application can be the width value of the image, and the second height value of the displayed object in the first application can be the height value of the image.

[0060] In some embodiments, the ratio of the second width value and the second height value is the aspect ratio of the display object of the first application. After determining the aspect ratio of the display object of the first application, the aspect ratio can be determined as the display parameter corresponding to the first application.

[0061] S202C2. Determine that the display type of the object displayed in the first application is maximized display, obtain the second preset aspect ratio corresponding to the first application, and determine the second preset aspect ratio as the display parameter corresponding to the first application.

[0062] It should be noted that the second preset aspect ratio can be a pre-set aspect ratio corresponding to the first application. The second preset aspect ratio can be the same as or different from the first preset aspect ratio. In some embodiments, if the display type of the display object in the first application is maximized display, then the first application can be Word, PDF, etc., and the display object in the first application can be a Word document display page, a PDF document display page, etc.

[0063] In some embodiments, if it is determined that the display type of the object displayed in the first application is maximized, the second preset aspect ratio can be directly used as the display parameter of the first application. When obtaining the second preset aspect ratio corresponding to the first application, the electronic device can obtain it through a preset path, or the first application can actively send it to the electronic device.

[0064] In some embodiments of this application, the "adjustment of the size of the visible area of ​​the display screen based on display parameters" in step S102 can be achieved by the following steps S301 to S304, and each step is described below.

[0065] S301. Obtain the adjustment threshold corresponding to the height of the visible area of ​​the display screen.

[0066] It should be noted that the adjustment threshold corresponding to the height of the visible area of ​​the display screen can be the maximum longitudinal stretchable length of the visible area of ​​the display screen. In some embodiments, the adjustment threshold corresponding to the height of the visible area of ​​the electronic device's display screen is used as device information of the electronic device and is determined at the time of manufacture. When obtaining the adjustment threshold corresponding to the height of the visible area of ​​the display screen, the device information of the electronic device can be obtained from a preset storage area, thereby obtaining the adjustment threshold corresponding to the height of the visible area of ​​the electronic device's display screen.

[0067] S302. Based on the display parameters and the screen ratio of the visible area of ​​the display screen, determine the target adjustment value corresponding to the height of the visible area of ​​the display screen.

[0068] In some embodiments, the screen ratio of the visible area of ​​the display screen can be the ratio of the width to the height of the visible area of ​​the display screen, i.e., the aspect ratio of the visible area of ​​the display screen. The display parameter can be a preset aspect ratio corresponding to the application, such as the first preset aspect ratio corresponding to the application that is maximized, or the first preset aspect ratio corresponding to the first application that is displayed in split screen, etc. The display parameter can also be the ratio of the width to the height of the displayed object in the application, i.e., the aspect ratio of the displayed object, such as the ratio of the first width value to the first height value of the displayed object in the full-screen application, or the ratio of the second width value to the second height value of the displayed object in the first application that is displayed in split screen.

[0069] In some embodiments, the target adjustment value corresponding to the height of the visible area of ​​the display screen can be the length of stretching or shrinking the height of the visible area of ​​the display screen. For example, in some embodiments, when determining the target adjustment value corresponding to the height of the visible area of ​​the display screen based on display parameters and the screen ratio of the visible area, it can be first determined whether the numerator in the screen ratio is the same as the numerator in the display parameters (preset aspect ratio or aspect ratio of the displayed object). If the numerator in the screen ratio is the same as the numerator in the display parameters, the current width value of the visible area of ​​the display screen is determined as the reference width value. Then, the ratio of the reference width value to the screen ratio is determined as the initial height value, and the ratio of the reference width value to the display parameters is determined as the target height value. Finally, the difference between the target height value and the initial height value is determined, and the absolute value of this difference is determined as the target adjustment value.

[0070] S303. Determine that the target adjustment value is greater than the adjustment threshold, and adjust the height of the visible area of ​​the display screen based on the adjustment threshold to obtain the adjusted screen ratio of the visible area of ​​the display screen.

[0071] It should be noted that in some embodiments, if the target adjustment value is greater than the adjustment threshold, it means that the current height adjustment value of the visible area of ​​the display screen is greater than the maximum adjustable value of the visible area of ​​the display screen. In this case, the height of the visible area of ​​the display screen can be adjusted to the maximum adjustment value to obtain the adjusted height value of the visible area of ​​the display screen. This height value is the maximum height value of the visible area of ​​the display screen. Then, the ratio of the width value of the visible area of ​​the display screen to the maximum height value can be determined as the adjusted screen ratio of the visible area of ​​the display screen.

[0072] S304. Adjust the display parameters of the application based on the adjusted screen ratio so that the adjusted display parameters of the application are equal to the adjusted screen ratio.

[0073] In some embodiments, if the screen ratio is still different from the application's display parameters after adjusting the height of the visible area of ​​the display screen based on the adjustment threshold, the application's display parameters can be adjusted, such as adjusting the aspect ratio of the application's display interface or the display object, so that the adjusted application's display parameters are the same as the adjusted screen ratio.

[0074] In other embodiments, if the target adjustment value is less than or equal to the adjustment threshold, the height of the visible area of ​​the display screen can be directly adjusted based on the target adjustment value, so that the screen ratio of the adjusted visible area of ​​the display screen is equal to the display parameters of the application. In some embodiments, when adjusting the height of the visible area of ​​the display screen based on the target adjustment value, if the difference between the target height value and the initial height value is greater than zero, the first side of the visible area of ​​the display screen can be moved upward by the target adjustment value to increase the height of the visible area of ​​the display screen; if the difference between the target height value and the initial height value is determined to be less than zero, the first side of the visible area of ​​the display screen can be moved downward by the target adjustment value to reduce the height of the visible area of ​​the display screen, wherein the first side is the side corresponding to the width of the visible area of ​​the display screen, and the first side is perpendicular to the second side corresponding to the height of the visible area of ​​the display screen and is located above the second side.

[0075] In other embodiments, if the target adjustment value is greater than the adjustment threshold, the height of the visible area of ​​the display screen may not be adjusted; instead, the display parameters of the application may be adjusted directly based on the current screen ratio of the visible area. For example, the initial width and initial height values ​​of the application's display interface (or display object) can be obtained first; these initial width and initial height values ​​may be preset. The product of the current screen ratio of the visible area and the initial height value is determined as the target width value. The absolute value of the difference between the target width value and the initial width value is determined as the target adjustment width value. The width value of the application's display interface (or display object) is adjusted based on the target adjustment width value so that the adjusted display parameters of the application are equal to the current screen ratio of the visible area.

[0076] It is understandable that by adjusting the height of the visible area of ​​the display screen based on the application's display parameters when the target adjustment value is less than or equal to the adjustment threshold; or by first adjusting the height of the visible area of ​​the display screen based on the adjustment threshold when the target adjustment value is greater than the adjustment threshold, and then adjusting the application's display parameters based on the screen ratio of the visible area of ​​the display screen after adjustment; or by directly adjusting the application's display parameters based on the screen ratio of the visible area of ​​the display screen when the target adjustment value is greater than the adjustment threshold, the adjusted screen ratio can ultimately be made equal to the application's display parameters, allowing the application to be displayed in the visible area of ​​the display screen and improving the application's display effect.

[0077] In some embodiments of this application, steps S401 to S403 may be performed after step S102. Each step is described below.

[0078] S401. Get the storage path of the currently opened file.

[0079] It should be noted that the currently opened file can be a Word file, a PDF file, an image file, etc., and the storage path can be the storage location corresponding to the currently opened file. For example, if the file named "XXX.doc" is stored in D:\AA, then the file will be stored in the folder named AA on drive D.

[0080] S402, Determine that the storage path also contains other files of the same file type as the currently opened file, determine that at least one other file will be opened within a preset time period, and lock the current screen ratio of the visible area of ​​the display screen to remain unchanged.

[0081] In some embodiments, for example, if the currently opened file is a Word file and other Word files are also stored in the same path as the Word file, it can be determined that one or more other Word files will be opened within a preset time period. The preset time period can be a pre-set time length, such as 10 seconds, 20 seconds, etc. In this case, the current screen ratio of the visible area of ​​the display screen can be kept unchanged, avoiding the problem of repeatedly adjusting the size of the visible area of ​​the display screen when opening the same type of file.

[0082] S403. Determine that all open files in the storage path are closed, and unlock the current screen ratio of the visible area of ​​the display screen.

[0083] In some embodiments, if all the opened files in a storage path containing multiple files of the same type are closed, it indicates that the application currently used to open each file has exited. At this point, the current screen ratio of the visible area of ​​the display screen can be unlocked, and then the size of the visible area of ​​the display screen can be adjusted according to the display parameters of other opened applications.

[0084] In this embodiment, firstly, the display state of the application is obtained; based on the display state, it is determined that the application meets a first condition, and the display parameters corresponding to the application are obtained; then, the size of the visible area of ​​the display screen is adjusted based on the display parameters so that the application can be adapted for display on the visible area of ​​the electronic device's display screen. Thus, by adjusting the size of the visible area of ​​the electronic device's display screen according to the application's display parameters, the screen ratio of the electronic device's display screen is kept consistent with the application's display parameters, thereby enabling the application to be adapted for display on the electronic device's display screen and improving the application's display effect.

[0085] The implementation process of the application embodiments in practical application scenarios is described below.

[0086] In some embodiments, such as Figure 3 The diagram shown is a schematic flowchart of an adjustment method for a screen-stretchable electronic device provided in an embodiment of this application. This method can be implemented through the following steps S501 to S502, and each step is described below.

[0087] S501. Obtain the first aspect ratio of the currently viewable area of ​​the screen, and the second aspect ratio of the application to be opened.

[0088] In some embodiments, the first aspect ratio (corresponding to the screen ratio of the visible area of ​​the display screen in other embodiments) can be the ratio of the length and width values ​​of the currently viewable area of ​​the electronic device's screen, and the second aspect ratio (corresponding to the display parameters of the application in other embodiments) can be the ratio of the length value (corresponding to the first width value in other embodiments) and the width value (corresponding to the first height value in other embodiments) of the application's display interface. In practice, the aspect ratio of the application interface's display interface can be the aspect ratio that the display interface should have when it is maximized or displayed in full screen.

[0089] In some embodiments, the second aspect ratio of the application may be the aspect ratio set by the developer when designing the application. The second aspect ratio may be stored in a preset storage area associated with the application. When the application is launched, it may actively send its aspect ratio information to the electronic device, or the electronic device may also obtain the aspect ratio information of the application from the preset storage area.

[0090] S502. Determine that the first aspect ratio and the second aspect ratio are different, and determine the target adjustment value corresponding to the width of the current screen viewable area (corresponding to the target adjustment value corresponding to the height of the display screen viewable area in other embodiments) based on the first aspect ratio and the second aspect ratio. Adjust the width of the screen viewable area (corresponding to the height of the display screen viewable area in other embodiments) based on the target adjustment value so that the opened application can be adapted to the display on the screen viewable area.

[0091] In some embodiments, the adjustment method for the screen-stretchable electronic device provided in this application can also be achieved through methods such as... Figure 4 The process shown is implemented as follows, based on Figure 4 The steps are explained below. If the aspect ratio of the currently viewable area of ​​the screen is 'a', and the aspect ratio of the application is 'b', and 'a' is not equal to 'b':

[0092] First, execute step S1 to obtain the aspect ratio of the currently viewable area of ​​the screen as a, and the aspect ratio of the application as b.

[0093] Then, step S2 is executed, and the stretchable length L of the current screen's viewable area is determined based on the aspect ratio a of the current screen's viewable area and the application's aspect ratio b. The stretchable length L is the target adjustment value corresponding to the width of the current screen's viewable area.

[0094] Next, step S3 is executed, using an adjustment device to control the width stretching L of the currently viewable area of ​​the screen so that the application can be fully displayed in the viewable area of ​​the screen. The adjustment device can be a motor, etc.

[0095] In some embodiments, such as Figure 5 As shown, the aspect ratio of the application is b. After stretching the width of the viewable area of ​​the screen by L, the aspect ratio of the viewable area of ​​the screen is also b. The application's display interface can be fully displayed in the viewable area of ​​the screen without any hidden parts.

[0096] For example, such as Figure 6As shown, when determining the stretchable length L of the current viewable area of ​​the screen, if the first aspect ratio and the second aspect ratio are a and b respectively, the length of the viewable area is X, the current width of the viewable area is Y, and the stretchable length of the viewable area is L, then the first aspect ratio a = X / Y, the second aspect ratio b = X / (Y+L), and the target adjustment value corresponding to the width of the viewable area, i.e., the stretchable length, is L = (1 / b - 1 / a) / X. In practice, when L > 0, it means that the viewable area of ​​the screen moves upward, increasing the width of the viewable area; when L < 0, it means that the viewable area of ​​the screen moves downward, decreasing the width of the viewable area; when L = 0, it means that the aspect ratio a of the viewable area is equal to the aspect ratio b of the application, and the width Y of the viewable area remains unchanged.

[0097] In some embodiments, such as Figure 7 The image shown is a comparison chart of the width of the viewable area on the screen before and after adjustment. Figure 7 As can be seen, before adjusting the width of the viewable area on the screen, there was a blank area at the top of the current display page of the Word document. After adjusting the width of the viewable area on the screen, the current display page of the Word document can be displayed in the viewable area of ​​the screen without any extra blank areas.

[0098] It is understood that, in this embodiment of the application, by utilizing the stretchable feature of the screen of the electronic device, the viewable area of ​​the screen is controlled to adapt to the aspect ratio of the application. That is, the adjustment value of the width of the viewable area of ​​the screen is determined according to the aspect ratio of the application, so that the aspect ratio of the viewable area of ​​the screen is consistent with the aspect ratio of the application, ensuring that the application can be fully displayed in the viewable area of ​​the screen, solving the problem of the application being partially obscured and improving the display effect of the application.

[0099] This application also provides an adjustment device. Figure 8 This is a schematic diagram of the composition of an adjustment device provided in an embodiment of this application, as shown below. Figure 8 As shown, the adjustment device 600 includes:

[0100] The first acquisition module 601 is used to acquire the display status of the application, determine that the application meets the first condition based on the display status, and acquire the display parameters corresponding to the application.

[0101] The adjustment module 602 is used to adjust the size of the visible area of ​​the display screen based on the display parameters so that the application can be adapted to be displayed on the visible area of ​​the display screen of the electronic device.

[0102] In some embodiments, the first acquisition module 601 includes:

[0103] The first acquisition submodule is used to determine that the display state is full-screen display, determine that the application meets the first condition, and acquire the first width value and the first height value of the display object in the application.

[0104] The first determining submodule is used to determine the ratio of the first width value to the first height value of the display object as the display parameter corresponding to the application.

[0105] In some embodiments, the first acquisition module 601 further includes:

[0106] The second acquisition submodule is used to determine that the display state is maximized display, determine that the application meets the first condition, and acquire the first preset aspect ratio corresponding to the application.

[0107] The second determining submodule is used to determine the first preset aspect ratio as the display parameter of the application.

[0108] In some embodiments, the first acquisition module 601 further includes:

[0109] The third acquisition submodule is used to determine that the display state is split-screen display, determine that the application meets the first condition, and acquire the display type corresponding to the display objects in at least two applications of split-screen display;

[0110] The fourth acquisition submodule is used to acquire the display parameters corresponding to each application based on the display type of the display object in each application.

[0111] In some embodiments, the fourth acquisition submodule includes:

[0112] The first determining unit is used to determine that the display type of the display object in the first application is full-screen display, obtain the second width value and the second height value of the display object in the first application, and determine the ratio of the second width value and the second height value as the display parameter corresponding to the first application.

[0113] The second determining unit is used to determine that the display type of the object displayed in the first application is maximized display, obtain the second preset aspect ratio corresponding to the first application, and determine the second preset aspect ratio as the display parameter corresponding to the first application.

[0114] In some embodiments, the adjustment module 602 includes:

[0115] The fifth acquisition submodule is used to acquire the adjustment threshold corresponding to the height of the visible area of ​​the display screen;

[0116] The third determining submodule is used to determine the target adjustment value corresponding to the height of the visible area of ​​the display screen based on the display parameters and the screen ratio of the visible area of ​​the display screen;

[0117] The first adjustment submodule is used to determine that the target adjustment value is greater than the adjustment threshold, and adjust the height of the visible area of ​​the display screen based on the adjustment threshold to obtain the adjusted screen ratio of the visible area of ​​the display screen.

[0118] The second adjustment submodule is used to adjust the display parameters of the application based on the adjusted screen ratio, so that the adjusted display parameters of the application are equal to the adjusted screen ratio.

[0119] In some embodiments, the adjustment device 600 further includes:

[0120] The second acquisition module is used to obtain the storage path corresponding to the currently opened file;

[0121] The screen ratio locking module is used to determine that there are other files of the same file type as the currently opened file under the storage path, determine that at least one of the other files will be opened within a preset time period, and lock the current screen ratio of the visible area of ​​the display screen to remain unchanged;

[0122] The screen ratio unlocking module is used to determine that each open file in the storage path is closed, and to unlock the current screen ratio of the visible area of ​​the display screen.

[0123] It should be noted that the description of the adjustment device in this application embodiment is similar to the description of the method embodiment above, and has similar beneficial effects as the method embodiment, therefore it will not be repeated. For technical details not disclosed in this device embodiment, please refer to the description of the method embodiment of this application for understanding.

[0124] It should be noted that, in the embodiments of this application, if the above-mentioned adjustment method is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiments of this application, or the part that contributes to related solutions, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), magnetic disks, or optical disks. Thus, the embodiments of this application are not limited to any specific hardware and software combination.

[0125] Accordingly, embodiments of this application provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the adjustment method provided in the above embodiments.

[0126] This application also provides an adjustment device. Figure 9 This is a schematic diagram of the composition structure of an adjustment device provided in an embodiment of this application, such as... Figure 9 As shown, the adjustment device 700 includes: a memory 701, a processor 702, a communication interface 703, and a communication bus 704. The memory 701 stores executable adjustment instructions; the processor 702 executes the executable adjustment instructions stored in the memory to implement the adjustment method provided in the above embodiment.

[0127] The descriptions of the above-described embodiments of the adjustment device and storage medium are similar to those of the above-described method embodiments, and have similar beneficial effects. For technical details not disclosed in the embodiments of the adjustment device and storage medium of this application, please refer to the descriptions of the method embodiments of this application for understanding.

[0128] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising at least one…" does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0129] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple units or components can be combined, or integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed can be through some interfaces, and the indirect coupling or communication connection between devices or units can be electrical, mechanical, or other forms.

[0130] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units. They may be located in one place or distributed across multiple network units. Some or all of the units may be selected to achieve the purpose of this embodiment according to actual needs.

[0131] In addition, each functional unit in the various embodiments of this application can be integrated into one processing unit, or each unit can be a separate unit, or two or more units can be integrated into one unit; the integrated unit can be implemented in hardware or in the form of hardware plus software functional units.

[0132] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, ROMs, magnetic disks, or optical disks.

[0133] Alternatively, if the integrated units described above are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, or the parts that contribute to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a product to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, ROMs, magnetic disks, or optical disks.

[0134] The above description is merely an embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. An adjustment method applied to an electronic device, wherein the size of the visible area of ​​the display screen of the electronic device is adjustable, comprising: Obtain the display status of the application, determine that the application meets the first condition based on the display status, and obtain the display parameters corresponding to the application; The size of the visible area of ​​the display screen is adjusted based on the display parameters so that the application can be adapted to be displayed on the visible area of ​​the electronic device's display screen; The method further includes: Get the storage path of currently open files; If it is determined that the storage path also includes other files of the same file type as the currently opened file, and at least one of the other files will be opened within a preset time period, the current screen ratio of the visible area of ​​the display screen is locked and remains unchanged; Once it is determined that all open files in the storage path are closed, the current screen ratio of the visible area of ​​the display screen is unlocked.

2. The method according to claim 1, wherein determining that the application satisfies the first condition based on the display state and obtaining the display parameters corresponding to the application includes: Determine that the display state is full-screen display, determine that the application meets the first condition, and obtain the first width value and the first height value of the displayed object in the application; The ratio of the first width value to the first height value of the display object is determined as the display parameter corresponding to the application.

3. The method according to claim 1, wherein determining that the application satisfies the first condition based on the display state and obtaining the display parameters corresponding to the application further includes: Determine that the display state is maximized, determine that the application meets the first condition, and obtain the first preset aspect ratio corresponding to the application; The first preset aspect ratio is determined as the display parameter of the application.

4. The method according to claim 1, wherein determining that the application satisfies the first condition based on the display state and obtaining the display parameters corresponding to the application further includes: Determine that the display state is split-screen display, determine that the application meets the first condition, and obtain the display types corresponding to the display objects in at least two applications of split-screen display; Based on the display type of the display object in each application, obtain the display parameters corresponding to each application.

5. The method according to claim 4, wherein obtaining the display parameters corresponding to each application based on the display type corresponding to the display object in each application includes at least one of the following: Determine that the display type of the object displayed in the first application is full-screen display, obtain the second width value and the second height value of the object displayed in the first application, and determine the ratio of the second width value and the second height value as the display parameter corresponding to the first application; The display type of the object displayed in the first application is determined to be maximized display. The second preset aspect ratio corresponding to the first application is obtained, and the second preset aspect ratio is determined as the display parameter corresponding to the first application.

6. The method according to claim 1, wherein adjusting the size of the visible area of ​​the display screen based on the display parameters comprises: Obtain the adjustment threshold corresponding to the height of the visible area of ​​the display screen; Based on the display parameters and the screen ratio of the visible area of ​​the display screen, determine the target adjustment value corresponding to the height of the visible area of ​​the display screen; If the target adjustment value is determined to be greater than the adjustment threshold, the height of the visible area of ​​the display screen is adjusted based on the adjustment threshold to obtain the adjusted screen ratio of the visible area of ​​the display screen. The display parameters of the application are adjusted based on the adjusted screen ratio so that the adjusted display parameters of the application are equal to the adjusted screen ratio.

7. An adjustment device applied to an electronic device, wherein the size of the visible area of ​​the display screen of the electronic device is adjustable, comprising: The acquisition module is used to acquire the display status of the application, determine that the application meets a first condition based on the display status, and acquire the display parameters corresponding to the application. An adjustment module is used to adjust the size of the visible area of ​​the display screen based on the display parameters, so that the application can be adapted to be displayed on the visible area of ​​the display screen of the electronic device; The second acquisition module is used to obtain the storage path corresponding to the currently opened file; The screen ratio locking module is used to determine that there are other files of the same file type as the currently opened file under the storage path, determine that at least one of the other files will be opened within a preset time period, and lock the current screen ratio of the visible area of ​​the display screen to remain unchanged; The screen ratio unlocking module is used to determine that each open file in the storage path is closed, and to unlock the current screen ratio of the visible area of ​​the display screen.

8. An adjustment device, comprising: Memory, used to store executable adjustment instructions; A processor, when executing executable adjustment instructions stored in the memory, implements the method according to any one of claims 1 to 6.

9. A computer-readable storage medium storing adjustment instructions for causing a processor to execute, thereby implementing the method as described in any one of claims 1 to 6.