Display method and device
By determining the target position of the interface in response to user operation instructions in an electronic device and directly displaying it, the problem that the interface position does not meet user needs is solved, and the convenience of interface display is improved.
Patent Information
- Application Number
- CN202510400588.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-31
- Publication Date
- 2025-07-04
AI Technical Summary
The location of the display interface of the electronic device does not meet the user's needs, which leads to the user's need to make additional operational adjustments, reducing the convenience of the interface display.
By responding to user's operation instructions, determine the target position of the interface in the target area and directly display the interface at that location to avoid subsequent adjustments.
It improves the convenience of users in operating electronic devices to display related interfaces, and reduces unnecessary interface position adjustment steps.
Smart Images

Figure CN120255746A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of display technologies, and particularly to a display method and device. Background Art
[0002] An electronic device can display a corresponding interface based on a user's operation. For example, based on the user's operation, a certain application program is launched, and the interface of the application program is displayed.
[0003] In some usage scenarios, the position where the electronic device displays the interface may not meet the user's requirements. In such cases, the user needs to further operate the displayed interface to adjust the interface to a suitable position for display, and such an adjustment process has a low level of convenience. Summary of the Invention
[0004] To this end, the following technical solutions are disclosed in this application:
[0005] In a first aspect of this application, a display method is provided, including:
[0006] Displaying at least one display object;
[0007] In response to a first operation instruction, determining a first target position of a first interface within a target area, where the first interface is an interface corresponding to a first display object, and the first display object is any one of the at least one display object;
[0008] Displaying the first interface based on the first target position.
[0009] Optionally, the displaying at least one display object includes:
[0010] Displaying at least one display object on a first electronic device, where the first electronic device is communicatively connected to a second electronic device, and the at least one display object corresponds to at least one application program of the second electronic device.
[0011] Optionally, the determining, in response to the first operation instruction, the first target position of the first interface within the target area includes at least one of the following:
[0012] When the first operation instruction includes a sliding operation instruction, obtaining the termination position of the sliding operation instruction as the first target position of the first interface within the target area;
[0013] When the first operation instruction includes a first click operation instruction, obtaining the click position of the first click operation instruction as the first target position of the first interface within the target area.
[0014] Optionally, it further includes:
[0015] When the first operation instruction includes the sliding operation instruction, obtain the display object corresponding to the starting position of the sliding operation instruction as the first display object.
[0016] Optionally, it further includes:
[0017] When the first operation instruction includes the first click operation instruction, in response to the second click operation instruction, obtain the display object corresponding to the click position of the second click operation instruction as the first display object, and the second click operation instruction is obtained before the first click operation instruction.
[0018] Optionally, the displaying the first interface based on the first target position includes:
[0019] When the distance from the first target position to the screen edge is greater than the distance threshold, use the first target position as the center position of the first interface to display the first interface.
[0020] Optionally, the displaying the first interface based on the first target position includes:
[0021] When the distance from the first target position to the screen edge is not greater than the distance threshold, use the first target position as the vertex position of the first interface to display the first interface.
[0022] Optionally, it further includes:
[0023] In response to the second operation instruction, determine the second target position of the second interface within the target area, where the second interface is the interface corresponding to the second display object, and the second display object is any one of the at least one display object other than the first display object;
[0024] When the second target position is within the first target display area, display the second interface within the first target display area, and the first target display area is the area where the first interface is located when the first interface is displayed based on the first target position.
[0025] Optionally, it further includes:
[0026] If the first interface is not displayed within the target area, in response to the third operation instruction corresponding to the first display object, display the first interface again based on the first target position.
[0027] A second aspect of the present application provides a display device, including:
[0028] A display module for displaying at least one display object;
[0029] A determination module, configured to determine a first target position of a first interface within a target area in response to a first operation instruction, where the first interface is an interface corresponding to a first display object, and the first display object is any one of the at least one display object;
[0030] The display module is configured to display the first interface based on the first target position. Description of the Drawings
[0031] To more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only the embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on the provided drawings.
[0032] Figure 1 It is a flowchart of a display method provided by an embodiment of the present application;
[0033] Figure 2 It is a schematic diagram of a display interface of a first electronic device provided by an embodiment of the present application;
[0034] Figure 3 It is a schematic diagram of a display interface for displaying prompt information provided by an embodiment of the present application;
[0035] Figure 4 It is a schematic diagram of an interface when the first operation instruction is a click operation instruction provided by an embodiment of the present application;
[0036] Figure 5 It is a schematic diagram of a way to display the first interface provided by an embodiment of the present application;
[0037] Figure 6 It is a schematic diagram of another way to display the first interface provided by an embodiment of the present application;
[0038] Figure 7 It is a schematic diagram of a second interface provided by an embodiment of the present application;
[0039] Figure 8 It is a schematic diagram of yet another way to display the first interface provided by an embodiment of the present application;
[0040] Figure 9 It is a schematic diagram of the structure of a display device provided by an embodiment of the present application. Detailed Embodiments
[0041] 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. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts shall fall within the protection scope of the present application.
[0042] This embodiment provides a display method. Please refer to Figure 1 , which is a flowchart of the display method. The display method may include the following steps.
[0043] S101, display at least one display object.
[0044] The display method of this embodiment can be executed by any electronic device. For the convenience of description, the execution subject of this display method will be denoted as the first electronic device hereinafter.
[0045] The first electronic device can be any type of electronic device. For example, it can be any one of a desktop computer, a laptop computer, a tablet computer, and a smart phone.
[0046] The first electronic device can display one display object or multiple display objects. Each display object can correspond to a specific application program or file. For example, the display object can be an application icon representing a specific application program, or can be a file icon representing a specific file.
[0047] As some examples, please refer to Figure 2 in (1) above. The above at least one display object may include application icon 201, application icon 202, application icon 203, and document icon 204 displayed on the display screen 200, where application icon 201 corresponds to the album application program, application icon 202 corresponds to the alarm clock application program, application icon 203 corresponds to the address book application program, and document icon 204 corresponds to text x.
[0048] S102, in response to the first operation instruction, determine the first target position of the first interface in the target area, where the first interface is the interface corresponding to the first display object, and the first display object is any one of the at least one display object.
[0049] The first operation instruction can be any operation instruction that can determine at least one position on the first electronic device. For example, it can be a click operation instruction or a swipe operation instruction. Among them, the click operation instruction can be a single click operation instruction or a double click operation instruction.
[0050] The first operation instruction can be obtained in various ways. For example, the first electronic device can detect touch data generated by a finger or a stylus touching through a touch screen, and obtain the first operation instruction based on the touch data. Or, the first electronic device can connect to a mouse module through a relevant device interface. When the user moves the mouse module, the first electronic device obtains the first operation instruction based on the data fed back by the mouse module.
[0051] Taking Figure 2 (1) as an example, the user's finger slides on the display screen 200, and the sliding trajectory is as shown by the dotted line in Figure 2 (1). The first electronic device can obtain the first operation instruction based on the detected sliding trajectory.
[0052] The target area can be the entire display area of the display screen, or it can be a part of the display area on the display screen.
[0053] In the latter case, the first electronic device can display the foregoing at least one display object within a specified area of the display screen. Correspondingly, the target area can include the display area on the display screen other than the specified area. Taking Figure 2 (2) as an example, the first electronic device can display at least one display object within area 205 of the display screen 200. At this time, the target area can include the display area on the display screen 200 other than area 205.
[0054] Or, the first electronic device can divide the display screen into two left and right display areas or two upper and lower display areas, and take a certain part of the divided areas as the target area. For example, the right display area is taken as the target area, and the lower display area is taken as the target area.
[0055] In step S102, the first electronic device can determine the first target position of the first interface within the target area according to the position corresponding to the first operation instruction.
[0056] In the case where the first electronic device only displays one display object, the display object can be defaulted as the first display object. In the case where the first electronic device displays multiple display objects, the first electronic device can determine the first display object among the multiple display objects according to the obtained operation instruction; or, the first electronic device can determine the display object displayed within a specific area as the first display object. For example, in Figure 2 (2), the display object displayed within area 205 is determined as the first display object, or the display object displayed in the area outside area 205 is determined as the first display object; or, the first electronic device can determine the first display object among the multiple display objects according to the position of the display object. For example, in Figure 2In (2), the display object 201 displayed in the upper left corner within the area 205 is determined as the first display object.
[0057] S103. Display the first interface based on the first target position.
[0058] In step S103, the first electronic device may create a first display window for hosting the first interface at the first target position. Then, the first electronic device may obtain the first interface based on the first display object, and then display the obtained first interface within the first display window.
[0059] When the first display object is an application icon, the first electronic device may trigger the first application corresponding to the first display object to start running, and then obtain the application interface generated by the running of the first application as the first interface.
[0060] When the first display object is a file icon, the first electronic device may trigger the file application for browsing files to start running, and then obtain the interface generated when the file application displays and outputs the first file corresponding to the first display object as the first interface.
[0061] Exemplarily, when the first display object is Figure 2 as shown in 202 of (1), the first interface displayed in S103 may be Figure 2 the interface 206 of the alarm clock application in (2).
[0062] The beneficial effect of this embodiment lies in:
[0063] Through the display method of this embodiment, the electronic device determines the first target position based on the user's operation instruction before displaying the interface, and directly displays the corresponding interface at the first target position when displaying for the first time. Thus, the electronic device does not need to adjust the display position of the displayed interface based on subsequent operations after displaying the interface, thereby improving the convenience of the user operating the electronic device to display relevant interfaces in some usage scenarios.
[0064] In some embodiments, at least one display object displayed in step S101 may correspond to files and application programs on the local of the first electronic device, or may also correspond to files and application programs of the second electronic device connected through communication. That is to say, displaying at least one display object may include:
[0065] Display at least one display object on the first electronic device. The first electronic device and the second electronic device are communicatively connected, and at least one display object corresponds to at least one application program of the second electronic device.
[0066] When the first electronic device and the second electronic device are communicatively connected, the first electronic device can obtain display objects corresponding to the application programs installed in the second electronic device, and can also obtain display objects corresponding to the files of the second electronic device, and display these display objects in a specific area of the display screen.
[0067] Correspondingly, the first interface displayed by the first electronic device can be the interface generated when the application program corresponding to the first display object in the second electronic device runs, or the interface generated when the file corresponding to the first display object in the second electronic device is displayed and output.
[0068] Combined with Figure 2 the example of Figure 2 in (2) of , the display objects 201, 202, and 203 are respectively the display objects corresponding to the photo album application, the alarm clock application, and the address book application of the second electronic device, and the first electronic device can display these display objects within the area 205 of the display screen.
[0069] Optionally, the first electronic device can display these display objects on its own display screen, or on an external display screen that is wired or wirelessly connected to the first electronic device.
[0070] The type of the second electronic device is not limited. For example, it can be a device such as a mobile phone or a tablet computer.
[0071] The communication connection method between the first electronic device and the second electronic device is not limited. As some examples, when the first electronic device and the second electronic device both log in to the same account, the two parties can establish a communication connection through the Internet based on this account; when the first electronic device and the second electronic device are brought close to each other, the two parties can establish a communication connection through Near Field Communication (NFC); when the Bluetooth functions of the first electronic device and the second electronic device are both activated, the two parties can establish a communication connection through Bluetooth; when either the first electronic device or the second electronic device displays a QR code and the other party scans the QR code to establish a communication connection; when the first electronic device and the second electronic device are connected by a data cable, the two parties establish a wired communication connection through the data cable; when the first electronic device and the second electronic device both run the same third-party application program for communication connection, the two parties can establish a communication connection through the Internet based on this third-party application program.
[0072] In some alternative embodiments, the first electronic device may also display device information of the second electronic device within the area where at least one display object is located. The device information includes, but is not limited to, information such as the name, model, connection status, battery level, background image of the main interface, etc. of the second electronic device. Among them, the connection status is used to indicate whether the second electronic device is currently connected to the first electronic device.
[0073] Exemplarily, referring to Figure 3 , when the first electronic device and the second electronic device are communicatively connected, the first electronic device may create a window 301. The application icons of the applications of the second electronic device displayed on the right side of the window 301 are equivalent to the aforementioned at least one display object, and the name, connection status, battery level, background image of the main interface, etc. of the second electronic device are displayed on the left side of the window 301.
[0074] For different types of first operation instructions, the method for determining the first target position is different. In this embodiment, according to the type of the first operation instruction, the first electronic device may determine the first target position based on any one of the following several determination methods.
[0075] Determination method one: When the first operation instruction includes a swipe operation instruction, obtain the termination position of the swipe operation instruction as the first target position of the first interface within the target area.
[0076] In determination method one, the first electronic device may recognize the obtained swipe operation instruction as the first operation instruction, identify the termination position of the swipe operation instruction, and determine the termination position as the first target position of the first interface within the target area.
[0077] Determination method two: When the first operation instruction includes a first click operation instruction, obtain the click position of the first click operation instruction as the first target position of the first interface within the target area.
[0078] In determination method two, the first electronic device may recognize the obtained click operation instruction as the first operation instruction, and use the click position corresponding to the click operation instruction as the first target position of the first interface within the target area.
[0079] Determination method three: The first operation instruction may also be an operation instruction obtained in a non-contact manner. For example, the first electronic device detects the position where the user is gazing through a camera module or other modules capable of detecting the user's gaze position, and obtains the first operation instruction based on the position where the user is gazing. In this case, the first target position may be the position where the user is gazing when the first operation instruction is obtained.
[0080] In some alternative embodiments, when the target area is a partial area on the display screen of the first electronic device, after obtaining the first operation instruction, it may be determined whether the position corresponding to the first operation instruction is within the target area. For example, it may be determined whether the termination position of the swipe operation instruction is within the target area, whether the click position of the click operation instruction is within the target area, and whether the position where the user is gazing is within the target area.
[0081] If the position corresponding to the first operation instruction is within the target area, this position may be determined as the first target position of the first interface within the target area. If the position corresponding to the first operation instruction is not within the target area, a preset default position within the target area may be used as the first target position of the first interface within the target area.
[0082] Combined with Figure 2 the example in (2) of , if the target area is the area on the display screen other than area 205, then when obtaining the swipe operation instruction, it may be determined whether the end point of the swipe operation instruction is outside area 205. If it is outside area 205, the termination position of this swipe operation instruction is used as the first target position. If it is within area 205, a preset default position outside area 205 is used as the first target position.
[0083] In some alternative embodiments, when the first operation instruction is a swipe operation instruction, the first electronic device may also, before S103, determine the first display object from among at least one display object in the following manner:
[0084] When the first operation instruction includes a swipe operation instruction, the display object corresponding to the start position of the swipe operation instruction is obtained as the first display object.
[0085] The display object corresponding to the start position of the swipe operation instruction may be defined as follows: If the start position of the swipe operation instruction is within the range of a certain display object displayed on the first electronic device, then this display object may be used as the display object corresponding to the start position.
[0086] Taking the display object as the application icon corresponding to an application as an example, referring to Figure 2 the (1) of , since the start position of the swipe operation instruction is within the range of the alarm clock icon in the figure, that is, within the range of display object 202, the alarm clock icon is the display object corresponding to the start position. Based on the above method for determining the first display object, the alarm clock icon may be determined as the first display object.
[0087] Optionally, when obtaining a swipe operation instruction, the first electronic device may determine whether there is a corresponding display object at the starting position of the swipe operation instruction, and decide whether to recognize the swipe operation instruction as a first operation instruction according to the judgment result. If there is a corresponding display object at the starting position, the swipe operation instruction may be recognized as a first operation instruction, and the first interface may be displayed in the above manner. If there is no corresponding display object at the starting position, the swipe operation instruction may not be recognized as a first operation instruction, and in this case, the first interface may not be displayed.
[0088] Further, the first electronic device may recognize the swipe operation instruction as a first operation instruction only when there is a corresponding display object at the starting position of the swipe operation instruction and the display object meets the first target condition. If there is no corresponding display object at the starting position or there is a corresponding display object but the display object does not meet the first target condition, the swipe operation instruction may not be recognized as a first operation instruction. The first target condition may be that the display object corresponds to an application program of the second electronic device, or that the display object is in a pre-recorded application program list corresponding to the application program, and the list is used to record application programs that can be processed based on the first operation instruction, and the list can be customized according to user needs.
[0089] In the case where the first operation instruction is configured as a swipe operation instruction, if the first electronic device obtains a click operation instruction and there is a display object at the click position of the click operation instruction, the first electronic device may display the interface corresponding to the display object at a preset default position within the target area, and the display method may refer to related technologies and will not be elaborated here.
[0090] In the case where the first operation instruction is configured as a swipe operation instruction, the first electronic device may also display a prompt message at the current termination position of the swipe trajectory before the first operation instruction ends, so as to prompt the user to slide to the position where the first interface is expected to be displayed. The content of the prompt message is not limited. As an example, the prompt message may be Figure 3 "Drag to this position and open cross-screen application" as shown.
[0091] Combined with an example, when a finger presses on the position of the alarm clock icon on the screen and starts to slide on the screen from here, the first electronic device may recognize the current swipe operation instruction as a first operation instruction. During the process of the finger continuously sliding on the screen, the first electronic device may determine that the first operation instruction has not ended. At this time, the above prompt message may be displayed in real time at the position where the finger is currently in contact with the screen, so as to prompt the user to stop sliding and lift the finger at the position where the interface of the alarm clock application is expected to be displayed. After the finger is lifted, the first electronic device recognizes that the first operation instruction has ended, and recognizes the position where the finger is lifted as the termination position of the first operation instruction, and uses this termination position as the first target position to display the first target interface.
[0092] In some alternative embodiments, if the first operation instruction includes a first click operation instruction, the first electronic device may also, before S103, determine a first display object among at least one display object in the following manner:
[0093] When the first operation instruction includes a first click operation instruction, in response to a second click operation instruction, obtain the display object corresponding to the click position of the second click operation instruction as the first display object, where the second click operation instruction is obtained before the first click operation instruction.
[0094] In the above embodiment, a target duration may be preset in advance. Starting from obtaining the second click operation instruction, if a click operation instruction is obtained for the second time within the target duration, the click operation instruction obtained for the second time is recognized as the first operation instruction; if the click operation instruction obtained for the second time is not within the target duration, the click operation instruction obtained for the second time is not recognized as the first operation instruction.
[0095] Among them, if the first operation instruction has not been obtained after the target duration, the first electronic device may discard the obtained second click operation instruction, or may display the interface corresponding to the clicked display object at a preset default position.
[0096] Combined with Figure 4 the example of Figure 4 in (1) of Figure 4 the user first clicks on the alarm icon on the display screen. At this time, the first electronic device obtains the click operation instruction corresponding to this click operation and recognizes this click operation instruction as the second click operation instruction. After that, in
[0097] (2) of
[0098] within the target duration after the first click, the user clicks on another position on the display screen. Then the first electronic device recognizes the click operation instruction obtained from the second click as the first operation instruction, takes the position clicked by the first operation instruction as the first target position, and displays the alarm application interface corresponding to the alarm icon at the first target position.
[0099] The first electronic device may distinguish different click operation instructions in the following manner.
[0100] When in the second operation mode, if the first electronic device obtains two click operation instructions within the target duration, and there is a display object corresponding to the click position of the first click operation instruction, the first obtained click operation instruction can be recognized as the second click operation instruction for selecting the first display object, and then the next obtained click operation instruction can be recognized as the first operation instruction, so as to display the first interface at the first target position.
[0101] The first electronic device can also distinguish different click operation instructions in the following way:
[0102] When the first electronic device obtains a click operation instruction, if there is a display object corresponding to the clicked position, the first electronic device determines whether the display object meets the first target condition. If it meets the first target condition, it determines that the click operation instruction is the second click operation instruction. Thereafter, if it obtains another click operation instruction within the target duration, the second obtained click operation instruction can be recognized as the first operation instruction.
[0103] If there is no display object corresponding to the clicked position, or the corresponding display object does not meet the first target condition, the first electronic device may not recognize the click operation instruction as the second click operation instruction. Among them, if there is a display object corresponding to the clicked position and the display object does not meet the first target condition, the first electronic device can display the interface corresponding to the display object at the preset default position.
[0104] In some optional embodiments, the manner of displaying the first interface based on the first target position may be:
[0105] When the distance from the first target position to the screen edge is greater than the distance threshold, the first target position is used as the center position of the first interface to display the first interface.
[0106] That is to say, if the first target position is far from the edge of the display screen, the first electronic device can use the first target position as the center position of the window, so as to create a first display window for carrying the first interface, and then display the first interface in the first display window.
[0107] For Figure 5 example, the distance from the first target position A to the edge of the display screen is greater than the distance threshold. Therefore, the first electronic device creates a first display window 501 with A as the center position, and then can display the first interface in the first display window 501.
[0108] Optionally, displaying the first interface based on the first target position includes:
[0109] When the distance from the first target position to the screen edge is not greater than the distance threshold, use the first target position as the vertex position of the first interface to display the first interface.
[0110] That is to say, if the first target position is close to the edge of the display screen, the first electronic device can use the first target position as the vertex position of the window, thereby creating a first display window for hosting the first interface, and then display the first interface within the first display window.
[0111] Take Figure 6 as an example. The distance from the first target position A to the edge of the display screen is less than the distance threshold. Therefore, the first electronic device creates a first display window 601 with the first target position A as the upper left vertex, and then can display the first interface within the first display window 601.
[0112] When creating the first display window, the distances from the first target position to the upper and lower edges of the display screen can be compared, and the distances from the first target position to the left and right edges of the display screen can be compared;
[0113] If the distance to the upper edge of the display screen is greater than the distance to the lower edge of the display screen, use the first target position as the vertex below the first display window. If the distance to the upper edge of the display screen is less than or equal to the distance to the lower edge of the display screen, use the first target position as the vertex above the first display window;
[0114] If the distance to the left edge of the display screen is greater than the distance to the right edge of the display screen, use the first target position as the vertex on the right side of the first display window. If the distance to the left edge of the display screen is less than or equal to the distance to the right edge of the display screen, use the first target position as the vertex on the left side of the first display window.
[0115] Still take Figure 6 as an example. Since Figure 6 the distance from the first target position A to the left edge of the display screen in [example] is less than the distance to the right edge, and the distance to the upper edge of the display screen is less than the distance to the lower edge, the first target position A is used as the upper left vertex position of the first display window when creating the first display window.
[0116] The distance threshold can include a horizontal distance threshold and a vertical distance threshold. If the horizontal distance from the first target position to the screen edge is less than or equal to the horizontal distance threshold, or the vertical distance is less than or equal to the vertical distance threshold, the first interface can be displayed in the above second way. If the horizontal distance from the first target position to the screen edge is greater than the horizontal distance threshold, and the vertical distance is greater than the vertical distance threshold, the first interface can be displayed in the above first way.
[0117] The above distance threshold can be determined according to the size of the first interface to be displayed. For example, the horizontal distance threshold can be set to one - half of the width of the first interface displayed by the first electronic device, and the vertical distance threshold can be set to one - half of the height of the first interface displayed by the first electronic device.
[0118] The advantage of displaying the first interface in the above - mentioned manner is that when the first target position is close to the edge of the display screen, taking the first target position as the center to display the first interface may cause the first interface not to be fully displayed. At this time, the user often needs to drag the first interface again to make the first interface fully displayed. However, through the above - mentioned display method, when the first target position is close to the edge of the display screen, the first interface can be fully displayed, so that the user can see the complete first interface without dragging the first interface again, further improving the convenience during user operation.
[0119] In some alternative embodiments, after the first electronic device displays the first interface, it can also obtain a new operation instruction, that is, the second operation instruction, and based on the second operation instruction, display the second interface according to the following steps:
[0120] In response to the second operation instruction, determine the second target position of the second interface within the target area. The second interface is the interface corresponding to the second display object, and the second display object is any one of the at least one display object other than the first display object;
[0121] When the second target position is within the first target display area, display the second interface within the first target display area. The first target display area is the area where the first interface is located when the first interface is displayed based on the first target position.
[0122] In the above - mentioned embodiments, the second operation instruction can be a sliding operation instruction or a click operation instruction. For the method of determining the second target position based on the second operation instruction and the method of determining the second display object among the at least one display object, reference can be made to the content of determining the first target position based on the first operation instruction and determining the first display object among the at least one display object in the foregoing embodiments, which will not be elaborated here.
[0123] After determining the second target position, the first electronic device can determine whether the second target position is within the first target display area. The first target display area is the area where the first interface is located when the first interface is displayed based on the first target position.
[0124] Taking the second operation instruction as a sliding operation instruction as an example, refer to Figure 7 in (1) of, after obtaining the second operation instruction, take the termination position of the second operation instruction, that is Figure 7The end point of the sliding trajectory shown by the dashed line in (1) falls on the currently displayed first interface. In this case, the first electronic device can determine that the second target position is within the first target display area.
[0125] On the contrary, if the termination position of the second operation instruction falls outside the currently displayed first interface, it can be determined that the second target position is outside the first target display area.
[0126] When the second target position is outside the first target display area, the first electronic device directly displays the second interface based on the second target position by referring to the method of displaying the first interface based on the first target position. The second interface is the interface corresponding to the second display object.
[0127] Among them, when displaying the second interface, the first electronic device can close the first interface, that is, no longer display the first interface, or it can display the first interface and the second interface at the same time. If there is an overlapping area between the first interface and the second interface when displaying them at the same time, the second interface can be displayed on the upper layer and the first interface on the lower layer, that is, only the second interface is displayed in the overlapping area, and the first interface is blocked by the second interface.
[0128] When the second target position is within the first target display area, the first electronic device can display the second interface within the first target display area. At this time, the originally displayed first interface will be covered by the second interface, that is, the first interface is no longer displayed in the target area, and the area where the first interface was originally displayed becomes the area where the second interface is displayed. Visually, it is equivalent to the first electronic device replacing the originally displayed first interface with the second interface.
[0129] Taking Figure 7 in (2) as an example, in this example, since Figure 7 the starting position of the second operation instruction shown in (1) corresponds to the application icon of the photo album application, when the first electronic device determines that the second target position corresponding to the second operation instruction falls within the first interface, that is, Figure 7 within the alarm clock application interface shown in (1), it displays the second interface within the first target display area where the first interface is located, that is, it displays Figure 7 the interface of the photo album application shown in (2), and no longer displays the first interface, which is equivalent to replacing the interface of the alarm clock application with the interface of the photo album application.
[0130] When displaying the second interface within the first target display area, the first electronic device no longer displays the first interface. At this time, the first electronic device can close the application program or file corresponding to the first interface, or keep the application program or file corresponding to the first interface open in the background.
[0131] When the first interface is already displayed, if the second target position corresponding to the second operation instruction falls within the first interface, the user's requirement may be to stop displaying the first interface and continue to display the second interface at the original position of the first interface. If the second interface is directly displayed based on the second target position, this requirement may not be met because the second target position is different from the first target position. However, through the above display method, the effect of stopping displaying the first interface and continuing to display the second interface at the original position of the first interface can be achieved, without the user having to further adjust the position of the second interface by dragging the second interface or other operations after the second interface is displayed.
[0132] In some alternative embodiments, after the first electronic device displays the first interface, the user may perform an operation to close the first interface, and may perform an operation to open the first interface again after a period of time since closing the first interface.
[0133] As an example, when the first display object is an alarm clock icon, the first electronic device displays the first interface corresponding to the alarm clock application based on the first target position. After the user sets an alarm in the first interface, the user may operate to close the first interface corresponding to the alarm clock application. After a period of time, when the user needs to view the set alarm, the user will perform an operation to open the alarm again.
[0134] For the above situation, the method of this embodiment may further include the following steps:
[0135] If the first interface is not displayed within the target area, in response to a third operation instruction corresponding to the first display object, the first interface is displayed again based on the first target position.
[0136] The third operation instruction may be an operation instruction that does not specify a target position. For example, the third operation instruction may be a click operation instruction to click on the first display object.
[0137] Taking Figure 8 as an example, after the first electronic device obtains the first operation instruction, it displays the first interface as shown in (1) of Figure 8 based on the first target position corresponding to the first operation instruction, that is, the interface of the alarm clock application in the figure.
[0138] After a period of time, as shown in (1) of Figure 8 , the user performs an operation to close the first interface, for example, clicks the close control in the upper right corner of the first interface. The first electronic device responds to this operation and closes the displayed first interface. At this time, as shown in (2) of Figure 8 , the first interface is not displayed on the first electronic device.
[0139] When the first interface is not displayed, as shown in Figure 8As shown in (2) of , the first electronic device obtains a third operation instruction to click on the first display object. Thus, as Figure 8 shown in (3) of , the first electronic device responds to the third operation instruction and displays the first interface at the position where the first interface was previously displayed on the first interface, that is, at the first target position, and compares Figure 8 From (1) and (3) of , it can be seen that the position of the first interface when it is displayed for the second time and the position of the first interface when it is displayed for the first time.
[0140] The advantage of displaying the first interface according to the above embodiment is that after determining the first target position of the first interface when it is displayed for the first time based on the first operation instruction, when the first interface needs to be displayed again later, the first interface can be defaulted to be displayed at the same position through the above method, which can make the display position of the first interface more in line with the actual needs of the user and further improve the convenience when using the electronic device.
[0141] This embodiment provides a display device. Please refer to Figure 9 and the display device may include the following modules.
[0142] A display module 901 for displaying at least one display object;
[0143] A determination module 902 for determining a first target position of the first interface in the target area in response to a first operation instruction, where the first interface is an interface corresponding to the first display object, and the first display object is any one of the at least one display object;
[0144] The display module 901 for displaying the first interface based on the first target position.
[0145] Optionally, when the display module 901 displays at least one display object, it may be used for:
[0146] Displaying at least one display object on the first electronic device, where the first electronic device is communicatively connected to the second electronic device, and the at least one display object corresponds to at least one application program of the second electronic device.
[0147] Optionally, when the determination module 902 determines the first target position of the first interface in the target area in response to the first operation instruction, it may be used for at least one of the following:
[0148] When the first operation instruction includes a swipe operation instruction, obtaining the termination position of the swipe operation instruction as the first target position of the first interface in the target area;
[0149] When the first operation instruction includes a first click operation instruction, obtaining the click position of the first click operation instruction as the first target position of the first interface in the target area.
[0150] Optionally, the determining module 902 can also be used for:
[0151] When the first operation instruction includes a sliding operation instruction, obtain the display object corresponding to the starting position of the sliding operation instruction as the first display object.
[0152] Optionally, the determining module 902 can also be used for:
[0153] When the first operation instruction includes a first click operation instruction, in response to a second click operation instruction, obtain the display object corresponding to the click position of the second click operation instruction as the first display object, and the second click operation instruction is obtained before the first click operation instruction.
[0154] Optionally, when the display module 901 displays the first interface based on the first target position, it can be used for:
[0155] When the distance from the first target position to the screen edge is greater than the distance threshold, use the first target position as the center position of the first interface to display the first interface.
[0156] Optionally, when the display module 901 displays the first interface based on the first target position, it can be used for:
[0157] When the distance from the first target position to the screen edge is not greater than the distance threshold, use the first target position as the vertex position of the first interface to display the first interface.
[0158] Optionally, the determining module 902 can also be used for:
[0159] In response to a second operation instruction, determine the second target position of the second interface within the target area, where the second interface is the interface corresponding to the second display object, and the second display object is any one of the at least one display object other than the first display object;
[0160] The display module 901 can also be used for:
[0161] When the second target position is within the first target display area, display the second interface within the first target display area, where the first target display area is the area where the first interface is located when the first interface is displayed based on the first target position.
[0162] Optionally, the display module 901 can also be used for:
[0163] If the first interface is not displayed within the target area, in response to a third operation instruction corresponding to the first display object, display the first interface again based on the first target position.
[0164] For the working principle of the above display device, reference can be made to the relevant steps of the display method in the foregoing embodiments, which will not be elaborated here.
[0165] It should be noted that the various embodiments in this specification are described in a progressive manner. Each embodiment focuses on the differences from other embodiments. For the same or similar parts among the embodiments, reference can be made to each other.
[0166] For the convenience of description, when describing the above system or device, it is divided into various modules or units according to functions for separate description. Of course, when implementing the present application, the functions of each unit can be realized in one or more software and / or hardware.
[0167] From the description of the above embodiments, those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a storage medium, such as ROM / RAM, magnetic disk, optical disc, etc., and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in various embodiments or some parts of the embodiments of the present application.
[0168] Finally, it should also be noted that in this article, relational terms such as first, second, third, and fourth are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including a..." does not exclude the existence of additional identical elements in the process, method, article or device including the said element.
[0169] The above are only the preferred embodiments of the present application. It should be pointed out that for those of ordinary skill in the art, without departing from the principle of the present application, several improvements and refinements can be made, and these improvements and refinements should also be regarded as the protection scope of the present application.
Claims
1. A display method, comprising: Displaying at least one display object; In response to a first operation instruction, determining a first target position of a first interface within a target area, where the first interface is an interface corresponding to a first display object, and the first display object is any one of the at least one display object; Displaying the first interface based on the first target position.
2. The method according to claim 1, wherein the displaying at least one display object comprises: Displaying at least one display object on a first electronic device, where the first electronic device is communicatively connected to a second electronic device, and the at least one display object corresponds to at least one application program of the second electronic device.
3. The method according to claim 1, wherein the determining, in response to a first operation instruction, a first target position of a first interface within a target area comprises at least one of the following: When the first operation instruction includes a swipe operation instruction, obtaining the termination position of the swipe operation instruction as the first target position of the first interface within the target area; When the first operation instruction includes a first click operation instruction, obtaining the click position of the first click operation instruction as the first target position of the first interface within the target area.
4. The method according to claim 3, further comprising: When the first operation instruction includes the swipe operation instruction, obtaining the display object corresponding to the starting position of the swipe operation instruction as the first display object.
5. The method according to claim 3, further comprising: When the first operation instruction includes the first click operation instruction, in response to a second click operation instruction, obtaining the display object corresponding to the click position of the second click operation instruction as the first display object, where the second click operation instruction is obtained before the first click operation instruction.
6. The method according to claim 1, wherein the displaying the first interface based on the first target position comprises: When the distance from the first target position to the screen edge is greater than a distance threshold, using the first target position as the center position of the first interface to display the first interface.
7. The method according to claim 1, wherein the displaying the first interface based on the first target position comprises: When the distance from the first target position to the screen edge is not greater than the distance threshold, using the first target position as the vertex position of the first interface to display the first interface.
8. The method according to claim 1, further comprising: In response to a second operation instruction, determining a second target position of a second interface within the target area, where the second interface is an interface corresponding to a second display object, and the second display object is any one of the at least one display object other than the first display object; When the second target position is within a first target display area, displaying the second interface within the first target display area, where the first target display area is the area where the first interface is located when the first interface is displayed based on the first target position.
9. The method according to claim 1, further comprising: If the first interface is not displayed within the target area, in response to a third operation instruction corresponding to the first display object, the first interface is displayed again based on the first target position.
10. A display device, comprising: A display module, configured to display at least one display object; A determination module, configured to determine a first target position of a first interface within a target area in response to a first operation instruction, where the first interface is an interface corresponding to a first display object, and the first display object is any one of the at least one display object; The display module is configured to display the first interface based on the first target position.