Display method and electronic equipment
By responding to card operations on the negative screen display interface and meeting the sliding conditions to return to the negative screen or switching to the multi-task interface, the problem of users being unable to directly return to the negative screen is solved, and the user experience is improved.
Patent Information
- Application Number
- CN202411402752.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-30
- Publication Date
- 2025-08-12
AI Technical Summary
After exiting the negative one-screen application, the user cannot directly return to the negative one-screen display interface, resulting in complex operations and affecting the user experience.
By responding to card operations on the negative screen display interface, keep the negative screen application running, and return to the negative screen display interface when the sliding operation meets the preset conditions, or switch to the multi-task interface and display screenshot images of the negative screen on the background layer.
It simplifies the operation process of users returning to the negative screen, improves the user experience, and meets user needs.
Smart Images

Figure CN120469751A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing, and more particularly, to a display method and an electronic device. Background Art
[0002] The negative screen can refer to a special display interface on an electronic device. Unlike the traditional home screen or application list, the negative screen displays a series of shortcut functions, providing users with a more convenient operation method.
[0003] When the user enters the target application on the display interface of the negative first screen, the system will close the negative first screen application and run the target application. In this case, if the user wants to exit the application, since the negative first screen application has already been closed, it will not return to the display interface of the negative first screen, and will usually jump to the main desktop. At this time, if the user still wants to operate the controls displayed on the negative first screen, they need to continue swiping from the main desktop of the electronic device to re-enter the display interface of the negative first screen. This will make user operations complicated and affect the user experience.
[0004] Based on this, how to reduce the complexity of user operations and improve user experience has become an urgent problem to be solved. Summary of the Invention
[0005] The present application provides a display method that can reduce the complexity of the user's operation of re-entering the negative one screen display interface and improve the user experience.
[0006] In a first aspect, a display method is provided, comprising:
[0007] In response to a first operation on the first card on the negative one screen display interface, keep running the negative one screen application and display the first interface, where the first interface is a display interface of the first application, and the first application is the application corresponding to the first card;
[0008] In response to a sliding operation on the first interface, determining sliding information of the sliding operation;
[0009] If the sliding information meets the first preset condition, the display returns to the negative one screen display interface;
[0010] If the sliding information meets the first preset condition, it indicates to exit the first application.
[0011] The sliding operation may be an upward sliding operation, a downward sliding operation, a left sliding operation, or a right sliding operation, and the present embodiment does not limit this. The sliding information may include the sliding speed, sliding acceleration, sliding distance, and the position information where the sliding stops.
[0012] For example, the process of returning from the first interface to the negative one screen interface can be as follows: Figure 11 (a) to Figure 11 As shown in (d) in .
[0013] The display method provided in the embodiment of the present application responds to the start operation of the first card on the negative one screen display interface, keeps the negative one screen running, displays the first interface, and then responds to the sliding operation on the first interface, obtains the sliding information of the sliding operation, and returns to the negative one screen display interface when the sliding information meets the first preset condition. In the traditional method, exiting the application on the display interface of the application corresponding to the first card usually exits to the main desktop. Compared with the traditional method, the display method provided in the embodiment of the present application, if the application is opened from the display interface of the negative one screen, then when exiting the application, it will return to the display interface of the negative one screen instead of the display interface of the main desktop. This can better meet user needs and improve user experience.
[0014] In combination with the first aspect, in some embodiments of the first aspect, the method further includes: if the sliding information meets a second preset condition, displaying a multitasking interface.
[0015] For example, the process of switching from the first interface to the multitasking interface can be as follows: Figure 12 (a) to Figure 12 As shown in (d) in .
[0016] In combination with the first aspect, in some embodiments of the first aspect, the background layer of the multitasking interface is a screenshot of the negative one display interface.
[0017] It should be noted that the multitasking interface also includes an intermediate interface displayed during the process of switching from the first interface to the multitasking interface.
[0018] The display method provided in an embodiment of the present application determines the sliding information of the sliding operation in response to a sliding operation on the first interface, and when the sliding information meets the second preset condition, sets the background layer of the intermediate interface in the multi-tasking interface when the first interface is switched to the multi-tasking interface to be a screenshot image of the negative one screen display interface. This is equivalent to that in the process of entering the multi-tasking display interface from the display interface of the application opened from the negative one screen, the background layer displayed on the intermediate interface is a screenshot image of the negative one screen display interface, which can prompt the user that the application is opened from the display interface of the negative one screen, thereby improving the user experience.
[0019] In combination with the first aspect, in certain embodiments of the first aspect, if the sliding information meets the second preset condition, the multitasking interface is displayed, including: if the sliding information meets the second preset condition, obtaining a screenshot image of the negative one screen display interface; using the screenshot image of the negative one screen display interface as the background layer of the multitasking interface, and displaying the multitasking interface.
[0020] The display method provided in an embodiment of the present application determines the sliding information of the sliding operation in response to a sliding operation on the first interface, and when the sliding information meets the second preset condition, sets the background layer of the intermediate interface in the multi-tasking interface when the first interface is switched to the multi-tasking interface to be a screenshot image of the negative one screen display interface. This is equivalent to that in the process of entering the multi-tasking display interface from the display interface of the application opened from the negative one screen, the background layer displayed on the intermediate interface is a screenshot image of the negative one screen display interface, which can prompt the user that the application is opened from the display interface of the negative one screen, thereby improving the user experience.
[0021] In combination with the first aspect, in certain embodiments of the first aspect, the above-mentioned using the screenshot image of the negative one-screen display interface as the background layer of the multi-tasking interface and displaying the multi-tasking interface includes: using the screenshot image of the negative one-screen display interface as the background layer of the multi-tasking interface, and displaying the multi-tasking interface according to a preset dynamic effect.
[0022] In combination with the first aspect, in some embodiments of the first aspect, the preset dynamic effect includes that the transparency of the background layer in the multitasking interface changes from high to low as the sliding operation slides.
[0023] The display method provided by the embodiment of the present application determines the sliding information of the sliding operation in response to a sliding operation on the first interface, and when the sliding information meets the second preset condition, sets the background layer of the intermediate interface in the multi-tasking interface switched from the first interface to a screenshot image of the negative one screen display interface, and as the sliding operation slides, the transparency of the background layer of the intermediate interface changes from high to low. This is equivalent to the process of entering the multi-tasking display interface from the display interface of the application opened on the negative one screen, and the transparency of the background layer displayed on the intermediate interface changes from high to low as the sliding operation slides, which has a better display effect.
[0024] In combination with the first aspect, in some embodiments of the first aspect, if the sliding information meets the second preset condition, after obtaining the screenshot image of the negative one screen display interface, the method also includes: closing the negative one screen application.
[0025] The display method provided in the embodiment of the present application removes the screenshot image of the negative one-screen display interface displayed on the background layer in the second interface when the display interface of the electronic device is switched to the multi-tasking display interface, and displays the multi-tasking interface, and the background layer of the multi-tasking interface is the display image of the main desktop. It can be understood that when the user chooses to enter the multi-tasking interface, there is usually no application that the user needs to open on the negative one-screen display interface. Therefore, the image displayed on the main desktop is displayed in the background layer of the multi-tasking interface, which can prompt the user to the applications on the main desktop, facilitate the user's selection, and improve the user experience.
[0026] In combination with the first aspect, in some embodiments of the first aspect, the first preset condition includes sliding information indicating that the sliding operation is a uniform motion, the starting point of the sliding operation is the bottom area of the display screen of the electronic device, and the sliding distance of the sliding operation is greater than a preset distance threshold.
[0027] In combination with the first aspect, in certain embodiments of the first aspect, the second preset condition includes: the speed of the sliding operation indicated by the sliding information gradually slows down until the sliding stops, and the duration of the stop exceeds the preset duration threshold; or, the movement speed on the electronic device corresponding to two adjacent frames of images is less than the preset first speed threshold; or, the sliding speed corresponding to the current frame image is less than the second speed threshold, and the acceleration of the sliding speed corresponding to the current frame image is less than the third speed threshold.
[0028] The speed of the sliding operation indicated by the sliding information gradually slows down until the sliding stops, and the duration of the stop exceeds a preset duration threshold, which is equivalent to a scenario in which the sliding operation stops after sliding to a preset position.
[0029] The moving speeds of two adjacent frames along the up-down direction of the electronic device are both less than the preset first speed threshold, which is equivalent to a scenario where the sliding speed of the sliding operation is getting lower and lower.
[0030] In the sliding operation, a sliding speed of a frame, for example, a current frame, is less than the second speed threshold, and an acceleration of the sliding speed of the current frame is less than the third speed threshold, which is equivalent to a scenario in which the sliding speed of the sliding operation is reduced.
[0031] In combination with the first aspect, in some embodiments of the first aspect, the method is applied to an electronic device, and the electronic device includes a desktop module and an image display module, including: the desktop module keeps running the negative one-screen application in response to a first operation on the first card on the negative one-screen display interface, and instructs the image display module to display the first interface; the desktop module is used to determine the sliding information of the sliding operation in response to the sliding operation on the first interface; the desktop module is used to instruct the image display module to return to displaying the negative one-screen display interface when the sliding information meets a first preset condition.
[0032] The display method provided by the embodiment of the present application is that the desktop module responds to the startup operation of the first card on the negative one screen display interface, keeps running the negative one screen, and displays the first interface. The first interface is the display interface of the application corresponding to the first card, and then the desktop module responds to the sliding operation on the first interface, obtains the sliding information of the sliding operation, and when the sliding information meets the first preset condition, the desktop module returns to the negative one screen display interface. In the traditional method, exiting the application on the display interface of the application corresponding to the first card usually exits to the main desktop. Compared with the traditional method, the display method provided by the embodiment of the present application, if the application is opened from the display interface of the negative one screen, then when exiting the application, it will return to the display interface of the negative one screen instead of the display interface of the main desktop. This can better meet user needs and improve user experience.
[0033] In combination with the first aspect, in some embodiments of the first aspect, the electronic device further includes an image frame module, and the method further includes: the desktop module instructs the image frame module to obtain a screenshot of the negative one screen display interface.
[0034] In combination with the first aspect, in some embodiments of the first aspect, the electronic device also includes a motion effect framework module and an image generation module, and the method also includes: the desktop module instructs the motion effect framework module to set the transparency of multiple frames of screenshots of the negative one-screen display interface according to a preset step; the motion effect framework module returns multiple frames of screenshots of the negative one-screen display interface with transparency set to the desktop module; the desktop module sends multiple frames of screenshots of the negative one-screen display interface with transparency set to the image generation module; the image generation module generates multiple frames of images to be displayed based on the multiple frames of screenshots of the negative one-screen display interface with transparency set.
[0035] In combination with the first aspect, in some embodiments of the first aspect, the electronic device also includes a negative one screen module, and after the desktop module instructs the image frame module to obtain a screenshot of the negative one screen display interface, the method also includes: the desktop module instructs the negative one screen module to close the negative one screen application.
[0036] In a second aspect, a display device is provided, comprising a unit for executing any of the methods in the first aspect. The device may be a server, a terminal device, or a chip within a terminal device. The device may include an input unit and a processing unit.
[0037] When the device is a terminal device, the processing unit may be a processor, and the input unit may be a communication interface; the terminal device may also include a memory for storing computer program code, and when the processor executes the computer program code stored in the memory, the terminal device executes any one of the methods in the first aspect.
[0038] When the device is a chip in a terminal device, the processing unit may be a processing unit inside the chip, and the input unit may be an output interface, a pin or a circuit, etc.; the chip may also include a memory, which may be a memory inside the chip (for example, a register, a cache, etc.) or a memory located outside the chip (for example, a read-only memory, a random access memory, etc.); the memory is used to store computer program code, and when the processor executes the computer program code stored in the memory, the chip executes any one of the methods in the first aspect.
[0039] In one possible implementation, a memory is used to store computer program code; a processor executes the computer program code stored in the memory. When the computer program code stored in the memory is executed, the processor is used to perform:
[0040] In a third aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program code. When the computer program code is executed by a display device, the display device executes any one of the display methods in the first aspect.
[0041] In a fourth aspect, a computer program product is provided, comprising: a computer program code, wherein when the computer program code is executed by a display device, the display device executes any one of the device methods in the first aspect.
[0042] The display method and electronic device provided by the embodiments of the present application respond to the start operation of the first card on the negative one screen display interface, keep the negative one screen running, display the first interface, and then respond to the sliding operation on the first interface, obtain the sliding information of the sliding operation, and return to the negative one screen display interface when the sliding information meets the first preset condition. In the traditional method, exiting the application on the display interface of the application corresponding to the first card usually exits to the main desktop. Compared with the traditional method, the display method provided by the embodiments of the present application, if the application is opened from the display interface of the negative one screen, then when exiting the application, it will return to the display interface of the negative one screen instead of the display interface of the main desktop. This can better meet user needs and improve user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 It is a schematic diagram suitable for entering the negative one screen in this application;
[0044] Figure 2 It is a schematic diagram suitable for entering the negative one screen in this application;
[0045] Figure 3This is a schematic diagram applicable to the present application for entering a first application by clicking on a first card on a negative one screen;
[0046] Figure 4 It is a flowchart of a method of exiting an application from the negative one screen;
[0047] Figure 5 It is a schematic diagram of the interface for exiting an application entered from the negative one screen;
[0048] Figure 6 It is a schematic diagram of the dynamic effect of exiting an application entered from the negative one screen;
[0049] Figure 7 This is another diagram of the dynamic effect of exiting an application entered from the negative one screen;
[0050] Figure 8 It is a flowchart of a method of switching from the negative one screen into an application to a multitasking interface;
[0051] Figure 9 It is a schematic diagram of an interface that switches from the display interface of an application entered on the negative one screen to the multitasking interface;
[0052] Figure 10 It is a schematic diagram of re-entering the negative one screen display interface after exiting the negative one screen application;
[0053] Figure 11 This is a schematic diagram of an application scenario provided by an embodiment of the present application;
[0054] Figure 12 This is a schematic diagram of an application scenario provided by an embodiment of the present application;
[0055] Figure 13 is a schematic structural diagram of an electronic device applicable to an embodiment of the present application;
[0056] Figure 14 A schematic diagram of a software framework layer of an electronic device applicable to an embodiment of the present application;
[0057] Figure 15 This is a flow chart of a display method provided in an embodiment of the present application;
[0058] Figure 16 This is a schematic diagram of obtaining a sliding trajectory provided by an embodiment of the present application;
[0059] Figure 17 This is a flow chart of a display method provided in an embodiment of the present application;
[0060] Figure 18 is a schematic diagram of a display device provided by the present application;
[0061] Figure 19 This is a schematic diagram of an electronic device for displaying a method provided by the present application. DETAILED DESCRIPTION
[0062] The technical solutions in the embodiments of the present application will be described below in conjunction with the accompanying drawings in the embodiments of the present application. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships can exist, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.
[0063] In the following, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the quantity of the technical features indicated. Therefore, a feature specified as "first," "second," or "third" may explicitly or implicitly include one or more of the features.
[0064] To facilitate understanding, some of the examples given are provided for reference to the description of concepts related to the embodiments of the present application.
[0065] 1. Frame: This refers to the smallest unit of a single image in an interface display. A frame can be understood as a still image. Displaying multiple frames in rapid succession can create an animation. Frame rate refers to the number of frames refreshed per second, or the number of times per second the graphics processor in a terminal device refreshes the image. A higher frame rate produces smoother and more realistic animations. The more frames per second, the smoother the displayed motion.
[0066] It should be noted that before the interface displays a frame, it usually needs to go through processes such as drawing, rendering, and synthesis.
[0067] 2. Frame drawing: refers to the image drawing of the display interface. The display interface can be composed of one or more views. Each view can be drawn by the visual control of the view system. Each view is composed of subviews. A subview corresponds to a small widget in the view. For example, a subview corresponds to a symbol in the image view.
[0068] 3. Frame rendering: This is to shade the drawn view or add 3D effects, etc. For example, 3D effects can be lighting effects, shadow effects, and texture effects.
[0069] 4. Frame synthesis: It is the process of synthesizing multiple or more rendered views into a display interface.
[0070] 5. Negative screen: The negative screen can refer to a special page on the screen of an electronic device. Unlike the traditional home screen or application list, the negative screen displays a series of shortcut functions, providing users with a more convenient operation method. Usually, you can slide to one side of the electronic device to enter the negative screen. For example, you can slide to the left side of the electronic device to enter the negative screen. Usually, the negative screen can display search, shortcut tools, information reminders, commonly used applications, etc. Users can also add or delete cards displayed on the negative screen according to their preferences or needs to customize the personalized negative screen interface.
[0071] In some examples, the user can slide down any currently displayed interface to enter the interface one screen below, such as Figure 1 As shown in (a) of FIG, the user can slide up and down on the display interface 10 to enter the display interface 20 of the negative one screen. The display interface 20 of the negative one screen can be as follows Figure 1 As shown in (b) in FIG, it includes search 201, common application card 202, weather card 203, clock card 204 and news card 205.
[0072] In some examples, the user slides to the right on any non-primary desktop currently displayed, for example, Figure 2 When the user slides to the leftmost display interface of the electronic device, for example, Figure 2 Then continue to slide right to enter the display interface of the negative one screen, as shown in (b) of the main desktop 40. Figure 2 The negative one screen display interface 20 shown in (c) in FIG.
[0073] It should be noted that the main desktop is usually the first interface displayed when the electronic device is turned on, and is usually the leftmost display interface of the electronic device except for the negative one screen. Swiping right on the main desktop usually does not display other desktops, but displays the display interface of the negative one screen.
[0074] The user can select a target card on the display interface 20 of the negative one screen to open the display interface of the application corresponding to the target card. Figure 3 As shown in (a) of FIG. 1 , the user can click on the news card 205 to open the display interface 50 of the news application. Figure 3 As shown in (b) in .
[0075] The user can start sliding up at the bottom of the display interface 50 of the news application to exit the news application; or the user can start sliding up at the bottom of the display interface 50 of the news application and stop sliding up when reaching a preset position to enter the multitasking interface.
[0076] For example, the electronic device can Figure 4 Exit the target application entered from the negative one screen by following the steps shown. Figure 4 Shown, including:
[0077] Step 11: In response to the first operation, close the negative one screen.
[0078] The first operation may refer to an operation of exiting the target application entered from the negative first screen. For example, the target application may refer to a news application. The display interface of the news application entered from the negative first screen may be as follows: Figure 5 As shown in (a) in FIG. The first operation may refer to sliding upward from the bottom of the display interface of the news application and maintaining a constant upward sliding speed. For example, Figure 5 As shown in (b), the user starts to slide upward from the bottom of the display interface 50 of the news application. If the user keeps sliding upward at a constant speed, the electronic device will exit the news application and jump to the main desktop 40 in response to the user's upward sliding operation.
[0079] It is understandable that when exiting the target application entered from the negative one screen, the electronic device will simultaneously close the negative one screen, and the electronic device will no longer display the display interface of the negative one screen. The electronic device can display the first interface after exiting the negative one screen. For example, the first interface can refer to the main desktop of the electronic device, such as Figure 5 As shown in (c) in .
[0080] Step 12: Determine whether there is an icon corresponding to the target application on the first interface.
[0081] If an icon corresponding to the target application exists on the first interface, the first animation is executed, that is, step 13 is executed.
[0082] Among them, the first interface can refer to the interface displayed by the electronic device after exiting the display interface of the negative one screen. For example, the first interface can refer to the main desktop 40 of the electronic device, such as Figure 5 As shown in (c) in .
[0083] If the icon corresponding to the target application does not exist on the first interface, the second animation is executed, that is, step 14 is executed.
[0084] Step 13: Display the first interface through the first animation effect.
[0085] The first animation may indicate that the card of the target application is gradually reduced in size according to a first preset step and gradually approaches the icon corresponding to the target application.
[0086] In the process of jumping from the display interface 50 to the main desktop 40, the display interface 50 of the news application is first reduced to a news card 501 of a first size, such as Figure 6 As shown in (a) of FIG, a news card 501 with a first size is displayed on the main desktop display content. Then, the size of the news card 501 is reduced according to a first preset step and gradually approaches the icon 502 displayed on the first interface of the news application. For example, after a first time interval, the size of the news card 501 is reduced from the first size to the second size, as shown in FIG. Figure 6 As shown in (b), the distance between the news card 501 and the icon 502 displayed on the first interface of the news application is also reduced. When the distance between the news card 501 and the icon 502 displayed on the first interface of the news application is less than the preset distance threshold, as shown in FIG. Figure 6 As shown in (c), the news card 501 is no longer displayed, and the news icon 503 is displayed. Compared with the icon 502 displayed by the news application on the first interface, the news icon 503 has the same appearance as the icon 502 displayed by the news application on the first interface, and the size of the news icon 503 is slightly larger than the size of the icon 502 displayed by the news application on the first interface. Then, the news icon 503 is gradually reduced according to the second preset step, and gradually approaches the icon 502 displayed by the news application on the first interface until it overlaps with the icon 502 displayed by the news application on the first interface, as shown in FIG. Figure 6 As shown in (d) in .
[0087] It should be noted that when exiting the news application, the electronic device simultaneously exits the negative one screen, directly jumps to the main desktop 40, and executes the above-mentioned first motion effect with the main desktop as the background.
[0088] Step 14: Display the first interface through the second animation effect.
[0089] If there is no icon corresponding to the target application on the first interface, the second animation effect is executed. Continuing to use the target application as a news application as an example for explanation.
[0090] The second dynamic effect may refer to a dynamic effect in which the news card 501 gradually shrinks at a preset position.
[0091] For example, in the process of jumping from the display interface 50 to the main desktop 40, the display interface 50 of the news application is first reduced to a news card 501 of a first size, such as Figure 7As shown in (a) of FIG, a news card 501 with a display size of the first size is displayed on the main desktop display content. Then, the size of the news card 501 is reduced according to the first preset step. For example, after the second time interval, the size of the news card 501 is reduced from the first size to the third size, as shown in FIG. Figure 7 As shown in (b) in FIG. 5 , the news card 501 continues to shrink until the size of the news card 501 is smaller than the preset size threshold and disappears from the first interface, as shown in FIG. Figure 7 As shown in (c) in .
[0092] It should be noted that when exiting the news application, the electronic device simultaneously exits the negative one screen, directly jumps to the main desktop 40, and executes the above-mentioned second motion effect with the main desktop 40 as the background.
[0093] For example, the electronic device can Figure 8 Enter the multitasking interface by following the steps shown. The following will continue to explain by taking the example of opening the news application in the negative one screen. Figure 8 Shown, including:
[0094] Step 21: In response to the upward sliding operation, close the negative one screen.
[0095] It is understandable that the upward sliding operation may refer to an upward sliding operation at the bottom of the display interface 50 of the news application program, such as Figure 9 (a) in the figure. The display interface 50 of the news application is opened by the user clicking the news card 205 on the display interface 20 of the negative one screen. The user starts to slide upward from the bottom of the display interface 50 of the news application. As the user slides upward from the bottom of the display interface 50, the display interface of the electronic device jumps to the display interface 50A. Since the electronic device has closed the negative one screen, the electronic device cannot display the interface of the negative one screen. Therefore, the background area of the display interface 50A is the main desktop, and the news card 501 is displayed on the background of the main desktop, as shown in FIG. Figure 9 As shown in (b) in .
[0096] It should be noted that when a user swipes upward from the bottom of the news application display interface 50, the electronic device cannot determine at that moment whether the user wants to enter the multitasking interface or exit the application display interface. Therefore, the electronic device usually closes the negative one screen first when detecting a swipe upward from the bottom.
[0097] Step 22: If the upward sliding operation satisfies a second preset condition, the multitasking interface is displayed.
[0098] Among them, the second preset condition may indicate that after the upward sliding operation, the multitasking interface is triggered to be displayed. For example, the second preset condition may include gradually slowing down the speed of sliding upward until the sliding stops, and the duration of the stop exceeds the preset duration threshold, which is equivalent to the situation where the sliding stops after reaching the preset position; the second preset condition may also refer to the movement speed of two adjacent frames along the up and down directions of the electronic device being less than the preset first speed threshold, which is equivalent to the scenario where the sliding speed is reduced; the second preset condition may also refer to one of the frames during the upward sliding operation, for example, the sliding speed of the current frame is less than the second speed threshold, and the acceleration of the sliding speed of the current frame is less than the third speed threshold, which is equivalent to the scenario where the sliding speed is reduced; the embodiment of the present application does not impose any restrictions on this.
[0099] The multitasking interface may refer to Figure 9 (c) shows multitasking interface 50B. Unlike the interface for exiting the news application, multitasking interface 50B still displays the news card 501 and other application cards 502. The user can swipe left or right as needed to center the cards of other applications on display interface 50B, allowing the user to access other applications by clicking on them.
[0100] Since the electronic device has exited the negative one screen when sliding upward, the background area of the interface 50A displayed during the sliding process and the multitasking interface 50B displayed after the sliding operation are both unable to display the negative one screen display interface, but instead displays other interfaces, such as Figure 9 (b) and Figure 9 The display content of the main desktop shown in (c) in FIG.
[0101] Exiting the news application entered from the negative one screen and entering the multitasking interface 50B are both triggered by swiping upward from the bottom of the news application display interface 50. There are operational differences in the upward swiping process in these two scenarios, but the starting action is to swipe upward. Therefore, in the Android system, exiting the application entered from the negative one screen and entering the multitasking interface 50B are coupled to each other. When swiping upwards begins, the exit operation of the negative one screen will be triggered. In other words, when the display is displayed as Figure 7 (a) to Figure 7 The news card 501 shown in (c) gradually becomes smaller, and the display is as follows Figure 9 (a) to Figure 9 In the process of the multi-tasking display interface shown in (c), the background area displays the content displayed on the main desktop, rather than the display content of the negative one screen.
[0102] However, in some possible cases, on the display interface 50 of the news application entered through the negative one screen, the user exits the news application by sliding upward, such as Figure 10 After exiting the application entered from the negative one screen, the electronic device will display the main desktop 40, as shown in (a) in FIG. Figure 10 At this time, the user still wants to continue to operate the controls displayed on the negative screen. In this case, since the electronic device has exited the negative screen and entered the main desktop 40, the user needs to slide to the right, as shown in (b). Figure 10 As shown in (c) in the figure, you can re-enter the display interface 20 of the negative one screen, such as Figure 10 This will complicate user operations and affect user experience.
[0103] In view of this, an embodiment of the present application provides a display method, which can return to the display interface of the negative one screen when an application is opened from the display interface of the negative one screen, rather than displaying the display interface of the main desktop when exiting the application. This can better meet user needs and improve user experience, including: responding to the startup operation of the first card on the negative one screen display interface, keeping the negative one screen running, displaying the first interface, which is the display interface of the application corresponding to the first card, and then responding to the sliding operation on the first interface, obtaining the sliding information of the sliding operation, and returning to the negative one screen display interface when the sliding information meets the first preset condition.
[0104] The application scenarios provided by the embodiments of the present application are described below with reference to the accompanying drawings.
[0105] The display method provided in the embodiment of the present application can be applied to Figure 3 (a) to Figure 3 (b) Figure 11 (a) to Figure 11 (c) and Figure 12 (a) to Figure 12 In the scenario shown in (d). Figure 3 As shown in (a) of FIG, the electronic device displays a display interface 20 of the negative one screen, which includes a search card 201, a common application card 202, a weather card 203, a clock card 204, and a news card 205. The following description takes the interface of the news application corresponding to the news card 205 as an example.
[0106] The news card 205 generally displays an overview of the news content. If the user needs to know more news information, the user can click on the news card 205 to open the news application to browse more news information. In response to the user clicking on the news card 205, the display interface of the electronic device jumps from the display interface 20 of the negative one screen to the display interface 50 of the news application, as shown in FIG. Figure 3 As shown in (b) in FIG. 5 , detailed information of the news is displayed on the display interface 50 .
[0107] When the user no longer browses the display interface 50 of the news application, as shown in FIG. Figure 11 As shown in (a), the user can slide upward from the bottom of the display interface 50 of the news application and keep the sliding speed within a preset range, and the electronic device can exit the display interface 50 of the news application. In the display method provided in the embodiment of the present application, in response to the user's upward sliding operation, after the electronic device exits the display interface 50 of the news application, it can return to the display interface 20 of the negative one screen, such as Figure 11 As shown in (d) in .
[0108] Among them, when the display interface starts to switch in response to the upward sliding operation, the display interface of the electronic device can switch from the display interface 50 of the news application to the display interface 60, such as Figure 11 As shown in (b) in FIG. 6 , the background area of the display interface 60 is displayed as a negative one screen interface, and the display interface 60 also includes a news card 601. The size of the news card 601 is slightly smaller than the size of the electronic device display screen, and the display content in the news card 601 is the display interface 50 of the news application. This is equivalent to the news card 601 being a thumbnail of the display interface 50 of the news application. As the user slides, the size of the news card 601 becomes smaller, as shown in FIG. Figure 11 As shown in (c) in FIG. 1 , until the news card 601 disappears, the electronic device displays the display interface 20 of the negative one screen, as shown in FIG. Figure 11 As shown in (d) in FIG. 1 , the electronic device can present to the user a dynamic effect in which the display interface 50 of the news application gradually becomes smaller and disappears from above the negative one-screen display interface 20 as the user slides.
[0109] Alternatively, if the user wants to enter the multi-tasking display interface to open other applications, the user can also slide upward from the bottom of the display interface 50 of the news application, such as Figure 12 Unlike the display interface 50 for exiting the news application, the trigger condition for entering the multitasking display interface is that after the display interface 50 changes, the upward sliding speed gradually decreases and stops at a preset position, thereby triggering entry into the multitasking display interface.
[0110] When the display interface starts to switch in response to the upward sliding operation, the display interface of the electronic device can switch from the display interface 50 of the news application to the display interface 60, such as Figure 12 As shown in (b) in the figure. The background area of the display interface 60 is displayed as an interface of one negative screen, and the display interface 60 also includes a news card 601. The size of the news card 601 is slightly smaller than the size of the electronic device display screen, and the display content in the news card 601 is the display interface 50 of the news application. It is equivalent to the news card 601 being a thumbnail of the display interface 50 of the news application. During the upward sliding process, if the sliding speed meets the preset conditions, it triggers entry into the multi-tasking display interface 50B. The preset conditions include: the speed of sliding upward gradually slows down until the sliding stops, and the duration of the stop exceeds the preset duration threshold; or, the movement speed of two adjacent frames along the up and down direction of the electronic device is less than the preset first speed threshold; or, the second operation can also refer to the sliding speed of one of the frames during the upward sliding operation being less than the second speed threshold, and the acceleration of the sliding speed is less than the third speed threshold.
[0111] For example, the multi-tasking display interface 50B may be as follows: Figure 12 As shown in (d) in the figure, the background area of the multitasking display interface 50B displays the content of the main desktop. The multitasking display interface 50B also includes a news card 501 and other application cards 502. The user can swipe left or right as needed to center the cards of other applications on the display interface 50B, allowing the user to click to access other applications.
[0112] like Figure 12 As shown in (b), the background area of the display interface 60 is displayed as the negative one screen display content. Figure 12 As shown in (d), the background area of the display interface 50B displays the display content of the main desktop. In order to avoid excessive changes in the display content of the background area during the switch from the display interface 60 to the display interface 50B, the transparency of the background area can be adjusted to avoid the above problem.
[0113] Optionally, during the transition from the display interface 60 to the display interface 50B, the transparency value of the background area of the electronic device display interface changes from large to small according to a preset step.
[0114] like Figure 12 As shown in (b) in FIG, the transparency of the background area in the display interface 60 can be 0. As the user slides upward, the display interface 60 switches to the display interface 60B, as shown in FIG. Figure 12As shown in (c) in the figure, the background area of the display interface 60B displays the display content of the negative one screen. Compared with the real interface 60, the size of the news card 601 becomes smaller, and the transparency of the background area of the display interface 60B also becomes smaller. When the user stops the upward sliding operation, the display interface of the electronic device switches to Figure 12 In this way, when switching from the display interface 60 to the display interface 50B, the change of the background area is relatively gentle, which improves the user experience.
[0115] It should be understood that the above is an example of an application scenario and does not limit the application scenario of this application.
[0116] The display method provided in the embodiment of the present application can be applied to electronic devices. Optionally, the electronic device includes a terminal device, which can also be called a terminal, user equipment (UE), mobile station (MS), mobile terminal (MT), etc. The terminal device can be a mobile phone, a smart TV, a wearable device, a tablet computer (Pad), a computer with wireless transceiver function, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a wireless terminal in self-driving, a wireless terminal in remote medical surgery, a wireless terminal in smart grid, a wireless terminal in transportation safety, a wireless terminal in smart city, a wireless terminal in smart home, etc. The embodiments of the present application do not limit the specific technology and specific device form adopted by the terminal device.
[0117] For example, Figure 13: The figure shows a schematic diagram of the structure of the electronic device 100. The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identification module (SIM) card interface 195. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0118] It should be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0119] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.
[0120] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0121] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.
[0122] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface.
[0123] The electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
[0124] The ISP processes data fed back by camera 193. For example, when taking a photo, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, which is then passed to the ISP for processing and converted into a visible image. The ISP can also perform algorithmic optimization on image noise, brightness, and skin tone. It can also optimize parameters such as exposure and color temperature of the captured scene. In some embodiments, the ISP can be located within camera 193.
[0125] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then passes the electrical signal to the ISP for conversion into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0126] The digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0127] Video codecs are used to compress or decompress digital video. Electronic device 100 may support one or more video codecs. This allows electronic device 100 to play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, and MPEG4.
[0128] The NPU is a neural network (NN) computing processor. Drawing on the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it rapidly processes input information and can continuously self-learn. The NPU can enable intelligent cognitive applications in electronic device 100, such as image recognition, face recognition, speech recognition, and text comprehension.
[0129] It should be noted that any electronic device mentioned in the embodiments of the present application may include more or fewer modules in the electronic device 100.
[0130] The software system of the electronic device 100 can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the present application, the Android system with a layered architecture is used as an example to illustrate the software structure of the electronic device 100.
[0131] Figure 14 1 is a schematic diagram of the software structure of an electronic device 100 exemplarily shown, wherein the electronic device 100 may be a mobile phone.
[0132] The layered architecture of electronic device 100 divides the software into several layers, each with a clear role and division of labor. Layers communicate with each other via software interfaces. In some embodiments, the Android system is divided into four layers: from top to bottom, the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer.
[0133] The application layer can include a series of application packages.
[0134] like Figure 14 As shown, the application layer can include negative one-screen applications and desktop applications.
[0135] The negative one screen application can be used to manage the cards displayed on the negative one screen and the interactions on the negative one screen.
[0136] Desktop applications can be used to manage interactions on the desktop.
[0137] The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions.
[0138] like Figure 14 As shown, the application framework layer may include an input module, a motion effect framework module, an image framework module, a layer rendering module, a layer synthesis module, and a layer display module.
[0139] The input system can be used to receive operations on the display screen, such as click operations, sliding operations, etc. The input system can convert the user's touch on the display screen into a specific operation type.
[0140] The motion effect framework module is used to decompose dynamic effects into frames of images and send the layer data of each frame of image to the image synthesis module.
[0141] The graphics framework module is used to call relevant interfaces to obtain screenshots of the display interface.
[0142] The layer synthesis (surfaceflinger) module is used to receive the layer data sent by the motion effect framework module and other layer data sent by other modules, then merge these layer data to obtain the image data to be displayed, and finally send the image data to be displayed to the layer display module.
[0143] The layer display module can send the received image data to be displayed to the display screen for display according to a preset period.
[0144] The system library can include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0145] The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
[0146] The media library supports playback and recording of a variety of common audio and video formats, as well as static image files. The media library can support a variety of audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0147] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0148] A 2D graphics engine is a drawing engine for 2D drawings.
[0149] The kernel layer is the layer between hardware and software. The kernel layer contains at least the encoder driver, liquid crystal display (LCD) driver, communication module and input processing library (inputevent).
[0150] It is understandable that Figure 14 The components included in the illustrated system framework layer, system library, and runtime layer do not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or may combine or split certain components, or arrange the components differently.
[0151] The negative one screen application draws the image data by calling the image drawing module in the system library, and calls the image rendering module to render the drawn image data. Then, the negative one screen application sends the drawn and rendered image data to the surfaceflinger module for synthesis. Exemplarily, the surfaceflinger module can synthesize images according to a fixed period. Taking a refresh rate of 60HZ as an example, the surfaceflinger module synthesizes images with a period of 16.6ms. After the surfaceflinger module synthesizes the image, it sends the synthesized image data to the LCD driver module of the electronic device. The LCD driver module drives the display screen of the electronic device to display the synthesized image data.
[0152] The following is an example of the workflow of the software and hardware of the terminal device 100, with reference to the display interface of the negative one screen.
[0153] When the touch sensor 180K receives a touch operation, the kernel layer processes the touch operation into an original input event (including touch coordinates, touch force, timestamp of the touch operation, and other information). The original input event is stored in the kernel layer. The kernel layer reports the original input event to the input system of the application framework layer through the input processing library. The input system of the application framework layer parses the information of the original input event (including: operation type and reported point position, etc.) and determines the focus application based on the current focus, and sends the parsed information to the focus application. The focus can be the touch point in a touch operation or the click position in a mouse click operation. The focus application is the application running in the foreground of the terminal device or the application corresponding to the touch position in the touch operation. The focus application determines the control corresponding to the original input event based on the parsed information of the original input event (for example, the reported point position).
[0154] Taking the case where the touch operation is a touch sliding operation and the application corresponding to the touch sliding operation is the display interface of the negative one screen application as an example, the negative one screen application calls the application layer drawing module to draw the image, and calls the layer rendering module to render the drawn image. The negative one screen application sends the rendered image to the cache queue of the display synthesis process. The layer synthesis module synthesizes the rendered image in the display synthesis process into the display interface of the negative one screen. The display synthesis process drives the LCD / LED screen of the kernel layer, so that the LCD / LED screen displays the display interface of the negative one screen.
[0155] The following combination Figures 15 to 17 The display method provided in the embodiment of the present application is described in detail.
[0156] Figure 15 A flow chart of a display method provided in an embodiment of the present application is shown as follows: Figure 15 As shown, the method includes:
[0157] S101. In response to a start operation on a first card on a negative one screen display interface, keep running the negative one screen and display a first interface, where the first interface is a display interface of an application corresponding to the first card.
[0158] Among them, the negative one screen display interface can refer to Figure 3 The display interface 20 shown in (a) in FIG.
[0159] The first interface is the display interface of the application corresponding to the first card, for example, Figure 3 As shown in (a) in FIG. 1 , the first card is a news card 205 on the negative one screen display interface. The first interface may be a display interface of a news application, for example, Figure 3 The display interface 50 of the news application shown in (b) in FIG.
[0160] The startup operation may refer to an operation of opening the application corresponding to the first card. For example, the startup operation may be an operation of clicking the first card, or the startup operation may be an operation of opening the application corresponding to the first card through a voice command, which is not limited in this embodiment of the present application.
[0161] S102: In response to a sliding operation on the first interface, determine sliding information of the sliding operation.
[0162] The sliding operation may be used to indicate exiting the first interface.
[0163] The sliding operation can be an upward sliding operation, a downward sliding operation, a left sliding operation, or a right sliding operation, and the embodiment of the present application does not limit this.
[0164] The sliding information may include the sliding speed, sliding acceleration, sliding distance, and the position information where the sliding stops in the sliding operation.
[0165] The following description takes the sliding operation of sliding upward as an example.
[0166] The starting position of the sliding operation can be the bottom area of the electronic device display screen. After the electronic device detects a touch operation in the bottom area of the display screen, the electronic device can periodically obtain multiple frames of touch points according to a preset sampling period, and each touch point is the position where the user touches the display screen in the corresponding frame.
[0167] For example, the coordinate system formed with the upper left corner of the electronic device display screen as the coordinate origin can be as follows Figure 16 At time T1, the coordinates of touch point 1 collected by the electronic device are (X1, Y1). In the next frame within the sampling period, for example, at time T2, the coordinates of touch point 2 collected by the electronic device are (X2, Y2). At time T3, the coordinates of touch point 3 collected by the electronic device are (X3, Y3). At time TN, the coordinates of touch point 4 collected by the electronic device are (XN, YN).
[0168] The electronic device can calculate the Y-axis speed of the slide operation between time T1 and time T2 using (Y2-Y1) / (T2-T1), and can also calculate the Y-axis speed of the slide operation between two adjacent frames using the same method. Furthermore, the electronic device can determine the slide acceleration of the slide operation based on the slide speeds of multiple adjacent frames.
[0169] The electronic device may use the touch point coordinates of the current frame as the sliding coordinates of the sliding operation at the current moment.
[0170] If the difference between the touch point coordinates of the current frame of the electronic device and the touch point coordinates in the first time period is less than the preset difference threshold, it is determined that the sliding stops, and the touch point coordinates of the current frame are used as the position information of stopping the sliding.
[0171] The process of the electronic device obtaining the touch point coordinates can be referred to the following workflow of the electronic device 100 software and hardware, which will not be repeated here.
[0172] S103: If the sliding information meets the first preset condition, return to the negative one screen display interface.
[0173] After obtaining the sliding information of the sliding operation, the electronic device can determine the details of the sliding operation based on the sliding information. For example, the electronic device can determine based on the sliding information that the sliding operation is a uniform upward sliding from the bottom of the electronic device display screen, and the end position of the sliding operation is above a preset position (i.e., the sliding is above the preset position). Such a sliding operation can indicate exiting the current display interface.
[0174] For example, when an electronic device detects a user touching a display screen, it can obtain the coordinates of the touch point where the user touched the display screen. Based on the detection of the user touching the display screen, the electronic device can determine that the user has initiated a sliding operation and determine the starting point of the sliding operation. The electronic device can then obtain multiple touch point coordinates according to a preset sampling period and determine the sliding speed and sliding acceleration of the sliding operation based on the multiple touch point coordinates.
[0175] The first preset condition may include sliding information indicating that the sliding operation is a uniform motion, the starting position of the sliding operation is the bottom area of the display screen, and the sliding distance of the sliding operation is greater than a preset distance threshold.
[0176] If the sliding information meets the above-mentioned first preset condition, the sliding operation indicates that the display interface of the negative one screen will be displayed after exiting the first interface, for example, Figure 11 The display interface 20 shown in (d) in FIG.
[0177] The display method provided in the embodiment of the present application responds to the start operation of the first card on the negative one screen display interface, keeps the negative one screen running, displays the first interface, and then responds to the sliding operation on the first interface, obtains the sliding information of the sliding operation, and returns to the negative one screen display interface when the sliding information meets the first preset condition. In the traditional method, exiting the application on the display interface of the application corresponding to the first card usually exits to the main desktop. Compared with the traditional method, the display method provided in the embodiment of the present application, if the application is opened from the display interface of the negative one screen, then when exiting the application, it will return to the display interface of the negative one screen instead of the display interface of the main desktop. This can better meet user needs and improve user experience.
[0178] S104: If the sliding information meets a second preset condition, display a multitasking interface.
[0179] Among them, the second preset condition may include that the speed of the sliding operation indicated by the sliding information gradually slows down until the sliding stops, and the duration of the stop exceeds the preset duration threshold; or, the second preset condition may also include that the movement speeds of two adjacent frames along the up and down directions of the electronic device are both less than the preset first speed threshold; or, the second preset condition may also include a frame in the sliding operation, for example, the sliding speed of the current frame is less than the second speed threshold, and the acceleration of the sliding speed of the current frame is less than the third speed threshold. The embodiment of the present application does not impose any restrictions on this.
[0180] The speed of the sliding operation indicated by the sliding information gradually slows down until the sliding stops, and the duration of the stop exceeds a preset duration threshold, which is equivalent to a scenario in which the sliding operation stops after sliding to a preset position.
[0181] The moving speeds of two adjacent frames along the up-down direction of the electronic device are both less than the preset first speed threshold, which is equivalent to a scenario where the sliding speed of the sliding operation is getting lower and lower.
[0182] In the sliding operation, a sliding speed of a frame, for example, a current frame, is less than the second speed threshold, and an acceleration of the sliding speed of the current frame is less than the third speed threshold, which is equivalent to a scenario in which the sliding speed of the sliding operation is reduced.
[0183] In this case, after the electronic device exits displaying the first interface, it displays the multitasking interface, for example, Figure 12 As shown in (d) in .
[0184] In some possible cases, after the electronic device exits the display of the first interface, the multitasking interface can be displayed through the third animation. For example, the third animation can be as follows: Figure 12 (b) to Figure 12As shown in (d), during the process of switching from the first interface to the multi-tasking interface, the transparency of the background area of the display interface changes from high to low.
[0185] Optionally, a possible implementation of the above “displaying the multitasking interface when the sliding information satisfies the second preset condition” includes:
[0186] S1041: If the sliding information satisfies a second preset condition, obtain a screenshot image of the negative one screen display interface.
[0187] The electronic device can copy the negative one screen display interface to obtain a screenshot image of the negative one screen display interface.
[0188] S1042: Use the screenshot image of the negative one screen display interface as the background layer in the second interface.
[0189] The second interface may refer to an intermediate interface displayed during the process of switching from the first interface to the multitasking interface, for example, Figure 12 (b) or Figure 12 As shown in (c) in FIG. 1 , the second interface displays a first card whose size decreases as the sliding operation is performed, for example, Figure 12 (b) or Figure 12 The card 601 shown in (c) in FIG. The background layer of the second interface is a screenshot image of the above-mentioned negative one screen display interface.
[0190] The display method provided in an embodiment of the present application determines the sliding information of the sliding operation in response to a sliding operation on the first interface, and when the sliding information meets the second preset condition, sets the background layer of the intermediate interface in the multi-tasking interface when the first interface is switched to the multi-tasking interface to be a screenshot image of the negative one screen display interface. This is equivalent to that in the process of entering the multi-tasking display interface from the display interface of the application opened from the negative one screen, the background layer displayed on the intermediate interface is a screenshot image of the negative one screen display interface, which can prompt the user that the application is opened from the display interface of the negative one screen, thereby improving the user experience.
[0191] S1043: Display the second interface according to the preset dynamic effect.
[0192] Optionally, the preset dynamic effect may mean that the transparency of the background layer of the second interface changes from high to low as the sliding operation progresses.
[0193] For example, Figure 12 As shown in (b), when the display interface of the electronic device just switches from the first interface to the second interface, the transparency of the background layer of the second interface is the highest, and it can be clearly seen that the background layer of the second interface is a screenshot of the above-mentioned negative one screen display interface. As the sliding operation slides, the transparency of the background layer of the second interface becomes lower, as shown in FIG. Figure 12As shown in (c) in Figure 12 Compared with (b), the transparency of the background layer of the second interface becomes lower, and the background layer of the second interface cannot be clearly seen.
[0194] The electronic device can determine the transparency of the background layer in each frame of the second interface image through a custom interpolator based on the sliding distance of the sliding operation.
[0195] For example, the electronic device can determine the first duration of sliding from the bottom of the display interface to a preset position based on the sliding speed and sliding acceleration of the sliding operation, and then calculate the change in transparency in each frame of the image from transparency 1 to transparency 0 within the first duration through a custom interpolator. For example, if a total of 100 frames of images need to be displayed within the first duration, the transparency value of each frame of the image is reduced by 1%, that is, in the first frame of the image, the transparency of the screenshot image of the negative one-screen display interface is 100% (transparency is 1), in the second frame of the image, the transparency of the screenshot image of the negative one-screen display interface is 99%, ..., in the 100th frame of the image, the transparency of the screenshot image of the negative one-screen display interface is 0%.
[0196] Then, the electronic device can synchronize the screenshot image of the negative one-screen display interface in each frame image and other elements displayed on the second interface to the image rendering module according to the above-mentioned transparency changes. After the image rendering module completes the image rendering of the frame, the rendered image data of the frame is obtained, and the rendered image data is added to the cache queue. The image synthesis module then obtains the rendered image data from the cache queue for layer synthesis to obtain the synthesized image, and finally sends the synthesized image for display so that the synthesized images are displayed on the display screen in sequence.
[0197] It is understandable that other elements displayed on the second interface may include the window size, the location of the rounded corner area of the window, and other detection areas on the window, and the embodiments of the present application do not limit this.
[0198] The display method provided by the embodiment of the present application determines the sliding information of the sliding operation in response to a sliding operation on the first interface, and when the sliding information meets the second preset condition, sets the background layer of the intermediate interface in the multi-tasking interface switched from the first interface to a screenshot image of the negative one screen display interface, and as the sliding operation slides, the transparency of the background layer of the intermediate interface changes from high to low. This is equivalent to the process of entering the multi-tasking display interface from the display interface of the application opened on the negative one screen, and the transparency of the background layer displayed on the intermediate interface changes from high to low as the sliding operation slides, which has a better display effect.
[0199] S1043. Close the negative one screen application.
[0200] S1044. When the transparency of the background layer of the second interface reaches a preset transparency threshold, the screenshot image of the negative one display interface displayed by the background layer in the second interface is removed, and the multitasking interface is displayed.
[0201] The preset transparency threshold may be 0 or other values, and this embodiment of the present application does not impose any limitation on this.
[0202] When the transparency of the background layer of the second interface becomes the preset transparency threshold, the screenshot image of the negative one display interface displayed by the background layer in the second interface can be removed to display the multitasking interface, wherein the multitasking interface can be as follows: Figure 12 The multitasking interface 50B shown in (d) in FIG.
[0203] Optionally, the background layer of the multitasking interface is an image displayed on the main desktop, for example, Figure 12 As shown in (d) in .
[0204] The display method provided in the embodiment of the present application removes the screenshot image of the negative one-screen display interface displayed on the background layer in the second interface when the display interface of the electronic device is switched to the multi-tasking display interface, and displays the multi-tasking interface, and the background layer of the multi-tasking interface is the display image of the main desktop. It can be understood that when the user chooses to enter the multi-tasking interface, there is usually no application that the user needs to open on the negative one-screen display interface. Therefore, the image displayed on the main desktop is displayed in the background layer of the multi-tasking interface, which can prompt the user to the applications on the main desktop, facilitate the user's selection, and improve the user experience.
[0205] Figure 17 A flow chart of a display method provided in an embodiment of the present application is shown as follows: Figure 17 As shown, the method includes:
[0206] S201: The input system receives a sliding operation from the user on the current display interface.
[0207] The input system may convert the user's touch on the current display interface into a corresponding operation, such as a sliding operation or a click operation. If the user performs a sliding operation on the display interface, the input system may determine that the operation is a sliding operation based on the user's touch.
[0208] S202: The input system sends sliding information of the sliding operation to the desktop module.
[0209] Among them, the sliding operation can be an upward sliding operation, a downward sliding operation, a left sliding operation, or a right sliding operation, and the embodiment of the present application does not limit this.
[0210] The sliding information may include the sliding speed, sliding acceleration, sliding distance, and the position information where the sliding stops in the sliding operation.
[0211] S203: The desktop module determines whether the sliding information meets a second preset condition.
[0212] If the sliding information satisfies the second preset condition, it means that the user's sliding operation indicates that the user needs to enter the multitasking interface.
[0213] The second preset condition may include that the speed of the sliding operation indicated by the sliding information gradually slows down until the sliding stops, and the duration of the stop exceeds a preset duration threshold; or, the second preset condition may also include that the movement speeds of two adjacent frames along the up and down directions of the electronic device are both less than a preset first speed threshold; or, the second preset condition may also include a frame in the sliding operation, for example, the sliding speed of the current frame is less than the second speed threshold, and the acceleration of the sliding speed of the current frame is less than the third speed threshold. The embodiments of the present application do not impose any restrictions on this.
[0214] If the sliding information satisfies the second preset condition, the desktop module sends a first instruction to the graphic framework module, that is, executing S204.
[0215] S204: The desktop module sends a first instruction to the graphic framework module.
[0216] The first instruction may be used to instruct the graphic framework module to obtain a screenshot of the negative one screen display interface.
[0217] It should be noted that when the desktop module sends the first instruction to the graphic framework module, the negative one screen application has not been closed, so the graphic framework module can obtain a screenshot of the negative one screen display interface.
[0218] S205. The graphic framework module obtains a screenshot of the negative one screen display interface in response to the first instruction.
[0219] S206. The image framework module returns a screenshot of the negative one screen display interface to the desktop module.
[0220] S207. The desktop module sends a second instruction to the negative one screen module.
[0221] The second instruction may be used to instruct closing of the negative one screen application.
[0222] S208. The negative one screen module closes the negative one screen application in response to the second instruction.
[0223] At this time, since the electronic device has closed the negative one screen application, the display interface of the electronic device no longer displays the negative one screen display interface. In one possible case, the electronic device can display an intermediate interface between the negative one screen display interface and the multi-tasking display interface, for example, Figure 12 As shown in (b), the background layer of the middle interface can display a screenshot of the above-mentioned negative one screen display interface.
[0224] S209: The desktop module sends a third instruction to the motion effect framework module.
[0225] The third instruction can be used to instruct the execution of a dynamic effect of entering the multi-tasking display interface, and the dynamic effect can be as follows: Figure 12 (b) to Figure 12 As shown in (d), the transparency of the screenshot of the negative one screen display interface (that is, the background layer of the middle interface) changes from 1 to 0 dynamically.
[0226] S210 : The motion effect framework module responds to the third instruction and sets the transparency of the screenshots of the multi-frame minus one screen display interface according to a preset step.
[0227] The specific process of setting the transparency of the screenshot of the multi-frame negative one screen display interface can be found in the above preset step-by-step setting. Figure 15 The above is described in the embodiment shown and will not be repeated here.
[0228] S211. The motion effect framework module sequentially returns to the desktop module a screenshot of the negative one screen display interface after multiple frames of transparency are set.
[0229] S212. The desktop module uses the screenshot of the negative one screen display interface with set transparency to cover the desktop, and obtains layer data covering the desktop.
[0230] The layer data covering the desktop can refer to the screenshot of the negative one screen display interface after setting the transparency on the main desktop, so that the background layer of the middle interface is the screenshot of the negative one screen display interface, rather than the display interface of the main desktop. The specific process of overlaying the desktop with the screenshot of the negative one screen display interface after setting the transparency can be seen in the above Figure 15 The embodiments shown are not described in detail here.
[0231] S213. The desktop module sends multiple frames of layer data covering the desktop to the image generation module in sequence.
[0232] S214: The layer generation module generates multiple frames of image data to be displayed based on the multiple frames of layer data covering the desktop.
[0233] The layer generation module may, upon receiving the layer data covering the desktop, sequentially merge the layer data covering the desktop with other layers on the display interface to generate image data to be displayed.
[0234] S215. The layer generation module sends multiple frames of image data to be displayed to the layer display module in sequence.
[0235] S214: The layer display module sequentially displays multiple frames of images to be displayed.
[0236] After receiving multiple frames of image data to be displayed, the layer display module can add the multiple frames of image data to be displayed to the cache queue, and then send the images to be displayed to the display screen in sequence according to the preset screen refresh rate.
[0237] It should be understood that, although the various steps in the flow chart in the above-described embodiment are shown in sequence according to the indication of the arrows, these steps are not necessarily performed in sequence according to the order indicated by the arrows. Unless clearly stated herein, the execution of these steps does not have strict order restrictions, and these steps can be performed in other orders. Moreover, at least a portion of the steps in the flow chart may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these sub-steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with at least a portion of other steps or sub-steps or stages of other steps.
[0238] It is understandable that in order to implement the above functions, the electronic device includes hardware and / or software modules corresponding to the execution of each function. In combination with the algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware 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 in combination with the embodiments, but such implementation should not be considered to be beyond the scope of this application.
[0239] The embodiment of the present application can divide the functional modules of the electronic device according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one module. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. It should be noted that the names of the modules in the embodiment of the present application are schematic and are not limited to the names of the modules in actual implementation.
[0240] Figure 18 A schematic structural diagram of a display device provided in an embodiment of the present application.
[0241] It should be understood that the display device 600 can perform Figures 13 to 17The display method shown; the display device 600 includes: an acquisition unit 610 and a processing unit 620.
[0242] The processing unit 620 is used to respond to the start operation of the first card on the negative one screen display interface, keep running the negative one screen, display the first interface, where the first interface is the display interface of the application corresponding to the first card, and then respond to the sliding operation on the first interface, obtain the sliding information of the sliding operation, and return to the negative one screen display interface when the sliding information meets the first preset condition.
[0243] The display device provided in this embodiment is used to execute the display method of the above embodiment. The technical principles and technical effects are similar and will not be described in detail here.
[0244] It should be noted that the display device 600 is implemented in the form of a functional unit. The term "unit" here can be implemented in the form of software and / or hardware, and is not specifically limited to this.
[0245] For example, a "unit" may be a software program, a hardware circuit, or a combination of the two that implements the aforementioned functionality. The hardware circuit may include an application specific integrated circuit (ASIC), an electronic circuit, a processor (e.g., a shared processor, a dedicated processor, or a group processor) and memory for executing one or more software or firmware programs, combined logic circuits, and / or other suitable components that support the described functionality.
[0246] Therefore, the units of each example described in the embodiments of this application can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0247] Figure 19 A schematic structural diagram of an electronic device provided in this application is shown. Figure 19 The dotted line in the figure indicates that the unit or module is optional. The electronic device 700 can be used to implement the display method described in the above method embodiment.
[0248] The electronic device 700 includes one or more processors 701, which can support the electronic device 700 to implement the display method in the method embodiment. The processor 701 can be a general-purpose processor or a special-purpose processor. For example, the processor 701 can be a central processing unit (CPU), a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, such as discrete gates, transistor logic devices, or discrete hardware components.
[0249] The processor 701 can be used to control the electronic device 700, execute software programs, and process data of the software programs. The electronic device 700 can also include a communication unit 705 to implement signal input (reception) and output (transmission).
[0250] For example, the electronic device 700 may be a chip, the communication unit 705 may be an input and / or output circuit of the chip, or the communication unit 705 may be a communication interface of the chip, and the chip may be a component of a terminal device or other electronic device.
[0251] For another example, the electronic device 700 may be a terminal device, and the communication unit 705 may be a transceiver of the terminal device, or the communication unit 705 may be a transceiver circuit of the terminal device.
[0252] The electronic device 700 may include one or more memories 702 on which a program 704 is stored. The program 704 can be executed by the processor 701 to generate instructions 703, so that the processor 701 executes the impedance matching method described in the above method embodiment according to the instructions 703.
[0253] Optionally, data may be stored in the memory 702. Optionally, the processor 701 may read data stored in the memory 702. The data may be stored at the same storage address as the program 704, or may be stored at a different storage address than the program 704.
[0254] The processor 701 and the memory 702 may be provided separately or integrated together; for example, they may be integrated on a system on chip (SOC) of a terminal device.
[0255] Exemplarily, the memory 702 can be used to store the relevant program 704 of the display method provided in the embodiment of the present application, and the processor 701 can be used to call the relevant program 704 of the display method stored in the memory 702 when displaying the interface, and execute the display method of the embodiment of the present application; including: responding to the start operation of the first card on the negative one screen display interface, keeping the negative one screen running, displaying the first interface, the first interface is the display interface of the application corresponding to the first card, and then responding to the sliding operation on the first interface, obtaining the sliding information of the sliding operation, and returning to the negative one screen display interface when the sliding information meets the first preset condition.
[0256] The present application also provides a computer program product, which, when executed by the processor 701, implements the display method described in any method embodiment of the present application.
[0257] The computer program product may be stored in the memory 702 , for example, a program 704 , which is converted into an executable target file that can be executed by the processor 701 after undergoing preprocessing, compilation, assembly, and linking.
[0258] The present application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a computer, implements the display method described in any method embodiment of the present application. The computer program can be a high-level language program or an executable target program.
[0259] The computer-readable storage medium is, for example, memory 702. Memory 702 may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM).
[0260] In this application, "at least one" means one or more, and "plurality" means two or more. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or plural.
[0261] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0262] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0263] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0264] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative; for example, the division of the units is merely a logical function division, and there may be other division methods in actual implementation; for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection of some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0265] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0266] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0267] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
Claims
1. A display method, characterized in that: The method comprises: In response to a first operation on a first card on the negative one screen display interface, keep running the negative one screen application and display a first interface, where the first interface is a display interface of a first application, and the first application is an application corresponding to the first card; In response to a sliding operation on the first interface, determining sliding information of the sliding operation; If the sliding information meets the first preset condition, returning to displaying the negative one screen display interface; If the sliding information satisfies the first preset condition, it indicates to exit the first application.
2. The method according to claim 1, characterized in that The method further comprises: If the sliding information meets the second preset condition, the multitasking interface is displayed.
3. The method according to claim 2, characterized in that The background layer of the multitasking interface is a screenshot of the negative one screen display interface.
4. The method according to claim 2 or 3, characterized in that If the sliding information satisfies a second preset condition, displaying a multitasking interface includes: If the sliding information satisfies the second preset condition, obtaining a screenshot image of the negative one screen display interface; The screenshot image of the negative one screen display interface is used as the background layer of the multi-tasking interface, and the multi-tasking interface is displayed.
5. The method according to claim 4, characterized in that The method of using the screenshot image of the negative one screen display interface as the background layer of the multi-tasking interface and displaying the multi-tasking interface includes: The screenshot image of the negative one-screen display interface is used as the background layer of the multi-tasking interface, and the multi-tasking interface is displayed according to a preset dynamic effect.
6. The method according to claim 4, characterized in that The preset dynamic effect includes that the transparency of the background layer in the multitasking interface changes from high to low as the sliding operation slides.
7. The method according to any one of claims 4 to 6, characterized in that If the sliding information satisfies the second preset condition, after obtaining a screenshot image of the negative one screen display interface, the method further includes: Close the negative one screen application.
8. The method according to any one of claims 1 to 7, characterized in that The first preset condition includes that the sliding information indicates that the sliding operation is a uniform motion, the starting point of the sliding operation is the bottom area of the display screen of the electronic device, and the sliding distance of the sliding operation is greater than a preset distance threshold.
9. The method according to any one of claims 1 to 8, characterized in that The second preset condition includes: the speed of the sliding operation indicated by the sliding information gradually slows down until the sliding stops, and the duration of the stop exceeds a preset duration threshold; or, the movement speeds on the electronic device corresponding to two adjacent frames of images are both less than a preset first speed threshold; or, the sliding speed corresponding to the current frame image is less than the second speed threshold, and the acceleration of the sliding speed corresponding to the current frame image is less than a third speed threshold.
10. The method according to any one of claims 1 to 9, characterized in that The method is applied to an electronic device, wherein the electronic device includes a desktop module and an image display module, and includes: In response to a first operation on a first card on the negative one screen display interface, the desktop module keeps running the negative one screen application and instructs the image display module to display the first interface; The desktop module is configured to determine sliding information of the sliding operation in response to the sliding operation on the first interface; The desktop module is used to instruct the image display module to return to displaying the negative one screen display interface when the sliding information meets a first preset condition.
11. The method according to claim 10, characterized in that The electronic device further includes an image frame module, and the method further includes: The desktop module instructs the image framework module to obtain a screenshot of the negative one screen display interface.
12. The method according to claim 10 or 11, characterized in that The electronic device further includes a motion effect framework module and an image generation module, and the method further includes: The desktop module instructs the motion effect framework module to set the transparency of the screenshots of the multi-frame negative one-screen display interface according to a preset step; The motion effect framework module returns a screenshot of the negative one screen display interface after multiple frames of transparency are set to the desktop module; The desktop module sends a plurality of screenshots of the negative one screen display interface with transparency set to the image generation module; The image generation module generates multiple frames of images to be displayed based on multiple frames of screenshots of the negative one-screen display interface after transparency is set.
13. The method according to claim 11 or 12, characterized in that The electronic device further includes a negative one screen module, and after the desktop module instructs the image frame module to obtain a screenshot of the negative one screen display interface, the method further includes: The desktop module instructs the negative one screen module to close the negative one screen application.
14. An electronic device, characterized in that: The electronic device comprises means for performing the method of claims 1 to 13.
15. An electronic device, characterized in that: include: one or more processors; Memory; and one or more computer programs, wherein the one or more computer programs are stored on the memory, and when the computer programs are executed by the one or more processors, the electronic device performs the method according to any one of claims 1 to 13.
16. A chip system, characterized in that: The chip system includes a processor for calling and running a computer program from a memory, so that an electronic device equipped with the chip system executes the method according to any one of claims 1 to 13.
17. A computer-readable storage medium comprising a computer program, characterized in that When the computer program is run on an electronic device, the electronic device is caused to perform the method according to any one of claims 1 to 13.
Citation Information
Patent Citations
A method and terminal for displaying when an application exits
CN111602107B
Control method and electronic equipment
CN116204088A
Information display method and device, storage medium and electronic equipment
CN117952134A