Interface display method, electronic device, storage medium and program product
By adjusting the view size of the dock bar and moving the icon position in the electronic device, the problem that the application icon arrangement in the dock bar is not in line with expectations is solved, and the user's operation efficiency and visual experience are improved.
Patent Information
- Application Number
- CN202410268455.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-06
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2044-03-06
AI Technical Summary
In electronic devices, when the position adjustment of the icons is applied in the dock bar, the prior art causes the arrangement to not meet expectations, affecting the user's drag operation efficiency.
By responding to user operations in the electronic device, when moving the first icon into the dock bar, the view size of the dock bar is gradually adjusted and the position of the second icon is dynamically moved so that its arrangement is in line with user expectations.
The interaction efficiency of users adjusting icon positions is improved, and the visual experience is improved through animation effects is avoided, thus avoiding blank areas and coverage problems caused by improper position adjustment in the prior art.
Smart Images

Figure CN118210413B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the technical field of terminal devices, and in particular to an interface display method, electronic device, storage medium, and program product. Background Art
[0002] With the rapid development of the Internet, electronic devices such as mobile phones, tablets, and computers have become indispensable tools in people's lives and work. Electronic devices usually have one or more applications installed, and users can use these applications to achieve rich application functions. The application icons of various applications are displayed on the desktop of the electronic device, and users can use the application icons as the entrance to open the relevant application.
[0003] As more and more applications are installed in electronic devices, the number of pages on the desktop is also increasing. In order to facilitate users to find application icons on the desktop, some electronic devices are equipped with a dock bar (i.e., dock bar) on the desktop. The dock bar can be used to set application icons of one or more applications, and users can move applications in the dock bar in or out by dragging application icons. When the electronic device controls the application icons to move in or out of the dock bar, the application icons in the dock bar will be arranged in an unexpected manner in a short period of time, affecting the human-computer interaction efficiency of users adjusting the icon positions. Summary of the invention
[0004] The embodiments of the present application provide an interface display method, an electronic device, a storage medium, and a program product. When the electronic device controls a first icon to move into a dock bar, the electronic device controls the display size of a first view of the dock bar to gradually increase, and then adjusts the position of a second icon so that the arrangement order of application icons in the dock bar is what the user expects, which is beneficial to improving the human-computer interaction efficiency of the user adjusting the icon position.
[0005] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:
[0006] In a first aspect, an interface display method is provided, which is applied to an electronic device, and the method includes:
[0007] A first interface is displayed, and in response to a first operation of a user on a first icon, after the first icon is moved to a display area corresponding to a first view, a display size of the first view is controlled to be adjusted from a first size to a first target size, wherein the first target size is larger than the first size, and during the size adjustment process of the first view, a display position of the second icon remains unchanged; after controlling the position movement of the second icon, a second interface is displayed, wherein a distance between a first display area displayed in the first view included in the second interface and a current position of the first icon is less than a distance threshold, a display area of the first display area can accommodate an application icon, and no application icon is displayed in the first display area; in response to the user stopping the triggering operation on the first icon, a third interface is displayed, wherein the first display area displayed in the third interface displays the first icon.
[0008] The first interface includes a first view, an area outside a display area corresponding to the first view includes a first icon, and a display area corresponding to the first view includes a second icon.
[0009] It can be understood that after the electronic device responds to the user's drag operation, controls the first icon to move to the display area of the first view, adjusts the display size of the first view, and then controls the position of the second icon to move, so that the arrangement order of the application icons in the dock bar is what the user expects, which is conducive to improving the human-computer interaction efficiency of the user adjusting the icon position.
[0010] As a possible implementation manner of the first aspect, before controlling the display size of the first view to be adjusted from the first size to the first target size, the method further includes:
[0011] The display size of the second view is controlled to be gradually adjusted from the second size to a second target size, the second target size is larger than the second size, and the first view is displayed in the second view.
[0012] In this way, the electronic device first controls the size of the second view to gradually increase, and then adjusts the size of the first view, moves the position of the second icon, and displays the display size change process of the dock bar with animation effects on the display screen, making the display effect more flexible.
[0013] As another possible implementation of the first aspect, the electronic device includes a first view control module and an animation executor, and before controlling the position of the second icon to move, the method further includes:
[0014] The first view control module determines the initial position information of the second icon, where the initial position information is the coordinate value of the second icon relative to the display screen before the first icon moves to the first view; the first view control module determines the target position information of the second icon; the first view control module determines the position change information of the second icon based on the target position information and the initial position information; the animation executor controls the position movement of the second icon based on the position change information of the second icon.
[0015] In this way, when the animation executor controls the movement of the second icon according to the position change information of the second icon, the movement process of the second icon is displayed in the display screen with animation effect, making the movement of the icon more vivid.
[0016] As another possible implementation of the first aspect, the electronic device includes a second view control module, a first view control module, and a view management adapter. Before controlling the display size of the first view to be adjusted from the first size to the first target size, the method further includes:
[0017] After the second view control module controls the display size of the second view to be adjusted to the second target size, it sends a first message to the view management adapter, where the first message is used to indicate that an application icon has been added to the display area corresponding to the second view; after receiving the first message, the view management adapter sends a second message to the first view control module, where the second message is used to instruct the first view control module to adjust the display size of the first view.
[0018] In this way, after the second view control module controls the size adjustment of the second view, the first view control module is notified through the view management adapter to adjust the display size of the first view, so that the size change process in the display area of the dock bar is more in line with user expectations.
[0019] As another possible implementation of the first aspect, displaying the first interface includes:
[0020] In response to a user powering on the electronic device or unlocking the screen, displaying a first interface; or,
[0021] In response to a user's start-up operation on a first application, a first interface is displayed.
[0022] It can be understood that the first interface can be an interface directly displayed by the electronic device after it is turned on or the screen is unlocked, or it can be an interface displayed after the first application of the electronic device is started. Among them, the first application can be a system application or a third-party application, which is not limited here.
[0023] In a second aspect, the present application provides an interface display method, applied to an electronic device, the method comprising:
[0024] The fourth interface is displayed, and in response to the user's second operation on the third icon, the third icon is moved to a display area outside the second view; in response to the user stopping the triggering operation on the third icon, the display size of the second view is controlled to remain unchanged, and the display size of the first view is controlled to be adjusted from the third size to the third target size, and the third target size is smaller than the third size; after controlling the position of the fourth icon to move, the fifth interface is displayed.
[0025] The fourth interface includes a first view and a second view, the first view is displayed in the second view, and the display area corresponding to the first view includes a third icon and a fourth icon.
[0026] In this way, after the electronic device detects that the third icon has moved to the display area outside the second view, it first controls the display size of the second view to remain unchanged, and after the display size of the first view is adjusted, the position of the fourth icon is moved, thereby avoiding the situation in the prior art where the display sizes of the first view and the second view are adjusted at the same time, resulting in the inability to fully display the fourth icon in the dock bar.
[0027] As a possible implementation manner of the second aspect, the interface display method may further include:
[0028] The display size of the second view is controlled to be gradually adjusted from a fourth size to a fourth target size, where the fourth target size is smaller than the fourth size.
[0029] In this way, after the electronic device controls the position of the fourth icon to move, it controls the display size of the second view to be reduced, thereby avoiding the situation where the fourth icon cannot be fully displayed in the dock bar.
[0030] As another possible implementation of the second aspect, the electronic device includes a first view control module and an animation executor, and controlling the position of the fourth icon to gradually move may include:
[0031] The first view control module determines initial position information of the fourth icon, where the initial position information is the coordinate value of the fourth icon relative to the display screen when it is displayed in the first view before the third icon moves out of the second view; the first view control module determines target position information of the fourth icon; the first view control module determines position change information of the fourth icon based on the target position information and the initial position information; the animation executor controls the position movement of the fourth icon based on the position change information of the fourth icon.
[0032] In this way, when the animation executor controls the movement of the fourth icon according to the position change information of the fourth icon, the movement process of the fourth icon is displayed in the display screen with animation effect, making the movement of the icon more vivid.
[0033] As another possible implementation manner of the second aspect, the electronic device includes a second view control module, a first view control module, and a view management adapter. Before controlling the display size of the first view to be adjusted from the third size to the third target size, the interface display method may further include:
[0034] After the second view control module controls the display size of the second view to remain unchanged, the second view control module sends a third message to the view management adapter, where the third message is used to indicate that the application icon is removed from the display area corresponding to the second view; after receiving the third message, the view management adapter sends a fourth message to the first view control module, where the fourth message is used to instruct the first view control module to adjust the display size of the first view.
[0035] In this way, while the second view control module controls the display size of the second view to remain unchanged, the first view control module is notified through the view management adapter to adjust the size of the first view so that the fourth icon can be fully displayed in the second view.
[0036] As another possible implementation manner of the second aspect, the electronic device includes a second view control module, which controls the display size of the second view to be gradually adjusted from a fourth size to a fourth target size, and the method includes:
[0037] After the second view control module controls the display size of the second view to be the fourth size for a preset time period, the display size of the second view is gradually adjusted from the fourth size to a fourth target size.
[0038] Among them, the preset duration can be a duration pre-set by the user. Within the preset duration, the electronic device controls the display size of the first view to be adjusted from the third size to the third target size, and moves the position of the fourth icon to the coordinate position corresponding to the target position information.
[0039] In this way, after the position of the fourth icon is moved, the second view control module adjusts the display size of the second view, avoiding the situation in the related art where the display sizes of the first view and the second view are adjusted simultaneously, resulting in the fourth icon being unable to be fully displayed in the dock.
[0040] As another possible implementation manner of the second aspect, displaying the fourth interface includes:
[0041] In response to a user powering on the electronic device or unlocking the screen, displaying a fourth interface; or,
[0042] In response to the user's start-up operation on the first application, a fourth interface is displayed.
[0043] It can be understood that the fourth interface can be an interface directly displayed by the electronic device after it is turned on or the screen is unlocked, or it can be an interface displayed after the first application of the electronic device is started. Among them, the first application can be a system application or a third-party application, which is not limited here.
[0044] In a third aspect, the present application provides an electronic device, comprising: a touch screen, the touch screen comprising a touch sensor and a display screen; one or more processors; a memory; wherein the memory stores one or more computer programs, the one or more computer programs comprising instructions, which, when executed by the electronic device, enable the electronic device to execute an interface display method as described in any one of the first or second aspects above.
[0045] In a fourth aspect, the present application provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed on an electronic device, the electronic device executes the interface display method as described in any one of the first aspect or the second aspect.
[0046] In a fifth aspect, the present application provides a computer program product, which includes computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the interface display method as described in any one of the first aspect or the second aspect.
[0047] It can be understood that the electronic device described in the third aspect, the computer storage medium described in the fourth aspect, and the computer program product described in the fifth aspect are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 This is an example diagram of moving an application icon into the dock bar in the prior art;
[0049] Figure 2 This is an example diagram of moving an application icon out of the dock bar in the prior art;
[0050] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0051] Figure 4 A software structure diagram of an electronic device provided in an embodiment of the present application;
[0052] Figure 5 An example diagram of the educational application startup process provided in an embodiment of the present application;
[0053] Figure 6 An example diagram of moving an application icon into the dock bar provided in an embodiment of the present application;
[0054] Figure 7 A flowchart of an interface display method provided in an embodiment of the present application;
[0055] Figure 8 An example diagram of moving an application icon out of the dock provided in an embodiment of the present application;
[0056] Fig. 9 A flowchart of another interface display method provided in an embodiment of the present application;
[0057] Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0058] The technical solution in the embodiment of the present application will be described below in conjunction with the drawings in the embodiment of the present application. In the description of the embodiment of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0059] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.
[0060] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0061] To facilitate understanding, the relevant terms involved in the embodiments of the present application are first introduced below.
[0062] The dock area can also be called the dock bar, which is the abbreviation of dockbar. It is a functional interface in a graphical user interface for starting and switching running applications. The dock bar is generally set at the bottom of the screen of the electronic device, which can accommodate a number of application icons. Of course, the dock bar can also be set at the top, left or right of the screen of the electronic device, etc. The position of the dock bar in the screen is not limited in the embodiment of the present application. In addition, for most electronic devices, no matter how the user switches the screen interface, the size of the dock bar and the application icons it contains on the screen interface will never change, and will always be displayed on the current interface. Therefore, the dock bar can facilitate users to quickly start the application corresponding to the application icon therein.
[0063] like Figure 1 The interface 101 shown in (a) includes a dock bar 102, and the dock bar 102 includes 6 application icons. When the electronic device detects that the user slides the display screen to the left or right, the electronic device responds to the user's sliding operation and switches the screen interface. The content displayed in the interface 101 changes, but the size of the dock bar included in the interface 101 and the application icons included in the dock bar remain unchanged.
[0064] It should be noted that, for some electronic devices that can display the negative one screen, when the user switches the interface of the electronic device to the negative one screen, the dock bar may not be displayed on the negative one screen.
[0065] It should be understood that "dock area" and "dock bar" are just some names used in the embodiments of the present application. The meanings they represent have been recorded in the embodiments of the present application, and their names do not constitute any limitation to the embodiments.
[0066] In the related art, the background effect of the dock bar is realized by the electronic device calling CardView, where CardView is a card layout control that inherits from the FrameLayout layout and adds effects such as rounded corners and shadows. It can be understood that the background of the dock bar corresponds to a CardView, which can include one or more RecyclerViews, which include one or more item views, and each item view corresponds to an application icon in the dock bar.
[0067] For example, Figure 1As shown in (a), the interface 101 of the electronic device includes a dock bar 102, and the electronic device implements the background display effect of the dock bar 102 by calling CardView. The electronic device can call RecyclerView1 and RecyclerView2 to implement the display area 1021 and area 1022 in the dock bar 102, and each of the areas 1021 and 1022 includes 3 item views. The application icons displayed in area 1021 can change, and the application icons displayed in area 1022 are system recommended applications and are fixed.
[0068] When a user drags an application icon on the desktop during use of an electronic device, the electronic device detects the user's dragging operation and moves the application icon into the dock bar in response to the user's dragging operation. Alternatively, the electronic device can move the application icon out of the dock bar in response to the user's dragging operation. When the electronic device moves the application icon into or out of the dock bar, the electronic device rearranges the dock bar.
[0069] In some embodiments, when the electronic device moves an application icon into the dock bar in response to a user's dragging operation, the electronic device controls the size of the dock bar to increase. However, the blank area displayed in the enlarged dock bar is not the display area corresponding to the application icon to be moved in. Only after the electronic device controls the position of the original application icon in the dock bar to move, the display area corresponding to the application icon to be moved is displayed, resulting in a poor user experience.
[0070] It can be understood that the position of the application icon in the dock bar is the relative coordinate position of the application icon relative to the dock bar. After the electronic device controls the size of the dock bar to increase, the position of the application icon in the dock bar relative to the dock bar does not change, resulting in the blank area that appears in the display area corresponding to the enlarged dock bar may not be the display area corresponding to the application icon to be moved in.
[0071] For example, Figure 1 This is an example diagram of moving an application icon into the dock bar in the prior art. Figure 1 As shown in (a), when a user drags the icon of application D on the desktop during the use of an electronic device, the electronic device detects the user's dragging operation and adjusts the position of the icon of application D on the desktop in response to the user's dragging operation. When the electronic device detects that the icon of application D is located in the area where the dock bar is located, the layout of the dock bar suddenly becomes larger. Compared with the dock bar 102, Figure 1The dock bar 104 displayed in the interface 103 shown in (b) becomes larger, and the area corresponding to the RecyclerView also changes from area 1021 to area 1041. However, the blank area displayed in area 1041 is not the area where the icon of application D is to be moved. Then, the electronic device controls each application icon in the dock bar to move to the corresponding position, such as Figure 1 In the interface 105 shown in (c), the dock bar 106 is displayed, and the application icons in the area 1061 of the dock bar 106 are in corresponding positions. After the electronic device detects that the user has finished dragging the icon of application D, in response to the user stopping the dragging operation, the electronic device controls the icon of application D to be displayed in the corresponding position in the dock bar. Figure 1 The dock bar 108 shown in (d) is displayed on the interface 107. The icons of application A, application B, application D, and application C are displayed in the area 1081 of the dock bar 108.
[0072] Similarly, when the electronic device moves the application icons in the dock bar out of the dock bar in response to the user's drag operation, the layout of the dock bar will change first, but the positions of the application icons in the dock bar have not moved, resulting in the problem of incomplete display of the icons in the dock bar.
[0073] For example, Figure 2 This is an example diagram of moving the application icon out of the dock bar in the prior art. Figure 2 As shown in (a), when a user uses an electronic device, area 202 in dock bar 201 displays icons corresponding to application A, application B, application D, and application C. When the user drags the icon of application D in the dock bar, the electronic device detects the user's dragging operation and adjusts the position of the icon of application D in response to the user's dragging operation. When the electronic device detects that the icon of application D is moved out of the dock bar, the electronic device controls dock bar 201 to shrink to Figure 2 The dock bar 204 shown in (b) and the control area 202 are reduced to area 203, showing Figure 2 The interface shown in (b) is Figure 2 As shown in (b), the size of the dock bar has been reduced, but the position of each application icon in the dock bar relative to the dock bar has not changed, resulting in the situation where application icons in the dock bar are covered. For example, the icon of application C is covered by the icon of the camera application. Then, the electronic device controls the position of the icon of application C to move, such as Figure 2As shown in (c), when the electronic device detects that the user drags the icon of application D, the electronic device controls the icon of application C to move, and the dock bar 205 can be displayed during the process of the icon of application C being moved. When the electronic device controls the icon of application C to move to the corresponding position, the electronic device displays Figure 2 The dock bar 206 shown in (d) in FIG.
[0074] In order to solve the above problems, an embodiment of the present application provides an interface display method, which is applied to an electronic device. During the process of the electronic device displaying a first interface, in response to a user's first operation on a first icon, the first icon is moved to a display area corresponding to a first view, and the display size of the first view is controlled to be adjusted from the first size to the first target size. After controlling the position of the second icon to move, a second interface is displayed. In response to the user stopping the triggering operation on the first icon, a third interface is displayed.
[0075] The distance between the first display area displayed in the first view included in the second interface and the current position of the first icon is less than the distance threshold, the display area of the first display area can accommodate an application icon, and no application icon is displayed in the first display area. The first display area displayed in the third interface displays the first icon.
[0076] It can be understood that, when the electronic device controls the application icon to move into the dock bar, the electronic device first controls the size of the first view corresponding to the dock bar to increase, and then controls the original application icon in the dock bar to move.
[0077] In other embodiments, during the process of the electronic device displaying the fourth interface, in response to the user's second operation on the third icon, the third icon is moved to a display area outside the second view; in response to the user stopping the triggering operation on the third icon, the display size of the second view is controlled to remain unchanged, and the display size of the first view is controlled to be adjusted from the third size to a third target size, and the third target size is smaller than the third size; after controlling the position of the fourth icon to move, the fifth interface is displayed.
[0078] After moving the application icon out of the dock bar, the electronic device controls the display size of the second view of the dock bar to remain unchanged, controls the display size of the first view to become smaller, and then controls the remaining application icons in the dock bar to move to corresponding target positions, and controls the display size of the second view to gradually decrease to the corresponding target size.
[0079] Exemplarily, the interface display method provided in the embodiments of the present application can be applied to mobile phones, tablet computers, personal computers (PCs), personal digital assistants (PDAs), smart watches, netbooks, wearable electronic devices, augmented reality (AR) devices, virtual reality (VR) devices, vehicle-mounted devices, smart cars and other electronic devices with display screens, and the embodiments of the present application do not impose any restrictions on this.
[0080] like Figure 3 As shown, Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0081] The electronic device 300 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 camera 190 and a display screen 191, etc.
[0082] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 300. In other embodiments of the present application, the electronic device 300 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0083] 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 processor (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), etc. Different processing units may be independent devices or integrated into one or more processors.
[0084] The controller may be the nerve center and command center of the electronic device 300. 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.
[0085] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0086] In some embodiments, the processor 110 may include one or more interfaces. The interface 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, etc.
[0087] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 300. In other embodiments of the present application, the electronic device 300 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0088] The charging management module 140 is used to receive charging input from a charger, where the charger can be a wireless charger or a wired charger.
[0089] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals.
[0090] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 300. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, etc. the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1.
[0091] The wireless communication module 160 can provide wireless communication solutions for application in the electronic device 300, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication technology (NFC), infrared technology (IR), etc.
[0092] The electronic device 300 implements the display function through a GPU, a display screen 191, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 191 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0093] The display screen 191 is used to display images, videos, etc. The display screen 191 includes a display panel.
[0094] The electronic device 300 can realize the shooting function through ISP, camera 190, video codec, GPU, display screen 191 and application processor.
[0095] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 300. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.
[0096] The internal memory 121 can be used to store computer executable program codes, and the executable program codes include instructions. The processor 110 executes various functional applications and data processing of the electronic device 300 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 300 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0097] The electronic device 300 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0098] The sensor module 180 may include a pressure sensor, a gyro sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.
[0099] Of course, the electronic device 300 may also include buttons, indicators, motors, etc., and the embodiments of the present application do not impose any restrictions on this.
[0100] The software system of the electronic device may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present invention takes the Android system of the layered architecture as an example to exemplify the software structure of the electronic device.
[0101] Figure 4 A software structure diagram of an electronic device provided in an embodiment of the present application.
[0102] It is understandable that the layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system may include an application layer (abbreviated as application layer), an application framework layer (abbreviated as framework layer), a system library, and a kernel layer.
[0103] The above application layer may include a series of application packages. The application package may include system applications and third-party applications. For example, Figure 4 As shown, the application package can include educational applications, of course, but also Figure 4 Applications not shown in the figure, such as gallery, calendar, music, short message, memo and weather programs.
[0104] It should be explained that educational applications can be system applications or third-party applications, and the types of educational applications are not limited in the embodiments of this application. Among them, system applications refer to applications that are set in electronic devices before leaving the factory. Third-party applications refer to applications that users install after downloading the installation package from an application store (or application market). For example, map applications, food delivery applications, reading applications (such as e-books), social applications, and travel applications.
[0105] The educational application may include an application D1, a drag monitoring module, a first view control module, a view management adapter, a second view control module, an animation executor, and the like.
[0106] The drag monitoring module is used to monitor the dragging state of the icon of the application D1 displayed in the educational application to trigger the corresponding drag event. For example, the drag event may include: drag start event (dragstart event), drag entry event (dragenter event), drag move event (draglocation event), drag drop event (dragdrop event), drag exit event (dragexit event) and drag stop event (dragstop event).
[0107] The second view control module is used to adjust the display size of the second view.
[0108] The view management adapter is used to manage the data of the application icons in the dock bar. For example, an application icon corresponds to a data object, and the view management adapter can determine that the number of application icons in the second view has changed according to the change in the number of data objects. The first view control module is used to adjust the display size of the second view.
[0109] The animation executor is used to display the display size change process of the first view or the second view with an animation effect, or to execute the movement process of the application icon.
[0110] The application framework layer provides an application programming interface (API) and a programming framework for the application programs in the application layer. The application framework layer includes some predefined functions.
[0111] like Figure 4 As shown, the application framework layer can include input management services (IMS) and, of course, Figure 4Modules not shown in the figure, such as window manager, content provider, view system, phone manager, resource manager, notification manager, etc.
[0112] like Figure 4 As shown, after the electronic device detects that the user touches an application icon in the touch screen, the corresponding touch parameters, such as the coordinates of the touch point, the touch time, etc., can be reported in real time to the input management service in the application framework layer through the touch driver of the kernel layer. The input management service can generate corresponding touch events according to the received touch parameters, such as action down events, action move events, and action up events. Furthermore, the input management service can send the generated touch events to the desktop application. After the desktop application obtains the latest touch event, it determines the state of the application icon. For example, if the desktop application receives the action move event N times in a row (N is an integer greater than 0), it means that the user is dragging the application icon to move, and the desktop application can determine that the state of the application icon is the drag state (i.e., the drag state). Subsequently, if the desktop application receives the action up event, it means that the user's finger has left the touch screen and the user has stopped the drag operation on the application icon.
[0113] Android Runtime includes core libraries and virtual machines. Android Runtime is responsible for scheduling and management of the Android system.
[0114] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.
[0115] The system library may 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.
[0116] The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, touch driver, audio driver and sensor driver.
[0117] The technical solutions involved in the following embodiments can all be implemented in the electronic device 300 having the above hardware structure and software architecture. The interface display method of the embodiment of the present application is exemplarily described below with reference to the accompanying drawings.
[0118] In an embodiment of the present application, a dock bar is provided in the display interface of the electronic device, and application icons of one or more applications can be set in the dock bar. The electronic device can control the application in the dock bar to move in or out in response to the user's triggering operation on the application icon.
[0119] In a scenario, when a user is using an electronic device, the electronic device detects a trigger operation of an application icon 1 (i.e., a first icon) in a display screen that is not in a dock bar, and determines that the application icon 1 is in a drag state. After the electronic device detects that the application icon 1 is dragged into the dock bar, the electronic device controls the display size of the second view of the dock bar to be gradually adjusted from size 1 (i.e., the second size) to size 2 (i.e., the second target size), wherein size 2 is greater than size 1. The size change process of the second view is displayed in an animation effect on the display screen of the electronic device. Then, the electronic device controls the display size of the first view of the dock bar to be adjusted from size 3 (i.e., the first size) to size 4 (i.e., the first target size), and displays the change process of the display size of the first view in an animation effect on the display screen. Wherein, size 4 is greater than size 3. Further, the electronic device controls the application icon 2 (i.e., the second icon) in the dock bar to gradually move to the corresponding position, and displays the movement process of the application icon 2 with an animation effect. When the electronic device detects that the user stops the drag operation on the application icon 1, the application icon 1 is controlled to move to the target position corresponding to the application icon 1 in the dock bar.
[0120] The second view is the display area corresponding to the dock bar, and the first view is the area in the dock bar where the application icons are displayed. For example, the second view may correspond to Figure 6 As shown in area 602, the first view may correspond to Figure 6 The area shown is 6021. The second view may include multiple sub-views, that is, multiple application icons may be displayed in the area corresponding to the second view.
[0121] In another scenario, when the user is using an electronic device, the electronic device detects the user's triggering operation on the application icon 3 (i.e., the third icon) in the dock bar, and determines that the application icon 3 is in a dragged state. After the electronic device detects that the application icon 3 is dragged out of the dock bar, it controls the display duration of the second view to remain unchanged, controls the display size of the first view of the dock bar to be adjusted from size 5 (i.e., the third size) to size 6 (i.e., the third target size), and displays the size change process of the first view with an animation effect. Among them, size 6 is smaller than size 5. After the electronic device controls the remaining application icons (i.e., the fourth icon) in the dock bar to gradually move to the corresponding positions, it gradually adjusts the display size of the second view of the dock bar from size 7 (i.e., the fourth size) to size 8 (i.e., the fourth target size), and displays the size change process of the second view with an animation effect. Among them, size 8 is smaller than size 7.
[0122] The dragging operation in the embodiments of the present application can be understood as a long press and slide operation. The dragging operation can be a dragging operation performed by a user's finger on the application icon to be dragged, or a dragging operation performed by a mouse or a touch pen on the application icon to be dragged, or other methods on the application icon to be dragged, which will not be listed here. For the convenience of description, the following uses the dragging operation of a user's finger on the application icon to be dragged as an example to exemplify the dragging of the application icon.
[0123] The following takes a tablet computer as an example. Figures 5 to 9 The process of moving the electronic device control application icon into and out of the dock is introduced in detail.
[0124] Exemplarily, the tablet computer detects a power-on operation or a screen unlocking operation by a user, and displays a Figure 5 The screen unlocking operation may be an operation in which the user slides the display screen in any direction, or double-clicks the display screen, or controls the tablet computer to unlock using voice, etc. The form of the unlocking operation is not limited in the embodiments of the present application.
[0125] The tablet computer detects a user triggering operation on the educational application 502 (i.e., the first application) in the interface 501, and in response to the user's triggering operation, displays Figure 5 Interface 503 shown in (b) of FIG. The interface 503 displays application icons of various applications, and the user can use the application icons as the entrance to the application to open the relevant application. A dock bar 504 is provided in the interface 503, and icons of application A1, application B1, and application C1 are provided in the dock bar 504. The display area outside the dock bar 504 in the interface 503 displays icons corresponding to application D1 and application E1.
[0126] In another exemplary embodiment, the tablet computer detects a power-on operation or an unlocking operation by a user, and in response to the power-on operation or the unlocking operation by the user, the tablet computer may directly display Figure 5 Interface 503 shown in (b).
[0127] Exemplarily, since the educational application can adjust the position of the application icon displayed in the interface 600 in response to the user's drag operation on the application icon displayed in the interface 600, when the educational application detects the user's drag operation on the icon of application D1 at time T1, in response to the drag operation, the educational application can control the icon of application D1 to move to the display area corresponding to the dock bar. During the time period from T1 to T2, the educational application controls the movement of the icon of application D1, and when the educational application detects that the icon of application D1 moves to the display area corresponding to the dock bar 602 at time T2, the interface 601 is displayed. At this time, the educational application controls the display area corresponding to the dock bar 602 to gradually widen, until the educational application stops controlling the size change process of the display area corresponding to the dock bar at time T3, and displays the interface 603. Among them, the width of the display area (i.e., the second view) corresponding to the dock bar 604 displayed in the interface 603 is X2, and the width corresponding to the area 6021 (i.e., the first view) is Y1. During the time period from T2 to T3, the display screen of the tablet computer displays a change process in which the width of the display area corresponding to the dock bar is gradually adjusted from X1 to a width of X2, where X2 is greater than X1.
[0128] Furthermore, when the educational application detects that the user is dragging the icon of application D1, the size of the educational application control area 6021 becomes wider, until the educational application stops the size change process of the control area 6021 at time T4, and displays interface 605. Among them, the interface 605 displays a dock bar 606, and the dock bar 606 includes area 6061. During the time period from T3 to T4, the display screen of the tablet computer displays the change process of the width of area 6021 from Y1 to width Y2, and Y2 is greater than Y1. For example, the width of area 6021 can only display 3 application icons, and the width of area 6061 can display 4 application icons, that is, the width of the display area corresponding to at least one application icon is increased in area 6061 relative to the width of area 6021.
[0129] Then, the education application detects that the user is still dragging the icon of application D1, and the education application controls the icons of application A1, application B1, and application C1 in the dock bar 606 to gradually move, until the education application stops controlling the movement of the icons of application A1, application B1, and application C1 at time T5, and displays interface 607. Among them, the positions corresponding to the icons of application A1, application B1, and application C1 in the dock bar 608 in interface 607 have changed compared to the positions corresponding to the icons of application A1, application B1, and application C1 in the dock bar 606. In the time period from T4 to T5, the education application controls the icons of application A1, application B1, and application C1 to gradually move from the corresponding positions in the dock bar 606 to the corresponding positions in the dock bar 608.
[0130] For example, assume that the coordinates of the icon of application A1 at time T4 are (x1, y1), and the coordinates of the icon of application A1 at time T5 are (x2, y2), wherein the values of x1 and x2 are different, and the values of y1 and y2 are different. During the time period from T4 to T5, the display screen of the tablet computer shows the movement process of the icon of application A1 from the coordinate point (x1, y1) to the coordinate point (x2, y2).
[0131] Furthermore, when the education application detects at time T5 that the icon of application D1 is located in the display area corresponding to the dock bar, and the user stops dragging the icon of application D1 and stops pressing the icon of application D1, in response to the user stopping pressing the icon of application D1, the education application controls the movement of the icon of application D1, and moves it to the corresponding area in the dock bar at time T6, and displays interface 609, and dock bar 610 is displayed in interface 609, and each application icon after the icon of application D1 is added is displayed in dock bar 610. During the time period from T5 to T6, the education application controls the icon of application D1 to gradually move from the position in interface 607 to the position of the icon of application D1 in interface 609, and the display screen displays the movement process of the icon of application D1 during this time period.
[0132] In an embodiment of the present application, the educational application detects a user's dragging operation (first operation) on a first icon (for example, the icon of application D1). In response to the user's dragging operation, after the educational application determines that the drag monitoring module triggers a drag entry event, the educational application controls the size of the display area corresponding to the dock bar (second view) to gradually adjust from size 1 to size 2, and then controls the size of the display area corresponding to the first view to adjust from size 3 to size 4. Then, the educational application controls each application icon in the dock bar to gradually move to a corresponding position, and displays the movement process of each application icon with an animation effect. When the educational application detects that the user stops dragging the first icon, it controls the first icon to gradually move to the corresponding target position in the dock bar, and displays the movement process of the first icon with an animation effect. The following is combined with Figure 7 The above process is introduced in detail. Figure 7 A flowchart of an interface display method provided in an embodiment of the present application is shown as follows: Figure 7 As shown, the method may include steps 700 to 712 .
[0133] Step 700: The educational application detects that the user drags a first icon into an area corresponding to a first view.
[0134] In the embodiment of the present application, the educational application can determine that the first icon is dragged into the area corresponding to the first view according to the coordinate position of the first icon and the coordinate position of the first view.
[0135] Exemplarily, the first icon may be Figure 6 In the application D1 icon, the first view may be the display area corresponding to the dock bar 6021.
[0136] In the embodiment of the present application, the touch screen of the tablet computer detects the trigger operation of the user input, and the touch screen can report the corresponding touch parameters, such as the coordinates of the touch point, the touch time, etc., to the input management service in real time through the touch driver. The input management service can generate corresponding touch events according to the received touch parameters, such as action down events, action move events, and action up events. Then, the input management service distributes the generated touch events to the educational application, and the educational application determines the dragging state of the application icon during the movement in real time.
[0137] In some embodiments, if the educational application receives a series of action move events after receiving the action down event, indicating that the user's finger dragged the application icon to move, the educational application can determine that the current state of the application icon is the drag state (i.e., the dragging state). In the embodiment of the present application, the educational application can monitor the user's dragging process of the application icon in real time through a registered drag monitoring module (such as DockItemDragListener) to trigger the corresponding drag event.
[0138] Exemplarily, the educational application detects a user's long press operation on the icon of application D1, and the touch screen can report the corresponding touch parameters (for example, the coordinates of the touch point or the coordinate position of the icon of application D1) to the input management service in real time through the touch driver. The input management service can generate an action down event based on the received touch parameters, and the input management service reports the generated action down event and touch parameters to the drag monitoring module. The drag monitoring module triggers a drag start event (dragstart event) based on the received action down event and touch parameters. After the educational application detects the user's drag operation on the icon of application D1, the input management service generates an actionmove event based on the received touch parameters, and the input management service reports the action move event to the drag monitoring module, which triggers a drag event.
[0139] After that, the input management service reports the action move event and touch parameters to the drag monitoring module in real time. When the drag monitoring module determines that the icon of application D1 is dragged to the display area corresponding to the dock bar according to the action move event and touch parameters reported by the input management service, the drag monitoring module triggers a drag entry event (dragenter event). When the drag monitoring module determines that the icon of application D1 is moved in the area corresponding to the dock bar according to the action move event and touch parameters reported by the input management service, the drag monitoring module triggers a drag move event (draglocation event).
[0140] The educational application detects that the user stops pressing the icon of application D1, and the touch screen can report the corresponding touch parameters to the input management service in real time through the touch driver. The input management service generates an action up event based on the received touch parameters. When the drag monitoring module receives the action up event reported by the input management service and determines that the icon of application D1 moves in the area corresponding to the dock bar, the drag monitoring module triggers a drag drop event (dragdrop event). Thereafter, the drag monitoring module continues to trigger a drag exit event (dragexit event) and a drag stop event (dragstop event).
[0141] For example, the touch event sent by the input management service to the education application is an action up event, indicating that the user's finger has left the touch screen, that is, the user has stopped dragging the icon of application D1. In response to the action up event, the education application controls the icon of application D1 to move to the corresponding area in the dock bar and displays Figure 6 Desktop 609 in.
[0142] Step 701: The drag monitoring module triggers a drag entry event.
[0143] For example, see Figure 6 When the education application determines that the icon of application D1 is dragged to area 602, the drag listening module triggers a dragenter event. The education application calls the DockItemDragListener function to trigger the dragenter event.
[0144] Step 702: The drag monitoring module sends a notification to the second view control module to display the size change process of the second view with animation effect.
[0145] For example, the educational application may call the startDockBackgroudAnim function to notify the second view (eg, CardView) to display the size change process of the second view with an animation effect. Here, the second view may be the parent view (ParentView) of the first view.
[0146] Step 703 : the second view control module controls the size of the second view to gradually increase from size 1 to size 2 .
[0147] The second view control module controls the size of the second view to gradually increase, and displays the process of the display size of the second view gradually increasing from size 1 (i.e., the second size) to size 2 (i.e., the second target size) with an animation effect. Figure 6 The size of the dock bar 602 shown in the figure gradually increases until it is adjusted to the size of the dock bar 604, and the process of the dock bar 602 gradually adjusting to the dock bar 604 is shown on the display screen of the tablet computer during the time period from T2 to T3.
[0148] Step 704: The second view control module sends an icon adding message to the view management adapter.
[0149] The icon addition message is used to indicate that an application icon has been added to the dock.
[0150] Exemplarily, after the second view control module calls the OnAnimationEnd function to determine that the size change process of the second view is completed, the second view control module may call the notifyItemInserted function to send an icon addition message to the view management adapter (HomeDockAdapter).
[0151] It can be understood that when the educational application determines that the first icon is dragged into the first view, the educational application determines that an application icon is added to the second view. The educational application can control the second view control module to send an icon addition message to the view management adapter.
[0152] Step 705: The view management adapter determines that an application icon is added to the second view.
[0153] Step 706: The view management adapter sends a re-layout notification to the first view control module.
[0154] In the embodiment of the present application, the view management adapter determines that an application icon is added to the second view, and the view management adapter determines that the size of the second view needs to be adjusted. The view management adapter calls the requestLayout function to send a re-layout notification to the first view (for example, HomeDockView) to adjust the size of the first view (for example, Figure 6The size of the area 6021 in the first view. The type of the first view may be RecyclerView.
[0155] Step 707: The first view control module determines initial position information of the second icon.
[0156] The second icon is the original application icon in the second view before the first icon is dragged to the second view. Figure 5 The initial position information is the coordinate value of the second icon relative to the display screen before the first icon moves to the first view. Exemplarily, the first view control module can call dispatchLayoutStep1 to determine Figure 6 Initial position information corresponding to the icons of application A1, application B1, and application C1 in the middle area 6021. For example, the first view control module determines that the position of the icon of application A1 relative to the dock bar is position 1, the position of the icon of application B1 relative to the dock bar is position 2, and the position of the icon of application C1 relative to the dock bar is position 3.
[0157] It should be explained that compared with the related art in which the position information of the application icon in the dock bar is the coordinate information of the application icon relative to the dock bar, in the embodiment of the present application, the position information of the application icon is the coordinate information of the application icon relative to the display screen, thereby avoiding the situation in which the position of the application icon moves as the size of the dock bar changes.
[0158] The first view control module stores the initial position information of the second icon in the storage module. Exemplarily, the first view control module can call the addToPreLayout function to send the initial position information of the second icon to the storage module (ViewInfoStore) to store the initial position information of the second icon in the storage module. Wherein, ViewInfoStore can be a variable of RecyclerView, which is used to store the position information before and after the subview moves.
[0159] Step 708 : The first view control module controls the size of the first view to increase from size 3 to size 4 .
[0160] Exemplarily, the first view control module may call the dispatchLayoutStep2 function to control the size of the first view to increase from size 3 to size 4. The size 4 is larger than the size 3.
[0161] The first view control module calls the dispatchLayoutStep2 function to Figure 6 The area shown in 6021 is adjusted to Figure 6Area 6061 shown in .
[0162] Step 709: The first view control module determines target position information of the second icon.
[0163] The target position information may be the position of the second icon to be displayed in the first view according to the current position of the first icon. The target position information of the second icon is different from the initial position information. The target position information of the second icon is the coordinate information of the second icon after the first icon is added to the second view and after the second icon moves. For example, Figure 6 The display area of the blank area (i.e., the first display area) included in the middle area 608 can accommodate one application icon, and no application icon is displayed in the first display area. After the first view control module determines that the icon of application D1 is located at the position in the interface 607, it determines that the position of the icon of application D1 to be moved in relative to the dock bar is position 3.
[0164] Exemplarily, the first view control module may call dispatchLayoutStep3 to determine the target position information corresponding to the icons of application A1, application B1, and application C1. At this time, the first view control module determines that the position of the icon of application A1 relative to the dock bar is position 1, the position of the icon of application B1 relative to the dock bar is position 2, and the position of the icon of application C1 relative to the dock bar is position 4.
[0165] First view Then, the first view control module stores the target position information of the second icon. The first view control module can call the addToPreLayout function to send the target position information of the second icon to the storage module (ViewInfoStore).
[0166] Step 710: The first view control module determines position change information of the second icon according to the initial position information and the target position information.
[0167] The position change information refers to the difference between the coordinate value of the application icon before the position is moved and the coordinate value of the application icon after the position is moved.
[0168] For example, the first view control module determines that the initial position information of the icon of application A1 is (x1, y1), the target position information is (x2, y2), and the first view control module calculates that the position change information of the icon of application A1 is (x2-x1, y2-y1).
[0169] Step 711: The first view control module sends position change information of the second icon to the animation executor.
[0170] First View Exemplarily, the first view control module calls the animateAppearance function to send animation information to the animation executor (eg, ItemAnimator).
[0171] Step 712: The animation executor controls the second icon to move according to the position change information.
[0172] For example, the animation executor may call the animateMove function to execute the process of moving the second icon. Figure 6 The position corresponding to the icon of application A1 in the middle area 6061 is moved to Figure 6 The position corresponding to the application A1 in the area 608 shown in FIG. 6 is displayed, and the moving process of the icon of the application A1 is displayed with an animation effect.
[0173] After the animation executor determines that the second icon moves to the position corresponding to the target position information, the animation executor may call the animateAdd function to add a blank icon to the first view, and the blank icon is invisible to the user.
[0174] Furthermore, when the educational application detects that the user stops pressing the icon of application D1, the touch screen can report the corresponding touch parameters to the input management service in real time through the touch driver, and the input management service can generate an action up event based on the received touch parameters. When the drag monitoring module receives the action up event reported by the input management service, the drag monitoring module triggers a drag drop event (dragdrop event). The educational application controls the icon of application D1 to move to the corresponding target position, and displays the movement process of the icon of application D1 on the display screen.
[0175] For example, the animation executor controls at time T5 Figure 6 The icon of application D1 shown in the middle interface 607 moves from the current position to the position corresponding to the icon of application D1 shown in the interface 609, and the moving process of the icon of application D1 is displayed on the display screen with animation effect during the time period from T5 to T6.
[0176] In the embodiment of the present application, after the educational application controls the first icon to move into the display area corresponding to the dock bar, the educational application first controls the display size of the second view of the dock bar to gradually increase, and then controls the display size of the first view to increase. Then, after the educational application gradually moves the second icon to the corresponding target position, it controls the first icon to gradually move into the target position in the dock bar. Since the size change process of the first view and the second view, as well as the movement process of the application icon, is displayed with animation effects, the visual effect of the user is improved.
[0177] Figure 8 An example diagram of an application icon being moved out of the dock bar provided in an embodiment of the present application. A display area 802 corresponding to the dock bar is provided in the interface 801 displayed on the tablet computer, and the display area 802 corresponding to the dock bar includes a display area 8021 in which icons of application A1, application B1, application D1, and application C1 are provided. An icon corresponding to application E1 is displayed in the display area outside the dock bar in interface 801. When the educational application detects a user's drag operation on the icon of application D1 at time T1, in response to the drag operation, the educational application can control the icon of application D1 to move out of the display area corresponding to the dock bar. When the educational application determines at time T2 that the icon of application D1 is moved out of the display area corresponding to the dock bar, interface 803 is displayed, and a display area 804 corresponding to the dock bar is provided in interface 803. The display area 804 corresponding to the dock bar does not include the icon of application D1. The icon of application D1 is displayed in the display area outside the dock bar in interface 803. During the time period from T1 to T2, the education application controls the icon of application D1 to move out of the dock, and the display screen of the tablet computer displays the moving process of the icon of application D1.
[0178] For example, the touch event sent by the input management service to the education application is an action up event, indicating that the user's finger has left the touch screen, that is, the user has stopped dragging the icon of application D1. In response to the action up event, the education application controls the icon of application D1 to move out of the corresponding area in the dock bar and displays Figure 8 Interface 803 shown in .
[0179] Furthermore, the educational application starts to control the size of area 8021 in the dock to become narrower from time T2, until time T3 when the educational application stops controlling the size change process of area 8021 and displays area 8061 in interface 805. Among them, the width corresponding to area 8021 displayed in interface 803 is M1, the width corresponding to area 8061 in interface 805 is M2, and M2 is smaller than M1. During the time period from T2 to T3, the width of area 8021 displayed on the display screen of the tablet computer is adjusted from M1 to the width M2 corresponding to area 8061. During the time period from T2 to T3, the size of the display area corresponding to the dock bar remains unchanged, that is, Figure 8 The display area 804 and the display area 806 are the same size.
[0180] Furthermore, the educational application starts to control the gradual movement of the icons of applications A1, B1 and C1 in the display area 806 corresponding to the dock bar from time T3, until the educational application stops controlling the movement of the icons of applications A1, B1 and C1 at time T4, and displays interface 807 at time T4. During the time period from T3 to T4, the display screen of the tablet computer displays the movement process of the icons of applications A1, B1 and C1. Interface 807 displays a display area 808 corresponding to the dock bar, and the positions of the icons of applications A1, B1 and C1 in the display area 808 corresponding to the dock bar are different from the positions of the icons of applications A1, B1 and C1 in the display area 806 corresponding to the dock bar.
[0181] Then, the educational application starts to control the size of the display area 808 corresponding to the dock bar to gradually decrease from time T4, until the educational application stops controlling the size change of the dock bar at time T5 and displays interface 809. The interface 809 displays the display area 810 corresponding to the dock bar after the size adjustment. During the time period from T4 to T5, the size change process of the display area corresponding to the dock bar is displayed on the display screen of the tablet computer. For example, at time T4, the educational application determines that the width of the display area corresponding to the dock bar is N1, and the educational application determines that the size of the dock bar gradually decreases, until time T5, the educational application determines that the width of the display area corresponding to the dock bar is adjusted to N2. N2 is less than N1. It should be explained that the above Figure 5 , Figure 6 and Figure 8 The interface in the figure is only shown as an example. In actual scenarios, the interface actually displayed on the tablet computer shall prevail and is not limited here.
[0182] In an embodiment of the present application, the educational application detects that the user drags the third icon out of the second view and stops pressing the third icon. In response to the user's operation, after the educational application determines that the drag monitoring module triggers a drag and drop event, the educational application controls the display size of the second view of the dock bar to remain unchanged, controls the display size of the first view to be adjusted from size 5 (i.e., the third size) to size 6 (i.e., the third target size), and then controls each application icon in the dock bar to gradually move to the corresponding target position, and displays the movement process of each application icon with an animation effect. Then, the educational application controls the size of the display area corresponding to the second view to gradually adjust from size 7 (i.e., the fourth size) to size 8 (i.e., the fourth target size). Fig. 9 A flow chart of another interface display method provided in an embodiment of the present application is shown as follows: Fig. 9 As shown, the method may include steps 900 to 914.
[0183] Step 900: The educational application detects that the user stops pressing the third icon.
[0184] The third icon is an application icon set in the dock bar and to be removed from the dock bar. Figure 8 The icon of application D1 is displayed in the display area 802 corresponding to the dock bar.
[0185] Step 901: The drag monitoring module triggers a drag and drop event.
[0186] Step 902: The drag monitoring module sends a notification to the second view control module to lock the size of the second view.
[0187] Step 903: The second view control module determines to lock the size of the second view.
[0188] In the embodiment of the present application, after receiving the notification of locking the size of the second view, the second view control module can set the size of the second view to a fixed value to ensure that the size of the second view remains unchanged. For example, assuming that the second view control module determines that the height of the second view is 20 pixels and the width is 500 pixels, the second view control module controls the height of the second view to be 20 pixels and the width to remain unchanged at 500 pixels.
[0189] For example, the educational application detects that the user Figure 8 The icon of application D1 in interface 801 is moved to Figure 8 The position in the interface 803 in the education application is detected by the user to stop pressing the icon of the application D1, and the drag monitoring module triggers a drag and drop event. The drag monitoring module sends a notification to the second view control module to lock the size of the display area 804 corresponding to the dock bar, and the second view control module controls the display area 804 corresponding to the dock bar to keep the current size unchanged.
[0190] Step 904: The drag monitoring module sends an icon removal notification to the view management adapter.
[0191] Exemplarily, the drag monitoring module may call the notifyItemRemoved function to send an icon removal notification message to the view management adapter (HomeDockAdapter).
[0192] When the educational application responds to the user's drag operation, Figure 8 The icon of application D1 in the dock bar is moved out of the display area 802 corresponding to the dock bar, and the display Figure 8When the display area 804 corresponding to the dock bar shown in , the drag monitoring module can call the notifyItemRemoved function to send an icon removal message to the view management adapter.
[0193] Step 905: The view management adapter determines that the application icon is removed from the second view.
[0194] Step 906: The view management adapter sends a re-layout notification to the first view control module.
[0195] Exemplarily, the view manager adapter determines that the number of application icons in the dock bar decreases, the view manager adapter determines that the application icons are removed from the dock bar, and sends a re-layout notification to the first view control module, so that the first view control module adjusts the size of the first view.
[0196] Step 907: The first view control module determines initial position information of the fourth icon.
[0197] The fourth icon is the remaining application icon after the third icon is removed from the dock. Figure 8 The icons of application A1, application B1, and application C1 displayed in the display area 804 corresponding to the dock bar in are all fourth icons.
[0198] The initial position information of the fourth icon is the coordinate value corresponding to the fourth icon when it is displayed in the dock bar before the third icon is moved out of the second view. For example, the coordinate value corresponding to the icon of application A1 displayed in the display area 804 corresponding to the dock bar is the initial position information of the icon of application A1. Figure 8 Initial position information corresponding to the icons of application A1, application B1, and application C1 displayed in the display area 804 corresponding to the dock bar.
[0199] After determining the initial position information of the fourth icon, the first view control module may store the initial position information of the fourth icon. Exemplarily, the first view control module may call the addToPreLayout function to send the initial position information of the fourth icon to the storage module (ViewInfoStore).
[0200] Step 908 : The first view control module controls the display size of the first view to be adjusted from size 5 to size 6 .
[0201] For example, the first view control module may call the dispatchLayoutStep2 function to control the display size of the first view to be adjusted from size 5 to size 6. Wherein, size 6 is smaller than size 5. The first view control module calls the dispatchLayoutStep2 function at time T2 to Figure 8 The size of the area 8021 in the display is adjusted until the size adjustment process of the area 8021 is stopped at time T3. Figure 8 The area 8061 shown in .
[0202] Step 909: The first view control module determines target position information of the fourth icon.
[0203] The target position information of the fourth icon is the coordinate value of the fourth icon after the third icon is removed from the second view and the position of the fourth icon is adjusted. Figure 8 The coordinate value of each application icon in the display area 808 corresponding to the dock bar is the target position information of each application icon.
[0204] Exemplarily, the first view control module may call dispatchLayoutStep3 to determine target location information corresponding to the icons of application A1, application B1, and application C1.
[0205] After the first view control module determines the target position information of the fourth icon, the first view control module sends the target position information to the storage module to store the target position information. Exemplarily, the first view control module can call the addToPreLayout function to send the target position information of the fourth icon to the storage module (ViewInfoStore).
[0206] Step 910: The first view control module determines position change information of the fourth icon according to the initial position information and the target position information.
[0207] Step 911: The first view control module sends position change information of the fourth icon to the animation executor.
[0208] Exemplarily, the first view control module calls the animateDisappearance function to send the position change information of the fourth icon to the animation executor (eg, ItemAnimator).
[0209] Step 912: The animation executor controls the fourth icon to move according to the position change information.
[0210] For example, the animation executor may call the animateMove function to move the fourth icon according to the position change information of the fourth icon. For example, the animation executor may call the animateMove function at time T3 to move the fourth icon. Figure 8 The position of the icon of application A1 in the display area 806 corresponding to the dock bar is changed until the icon of application A1 is moved to the Figure 8 The position corresponding to the icon of application A1 in the display area 808 corresponding to the dock bar is displayed, and the moving process of the icon of application A1 is displayed on the display screen with animation effect during the time period from T3 to T4.
[0211] Step 913: The drag monitoring module sends a notification to the second view control module to display the size change process of the second view with animation effect.
[0212] Exemplarily, the drag monitoring module calls the startDockBackgroundAnim function to send a notification to the second view control module to display the size change process of the second view with an animation effect.
[0213] It should be explained that step 913 and the above-mentioned step 902 are steps executed in parallel, that is, the drag monitoring module sends a notification to the second view control module to lock the size of the second view, and sends a notification to display the size change process of the second view with animation effects. These are executed simultaneously. However, when the drag monitoring module sends a notification to the second view control module to display the size change process of the second view with animation effects, a delayed execution instruction is sent to instruct the second view control module to execute the size change process of the second view after a delay of a preset time. Among them, the preset time is a pre-set empirical time, within which the educational application has controlled the size change of the first view to end, and has controlled the fourth icon to complete the position movement process. For example, the preset time can be 200ms, 300ms, and so on.
[0214] Exemplarily, the second view control module calls the StartAnimDelay function to delay for a preset time and then executes the process of controlling the size change of the second view.
[0215] Step 914 : The second view control module controls the display size of the second view to be gradually adjusted from size 7 to size 8 .
[0216] Exemplarily, the second view control module calls the requestLayout function to control the second view to be re-layouted. Figure 8As shown, the second view control module calls the requestLayout function at time T4 to adjust the size of the display area 808 corresponding to the dock bar, and stops the size adjustment process of the dock bar at time T5, and displays the display area 810 corresponding to the dock bar after the size adjustment.
[0217] Exemplarily, the second view control module calls the doAnimator function to display the size change process of the second view with an animation effect. Exemplarily, the second view control module calls the doAnimator function to display the size change process of the display area 808 corresponding to the dock bar being adjusted to the size corresponding to the display area 810 corresponding to the dock bar on the display screen.
[0218] In the embodiment of the present application, after the education application controls the first icon to move out of the display area corresponding to the dock bar, the education application controls the size of the first view in the dock bar to become smaller after locking the size of the second view in the dock bar, and then gradually moves the fourth icon to the corresponding target position, and then controls the size of the second view to gradually become smaller, thereby avoiding the problem in the related art that the second view changes with the size of the first view during the size change of the dock bar, resulting in the inability to fully display the application icon during the size change of the dock bar. Since the movement process of the second view, the first view and the application icon is displayed in an animation effect on the display screen of the tablet computer, the visual effect of the user is improved.
[0219] like Fig.10 As shown, an embodiment of the present application discloses an electronic device, which may be the mobile phone mentioned above. The electronic device may specifically include: a touch screen 1001, wherein the touch screen 1001 includes a touch sensor 1006 and a display screen 1007; one or more processors 1002; a memory 1003; one or more application programs (not shown); and one or more computer programs 1004, and the above-mentioned components may be connected via one or more communication buses 1005. Among them, the above-mentioned one or more computer programs 1004 are stored in the above-mentioned memory 1003 and are configured to be executed by the one or more processors 1002, and the one or more computer programs 1004 include instructions, which may be used to execute the relevant steps in the above-mentioned embodiment.
[0220] It is understandable that, in order to realize the above functions, the above-mentioned electronic devices, etc. include hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the embodiments of 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. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the embodiments of the present invention.
[0221] The embodiment of the present application can divide the functional modules of the above-mentioned electronic device etc. according to the above-mentioned method example. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present invention is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0222] In the case of dividing each functional module according to each function, a possible composition diagram of the electronic device involved in the above embodiment, the electronic device may include: a display unit, a transmission unit and a processing unit, etc. It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module, and will not be repeated here.
[0223] The embodiment of the present application also provides an electronic device, including one or more processors and one or more memories. The one or more memories are coupled to the one or more processors, and the one or more memories are used to store computer program codes, and the computer program codes include computer instructions. When the one or more processors execute the computer instructions, the electronic device executes the above-mentioned related method steps to implement the interface display method in the above-mentioned embodiment.
[0224] An embodiment of the present application also provides a computer-readable storage medium, in which computer instructions are stored. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the interface display method in the above-mentioned embodiment.
[0225] An embodiment of the present application further provides a computer program product, which includes computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the interface display method in the above-mentioned embodiment.
[0226] In addition, an embodiment of the present application also provides a device, which can specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer execution instructions, and when the device is running, the processor can execute the computer execution instructions stored in the memory so that the device executes the interface display method executed by the electronic device in the above-mentioned method embodiments.
[0227] Among them, the electronic device, computer-readable storage medium, computer program product or device provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here.
[0228] Through the description of the above implementation methods, technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0229] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as flash memory, mobile hard disk, read-only memory, random access memory, disk or optical disk.
[0230] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. An interface display method, characterized in that: Applied to electronic equipment, the method comprises: Displaying a first interface, the first interface includes a first view, an area outside a display area corresponding to the first view includes a first icon, and the display area corresponding to the first view includes a second icon; In response to a first operation of the user on the first icon, after the first icon is moved to a display area corresponding to the first view, the display size of the second view is controlled to be gradually adjusted from a second size to a second target size, the second target size is larger than the second size, and the first view is displayed in the second view; Controlling the display size of the first view to be adjusted from a first size to a first target size, where the first target size is larger than the first size, and during the size adjustment process of the first view, the display position of the second icon remains unchanged; After controlling the position of the second icon to move, a second interface is displayed, wherein the distance between the first display area displayed in the first view included in the second interface and the current position of the first icon is less than a distance threshold, the display area of the first display area can accommodate one application icon, and no application icon is displayed in the first display area; In response to the user stopping the triggering operation on the first icon, a third interface is displayed, and the first display area displayed in the third interface displays the first icon.
2. The method according to claim 1, characterized in that The electronic device includes a first view control module and an animation executor. Before controlling the position of the second icon to move, the method further includes: The first view control module determines initial position information of the second icon, where the initial position information is a coordinate value of the second icon relative to the display screen before the first icon moves to the first view; The first view control module determines target position information of the second icon; The first view control module determines the position change information of the second icon according to the target position information and the initial position information; The animation executor controls the movement of the second icon according to the position change information of the second icon.
3. The method according to claim 1 or 2, characterized in that: The electronic device includes a second view control module, a first view control module and a view management adapter. Before controlling the display size of the first view to be adjusted from the first size to the first target size, the method further includes: After the second view control module controls the display size of the second view to be adjusted to the second target size, the first view control module sends a first message to the view management adapter, where the first message is used to indicate that an application icon is added to the display area corresponding to the second view; After receiving the first message, the view management adapter sends a second message to the first view control module, where the second message is used to instruct the first view control module to adjust the display size of the first view.
4. The method according to claim 1 or 2, characterized in that: The displaying of the first interface includes: In response to the user powering on the electronic device or unlocking the screen, displaying the first interface; or, In response to the user starting the first application, the first interface is displayed.
5. An interface display method, characterized in that: Applied to electronic equipment, the method comprises: displaying a fourth interface, the fourth interface including a first view and a second view, the first view being displayed within the second view, and a display area corresponding to the first view including a third icon and a fourth icon; In response to a second operation of the user on the third icon, moving the third icon to a display area outside the second view; In response to the user stopping the triggering operation on the third icon, controlling the display size of the second view to remain unchanged, and controlling the display size of the first view to be adjusted from the third size to a third target size, wherein the third target size is smaller than the third size; After controlling the position of the fourth icon to move, controlling the display size of the second view to be gradually adjusted from the fourth size to a fourth target size, wherein the fourth target size is smaller than the fourth size, and displaying the fifth interface, wherein the position of the fourth icon displayed in the fifth interface is different from the position of the fourth icon in the fourth interface.
6. The method according to claim 5, characterized in that The electronic device includes a first view control module and an animation executor, and the step of controlling the position of the fourth icon to gradually move includes: The first view control module determines initial position information of the fourth icon, where the initial position information is a coordinate value of the fourth icon relative to the display screen when the fourth icon is displayed in the first view before the third icon moves out of the second view; The first view control module determines target position information of the fourth icon; The first view control module determines the position change information of the fourth icon according to the target position information and the initial position information; The animation executor controls the position movement of the fourth icon according to the position change information of the fourth icon.
7. The method according to claim 5 or 6, characterized in that: The electronic device includes a second view control module, a first view control module, and a view management adapter. Before controlling the display size of the first view to be adjusted from a third size to a third target size, the method further includes: After the second view control module controls the display size of the second view to remain unchanged, the second view control module sends a third message to the view management adapter, where the third message is used to indicate that an application icon is removed from the display area corresponding to the second view; After receiving the third message, the view management adapter sends a fourth message to the first view control module, where the fourth message is used to instruct the first view control module to adjust the display size of the first view.
8. The method according to claim 5, characterized in that The electronic device includes a second view control module, and the step of controlling the display size of the second view to gradually adjust from a fourth size to a fourth target size includes: After the second view control module controls the display size of the second view to be the fourth size for a preset time period, the display size of the second view is controlled to be gradually adjusted from the fourth size to the fourth target size.
9. The method according to any one of claims 5, 6 or 8, characterized in that The displaying of the fourth interface includes: In response to the user powering on the electronic device or unlocking the screen, displaying the fourth interface; or, In response to the user's start-up operation on the first application, the fourth interface is displayed.
10. An electronic device comprising a memory, a processor and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the steps of the method according to any one of claims 1 to 9.
11. A computer-readable storage medium having a computer program / instruction stored thereon, characterized in that: When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.
12. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.
Citation Information
Patent Citations
Desktop management method of terminal equipment and terminal equipment
CN114510176A
Display method of dockbar in desktop and electronic equipment
CN115729405A
Interface display method and device
CN116088725A
Multi-screen cooperation method and system, and electronic device
EP4060475A1
Mobile terminal and control method thereof
US20120159364A1
