Control method and electronic equipment
By detecting the hardware expansion and change of the display screen and the occlusion, and adjusting the position of the display content, the problem of occlusion of function identification during screen size switching is solved, the continuous visibility of function identification is achieved, and the user experience is improved.
Patent Information
- Application Number
- CN202510397107.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-31
- Publication Date
- 2025-07-18
AI Technical Summary
In devices with extended screens such as notebooks, some contents of the screen may be blocked during the size switching process, affecting the user experience.
By detecting the amount of hardware expansion and contraction between the display screen and the occluder, obtaining change information, adjusting the content position of the target display area, so that the function identifier always adjoins the invisible area, ensuring its visibility.
During the change of screen size, the function logo remains visible at all times, improving the user's experience of electronic devices.
Smart Images

Figure CN120335751A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer display technologies, and in particular, to a control method and an electronic device. Background Art
[0002] Currently, in devices such as laptops with an extended screen, the screen can be expanded from the smallest size to the largest size at once, or retracted from the largest size to the smallest size at once.
[0003] During the size switching process, some content on the screen may become invisible because the screen is partially blocked. Summary of the Invention
[0004] In view of this, this application provides a control method and an electronic device as follows:
[0005] A control method includes:
[0006] In response to a change in the first area and / or the second area, obtaining change information; the first area is in a visible state, the second area is in an invisible state, and the target display area of the electronic device includes the first area and the second area;
[0007] Based on the change information, displaying first content at a target position in the first area; the target position is adjacent to the second area;
[0008] Wherein, the first content includes at least one function identifier, and the function identifier can be clicked to trigger a corresponding function.
[0009] In the above method, preferably, displaying the first content at the target position in the first area includes:
[0010] In response to the first area and / or the second area stopping changing, displaying the first content at the target position in the first area;
[0011] And / or, in response to a change in the first area and / or the second area, displaying the first content at the target position in the first area during the change process.
[0012] In the above method, preferably, in response to a change in the first area and / or the second area, obtaining change information includes:
[0013] Obtaining a hardware expansion / contraction change amount of a display screen in the electronic device relative to an occlusion member, where the occlusion member makes the second area invisible; the display screen is used to present the target display area;
[0014] According to the hardware expansion / contraction change amount, obtaining change information; the change information characterizes a regional change amount of the first area or the second area.
[0015] Preferably, for the above method, obtaining change information according to the hardware expansion / contraction change amount includes:
[0016] Obtaining the regional pixel change amount of the first region or the second region according to the hardware expansion / contraction change amount and the resolution parameter of the display screen;
[0017] Obtaining change information according to the regional pixel change amount and the pixel output parameter of the display screen.
[0018] Preferably, for the above method, obtaining the hardware expansion / contraction change amount of the display screen in the electronic device relative to the housing includes:
[0019] Obtaining the expansion / contraction speed, expansion / contraction direction and duration of the display screen expanding / contracting relative to the shielding member;
[0020] Obtaining the hardware expansion / contraction change amount between the display screen and the shielding member according to the expansion / contraction speed, the expansion / contraction direction and the duration.
[0021] Preferably, for the above method, a target window exists in the second region, the first content is presented in window form, and the target window and the window corresponding to the first content are in a tiled layout;
[0022] Among them, displaying the first content at the target position in the first region includes:
[0023] Adjusting the window size of the target window according to the change information so that the first content is displayed at the target position; the edge of the adjusted target window abuts against the window corresponding to the first content.
[0024] Preferably, for the above method, the method further includes:
[0025] Responding to a change in the first region and / or the second region, determining a first application icon entering the second region from the first region;
[0026] Presenting the first application icon in the first region.
[0027] Preferably, for the above method, the method further includes:
[0028] Responding to a change in the first region and / or the second region, adjusting the display position and / or display size of a second application icon in the first region.
[0029] An electronic device includes:
[0030] A display screen for implementing a target display area;
[0031] A controller, configured to obtain change information in response to a change occurring in a first area and / or a second area; the first area is in a visible state, the second area is in an invisible state, and the target display area includes the first area and the second area; based on the change information, display first content at a target position in the first area; the target position is adjacent to the second area;
[0032] Wherein, the first content includes at least one function identifier, and the function identifier can be clicked to trigger a corresponding function.
[0033] For the above-mentioned electronic device, preferably, the display screen has an occlusion member;
[0034] Wherein, the controller is specifically configured to: obtain a hardware expansion / contraction change amount of the display screen in the electronic device relative to the occlusion member, and the occlusion member makes the second area in an invisible state; the display screen is used to present the target display area; according to the hardware expansion / contraction change amount, obtain change information; the change information characterizes the area change amount of the first area or the second area.
[0035] A computer device / system, comprising: a memory, a processor, and a computer program stored on the memory, and the processor executes the computer program to implement the control method described in any one of the above.
[0036] A computer-readable storage medium, on which a computer program / instructions are stored, and when the computer program / instructions are executed by a processor, the control method described in any one of the above is implemented.
[0037] A computer program product, comprising computer program / instructions, and when the computer program / instructions are executed by a processor, the control method described in any one of the above is implemented. Description of the Drawings
[0038] To more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.
[0039] To more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.
[0040] Figure 1 Flowchart of a control method provided by an embodiment of the present application;
[0041] Figure 2 Example diagram of the roll-out and roll-in of a scroll screen relative to a keyboard in an embodiment of the present application;
[0042] Figure 3 Example diagram of the visible and invisible areas of a desktop blocked by a keyboard in an embodiment of the present application;
[0043] Figure 4 Partial flowchart of a control method provided by an embodiment of the present application;
[0044] Figure 5 Example diagram of the hardware expansion and contraction change amount during the roll-out process of a scroll screen in an embodiment of the present application;
[0045] Figure 6 Schematic diagram of the roll-out and roll-in forms of a scroll screen in a scenario where the present application is applicable to a notebook;
[0046] Figure 7 Example diagram of a target window in the invisible area blocked by a keyboard on a desktop in an embodiment of the present application;
[0047] Figure 8 Example diagram of the visible area y1 in form 1 in a scenario where the present application is applicable to a notebook;
[0048] Figure 9 Example diagram of the visible area y2 and the invisible area in form 2 in a scenario where the present application is applicable to a notebook;
[0049] Figure 10 Another example diagram of the visible area y2 and the invisible area in form 2 in a scenario where the present application is applicable to a notebook;
[0050] Figure 11 Another example diagram of the visible area y2 and the invisible area in form 2 in a scenario where the present application is applicable to a notebook;
[0051] Figure 12 Example diagram of the visible area y3 in form 3 in a scenario where the present application is applicable to a notebook;
[0052] Figure 13 Example diagram of adjusting application icons during the roll-in process of a scroll screen in an embodiment of the present application;
[0053] Figure 14 Example diagram of adjusting application icons during the roll-out process of a scroll screen in an embodiment of the present application;
[0054] Figure 15Another exemplary diagram for adjusting application icons during the process of a scroll screen being rolled into in an embodiment of the present application;
[0055] Figure 16 A schematic structural diagram of a control device provided in an embodiment of the present application;
[0056] Figure 17 A schematic structural diagram of an electronic device provided in an embodiment of the present application. Detailed implementation manners
[0057] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Apparently, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
[0058] Refer to Figure 1 As shown, it is a flowchart of the implementation of a control method provided in an embodiment of the present application. This method can be applicable to an electronic device with a target display area, such as a notebook or tablet device with a scroll screen, etc. The technical solution in this embodiment is mainly used to improve the user experience of the electronic device.
[0059] Specifically, the method in this embodiment may include the following steps:
[0060] Step 101: In response to a change in the first area and / or the second area, obtain change information.
[0061] Among them, the first area is in a visible state, the second area is in an invisible state, and the target display area of the electronic device includes the first area and the second area.
[0062] In specific implementation, the electronic device may include a display screen and an occlusion member. The display screen is used to implement the target display area. For example, the display screen may be a flexible screen, and the occlusion member may be an object such as a device housing or a keyboard that can occlude the display screen.
[0063] Among them, the change in the first area and / or the second area is caused by the relative position change between the display screen and the occlusion member. The relative position change between the display screen and the occlusion member may occur in various situations: the display screen moves from the original position before deployment relative to the occlusion member to the end position, the display screen moves from the end position before retraction relative to the occlusion member to the original position, or the display screen moves from any intermediate position between the original position and the end position relative to the occlusion member to the original position or the end position.
[0064] For example, taking the scroll screen of a notebook as an example, the scroll screen rolls out from its original position before rolling out towards the end position relative to the keyboard, rolls in from the end position before rolling in towards the original position relative to the keyboard, or rolls in towards the original position or rolls out towards the end position relative to the keyboard starting from any intermediate position between the original position and the end position, which will cause changes in the first area and / or the second area. It can be seen that the scroll screen of the notebook can hover at any position between the original size (corresponding to the original position) and the maximum size (corresponding to the end position), causing changes in the first area and / or the second area.
[0065] For example, as Figure 2 shown in, the electronic device is a notebook with a scroll screen. The scroll screen can roll out and roll in relative to the keyboard through a scroll. During the process of the scroll screen rolling in towards the original position or rolling out towards the end position at any position between the original position and the end position, due to the occlusion of the occlusion member, i.e., the keyboard, there is a part of the scroll screen that is not occluded by the keyboard and is in a visible state, namely the first area, and other parts are occluded by the keyboard and are in an invisible state, namely the second area. Based on this, in this embodiment, when it is detected that the first area and / or the second area changes, change information is obtained. The change information represents the area change amount of the first area or the second area, such as the area change amount of the increase or decrease of the first area, or the area change amount of the decrease or increase of the second area.
[0066] Step 102: Based on the change information, display the first content at the target position in the first area.
[0067] Among them, the target position is adjacent to the second area, and the first content includes at least one function identifier, and the function identifier can be clicked to trigger the corresponding function. For example, the first content is a desktop task bar, which includes system icons, search icons, window icons of application programs, time identifiers, network identifiers, and quick setting controls such as volume, microphone, return to desktop, etc.
[0068] In this embodiment, when the display screen is in its original position before unfolding and has not entered the unfolding stage (the first form), the display screen has a first resolution; when the display screen is in the end position after unfolding (the second form) and when the display screen unfolds or retracts to any intermediate position between the original position and the end position (the third form), the display screen has a second resolution, and the second resolution is greater than the first resolution. In any state of unfolding or retracting, the user can operate the corresponding function identifier based on the display of the visible area, so as to implement the corresponding function.
[0069] For example, in the first form, the display screen has a first resolution, and the size of the target display area is a first size, such as 2560*3200. At this time, the second area blocked by the blocking member does not display content, which can be understood as a black screen state. When the display screen starts to unfold from the original position, the second area is enabled, and the second area and the first area, that is, the entire target display area, display content at a second resolution. At this time, the size of the target display area is a second size, such as 2560*6400. The second area blocked by the blocking member and the first area, that is, the entire target display area, display content together (display the entire desktop), but at this time the second area is blocked and invisible to the user. Before the display screen retracts to the original position, no matter whether the display screen unfolds or retracts to which position, the display screen maintains the second resolution, and the size of the target display area remains unchanged, that is, it remains at the maximum second size.
[0070] In one implementation, the first content is the content presented at the bottom of the target display area before the display screen starts to unfold from the original position, such as the task bar. After the display screen starts to unfold from the original position, the first content is no longer presented at the bottom of the target display area, but at the target position in the first area, so that the first content is always visible.
[0071] In another implementation, the first content is generated based on the second content, and the second content is presented at the bottom of the target display area, that is, the bottom of the second area. Before the display screen starts to unfold from the original position, the second content is presented at the bottom of the target area. After the display screen starts to unfold from the original position, the second content is always at the bottom of the target display area, but the first content generated based on the second content is presented at the target position in the first area, so that the first content is always visible.
[0072] For example, as Figure 3 shown in, the first area is the visible area in the desktop displayed by the target display area, and the second area is the area in the desktop blocked by the keyboard and in an invisible state. In this embodiment, based on the change information of the first area and / or the second area, the task bar is displayed at the target position adjacent to the second area in the first area.
[0073] In a specific implementation, in this embodiment, in response to the first area and / or the second area stopping changing, the first content is displayed at the target position in the first area; and / or, in response to the change process of the first area and / or the second area, content is displayed at the target position in the first area. That is to say, during the change process and when the change stops in the first area and / or the second area, the first content is displayed at the target position in the first area, and the target position is always adjacent to the second area, so that the first content is always in a visible state.
[0074] As can be seen from the above technical solution, in a control method provided by an embodiment of the present application, by obtaining the change information of the visible area and / or the invisible area in the target display area, the first content including the function identifier that can be clicked to trigger the corresponding function is displayed at the target position in the visible area, and the target position is adjacent to the invisible area. Thus, in this embodiment, the function identifier that can be clicked to trigger the corresponding function can be kept displayed at the target position adjacent to the invisible area in the visible area through the change information of the first area and / or the second area, so that the function identifier that can be clicked to trigger the corresponding function will not be blocked due to the change of the visible area and the invisible area, thereby improving the user experience of using the electronic device.
[0075] In one implementation manner, when obtaining the change information in step 101, it can be implemented in the following manner, as Figure 4 shown in:
[0076] Step 401: Obtain the hardware expansion / contraction change amount of the display screen in the electronic device relative to the occlusion member.
[0077] Wherein, the occlusion member makes the second area in an invisible state; the display screen is used to present the target display area.
[0078] And the hardware expansion / contraction change amount can be a numerical value with positive and negative signs. When the hardware expansion / contraction change amount is positive, it represents that the display screen extends relative to the occlusion member, such as when the scroll screen unfolds and the visible area becomes larger; when the hardware expansion / contraction change amount is negative, it represents that the display screen retracts relative to the occlusion member, such as when the scroll screen rolls up and the visible area becomes smaller.
[0079] Specifically, the hardware expansion / contraction change amount can be in inches, which is used to represent the physical change in inches of the display screen extending or contracting relative to the occlusion member. For example, as Figure 5 shown in, during the unfolding process of the scroll screen, the height of the visible area changes from x1 to x2, and the hardware expansion / contraction change amount is x2 minus x1.
[0080] In one implementation manner, in step 401, the expansion / contraction speed, expansion / contraction direction, and duration of the display screen relative to the occlusion member can be obtained first, and then, according to the expansion / contraction speed, expansion / contraction direction, and duration, the hardware expansion / contraction change amount between the display screen and the occlusion member can be obtained.
[0081] Taking the scroll screen as an example, the expansion / contraction speed can be the rotation speed of the motor driving the scroll to make the scroll screen unfold or roll up, the duration is the duration of the motor driving the scroll to rotate, and the expansion / contraction direction is the direction of the scroll screen unfolding or rolling up.
[0082] Specifically, in this embodiment, the expansion / contraction speed is multiplied by the duration to obtain the absolute value of the hardware expansion / contraction change amount, and the positive and negative signs of the absolute value are set according to the expansion / contraction direction to obtain the hardware expansion / contraction change amount.
[0083] Step 402: Obtain change information according to the hardware scaling change amount.
[0084] Among them, the change information characterizes the regional change amount of the first region or the second region.
[0085] It should be noted that the hardware scaling change amount is the relative position change amount of the display screen relative to the occlusion member on the physical hardware, which is different from the regional change amount of the first region or the second region in the target display area. Based on this, in step 402, the regional pixel change amount of the first region or the second region can be obtained first according to the hardware scaling change amount and the resolution parameters of the display screen. That is to say, the hardware scaling change amount is converted into a representation on the regional pixels; then, according to the regional pixel change amount and the pixel output parameters of the display screen, the change information is obtained.
[0086] Among them, the pixel output parameter characterizes the scaling size of the display screen for pixel output, such as Dots Per Inch (DPI). Based on this, in this embodiment, the regional pixel change amount is multiplied by DPI to obtain the regional change amount of the first region or the second region, that is, the change information.
[0087] For example, taking a notebook with a scroll screen as an example, in this embodiment, the position change amount (i.e., the hardware scaling change amount) rotated by the scroll screen rotation axis can be calculated, the real-time screen size can be calculated through the position change amount, and then the size to be adjusted (i.e., the change information in the previous text) can be calculated by combining the screen size with the screen resolution and DPI. Based on this, by inserting a window below the screen (i.e., the occluded second region), the task bar is reset to the target position in the invisible region adjacent to the lower part of the screen.
[0088] The specific solution is as follows:
[0089] 1. Calculate the position change amount rotated by the rotation axis, and calculate the screen size through the position, as Figure 6 shown in. Among them:
[0090] y1 in form 1 is the minimum screen size. y2 in form 2 is the variable size (i.e., the visible screen display height part). y3 in form 3 is the maximum screen size (such as 2560×6400, 2560 is the width and 6400 is the height). The maximum screen size y3 is known.
[0091] Among them, y2 is variable and the distance can be calculated by multiplying the running time of the rotation axis drive motor by the speed. And y3 - y2 is the height of the hidden window, and this hidden window fills the invisible part to make the task bar consistent with the visible window. Based on the principle that the distance is the product of time and speed, as shown in formula (1):
[0092] S = v * t (1)
[0093] Among them, s represents the distance, that is, the change in position, v represents the speed (i.e., the running speed of the rotating shaft drive motor), and t represents the lifting time (i.e., the running time of the rotating shaft drive motor).
[0094] The height of the hidden part (the screen part for lifting) is as shown in formula (2):
[0095] y4 = y3 - y2 (2)
[0096] Among them, in this embodiment, the hardware height change of the unexposed part can be obtained according to y4, and then the size to be adjusted (i.e., the change information in the previous text) can be calculated by combining the screen size, the screen resolution, and the DPI.
[0097] It should be noted that the screen size usually refers to the diagonal length of the display screen, in inches. The resolution is the number of pixels in the horizontal and vertical directions of the screen, such as 1920×1080. DPI is the number of dots per inch, which is used to measure the pixel density of the screen.
[0098] For example, for a screen with a known screen size (diagonal length in inches), resolution (where is the number of horizontal pixels and is the number of vertical pixels), and DPI of.
[0099] The actual size of the screen is calculated as follows:
[0100] According to the Pythagorean theorem, the actual width (in inches) and actual height (in inches) of the screen can be calculated based on the relationship between the resolution and the diagonal length.
[0101] Due to the DPI and the physical size of the printing device, the following formulas (3) and (4) can be used to convert it to the resolution:
[0102] Number of horizontal pixels = DPI × physical width in inches (3)
[0103] Number of vertical pixels = DPI × physical height in inches (4)
[0104] Based on this, in this embodiment, the adjusted size can be calculated through the above relationships. The conceptual descriptions of the screen size, resolution, DPI, and the size to be adjusted (shaft change) are shown in Table 1 as follows:
[0105] Table 1 Relationships
[0106]
[0107]
[0108] Through the above description, in this embodiment, it can be clearly understood how to calculate the size to be adjusted based on the screen size, resolution, and DPI.
[0109] In one implementation, there is a target window in the second region, and the first content is presented in window form. The target window and the window corresponding to the first content are in a tiled layout so that the target window is adjacent to the window corresponding to the first content. Thus, the target position of the first content in the first region is adjacent to the second region. For example, as Figure 7 shown, the occluded area in the lower half of the desktop has a target window, and the target window and the task bar are in a tiled layout.
[0110] Based on this, when displaying the first content at the target position in the first region in step 102, the window size of the target window can be adjusted according to the change information so that the first content is displayed at the target position; the edge of the adjusted target window abuts against the window corresponding to the first content.
[0111] Specifically, in this embodiment, the window height of the target window can be adjusted according to the regional change amount of the first region or the second region characterized by the change information, so that the target window changes in height as the second region changes. Thus, the window corresponding to the first content that is tiled with the target window also changes accordingly, and the lower edge of the window corresponding to the first content always abuts against the upper edge of the target window, so that the first content always remains at the target position adjacent to the second region in the first region.
[0112] For example, as Figure 7 shown, the target window in the lower half of the desktop becomes taller or shorter as the scroll screen is scrolled out or scrolled in, so that the task bar tiled with the target window always remains at the bottom position of the visible area as the scroll screen is scrolled out or scrolled in.
[0113] In a specific implementation, taking a notebook with a scroll screen as an example, in this embodiment, a target window can be inserted below the screen of the scroll screen and placed in the invisible area (i.e., the second region) below the screen to fill the invisible area so that the task bar is reset to the visible area, ensuring that the task bar is always at the bottom of the visible screen.
[0114] For example, in this embodiment, the size of the window is calculated through the screen resolution, DPI, and y4. When the screen becomes larger, the maximum window height of the system can be taken, and the new window is inserted below the entire screen window. The newly created hidden window is below the desktop window. The task bar is not part of the desktop window but a separate window. It is possible to insert a window below the desktop window to push the task bar to the desktop display part. As Figure 8 shown, it is the visible area y1 (minimum screen size) in form 1, which includes the task bar below. As Figure 9As shown in [the figure], it is an example of the visible area y2 and the invisible area when hovering to form 2, where the visible area includes the task bar below. As Figure 10 As shown in [the figure], it is another example of the visible area y2 and the invisible area when hovering to form 2, where the visible area includes the task bar below. As Figure 11 As shown in [the figure], it is another example of the visible area y2 and the invisible area when hovering to form 2, where the visible area includes the task bar below. As Figure 12 As shown in [the figure], it is the visible area y3 (maximum screen size) in form 3, where the visible area includes the task bar below.
[0115] It should be noted that the content of the task bar and the desktop (icons and applications) is synchronously pushed up, and the desktop background covers from bottom to top. For example: If the desktop background is a tree, when the desktop changes from the maximum size to a smaller size, it is covered from the tree root to the tree crown.
[0116] In summary, through the technical solution of this embodiment, during and after the scroll screen is scrolled out and scrolled in, no matter which form the scroll screen hovers at, the task bar can be displayed at the lower position of the visible area through the target window.
[0117] In one implementation, in this embodiment, it can also respond to changes in the first area and / or the second area, determine the first application icon entering the second area from the first area, and then present the first application icon in the first area.
[0118] Among them, the first application icon can be determined based on the change information. For example, based on the change information, it can be determined that a partial area in the first area changes from a visible state to an invisible state, and the application icons displayed in this partial area are the first application icons.
[0119] For example, as Figure 13 As shown in [the figure], as the scroll screen is scrolled in, some first application icons are blocked. Based on this, in this embodiment, the display position of the first application icons is adjusted to the visible area of the scroll screen, that is, the upper half area.
[0120] It can be seen that in this embodiment, by presenting the first application icon entering the second area from the first area in the first area, the situation where the first application icon is blocked and cannot be operated can be avoided, thereby improving the user experience of using the electronic device.
[0121] In another implementation, in this embodiment, it can also respond to changes in the first area and / or the second area, and adjust the display position and / or display size of the second application icon in the first area.
[0122] For example, as Figure 14As shown, as the scroll screen unfolds, the visible area of the scroll screen becomes larger. At this time, the second application icon can be enlarged, and the display position of the second application icon can be adjusted so that the second application icons are arranged from left to right and from top to bottom.
[0123] For another example, as Figure 15 shown, as the scroll screen is rolled in, the visible area of the scroll screen becomes smaller. At this time, the second application icons (including the application icons originally displayed in the first area and the application icons adjusted from the second area to the first area) can be reduced, and the display position of the second application icons can be adjusted so that the second application icons are arranged from left to right and from top to bottom.
[0124] It can be seen that in this embodiment, the application icons in the visible area can be adjusted in real time based on the changes in the first area and / or the second area, so that the display position and display size of the application icons can adapt to the changes in the visible area, thereby avoiding the situation where the application icons are too large and cover each other or the icons are too small, resulting in waste of regional space and discomfort in viewing. Thus, the user experience of using the electronic device is improved.
[0125] Referring to Figure 16 , which is a schematic structural diagram of a control device provided in an embodiment of the present application. The device can be deployed in an electronic device having a target display area, such as a notebook or tablet device with a scroll screen. The technical solution in this embodiment is mainly used to improve the user experience of using the electronic device.
[0126] Specifically, the device in this embodiment may include the following units:
[0127] A change acquisition unit 1601, configured to acquire change information in response to a change in the first area and / or the second area; the first area is in a visible state, the second area is in an invisible state, and the target display area of the electronic device includes the first area and the second area;
[0128] A content display unit 1602, configured to display first content at a target position in the first area based on the change information; the target position is adjacent to the second area;
[0129] Wherein, the first content includes at least one function identifier, and the function identifier can be clicked to trigger a corresponding function.
[0130] As can be seen from the above technical solution, in a control device provided in an embodiment of the present application, by obtaining change information of a visible area and / or an invisible area in a target display area, a first content including a function identifier that can be clicked to trigger a corresponding function is displayed at a target position in the visible area, and the target position is adjacent to the invisible area. Thus, in this embodiment, through the change information of the first area and / or the second area, the function identifier that can be clicked to trigger a corresponding function can be kept displayed at the target position adjacent to the invisible area in the visible area, so that the function identifier that can be clicked to trigger a corresponding function will not be blocked due to the change of the visible area and the invisible area, thereby improving the user experience of using the electronic device.
[0131] In one implementation manner, the content display unit 1602 is specifically configured to: in response to the first area and / or the second area stopping changing, display the first content at the target position in the first area; and / or, in response to the change process of the first area and / or the second area, display the first content at the target position in the first area.
[0132] In one implementation manner, the change obtaining unit 1601 is specifically configured to: obtain a hardware expansion / contraction change amount of a display screen in the electronic device relative to an occlusion member, where the occlusion member makes the second area in an invisible state; the display screen is used to present the target display area; obtain change information according to the hardware expansion / contraction change amount; the change information represents an area change amount of the first area or the second area.
[0133] Wherein, when the change obtaining unit 1601 obtains the change information according to the hardware expansion / contraction change amount, it is specifically configured to: obtain an area pixel change amount of the first area or the second area according to the hardware expansion / contraction change amount and a resolution parameter of the display screen; obtain the change information according to the area pixel change amount and a pixel output parameter of the display screen.
[0134] When the change obtaining unit 1601 obtains the hardware expansion / contraction change amount of the display screen in the electronic device relative to the housing, it is specifically configured to: obtain an expansion / contraction speed, an expansion / contraction direction, and a duration of the display screen expanding / contracting relative to the occlusion member; obtain the hardware expansion / contraction change amount between the display screen and the occlusion member according to the expansion / contraction speed, the expansion / contraction direction, and the duration.
[0135] In one implementation manner, there is a target window in the second area, the first content is presented in a window form, and the target window and the window corresponding to the first content are in a tiled layout;
[0136] Among them, the content display unit 1602 is specifically configured to: adjust the window size of the target window according to the change information, so that the first content is displayed at the target position; the edge of the adjusted target window abuts against the window corresponding to the first content.
[0137] In one implementation, the content display unit 1602 is further configured to: in response to a change in the first area and / or the second area, determine a first application icon that enters the second area from the first area; present the first application icon in the first area.
[0138] In one implementation, the content display unit 1602 is further configured to: in response to a change in the first area and / or the second area, adjust the display position and / or display size of a second application icon in the first area.
[0139] It should be noted that the specific implementation manners of the units in this embodiment may refer to the corresponding content in the foregoing text, and will not be elaborated here.
[0140] Refer to Figure 17 , which is a schematic structural diagram of an electronic device provided by an embodiment of the present application. The electronic device may include the following structures:
[0141] A display screen 1701 for implementing a target display area;
[0142] A controller 1702 for obtaining change information in response to a change in the first area and / or the second area; the first area is in a visible state, the second area is in an invisible state, and the target display area includes the first area and the second area; based on the change information, display first content at a target position in the first area; the target position is adjacent to the second area;
[0143] Among them, the first content includes at least one function identifier, and the function identifier can be clicked to trigger a corresponding function.
[0144] It can be seen from the above technical solutions that in an electronic device provided by an embodiment of the present application, by obtaining change information of a visible area and / or an invisible area in a target display area, first content including a function identifier that can be clicked to trigger a corresponding function is displayed at a target position in the visible area, and the target position is adjacent to the invisible area. Thus, in this embodiment, through the change information of the first area and / or the second area, the function identifier that can be clicked to trigger a corresponding function can be kept displayed at the target position in the visible area adjacent to the invisible area, so that the function identifier that can be clicked to trigger a corresponding function will not be blocked due to the change of the visible area and the invisible area, thereby improving the user experience of using the electronic device.
[0145] In one implementation, the display screen 1701 has an occlusion member, such as a keyboard or a scroll housing, etc.;
[0146] Wherein, the controller 1702 is specifically configured to: obtain the hardware telescopic change amount of the display screen 1701 in the electronic device relative to the occlusion member, and the occlusion member makes the second area in an invisible state; the display screen is used to present the target display area; obtain change information according to the hardware telescopic change amount; the change information characterizes the area change amount of the first area or the second area.
[0147] In one implementation, there is a target window in the second area, the first content is presented in the form of a window, and the target window and the window corresponding to the first content are in a tiled layout;
[0148] Wherein, the controller 1702 is specifically configured to: adjust the window size of the target window according to the change information so that the first content is displayed at the target position; the edge of the adjusted target window abuts against the window corresponding to the first content.
[0149] In the present specification, each embodiment is described in a progressive manner. The key point of each embodiment is to illustrate the differences from other embodiments. The same or similar parts among the embodiments can be referred to each other. For the devices disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple. For the relevant parts, reference can be made to the description in the method part.
[0150] Those skilled in the art can further realize that the units and algorithm steps of each example described in combination with the embodiments disclosed in this article can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described according to functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of this application.
[0151] The steps of the methods or algorithms described in combination with the embodiments disclosed in this article can be directly implemented by hardware, software modules executed by a processor, or a combination of the two. The software module can be placed in a random access memory (RAM), memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, register, hard disk, removable disk, CD-ROM, or any other form of storage medium well-known in the technical field.
[0152] The foregoing description of the disclosed embodiments enables those skilled in the art to practice or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A control method, comprising: obtaining change information in response to a change occurring in a first region and / or a second region; the first region is in a visible state, the second region is in an invisible state, and a target display region of an electronic device includes the first region and the second region; displaying first content at a target position in the first region based on the change information; the target position is adjacent to the second region; wherein the first content includes at least one function identifier, and the function identifier can be clicked to trigger a corresponding function.
2. The method according to claim 1, displaying the first content at the target position in the first region, comprising: displaying the first content at the target position in the first region in response to the change in the first region and / or the second region stopping; and / or, displaying the first content at the target position in the first region during the change in the first region and / or the second region.
3. The method according to claim 1, obtaining change information in response to a change occurring in a first region and / or a second region, comprising: obtaining a hardware expansion / contraction change amount of a display screen in the electronic device relative to an occlusion member, the occlusion member causing the second region to be in an invisible state; the display screen is used to present the target display region; obtaining change information according to the hardware expansion / contraction change amount; the change information characterizes a region change amount of the first region or the second region.
4. The method according to claim 3, obtaining change information according to the hardware expansion / contraction change amount, comprising: obtaining a region pixel change amount of the first region or the second region according to the hardware expansion / contraction change amount and a resolution parameter of the display screen; obtaining change information according to the region pixel change amount and a pixel output parameter of the display screen.
5. The method according to claim 3, obtaining a hardware expansion / contraction change amount of a display screen in the electronic device relative to a housing, comprising: obtaining a expansion / contraction speed, an expansion / contraction direction, and a duration of the display screen expanding / contracting relative to the occlusion member; obtaining a hardware expansion / contraction change amount between the display screen and the occlusion member according to the expansion / contraction speed, the expansion / contraction direction, and the duration.
6. The method according to claim 2, a target window exists in the second region, the first content is presented in a window form, and the target window and the window corresponding to the first content are in a tiled layout; Among them, displaying the first content at the target position in the first region, comprising: adjusting a window size of the target window according to the change information so that the first content is displayed at the target position; an edge of the adjusted target window abuts against the window corresponding to the first content.
7. The method according to claim 1, the method further comprising: determining a first application icon entering the second region from the first region in response to a change occurring in the first region and / or the second region; presenting the first application icon in the first region.
8. The method according to claim 1, the method further comprising: In response to a change in the first region and / or the second region, adjust the display position and / or the display size of the second application icon in the first region.
9. An electronic device, comprising: A display screen for implementing a target display region; A controller for obtaining change information in response to a change in the first region and / or the second region; The first region is in a visible state, the second region is in an invisible state, and the target display region includes the first region and the second region; based on the change information, display first content at a target position in the first region; the target position is adjacent to the second region; Wherein, the first content includes at least one function identifier, and the function identifier can be clicked to trigger a corresponding function.
10. The electronic device according to claim 9, wherein the display screen has an occlusion member; Among them, The controller is specifically configured to: obtain a hardware expansion / contraction change amount of the display screen in the electronic device relative to the occlusion member, and the occlusion member renders the second region invisible; the display screen is used to present the implementation of the target display region; Obtain change information according to the hardware expansion / contraction change amount; The change information characterizes the region change amount of the first region or the second region.