Interface adjustment method, electronic equipment and storage medium
By responding to user actions in the recent screen, electronic devices adjust the layout of the floating window interface, solving the problem of the inconvenience of the floating window interface layout and improving the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-30
- Publication Date
- 2026-03-17
AI Technical Summary
Currently, electronic devices are not convenient enough in terms of adjusting the interface layout of floating windows, which makes it difficult to meet users' needs.
By responding to user adjustments in the recent screen, electronic devices can more easily adjust the layout of floating window-style interfaces, including moving, minimizing, hiding, or ending application processes, and using the logical relationships between task data and panel data to control the display and position of interface elements.
The ease of adjusting the layout of the floating window interface has been improved, enhancing the user experience.
Smart Images

Figure CN121680982A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] Embodiments of the present application relate to the technical field of terminals, and in particular, to an interface adjustment method, an electronic device, and a storage medium. BACKGROUND
[0002] With the development of terminal technology, users use electronic devices more and more frequently. A user can open an interface in the form of a floating window on an electronic device. The electronic device can adjust the layout of the interface in the form of a floating window in response to a user operation.
[0003] At present, how to enable an electronic device to more conveniently adjust the layout of an interface in the form of a floating window is a problem to be solved. SUMMARY
[0004] Embodiments of the present application provide an interface adjustment method, an electronic device, and a storage medium. In the method, an electronic device can adjust the layout of an interface in the form of a floating window in response to an adjustment operation triggered by a user in a recent interface. In this way, the convenience of adjusting the layout of an interface in the form of a floating window can be improved.
[0005] In a first aspect, an interface adjustment method is provided. The method can be applied to an electronic device such as a mobile phone or a tablet computer. The method includes: displaying a desktop by the electronic device, the desktop including a first icon. Next, after the electronic device receives a trigger operation on the first icon, the electronic device displays a first free screen interface in response to an operation of starting a first application, the first free screen interface including a first window interface of the first application. In response to the trigger operation on the first icon, the electronic device enters a free screen mode. Then, the electronic device displays a second free screen interface, the second free screen interface including a second window interface. Next, in response to an operation of entering a recent interface, the electronic device displays a first recent interface; the first recent interface includes a first card and a second card, the first card including a first interface image, and the second card including a second interface image. Then, after the electronic device receives an operation of moving the second interface image from the second card to the first card, the electronic device displays a third free screen interface in response to a trigger operation on the first card; the third free screen interface includes the first window interface and the second window interface.
[0006] Optionally, the first card corresponds to the first free screen interface, and the second card corresponds to the second free screen interface.
[0007] In this method, the electronic device can display a window interface in the adjusted free screen interface according to a moving operation on an interface image triggered by a user in a recent interface. In this way, the electronic device can more conveniently adjust the layout of a window interface (i.e., an interface in the form of a floating window), and the user experience can be improved.
[0008] In one design of the first aspect, the aforementioned first interface image corresponds to a first window interface, such as a screenshot of the first window interface. The aforementioned second interface image corresponds to a second window interface, such as a screenshot of the second window interface.
[0009] In another design of the first aspect, before the electronic device displays the third free-screen interface, the method further includes: in response to an operation of moving a second interface image from a second card to a first card, the electronic device displays a second recent interface; the second recent interface includes a third card, the third card including the first interface image and the second interface image. Optionally, the third card corresponds to the third free-screen interface.
[0010] In another design of the first aspect, the positional relationship between the first window interface and the third free-screen interface is the same as the positional relationship between the first interface image and the third card. Similarly, the positional relationship between the second window interface and the third free-screen interface is the same as the positional relationship between the second interface image and the third card. In this design, the electronic device can determine the positional relationship between the window interface and the free-screen interface based on the positional relationship between the interface image and the card. Therefore, the user can adjust the position of the window interface displayed in subsequent free-screen displays based on the position of the interface image displayed in the recent interface, further improving the convenience of adjusting the window interface and enhancing the user experience.
[0011] In another design of the first aspect, the aforementioned first window interface includes a minimize control; after the electronic device displays the third free-screen interface, the method further includes: in response to a triggering operation on the minimize control, the electronic device displays a fourth free-screen interface; the fourth free-screen interface includes the second window interface and a floating capsule of the first application. In this design, the user can change the window interface into a floating capsule using the control, thus further improving the convenience of adjusting the window interface.
[0012] In another possible design of the first aspect, after displaying the fourth free screen interface, the above method further includes: in response to an operation to enter the recent interface, the electronic device displays a third recent interface; the third recent interface includes a fourth card, the fourth card including the second interface image; the fourth card does not include the interface elements of the levitating capsule.
[0013] In another possible design of the first aspect, the first window interface further includes a hidden control; after the electronic device displays the third free-screen interface, the method further includes: in response to a triggering operation on the hidden control, the electronic device displays a fifth free-screen interface; the fifth free-screen interface includes the second window interface. In this design, the user can hide the window interface using the control, thus further improving the ease of adjusting the window interface.
[0014] In another possible design of the first aspect, after the electronic device displays the third free screen interface, the above method further includes: in response to an operation of entering the recent interface, the electronic device displays a fourth recent interface; the fourth recent interface includes a fifth card, the fifth card including a first interface image and a second interface image; in response to an operation of removing the first interface image, the process of the first application is terminated.
[0015] In this design, users can terminate the application process via an interface image. This further enhances the ease of adjusting the window interface.
[0016] In another possible design of the first aspect, the aforementioned second window interface is the window interface of the second application, and the method further includes: in response to an operation of entering the recent interface, the electronic device displays a fifth recent interface; the fifth recent interface includes a sixth card, the sixth card including the first interface image and the second interface image. Subsequently, in response to an operation of removing the sixth card, the electronic device terminates the process of the first application and terminates the process of the second application.
[0017] In this design, users can terminate multiple application processes using cards. This further enhances the ease of adjusting the window interface.
[0018] In another possible design of the first aspect, after the electronic device displays the second free-screen interface, the first card corresponds to the first panel data, and the second card corresponds to the second panel data; wherein the first panel data includes first task data corresponding to the first interface image, and the second panel data includes second task data corresponding to the second interface image. The above-mentioned operation of displaying the first recent interface in response to entering the recent interface includes: in response to entering the recent interface, the electronic device draws the first interface image in the first card based on the first panel data including the first task data. Then, the electronic device draws the second interface image in the second card based on the second panel data including the second task data. Next, after the first and second cards are drawn, the electronic device displays the first recent interface.
[0019] In this design, the electronic device can represent the logical relationship between the window interface and the free-screen interface through the logical relationship between task data and panel data. Next, the electronic device draws cards based on the logical relationship between the task data and panel data.
[0020] In another possible design of the first aspect, the electronic device displaying the second recent interface in response to the operation of moving the second interface image from the second card to the first card includes: in response to the operation of moving the second interface image from the second card to the first card, the electronic device deletes second task data from the second panel data and adds the second task data to the first panel data to obtain third panel data. Then, the electronic device displays the second recent interface based on the third panel data, including the first task data and the second task data; the third panel data corresponds to the third card.
[0021] In another possible design of the first aspect, the attributes of the aforementioned task data include visible, invisible, or a floating ball. Next, when the electronic device displays a third free-screen interface, the attribute of the task data of the first window interface is visible; the first window interface includes a minimize control or a hide control. After the electronic device displays the third free-screen interface, the method further includes: upon receiving a trigger operation on the minimize control, the electronic device modifies the attribute of the task data of the first window interface to a floating ball. Upon receiving a trigger operation on the hide control, the electronic device modifies the attribute of the task data of the first window interface to invisible.
[0022] In another possible design of the first aspect, upon receiving a trigger operation on the minimize control, in response to the operation of entering the recent interface, the electronic device, based on the attribute of the task data of the first window interface being a floating ball, does not display the corresponding interface elements of the first window interface in the recent interface; or, upon receiving a trigger operation on the hide control, in response to the operation of entering the recent interface, the electronic device, based on the attribute of the task data of the first window interface being invisible, does not display the corresponding interface elements of the first window interface in the recent interface.
[0023] In a second aspect, an electronic device is provided, comprising a processor and a memory; the processor and the memory are coupled; the memory is used to store computer program code; the computer program code includes computer instructions, which, when executed by the processor, cause the electronic device to perform the method provided by the first aspect and any possible design of the first aspect.
[0024] Thirdly, a computer-readable storage medium is provided, including computer instructions that, when executed on an electronic device, cause the electronic device to perform the methods provided by the first aspect and any possible design of the first aspect.
[0025] Fourthly, a computer program product containing instructions is provided, which, when run on an electronic device, enables the electronic device to perform the methods provided by the first aspect and any possible design of the first aspect.
[0026] Fifthly, a chip system is provided, the chip system including at least one processor and interface circuitry, the at least one processor and interface circuitry being connected, the at least one processor being configured to perform the methods provided by the first aspect and any possible design of the first aspect. Attached Figure Description
[0027] Figure 1 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application;
[0028] Figure 2 A schematic diagram of the architecture of an electronic device provided in an embodiment of this application;
[0029] Figure 3 A schematic diagram of a window display area for an electronic device provided in an embodiment of this application;
[0030] Figure 4 Another schematic diagram of a window display area of an electronic device provided in an embodiment of this application;
[0031] Figure 5 A flowchart illustrating an interface adjustment method provided in an embodiment of this application;
[0032] Figure 6 A schematic diagram of a set of user graphical interfaces provided in the embodiments of this application;
[0033] Figure 7 A schematic diagram of a data structure provided in an embodiment of this application;
[0034] Figure 8 A schematic diagram of another set of user graphical interfaces provided in the embodiments of this application;
[0035] Figure 9 A schematic diagram of yet another set of user graphical interfaces provided in the embodiments of this application;
[0036] Figure 10 Another flowchart illustrating the interface adjustment method provided in this application embodiment;
[0037] Figure 11Another flowchart illustrating the interface adjustment method provided in this application embodiment;
[0038] Figure 12 A schematic diagram showing the interface display position and size provided for embodiments of this application;
[0039] Figure 13 A schematic diagram illustrating the display of the recent interface provided for an embodiment of this application;
[0040] Figure 14 A schematic diagram of another set of user graphical interfaces provided in the embodiments of this application;
[0041] Figure 15 Another flowchart illustrating the interface adjustment method provided in this application embodiment;
[0042] Figure 16 A schematic diagram illustrating changes in data structure provided for embodiments of this application;
[0043] Figure 17 Another flowchart illustrating the interface adjustment method provided in this application embodiment;
[0044] Figure 18 A schematic diagram of another set of user graphical interfaces provided in the embodiments of this application;
[0045] Figure 19 A schematic diagram of yet another set of user graphical interfaces provided in the embodiments of this application;
[0046] Figure 20 A schematic diagram of another set of user graphical interfaces provided in the embodiments of this application;
[0047] Figure 21 A schematic diagram of yet another set of user graphical interfaces provided in the embodiments of this application;
[0048] Figure 22 A schematic diagram of another set of user graphical interfaces provided in the embodiments of this application;
[0049] Figure 23 A schematic diagram of the hardware structure of another electronic device provided in an embodiment of this application;
[0050] Figure 24 This is a schematic diagram of the chip system provided in an embodiment of this application. Detailed Implementation
[0051] The technical solutions of the embodiments of this application will be described below with reference to the accompanying drawings. In the description of this application, unless otherwise stated, " / " indicates that the objects before and after are in an "or" relationship. For example, A / B can represent A or B. "And / or" in this application is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, and B alone, where A and B can be singular or plural. Furthermore, in the description of the embodiments of this application, unless otherwise stated, "multiple" refers to two or more. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple. Furthermore, to facilitate a clear description of the technical solutions in the embodiments of this application, the terms "first" and "second" are used in the embodiments of this application to distinguish identical or similar items with substantially the same function and effect. Those skilled in the art will understand that the terms "first" and "second" do not limit the quantity or execution order, and the terms "first" and "second" are not necessarily different.
[0052] As used herein, depending on the context, the term “if” may optionally be interpreted as meaning “when” or “in the case of” or “in response to determination” or “in response to detection” or “in response to”.
[0053] The terminology used in the description of the various embodiments herein is for the purpose of describing particular embodiments only and is not intended to be limiting. As used in the description of the various embodiments and the appended claims, the singular forms “a,” “an,” and “the” are intended to also include the plural forms, and the singular nouns are intended to also include the plural nouns, unless the context clearly indicates otherwise.
[0054] In this application, the terms "exemplary" or "for example" are used to indicate that something is an example, illustration, or description. Any embodiment or design described as "exemplary" or "for example" in this application should not be construed as being better or more advantageous than other embodiments or designs. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a specific manner to facilitate understanding.
[0055] The technical solutions disclosed in this application involve the collection, storage, use, processing, transmission, provision, and disclosure of users' personal information, all of which comply with relevant laws and regulations and do not violate public order and good morals.
[0056] With the development of terminal technology, users are using electronic devices more and more frequently. Users can open floating window-style interfaces on electronic devices.
[0057] A floating window interface can be understood as an interface that does not occupy the entire display area of an electronic device; that is, the electronic device does not display the interface in full screen. Floating window interfaces can be referred to as floating interfaces, floating window interfaces, floating windows, popup windows, etc. In the following text, floating window interfaces will be simply referred to as window interfaces.
[0058] In this context, the window display area of an electronic device can be understood as the area on the screen used to display the window interface. For example, the window display area could be the area comprised of all the pixels on the screen, minus the area occupied by the status bar at the top of the screen. Alternatively, it could be the area comprised of all the pixels on the screen, minus the area occupied by the status bar at the top of the screen, and excluding the preset areas at the bottom and sides. Generally speaking, the window display area is smaller than or equal to the area comprised of all the pixels on the screen.
[0059] Further information on the window display area of electronic devices can be found below, but will not be detailed here.
[0060] At present, how to make it easier for electronic devices to adjust the layout of floating window-style interfaces is a problem that needs to be solved.
[0061] In view of this, embodiments of this application provide an interface adjustment method in which an electronic device displays a recent interface. Next, in response to an adjustment operation triggered by the user on the recent interface, the electronic device adjusts the layout of the window interface. For example, window interface A located on free screen A is moved to free screen B. Further details about free screens are provided below and will not be elaborated upon here.
[0062] The "recent" interface, also known as the multitasking interface or the recent tasks interface, is an interface for managing the displays on electronic devices.
[0063] In this approach, users can adjust the layout of the window interface through the recent interface, which improves the ease of adjusting the layout of the recent interface on electronic devices and enhances the user experience.
[0064] It is understood that, in the embodiments of this application, for ease of description, the "recent interface" is referred to in the singular. This description does not limit the number of "recent interfaces" to one; in actual use, the number of "recent interfaces" can also be multiple. This embodiment of the application does not impose any limitation on the number of "recent interfaces".
[0065] It is understood that the technical solutions provided in this application can be applied to electronic devices with display functions. These electronic devices can also be referred to as terminals, terminal equipment, user equipment (UE), mobile station (MS), mobile terminal (MT), etc. These electronic devices can be mobile phones, tablets, wearable devices, smart screens, augmented reality (AR) / virtual reality (VR) devices, laptops, ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), and other electronic devices with interface display functions. This application does not impose any limitations on the product form of the electronic devices.
[0066] The structure and architecture of electronic devices will be introduced below.
[0067] First, let's introduce the structure of electronic devices.
[0068] Figure 1 A schematic diagram of the hardware structure of the electronic device 100 is shown.
[0069] Electronic device 100 may include processor 110, external memory interface 120, internal memory 121, universal serial bus (USB) interface 130, sensor 180, and display screen 194, etc. Among them, sensor 180 may include pressure sensor 180A, touch sensor 180K, etc.
[0070] It is understood that the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0071] Processor 110 may include one or more processing units, such as: application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0072] The controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to the instruction opcode and timing signals to complete the control of fetching and executing instructions.
[0073] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0074] In some embodiments, the processor 110 may include one or more interfaces. Interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0075] The I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL).
[0076] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display screen 194. The MIPI interface includes a display serial interface (DSI). The processor 110 and the display screen 194 communicate through the DSI interface to realize the display function of the electronic device 100.
[0077] USB interface 130 is an interface that conforms to the USB standard specification, specifically it can be a Mini USB interface, Micro USB interface, USB Type C interface, etc.
[0078] It is understood that the interface connection relationships between the modules illustrated in the embodiments of the present invention are merely illustrative and do not constitute a structural limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.
[0079] Electronic device 100 implements display functions through display screen 194 and application processor, etc. GPU is a microprocessor for image processing, connected to display screen 194 and application processor. GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.
[0080] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a miniature LED, a microLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, electronic device 100 may include one or N displays 194, where N is a positive integer greater than 1.
[0081] The external storage 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 100. The external memory card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, music, video, and other files can be saved on the external memory card.
[0082] Internal memory 121 can be used to store computer executable program code, which includes instructions. Processor 110 executes various functional applications and data processing of electronic device 100 by running the instructions stored in internal memory 121. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback, image playback, etc.), etc. The data storage area may store data created during the use of electronic device 100 (such as audio data, phonebook, etc.). Furthermore, internal memory 121 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.
[0083] Pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 180A can be disposed on display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. A capacitive pressure sensor may include at least two parallel plates with conductive material. When force is applied to pressure sensor 180A, the capacitance between the electrodes changes. Electronic device 100 determines the pressure intensity based on the change in capacitance. When a touch operation is applied to display screen 194, electronic device 100 detects the intensity of the touch operation based on pressure sensor 180A. Electronic device 100 can also calculate the touch position based on the detection signal from pressure sensor 180A. In some embodiments, touch operations applied to the same touch position but with different touch operation intensities can correspond to different operation commands. For example, when a touch operation with an intensity less than a first pressure threshold is applied to the SMS application icon, a command to view an SMS is executed. When a touch operation with an intensity greater than or equal to the first pressure threshold is applied to the SMS application icon, a command to create a new SMS is executed.
[0084] Touch sensor 180K, also known as a "touch panel," can be located on display screen 194. The touch sensor 180K and display screen 194 together form a touchscreen, also known as a "touch screen." Touch sensor 180K detects touch operations applied to or near it. The touch sensor can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through display screen 194. In other embodiments, touch sensor 180K may also be located on the surface of electronic device 100, in a different position than display screen 194.
[0085] After introducing the hardware structure of electronic devices, we will now introduce their software architecture.
[0086] The software system of electronic device 100 can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This embodiment of the invention uses a layered architecture of Android. TM Taking the system as an example, the software structure of electronic device 100 is illustrated.
[0087] Figure 2 This is a schematic diagram of the architecture of an electronic device 100 according to an embodiment of the present invention.
[0088] A layered architecture divides software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In some embodiments, Android... TM The system is divided into four layers, from top to bottom: application layer, application framework layer, hardware abstraction layer (HAL), and kernel layer.
[0089] The application layer can include a series of application packages.
[0090] like Figure 2 As shown, the application package can include applications such as camera, gallery, calendar, call, map, navigation, WLAN, and Bluetooth.
[0091] The aforementioned application package may also include: a desktop application (launcher), which provides the function of displaying interfaces such as desktop, free screen interface, and recent interface on electronic devices.
[0092] like Figure 2 As shown, the application framework layer can be divided into two parts: system services and media services.
[0093] A system server is a process that provides many subsystem services. Each subsystem service runs as a thread, waiting for requests from applications, processing the requests, and then returning the results to the applications. These subsystem services include, for example, the Window Manager Service (WMS), the Notification Manager Service (NMS), the Activity Manager Service (AMS), and the Input Manager Service (IMS).
[0094] WMS (Windows Management System) can be used for window management, window animation management, surface management, and as a relay station for input systems. NMS (Natural Management System) allows applications to display notification information in the status bar, which can be used to convey informative messages and can disappear automatically after a short pause without user interaction. AMS (Application Management System) can be used for the startup, switching, and scheduling of system components (e.g., activities, services, content providers, and broadcast receivers), as well as the management and scheduling of application processes. IMS (Integrated Management System) can be used to manage system input, such as touchscreen input, keypad input, and sensor input. IMS retrieves events from input device nodes (e.g., sensor modules described below) and, through interaction with WMS, distributes the events to windows within WMS. The media server is responsible for playing audio and video, as well as the processes of taking photos and recording videos.
[0095] The Hardware Abstraction Layer (HAL) is an abstraction layer that sits between the kernel layer and upper layers. It encapsulates kernel-level drivers to provide a unified interface to upper layers. This allows upper-layer applications to abstract away the underlying hardware implementation details without needing to know the specifics of how the lower-level hardware works.
[0096] The Hardware Abstraction Layer (HAL) provides a standard interface to expose device hardware functionality to higher-level application framework layers. The HAL contains multiple library modules, each implementing an interface for a specific type of hardware component. These library modules may include audio, Bluetooth, camera, and sensor modules, such as pressure sensors and touch sensors. When the application framework layer requests access to the device hardware, the system loads the corresponding library module for that hardware component. Manufacturers can define interfaces within the HAL.
[0097] The kernel layer is the layer between hardware and software. At a minimum, the kernel layer contains display drivers, camera drivers, and audio drivers. It may also include sensor drivers, and so on.
[0098] For example, the touch sensor or pressure sensor of an electronic device can acquire adjustment operations triggered by a user's actions on the display screen of the electronic device. These adjustment operations may include a user tapping the display screen and then sliding within it. Next, the sensor module of the electronic device identifies the adjustment operation through its sensor area and generates a touch event based on the identification result. Then, the sensor module sends the touch event to the IMS (Integrated Software Management System). The IMS then distributes the touch event to the launcher. The launcher adjusts the layout of the window interface based on the touch event. For example, it may move window interface A from free screen A to free screen B.
[0099] Next, taking a tablet computer as an example, the electronic device has the above-mentioned features. Figure 1 The structure shown and the above Figure 2 The technical solutions provided in the embodiments of this application will be introduced using the illustrated architecture as an example.
[0100] Before introducing the technical solutions provided in the embodiments of this application, we will first introduce the content related to the display area of the tablet computer window.
[0101] For example, the window display area of a tablet computer is described using the tablet's lock screen as an example. See [link / reference]. Figure 3 The tablet computer displays a lock screen interface 300. The lock screen interface 300 includes a status bar display area 301; wherein, the status bar display area 301 may include icons indicating the tablet computer's status, such as the remaining battery power, network status, etc. Optionally, the status bar display area 301 may also include application icons, etc. Specifically, it can be designed according to actual usage needs; this embodiment does not make any settings in this regard. It is understood that the window display area of the tablet computer can be the area composed of all pixels of the tablet computer's display screen minus the aforementioned status bar display area 301. Figure 3 Taking the scenario shown as an example, the window display area of the tablet computer can be the area after the lock screen area 300 and the status bar display area 301.
[0102] For another example, see Figure 4 The tablet computer displays a first interface 400, which includes a window display area 401. The window display area 401 includes a video playback window interface 402. The video playback window interface 402 is used to display videos.
[0103] from Figure 4As can be seen, the window display area of a tablet computer includes: the area comprised of all the pixels of the tablet's screen, excluding the area occupied by the pixels of the status bar at the top of the interface, and the area excluding the preset areas at the bottom and sides. In general, the window display area is smaller than or equal to the area comprised of all the pixels of the tablet's screen.
[0104] It should be understood that the window display area of the tablet computer described above is only an example, and in actual use, the window display area can have many more designs. In the following description, we will use... Figure 4 Taking the corresponding window display area as an example, the technical solution provided in this application embodiment will be introduced. This application embodiment does not limit the window display area. And, the above... Figure 3 and Figure 4 The dotted lines are for illustrative purposes to better understand the window display area. In actual use, the tablet screen may not display the above information. Figure 3 or Figure 4 The dashed lines in the diagram. And for an explanation of the dashed lines appearing in subsequent diagrams, please refer to this link.
[0105] The interface adjustment method provided in the embodiments of this application will be described below.
[0106] For example, see Figure 5 The interface adjustment method provided in this application embodiment may include steps S500-S502. Optionally, the interface adjustment method provided in this application embodiment may further include S500-S503. Optionally, the interface adjustment method provided in this application embodiment may further include S500-S504.
[0107] The S500 tablet computer displays a first free-screen interface, including a first window interface.
[0108] As a possible example, step S500 described above can be executed after the tablet computer enters free screen mode. Free screen mode can also be called free window mode, free drag mode, free scheduling mode, etc. In this mode, in response to opening an application, the tablet computer displays the application's interface as a floating window; that is, the tablet computer displays the application's window interface.
[0109] As a possible example, a tablet computer could automatically enter free screen mode after powering on.
[0110] As another possible example, in response to a triggering operation of the FreeScreen Mode switch, the tablet enters FreeScreen Mode. See, for an example... Figure 6The tablet displays a desktop 600, which includes icons for at least one application and a freescreen mode switch 601. Next, in response to a triggering operation on the freescreen mode switch 601, the tablet enters freescreen mode and displays a desktop 610 in freescreen mode; the desktop 610 in freescreen mode includes an icon 611 for a note-taking application. Then, in response to a triggering operation on the note-taking application icon 611, the tablet displays a freescreen mode interface 620, which includes a window interface 621 for the note-taking application.
[0111] Optionally, the icons displayed on the desktop in free screen mode and the desktop in non-free screen mode may differ. For example, after the tablet enters free screen mode, it displays the free screen mode desktop 610. The free screen mode desktop 610 includes an application list icon 612. The tablet can display an application list in response to a triggering operation on the application list icon 612. The application list may include the icon of each application installed on the tablet.
[0112] Optionally, the free screen mode interface 620 also includes an icon bar 622, which contains multiple icons. The icon bar 622 can be permanently displayed; that is, it remains visible after the tablet enters free screen mode. Alternatively, the icon bar 622 can be hidden after the tablet enters free screen mode.
[0113] from Figure 6 As can be seen from the corresponding description, when the tablet is in freescreen mode, it will display the application's window interface. When the tablet is not in freescreen mode, it will display the application interface in fullscreen mode. It should be understood that... Figure 6 The corresponding process is described using a note-taking application as an example to illustrate the process of triggering the display of the first free screen interface on a tablet computer. In actual use, the aforementioned first window interface can be the window interface of any application installed on the tablet computer, and this application embodiment does not impose any restrictions on this.
[0114] It should be understood that there are many other possible designs for a tablet computer to enter FreeScreen Mode. For example, it can be entered through options provided by a settings application. Alternatively, it can be entered through options provided by a drop-down menu; this embodiment of the application does not impose any limitations on this.
[0115] In one possible implementation, the tablet computer initiates a task for the first window interface, and then displays the first window interface on the first free screen based on the task of the first window interface. Understandably, the tablet's Activity Task Manager Server (ATMS) can be used to manage information related to activities, views, tasks, etc., associated with the display interface on the tablet. Next, the launcher's Desktop Mode Task Repository retrieves and stores the information for this task.
[0116] For example, Desktop Mode Task Repository can be accessed through... Figure 7 The data format shown stores task information. The Desktop Mode Task Repository includes display data. Display data stores interface-related data displayed on physical / virtual displays, with each display data corresponding to a physical / virtual display of the tablet. For example, if the tablet has two physical full-screen displays, physical display 1 and physical display 2, then physical display 1 corresponds to one display data, and physical display 2 corresponds to the other. As another example, if the tablet has one physical display and displays its interface on a TV via screen mirroring technology, then the tablet's physical display corresponds to one display data, and the TV corresponds to the other.
[0117] Display container data includes panel data, which stores data related to the interfaces displayed on the display container. Each panel data corresponds to a free-screen interface. For example, after displaying a first free-screen interface, a tablet computer displays a second free-screen interface that includes a second window interface. The first free-screen interface corresponds to one panel data, and the second free-screen interface corresponds to another panel data.
[0118] Panel data includes task data, which is used to store relevant data for the interface displayed on the free screen. Each panel data corresponds to a window interface. For example, the first free screen interface includes a first window interface, and the first window interface corresponds to one piece of task data.
[0119] It should be understood that in some cases, the tablet computer may not have enabled freescreen mode, meaning that the tablet computer may not have displayed a freescreen interface including windowed interfaces. The aforementioned display container data may also exclude panel data, and the panel data may exclude task data, etc.
[0120] From the above Figure 7 The data structure shown contains each task data item within the panel data. The tablet computer can control the free-screen interface of the displayed window through the relationship between the task data and the panel data. For example, based on the tablet computer displaying free-screen mode interface A, the tablet computer creates panel data A. Based on the tablet computer displaying window interface A on free-screen mode interface A, the tablet computer creates task data A and attaches task data A to panel data A; that is, panel data A includes task data A. Similarly, based on the tablet computer displaying free-screen mode interface B, the tablet computer creates panel data B. Based on the tablet computer displaying window interface B on free-screen mode interface B, the tablet computer creates task data B and attaches task data B to panel data B; that is, panel data B includes task data B. Next, based on the tablet computer displaying window interface A and window interface B on free-screen mode interface A, the tablet computer moves task data B from panel data B to panel data A; that is, the tablet computer attaches task data B to panel data A; and thus, panel data A includes task data B.
[0121] In some implementations, the task data may include the attributes of the task; the attributes of the task may include: invisible, floating ball, or visible.
[0122] For example, see Figure 8 The tablet displays a first free-screen interface 800, which includes a window interface 801 for a note-taking application. Window interface 801 includes a minimize control 801A and a hide control 801B. Next, in response to a trigger operation on the minimize control 801A, the tablet displays a free-screen interface 810, which includes a floating capsule 811 for the note-taking application. Then, in response to a trigger operation on the floating capsule 811, the tablet displays the aforementioned first free-screen interface 800. Next, in response to a trigger operation on the hide control 801B, the tablet displays a free-screen interface 820.
[0123] As an example, window interface 801 corresponds to task data C. When the tablet displays the first free screen interface 800, the task attribute of task data C is visible. After a trigger operation on the minimize control 801A, the task attribute of task data C is a floating ball. After a trigger operation on the hidden control, the task attribute of task data C is invisible.
[0124] from Figure 8 As the corresponding description shows, users can minimize the control to trigger the note-taking application to appear as a floating capsule. Additionally, users can hide the note-taking application window in the free screen interface by hiding the control.
[0125] The S501 tablet computer displays a second free-screen interface, including a second window interface.
[0126] In one possible implementation, in response to a back operation, the tablet displays the desktop in free-screen mode. Next, in response to a trigger operation on the gallery application, the tablet displays a free-screen interface including the gallery application's window interface. The aforementioned back operation can be an upward swipe triggered from the bottom of the tablet's display screen, and the swipe distance is a first distance. Many other designs are possible for the back operation; the specific design depends on the actual usage, and this application embodiment does not impose any limitations on this.
[0127] As another possible implementation, before step S500 above, the user triggers the tablet computer to display a second free-screen interface including a second window interface. Next, in response to the free-screen switching operation, the tablet computer displays the second free-screen interface including the second window interface. The free-screen switching operation can be a swipe operation triggered from the side of the tablet computer's display screen, such as a three-finger swipe. Many other designs are also possible for the free-screen switching operation; the specific design depends on the actual usage, and this application embodiment does not impose any limitations on this.
[0128] For further details on step S501, please refer to the aforementioned step S500, which will not be repeated here.
[0129] S502. In response to the operation of entering the recent interface, the tablet displays the first recent interface.
[0130] The operation to enter the recent interface can be a swipe-up operation triggered from the bottom of the tablet's display screen, and the swipe distance is a second distance, which is different from the first distance. For example, the second distance is longer than the first distance. The second distance can be half the screen length, and the first distance can be one-third of the screen length. There can be many other designs for the operation to enter the recent interface; the specific design depends on the actual usage, and this application embodiment does not impose any limitations on this.
[0131] The Recent interface includes a first card and a second card. The first card includes a screenshot of the first window interface, and the second card includes a screenshot of the second window interface. It can be understood that the first card including a screenshot of the first window interface can also be described as the first card including the corresponding interface elements of the first window interface; similarly, the second card including a screenshot of the second window interface can also be described as the second card including the corresponding interface elements of the second window interface.
[0132] For example, seeFigure 9 The tablet displays a second free-screen interface 900, which includes a gallery application window interface 901. Next, in response to entering the recent interface, the tablet displays a first recent interface 910. The first recent interface 910 includes a first card 911 and a second card 913. The first card 911 includes a first screenshot 912, and the second card 913 includes a second screenshot 914.
[0133] Among them, the first screenshot 912 can be the above. Figure 6 The screenshot shown is of the window interface 621 of the note-taking application; that is, the first screenshot can be a screenshot of the first window interface. Alternatively, the first card 911 includes interface elements corresponding to the first window interface.
[0134] The second screenshot 914 can be a screenshot of the window interface 901 of the gallery application; that is, the second screenshot can be a screenshot of the second window interface. Alternatively, the second card 913 includes interface elements corresponding to the second window interface.
[0135] As a possible example, the positional relationship between the first screenshot 912 and the first card 911, and the positional relationship between the first window interface and the second free screen interface, can be the same or similar.
[0136] As another possible example, the positional relationship between the second screenshot 914 and the second card 913 can be the same as or similar to the positional relationship between the second window interface and the second free screen interface. For example, the positional ratio between the second screenshot 914 and the second card 913 is the same as the positional ratio between the window interface 901 and the second free screen interface 900 of the gallery application.
[0137] The positional ratio between A and B can include one or more of the following: the ratio of the length of A to the length of B, the ratio of the width of A to the width of B, the ratio of the height distance to the width distance between a preset vertex of A and a preset vertex of B, etc. In the embodiments of this application, the description of positional ratios can be found here, and will not be repeated below.
[0138] As one possible implementation, in response to the operation of entering the recent interface, the tablet computer obtains the task data stored in the Desktop Mode Task Repository and the task of the window interface. Next, the tablet computer draws the first recent interface based on the task data stored in the Desktop Mode Task Repository and the task of the window interface, and displays the first recent interface on the display screen.
[0139] For example, seeFigure 10 The tablet computer can obtain task data stored in the Desktop Mode Task Repository and the tasks in the window interface by performing the following steps S1000-S1003.
[0140] The S1000.IRecent tasks process communication module (aidl) calls the Recent tasks controller module.
[0141] The S1001.Recent tasks controller module retrieves tasks from the window interface using ATMS.
[0142] Understandably, ATMS can store the position information, size information, and identifiers of tasks for each window interface. The Recent Tasks Controller module can obtain the position information, size information, and identifiers of tasks for each window interface from ATMS.
[0143] The S1002.Recent tasks controller module queries the DesktopMode Task Repository for visible task data based on the task flag in the window interface. It should be understood that this task data includes the logical relationship between task data, panel data, and display container data.
[0144] Optionally, step S1002 can be executed repeatedly until all the flags of each window interface obtained in step S1001 have been queried.
[0145] Understandably, whether task data and its attributes are visible affects whether the Recent Tasks interface displays a screenshot of the corresponding window interface. However, the task attributes are not obtained from ATMS; only the full list of tasks is retrieved. Therefore, in step S1002, the Recent Tasks Controller module can filter the full list of tasks by querying task data whose attributes are visible, thus obtaining the tasks that will subsequently be displayed in the Recent Tasks interface. Furthermore, since the task data includes the logical relationship between task data, panel data, and display container data, the Recent Tasks Controller module can determine the correspondence between the window interface screenshot and the cards based on this logical relationship.
[0146] For example, the task identifiers obtained in step S1001 include: taskA, taskB, taskC, and taskD. Next, step S1002 is executed to retrieve the information corresponding to Table 1 below.
[0147] Table 1
[0148] Task flag Task attribute of task data Logical relationship of task data taskA Visible Belongs to panel data 1 taskB Visible Belongs to panel data 2 taskC Not visible Belongs to panel data 1 taskD Suspension ball Belongs to panel data 1
[0149] It should be understood that the table shown in Table 1 above is for illustrative purposes only and is intended to facilitate the reader's understanding. The tablet computer may be able to access the table shown in Table 1 during actual operation, or it may be able to access other forms of information during actual operation. The specific details depend on the actual usage, and this application embodiment does not impose any limitations on this.
[0150] Next, after step S1002, the tablet computer performs step S1003.
[0151] The S1003.Recent tasks controller module sends relevant information about tasks in the visible window interface to the IRecent tasks process communication module.
[0152] In this context, a task visible in the window interface can be understood as one whose task data has a visible attribute. The aforementioned relevant information includes at least: task size information, task location information, and the logical relationships between the task data.
[0153] For example, see Figure 11 The process of the tablet computer drawing the recent interface and displaying it on the screen based on the task data stored in the Desktop Mode Task Repository and the task of the window interface can be achieved through the following steps S1100-S1105.
[0154] Screenshot of the S1100 recent view loading window interface.
[0155] As you can understand, the recent view is the view for the recent screen, used to draw the graphics of the recent screen. Tablets can display the recent screen through the recent view.
[0156] As a possible example, a screenshot of the recently loaded window interface in response to an action that enters the recent interface.
[0157] As one possible implementation, the tablet's screenshot module can periodically take screenshots of the window interface.
[0158] As another possible implementation, the tablet's screenshot module takes a screenshot of the window interface in response to the operation of entering the recent interface.
[0159] S1101.recent view calls the get task function.
[0160] S1102. The get task function is called based on the recent view, and the recent task module (recent model) passes the call to the get task function.
[0161] S1103. The recent task list retrieves relevant information about tasks visible in the window interface from the IRecent tasks inter-process communication module.
[0162] As a possible example, the IRecent tasks process communication module can execute the above steps S1000-S1003 to obtain relevant information about the tasks in the visible window interface.
[0163] S1104.recent task list sends relevant information about tasks in the visible window interface to the recent view through the recent model.
[0164] S1105.recent view draws free screen cards based on the relevant information of the tasks in the visible window interface.
[0165] The recent view can measure the size of the tablet screen. Then, based on the position information of the task in the window interface or the size information of the task in the window interface, the window is drawn proportionally, and the screenshot of the aforementioned window interface is loaded in the window.
[0166] For example, see Figure 12The tablet computer displays a free-screen interface 1200, which includes a first window interface 1201. The first window interface 1201 includes a first side 1201A, a second side 1201B, a third side 1201C, and a fourth side 1201D. The tablet computer can control the size of the first window interface by using the distances 1202A, 1202B, 1202C, and 1202D between the first side and the boundary of the display area. In other words, the size information of the first window interface task includes the aforementioned distances 1202A, 1202B, 1202C, and 1202D between the first side and the boundary of the display area.
[0167] Another example is shown here. Figure 12 The tablet computer displays a free-screen interface 1200, which includes a first window interface 1201. The tablet computer can control the position of the first window interface by using the coordinates of a preset point within the coordinate system of the tablet computer's display area. In other words, the position information of the window interface's task can include the coordinates of the aforementioned preset point 1203.
[0168] The coordinate system of the tablet computer's display area can be a coordinate system formed by the width direction (X-axis) and height direction (Y-axis) of the display area. The aforementioned preset point can be... Figure 12 The above-mentioned preset point is shown in the upper left corner of the window interface. It should be understood that in actual use, there may be other designs, such as the lower left corner, lower right corner, or upper right corner of the window interface. The specific design will depend on the actual usage.
[0169] It should be understood that the above Figure 12 The corresponding content is for illustrative purposes only. In actual use, tablet computers can control the size of the window interface in many other ways; and, in actual use, tablet computers can control the position of the first window interface in many other ways. This application embodiment does not impose any limitations on this.
[0170] For example, see Figure 13 In combination with the above Figure 6 and Figure 9 In this scenario, step S1105 will be further described. The free screen card includes a first card and a second card. For example... Figure 13As shown, the tablet computer displays a first free-screen interface 1300, which includes a first window interface 1301. The tablet computer also displays a second free-screen interface 1310, which includes a second window interface 1311.
[0171] In step S1105, the recent view obtains the logical relationship of the task data of the first window interface, such as the task data of the first window interface belonging to the panel data of the first free screen interface. The recent view also obtains the logical relationship of the task data of the second window interface, such as the task data of the second window interface belonging to the panel data of the second free screen interface. The recent view obtains the position information of the task of the first window interface, such as the coordinates of the upper left corner of the first window interface. The recent view also obtains the position information of the task of the second window interface, such as the coordinates of the upper left corner of the second window interface. The recent view obtains the size information of the task of the first window interface, such as the distance between the four sides of the first window interface and the boundary of the display area. Finally, the recent view obtains the size information of the task of the second window interface, such as the distance between the four sides of the second window interface and the boundary of the display area.
[0172] Next, the recent view, based on the task data of the first window interface belonging to the panel data of the first free screen interface, draws a screenshot of the first window interface (e.g., the first screenshot) within the first card. The recent view can determine the drawing position of the first screenshot within the first card based on the position information or size information of the task of the first window interface. For example, the positional relationship between the first screenshot and the first card is the same as the positional relationship between the first window interface and the first free screen interface. Similarly, the recent view, based on the task data of the second window interface belonging to the panel data of the second free screen interface, draws a screenshot of the second window interface (e.g., the second screenshot) within the second card. The recent view can determine the drawing position of the second screenshot within the second card based on the position information or size information of the task of the second window interface. For example, the positional relationship between the second screenshot and the second card is the same as the positional relationship between the second window interface and the second free screen interface.
[0173] Thus, the tablet displays a recent screen 1330, which includes a first card 1331 and a first screenshot 1332. The recent screen 1330 also includes a second card 1333 and a second screenshot 1334.
[0174] Optionally, the above Figure 13 The corresponding process can be executed by the recent view, or by the recent view calling the mDesktopTaskView.bind function to be executed by DesktopTaskView; or it can be executed by its software module on the tablet computer. This application embodiment does not limit this.
[0175] Optionally, step S1105 may further include: the recent view drawing the cards of the full-screen application. For example, the drawing of the cards of the full-screen application by the recent view may be performed by the recent view, or the recent view may call the mTaskView.bind function and be performed by the Task View; or it may be performed by its software module on the tablet computer. This application embodiment does not limit this.
[0176] Optionally, step S1105 may further include: the recent view drawing cards for the split-screen application. For example, the recent view may draw cards for the full-screen application, or the recent view may call the mGropedTaskView.bind function and have it executed by the Groped Task View; or it may be executed by its software module on the tablet computer. This embodiment of the application does not limit this.
[0177] For further details on drawing cards for full-screen applications and split-screen applications on a tablet computer, please refer to related technologies; this application does not limit the scope of the embodiments.
[0178] Optionally, the above steps S500-S502 may also involve some software modules. Next, some software modules involved in the example of this application will be introduced with reference to Table 2 below.
[0179] Table 2
[0180]
[0181] It should be understood that all of the above software modules can be considered desktop applications (launchers).
[0182] Optionally, the interface adjustment method provided in this application embodiment may further include step S503 after step S502.
[0183] S503. In response to a movement operation on the second screenshot, the tablet displays a second recent screen.
[0184] The aforementioned movement operation on the second screenshot can be triggered within the first recent interface. For example, see... Figure 14 The tablet displays a first recent screen 1400. The first recent screen includes a first card 1401 and a second card 1403; the first card 1401 includes a first screenshot 1402, and the second card 1403 includes a second screenshot 1404. Next, in response to a movement operation on the second screenshot 1404, the tablet displays a second recent screen 1410; the second recent screen 1410 includes a first card 1411, and the first card 1411 includes a first screenshot 1412 and a second screenshot 1414.
[0185] Optionally, the second recent interface 1410 also includes a second card 1413. That is, in specific applications, the tablet computer can display the second card 1413 on the second recent interface 1410 or not display the second card 1413 on the second recent interface 1410. It can be designed according to actual usage needs.
[0186] The aforementioned movement operation of the second screenshot 1404 can be a drag operation of the second screenshot 1404, such as dragging the second screenshot 1404 from the second card 1403 to the first card 1401.
[0187] In one possible implementation, in response to a movement operation on the second screenshot, the tablet computer determines the target task based on the movement operation. Then, the tablet computer modifies the task data of the target task stored in the Desktop Mode Task Repository, as well as the target task itself. Next, based on the modified task data and the modified task, the tablet computer draws a second recent interface and displays the second recent interface on the screen.
[0188] The tablet computer can determine the target task based on the touch position of the movement operation on the display screen. The target task is the task that the movement operation is targeting. For example, if the movement operation is targeting the second screenshot, then the target task is the task of the second window interface.
[0189] For example, see Figure 15 The process of modifying the task data of the target task stored in the Desktop Mode Task Repository on a tablet computer can be achieved through the following steps S1500-S1503.
[0190] The S1500.IRecent tasks process communication module calls the Recent tasks controller module.
[0191] Understandably, step S1500 is similar to step S1000 above. Further details of step S1500 can be found in the preceding text and will not be repeated here.
[0192] The S1501.Recent tasks controller module retrieves tasks from the window interface using ATMS.
[0193] Understandably, step S1501 is similar to step S1001 above. Further details of step S1501 can be found in the previous text and will not be repeated here.
[0194] The S1502.Recent tasks controller module instructs the Desktop Mode Task Repository to modify the logical relationships of task data for the target task.
[0195] For example, based on the termination position of the above-mentioned movement operation within the first card, the Recent taskscontroller module instructs the Desktop Mode Task Repository to modify the logical relationship of the target task's task data, such as modifying the target task's task data to the panel data corresponding to the first free screen interface.
[0196] For example, see Figure 16 Panel data A corresponds to the first free screen interface, meaning panel data A corresponds to the first card. Task data 1 corresponds to the first window interface, meaning task data 1 corresponds to the first screenshot. Panel data B corresponds to the second free screen interface, meaning panel data B corresponds to the second card. Task data 2 corresponds to the second window interface, meaning task data 2 corresponds to the second screenshot. Before the tablet computer executes step S1502, the logical relationship of the task data on the tablet computer can be as follows: Figure 16 As shown, panel data A includes task data 1, and panel data B includes task data 2. After executing step S1502, the logical relationship of the task data on the tablet computer can be as follows: Figure 16 As shown, panel data A includes task data 1 and task data 2. That is, Desktop Mode Task Repository removes task data 2 from panel data B and adds task data 2 to panel data A.
[0197] The S1503.Recent tasks controller module sends a message to the IRecent tasks process communication module indicating that the modification is complete.
[0198] Optionally, after step S503, the interface adjustment method provided in this application embodiment may further include step S504.
[0199] S504. In response to a trigger operation on the first card, the tablet computer displays a third free screen interface including a first window interface and a second window interface.
[0200] For example, see again Figure 14 The tablet displays a second recent interface 1410, which includes a first card 1411. Next, in response to a trigger operation on the first card 1411, the tablet displays a third free-screen interface 1420, which includes a first window interface 1421 and a second window interface 1422.
[0201] The positional relationship between the first screenshot 1412 and the first card 1411 is the same as the positional relationship between the first window interface 1421 and the third free screen interface 1420. The positional relationship between the second screenshot 1414 and the first card 1411 is the same as the positional relationship between the second window interface 1422 and the third free screen interface 1420.
[0202] In one possible implementation, in response to a trigger operation on the first card, the tablet computer draws a third free-screen interface based on modified task data. Subsequently, the tablet computer displays the third free-screen interface, which includes the first window interface and the second window interface.
[0203] For example, see Figure 17 The process of the tablet computer drawing the third free screen interface based on the modified task data can be achieved through the following steps S1700-S1703.
[0204] The S1700.IRecent tasks inter-process communication module calls the Recent tasks controller module.
[0205] The S1701.Recent tasks controller module obtains target panel data from the Desktop Mode Task Repository.
[0206] The target panel data is the panel data of the first card that triggered the operation instruction, which is also the panel data of the third free screen interface, such as the one mentioned above. Figure 16 The corresponding panel data is A.
[0207] S1702.Desktop Mode Task Repository sends target panel data to the Recent tasks controller module.
[0208] The S1703.Recent tasks controller module instructs WMS to display a third free screen interface on the display based on the target panel data.
[0209] It should be understood that WMS can determine the positional relationship between the second window interface and the third free screen interface based on the positional relationship between the second screenshot and the first card. In this way, WMS can determine the position of the second window interface, such as its position within the third free screen interface, so that the tablet computer can display the third free screen interface on the screen.
[0210] The technical solutions provided in the embodiments of this application will be further described below in conjunction with the user's experience of using the tablet computer.
[0211] Usage Process 1
[0212] For example, see Figure 18 After the tablet receives a trigger operation on the free screen mode icon, in response to the operation of launching the first application, the tablet displays the first free screen interface 1800; the first free screen interface 1800 includes the first window interface 1801 of the first application. Optionally, the tablet can perform the above step S500 to display the first free screen interface.
[0213] Next, in response to the return operation, the tablet displays desktop 1810 in free screen mode, which includes an icon 1811 for the second application. Optionally, desktop 1810 also includes an application list 1812, which triggers the display of an interface on the electronic device that includes icons of all applications installed on the device, through which the user can launch application windows. For example, in response to a trigger operation on the application list, the tablet displays the application list interface; the application list may include icons of all applications installed on the electronic device.
[0214] Subsequently, in response to a trigger operation on the icon 1811 of the second application, the tablet computer displays a second free-screen interface 1820; the second free-screen interface 1820 includes a second window interface 1821. Optionally, the tablet computer may perform the above step S501 to display the second free-screen interface.
[0215] Next, in response to the operation of entering the recent interface, the tablet displays the first recent interface 1830; the first recent interface 1830 includes a first card 1831 and a second card 1833. The first card 1831 includes a first interface image 1832. The second card 1833 includes a second interface image 1834. Optionally, the tablet can perform the above step S502 to display the first recent interface.
[0216] Optionally, the aspect ratio of the first interface image 1832 is the same as that of the first window interface 1801.
[0217] Optionally, the first interface image 1832 is a screenshot of the first window interface 1801 mentioned above.
[0218] Optionally, the aspect ratio of the second interface image 1834 is the same as that of the second window interface 1821.
[0219] Optionally, the second interface image 1834 is a screenshot of the second window interface 1821 mentioned above.
[0220] Optionally, the positional relationship between the first window interface 1801 and the first free screen interface 1800 is the same as the positional relationship between the first interface image 1832 and the first card 1831.
[0221] For example, the ratio of the height of the first window interface 1801 to the height of the first free screen interface 1800 is the same as the ratio of the height of the first interface image 1832 to the height of the first card 1831.
[0222] For example, the ratio of the height distance to the width distance from the vertex of the first window interface 1801 to the vertex of the first free screen interface 1800 is the same as the ratio of the height distance to the width distance from the vertex of the first interface image 1832 to the vertex of the first card 1831.
[0223] Optionally, the positional relationship between the second window interface 1821 and the second free screen interface 1820 is the same as the positional relationship between the second interface image 1834 and the second card 1833.
[0224] For example, the ratio of the height of the second window interface 1821 to the height of the second free screen interface 1820 is the same as the ratio of the height of the second interface image 1834 to the height of the second card 1833.
[0225] For example, the ratio of the height distance to the width distance from the vertex of the second window interface 1821 to the vertex of the second free screen interface 1820 is the same as the ratio of the height distance to the width distance from the vertex of the second interface image 1834 to the vertex of the second card 1833. Here, the vertex can be the top-left vertex, the top-right vertex, the bottom-left vertex, or the bottom-right vertex, etc.
[0226] Usage Process 2
[0227] Optionally, before using process 2, the user can trigger the tablet to display the first recent interface through the above-described process 1.
[0228] For example, see Figure 19 The tablet displays the first recent interface 1900. The first recent interface 1900 includes a first card 1901 and a second card 1903. The first card 1901 includes a first interface image 1902. The second card 1903 includes a second interface image 1904.
[0229] Next, in response to the operation of moving the second interface image 1904 to the first card 1901, the tablet computer displays the second recent interface 1910. The second recent interface includes the first card 1911; the first card 1911 includes the first interface image 1912 and the second interface image 1913. Optionally, the tablet computer can perform the above step S503 to display the second recent interface.
[0230] It should be noted that in some designs, the tablet may omit the interface image from the card (e.g., the second card) and not display the card on the recent screen. In other designs, the tablet still displays the card on the recent screen even if the card does not contain an interface image.
[0231] Optionally, in response to a triggering operation on the first card 1912, the tablet computer displays a third free screen interface 1920; the third free screen interface 1920 includes a first window interface 1921 and a second window interface 1922.
[0232] Optionally, the positional relationship between the first window interface 1921 and the third free screen 1920 is the same as the positional relationship between the first interface image 1912 and the first card 1911.
[0233] For example, the ratio of the width of the first window interface 1921 to the width of the third free screen 1920 is the same as the ratio of the width of the first interface image 1912 to the width of the first card 1911.
[0234] For example, the ratio of the height distance to the width distance from the vertex of the first window interface 1921 to the vertex of the third free screen 1920 is the same as the ratio of the height distance to the width distance from the vertex of the first interface image 1912 to the vertex of the first card 1911. Here, the vertex can be the top-left vertex, the top-right vertex, the bottom-left vertex, or the bottom-right vertex, etc.
[0235] Optionally, the positional relationship between the second window interface 1922 and the third free screen 1920 is the same as the positional relationship between the second interface image 1913 and the first card 1911.
[0236] For example, the ratio of the width of the second window interface 1922 to the width of the third free screen 1920 is the same as the ratio of the width of the second interface image 1913 to the width of the first card 1911.
[0237] For example, the ratio of the height distance to the width distance from the vertex of the second window interface 1922 to the vertex of the third free screen 1920 is the same as the ratio of the height distance to the width distance from the vertex of the second interface image 1913 to the vertex of the first card 1911. Here, the vertex can be the top-left vertex, the top-right vertex, the bottom-left vertex, or the bottom-right vertex, etc.
[0238] Usage Process 3
[0239] Optionally, before using process 3, the user can trigger the tablet to display the first recent interface through the above-described process 1.
[0240] For example, see Figure 20 The tablet computer displays a first recent interface 2000; the first recent interface 2000 includes a first card 2001 and a second card 2003. The first card 2001 includes a first interface image 2002. The second card 2003 includes a second interface image 2004.
[0241] Next, in response to the swipe operation on the first interface image 2002, the tablet computer will destroy the process of the first application, such as destroying the background process of the first application. That is to say, after the tablet computer receives the swipe operation on the first interface image 2002, the tablet computer does not run the background process of the first application.
[0242] Optionally, in response to a swipe operation on the first interface image 2002, the tablet displays a third recent interface 2010. The third recent interface 2010 includes a first card 2011 and a second card 2012. The second card 2012 includes a second interface image 2013.
[0243] Optionally, panel data A corresponds to the first card, and task data A corresponds to the first interface image; panel data B corresponds to the second card, and task data B corresponds to the second interface image. When the tablet displays the first recent interface 2000, panel data A includes task data A, and panel data B includes task data B. After the tablet receives a swipe operation on the first interface image 2002, the tablet deletes task data A.
[0244] Usage Process 4
[0245] Optionally, before using process 4, the user can trigger the tablet to display the second recent interface through the above-described processes 1 and 2.
[0246] For example, see Figure 21 The tablet displays a second recent interface 2100. The second recent interface 2100 includes a first card 2101; the first card 2101 includes a first interface image 2102 and a second interface image 2103. The second recent interface also includes a second card 2104.
[0247] Next, in response to the swipe operation on the first card 2101, the tablet computer destroys the process of the first application and the process of the second application. That is, after the tablet computer receives the swipe operation on the first card 2101, the tablet computer does not run the process of the first application. In other words, after the tablet computer receives the swipe operation on the first card 2101, the tablet computer does not run the process of the second application.
[0248] Optionally, in response to a swipe operation on the first card 2101, the tablet displays a fourth recent interface 2110. The fourth recent interface 2110 includes a second card 2114.
[0249] Optionally, panel data A corresponds to the first card, and task data A corresponds to the first interface image; panel data B corresponds to the second card, and task data B corresponds to the second interface image. When the tablet displays the second recent interface 2100, panel data A includes task data A and task data B. After the tablet receives a swipe operation on the first card 2101, the tablet deletes task data A, task data B, and panel data A.
[0250] Usage Process 5
[0251] For example, see Figure 22 The tablet computer displays a third free-screen interface 2200; the third free-screen interface 2200 includes a first window interface 2201 of a first application and a second window interface 2202 of a second application. The first window interface 2201 includes a minimize control 2201A.
[0252] Next, in response to a triggering operation on the minimize control 2201A, the tablet displays a third free-screen interface 2210. The third free-screen interface 2210 includes a floating capsule 2211 for the first application and a second window interface 2212 for the second application.
[0253] Subsequently, in response to the operation of entering the recent interface, the tablet displays the recent interface 2230, which includes a card 2231. The card 2231 includes interface elements corresponding to the second window interface of the second application mentioned above. Optionally, in response to the operation of entering the recent interface, the tablet, based on the attribute of the task data corresponding to the first application's task as a floating ball, does not display the interface elements corresponding to the first application in the recent interface.
[0254] For another example, see again. Figure 22 The tablet computer displays a third free-screen interface 2200; the third free-screen interface 2200 includes a first window interface 2201 of the first application and a second window interface 2202 of the second application. The first window interface 2201 includes a hidden control 2201B.
[0255] Next, in response to a triggering operation on the minimize control 2201A, the tablet displays a third free-screen interface 2220. The third free-screen interface 2220 includes a second window interface 2222 of the second application.
[0256] Subsequently, in response to the operation of entering the recent interface, the tablet displays the recent interface 2230, which includes a card 2231. The card 2231 includes interface elements corresponding to the second window interface of the second application mentioned above. Optionally, in response to the operation of entering the recent interface, the tablet is not displayed on the recent interface because the task data of the corresponding first application is invisible based on its attributes.
[0257] It should be noted that the personal information used in the technical solution of this application is limited to information for which individual consent has been obtained, including but not limited to notifying and reminding users to read the relevant user agreement (notification) and sign the agreement (authorization) which includes authorization of relevant user information before users use the function.
[0258] Based on the algorithmic steps of the various examples described in the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in conjunction with the embodiments, but such implementations should not be considered beyond the scope of this application.
[0259] This embodiment can divide the electronic device into functional modules according to the above method example. For example, each function can be divided into its own functional modules, or two or more functions can be integrated into one processing module. The integrated modules can be implemented in hardware. It should be noted that the module division in this embodiment is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods.
[0260] This application also provides an electronic device, such as... Figure 23 As shown, the electronic device may include one or more processors 2301, memory 2302 and communication interfaces 2303.
[0261] The memory 2302, communication interface 2303, and processor 2301 are coupled together. For example, the memory 2302, communication interface 2303, and processor 2301 can be coupled together via bus 2304.
[0262] The communication interface 2303 is used for data transmission with other devices. The memory 2302 stores computer program code. The computer program code includes computer instructions, which, when executed by the processor 2301, cause the electronic device to perform the relevant method steps in the above-described method embodiments of this application.
[0263] The processor 2301 can be a processor or controller, such as a central processing unit (CPU), a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute the various exemplary logic blocks, modules, and circuits described in connection with this disclosure. The processor can also be a combination that implements computational functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0264] The bus 2304 can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus 2304 can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 23 The symbol is represented by only one line, but this does not mean that there is only one bus or one type of bus.
[0265] This application also provides a chip system, such as... Figure 24 As shown, the chip system 2400 includes at least one processor 2401 and at least one interface circuit 2402. The processor 2401 and the interface circuit 2402 are interconnected via lines. For example, the interface circuit 2402 can be used to receive signals from other devices (e.g., the memory of an electronic device). As another example, the interface circuit 2402 can be used to send signals to other devices (e.g., the processor 2401). Exemplarily, the interface circuit 2402 can read instructions stored in memory and send those instructions to the processor 2401. When the instructions are executed by the processor 2401, the electronic device can perform the steps in the above embodiments. Of course, the chip system may also include other discrete devices, which are not specifically limited in this application embodiment.
[0266] This application also provides a computer-readable storage medium storing computer program code. When the processor executes the computer program code, the electronic device executes the relevant method steps in the above method embodiments.
[0267] This application also provides a computer program product that, when run on a computer, causes the computer to execute the relevant method steps described in the above method embodiments.
[0268] The electronic devices, computer-readable storage media, or computer program products provided in this application are all used to perform the corresponding methods provided above. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects in the corresponding methods provided above, and will not be repeated here.
[0269] Through the above description of the embodiments, those skilled in the art can clearly understand that, for the sake of convenience and brevity, 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 can be divided into different functional modules to complete all or part of the functions described above.
[0270] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0271] The units described as separate components may or may not be physically separate. A component shown as a unit can be one or more physical units; that is, it can be located in one place or distributed in multiple different locations. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0272] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0273] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiments of this application, in essence, or the part that contributes, or all or part of the technical solution, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0274] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. An interface adjustment method characterized by, The method is applied to an electronic device, and the method comprises: displaying a desktop, the desktop comprising a first icon; after receiving a triggering operation on the first icon, in response to an operation of starting a first application, displaying a first free screen interface, the first free screen interface comprising a first window interface of the first application; displaying a second free screen interface, the second free screen interface comprising a second window interface; in response to an operation of entering a recent interface, displaying a first recent interface; the first recent interface comprising a first card and a second card, the first card comprising a first interface image, and the second card comprising a second interface image; after receiving an operation of moving the second interface image from the second card to the first card, in response to a triggering operation on the first card, displaying a third free screen interface; the third free screen interface comprising the first window interface and the second window interface.
2. The method of claim 1, wherein, The first interface image is a screenshot of the first window interface, and the second interface image is a screenshot of the second window interface.
3. The method according to claim 1 or 2, characterized in that, Before the third free screen interface is displayed, the method further comprises: in response to the operation of moving the second interface image from the second card to the first card, displaying a second recent interface; the second recent interface comprising a third card, the third card comprising the first interface image and the second interface image.
4. The method of claim 3, wherein, The positional relationship between the first window interface and the third free screen interface is the same as the positional relationship between the first interface image and the third card.
5. The method according to any one of claims 1 to 4, characterized in that, The first window interface comprises a minimize control; after the third free screen interface is displayed, the method further comprises: in response to a triggering operation on the minimize control, displaying a fourth free screen interface; the fourth free screen interface comprising the second window interface and a floating capsule of the first application.
6. The method of claim 5, wherein, After the fourth free screen interface is displayed, the method further comprises: in response to an operation of entering a recent interface, displaying a third recent interface; the third recent interface comprising a fourth card, the fourth card comprising the second interface image; the fourth card not comprising an interface element of the floating capsule.
7. The method according to any one of claims 1 to 6, characterized in that, The first window interface further comprises a hide control; after the third free screen interface is displayed, the method further comprises: in response to a triggering operation on the hide control, displaying a fifth free screen interface; the fifth free screen interface comprising the second window interface.
8. The method according to any one of claims 1 to 7, characterized in that, After the third free screen interface is displayed, the method further comprises: in response to an operation of entering a recent interface, displaying a fourth recent interface; the fourth recent interface comprising a fifth card, the fifth card comprising the first interface image and the second interface image; in response to an operation of removing the first interface image, ending the process of the first application.
9. The method according to any one of claims 1 to 8, characterized in that, The second window interface is a window interface of a second application, and the method further comprises: In response to an operation of entering the recent interface, a fifth recent interface is displayed; the fifth recent interface includes a sixth card, and the sixth card includes the first interface image and the second interface image; In response to an operation of removing the sixth card, a process of the first application is ended, and a process of the second application is ended.
10. The method of claim 3, wherein, After the second free screen interface is displayed, a first card corresponds to first panel data, and a second card corresponds to second panel data; the first panel data includes first task data corresponding to a first interface image, and the second panel data includes second task data corresponding to a second interface image; The operation of entering the recent interface includes: In response to an operation of entering the recent interface, the first interface image is drawn in the first card based on the first panel data including the first task data, and the second interface image is drawn in the second card based on the second panel data including the second task data; After the first card and the second card are drawn, the first recent interface is displayed.
11. The method of claim 10, wherein, The operation of moving the second interface image from the second card to the first card includes: In response to an operation of moving the second interface image from the second card to the first card, the second task data is deleted from the second panel data, and the second task data is added to the first panel data to obtain third panel data; The second recent interface is displayed based on the third panel data including the first task data and the second task data; the third panel data corresponds to a third card.
12. The method of claim 11, wherein, The attribute of the task data includes visible, invisible, or a floating ball; When the third free screen interface is displayed, the attribute of the task data of the first window interface is visible; The first window interface includes a minimize control or a hide control; After the third free screen interface is displayed, the method further includes: In a case where a triggering operation on the minimize control is received, the attribute of the task data of the first window interface is modified to the floating ball; In a case where a triggering operation on the hide control is received, the attribute of the task data of the first window interface is modified to the invisible.
13. The method of claim 12, wherein, The method further includes: In a case where a triggering operation on the minimize control is received, in response to an operation of entering the recent interface, based on the attribute of the task data of the first window interface being the floating ball, an interface element corresponding to the first window interface is not displayed in the recent interface; Or, in a case where a triggering operation on the hide control is received, in response to an operation of entering the recent interface, based on the attribute of the task data of the first window interface being the invisible, an interface element corresponding to the first window interface is not displayed in the recent interface.
14. An electronic device, comprising: The electronic device comprises a processor, a memory; the processor is coupled with the memory; the memory is used for storing computer program code; the computer program code comprises computer instructions, when the processor executes the above computer instructions, makes the electronic device execute the method as claimed in any one of claims 1-13.
15. A computer readable storage medium, characterized in that, The computer readable storage medium comprises computer instructions, when the computer instructions run on the electronic device, makes the electronic device execute the method as claimed in any one of claims 1-13.