Application display method and electronic device
By dividing the display screen into multiple vertical bar areas in the horizontal screen state of the electronic device, the problem of abnormal display of the application interface under the horizontal screen is solved, and the normal display of the interface in the horizontal screen state is achieved and the user operation experience is improved.
Patent Information
- Application Number
- CN202111582478.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-11-26
- Publication Date
- 2024-12-24
- Estimated Expiration
- 2038-11-26
AI Technical Summary
In the horizontal screen state of electronic devices, many applications cannot display normally because the aspect ratio of the display screen is very different from the conventional ratio, resulting in abnormal interface display.
By dividing the display screen into multiple vertical bar display areas in a horizontal screen state, the aspect ratio of each area is small and the preset ratio is different, allowing the application's interface to be displayed normally in these areas and dynamically according to user operation Adjust the layout and content of the display area.
It realizes the normal display of the application interface in the horizontal screen of the electronic device, meets user operating habits, provides a larger amount of information and a convenient interface operation experience.
Smart Images

Figure CN114706503B_ABST
Abstract
Description
[0001] This application is a divisional application of the Chinese patent application filed on November 26, 2018 with application number 201811420187.5. The entire content of the Chinese patent application is incorporated by reference into this application. Technical Field
[0002] The embodiments of the present application relate to the field of electronic technology, and in particular to an application display method and an electronic device. Background Art
[0003] With the development of electronic technology, more and more services can be processed through portable electronic devices such as mobile phones and tablets, and more and more applications can be used on electronic devices. Usually, users use applications on electronic devices in the portrait mode of the electronic device, and the applications on the electronic device generally support portrait display. In the portrait mode, the height of the display screen is greater than the width, that is, the vertical length of the display screen is greater than the horizontal length. When the electronic device is in the landscape mode, the width of the display screen is greater than the height, that is, the horizontal length of the display screen is greater than the vertical length, and some applications cannot be displayed normally. Summary of the invention
[0004] The embodiments of the present application provide an application display method and an electronic device, which can normally display the interface of the application in the horizontal screen state of the electronic device.
[0005] In order to achieve the above purpose, the embodiment of the present application adopts the following technical solution:
[0006] In a first aspect, an embodiment of the present application provides an application display method, which is applied to an electronic device including a first application. The application display method includes: the electronic device detects a first operation; in response to the first operation, in a horizontal screen state, the electronic device displays a first interface of the first application in a first area of the display screen. The electronic device detects a second operation on the first interface, and the second operation is used to open a second interface of the first application. In response to the second operation, the electronic device displays the second interface in the second area. Among them, the display screen includes at least two areas, and the at least two areas include a first area and a second area, and there is no overlap between different areas. In this scheme, in the horizontal screen state of the electronic device, the display screen is divided into a narrower first area and a second area, and the electronic device can display the first interface of the first application in the first area, and display the second interface of the second application in the second area.
[0007] In a possible implementation, when the electronic device displays the first interface of the first application in the first area of the display screen of the electronic device in landscape mode in response to the first operation, the interface of the first application is not displayed in the second area. For example, a pattern (such as a wallpaper pattern) may be displayed in the second area; or a desktop background may be displayed, that is, a portion of the desktop background is exposed; or the second area may be blank.
[0008] In another possible implementation, the absolute value of the difference between the aspect ratio of each region and the preset ratio is less than or equal to the first preset value, and the aspect ratio is the ratio of the longitudinal length to the lateral length of the region in the horizontal screen state.
[0009] In this way, the aspect ratio of each area divided by the display screen is slightly different from the preset ratio, and the area is in the shape of a vertical bar, so that the interface of the first application can be normally displayed in each area.
[0010] In another possible implementation, the electronic device displays the second interface in the second area in response to the second operation, including: if the second interface corresponds to the same level as the first interface, the electronic device displays the second interface in the second area in response to the second operation. The method also includes: if the second interface is a lower level than the first interface, the electronic device displays the second interface in the first area in response to the second operation.
[0011] In another possible implementation, when the electronic device displays the second interface in the second area in response to the second operation, the first interface is still displayed in the first area, that is, the content displayed in the second area remains unchanged.
[0012] In another possible implementation, the horizontal screen state is a state in which an angle between a long side of the display screen and a horizontal plane is less than or equal to a second preset value.
[0013] That is, in the horizontal screen state, for the user, the display screen of the electronic device is basically in the shape of a horizontal bar.
[0014] In another possible implementation, before the electronic device detects the first operation, the method further includes: the electronic device displays the desktop in full screen in the horizontal state; and the first operation is an operation for opening the first application.
[0015] That is to say, when the electronic device displays the desktop in landscape mode, it can display the interface of the first application in the area divided by the display screen in response to the user's operation.
[0016] In another possible implementation, before the electronic device detects the first operation, the method further includes: the electronic device displays the first interface in full screen in the portrait state; and the first operation is an operation of switching from the portrait state to the landscape state.
[0017] That is to say, when the electronic device displays the first interface in portrait mode, after switching to landscape mode, the electronic device can display the first interface in the area divided by the display screen.
[0018] In another possible implementation, the method further includes: the electronic device detects a third operation on the first interface, the third operation is used to open the third interface of the first application; if the third interface corresponds to the same level as the first interface, the electronic device displays the third interface in the first area in response to the third operation, and the second interface is still displayed in the second area. Alternatively, if the third interface is an interface of a lower level than the first interface, the electronic device displays the third interface in the second area in response to the third operation, and the first interface is still displayed in the first area.
[0019] That is to say, the first interface and interfaces at the same level are displayed in the first area, and interfaces at a level below the first interface are displayed in the second area.
[0020] In another possible implementation, if the third interface is the upper level of the first interface, the electronic device displays the third interface in the first area and still displays the second interface in the second area; or, the electronic device displays the third interface in the first area and displays the first interface in the second area.
[0021] In another possible implementation, the method also includes: the electronic device detects a fourth operation on the second interface, and the fourth operation is used to open the fourth interface of the first application; if the fourth interface corresponds to the same level as the second interface, or the fourth interface is an interface of the next level of the second interface, the electronic device responds to the fourth operation and displays the fourth interface in the second area, while the first interface is still displayed in the first area.
[0022] In this solution, the second area displays interfaces at the same level as the second interface and interfaces at a level below the second interface.
[0023] In another possible implementation, the method also includes: the electronic device detects a fourth operation on the second interface, and the fourth operation is used to open the fourth interface of the first application; if the fourth interface corresponds to the same level as the second interface, the electronic device responds to the fourth operation and displays the fourth interface in the second area, and the interface displayed in the first area remains unchanged; if the fourth interface is an interface of the next level of the second interface, the electronic device responds to the fourth operation and displays the fourth interface in the second area, and displays the second interface in the first area.
[0024] In this solution, the interface of the first application displayed in the second area is an interface of a lower level than the interface of the first application displayed in the first area.
[0025] In another possible implementation, the method also includes: the electronic device detects a fifth operation on the second interface, and the fifth operation is used to open the fifth interface of the first application; if the fifth interface is an interface of the upper level of the second interface, the electronic device displays the fifth interface in the second area in response to the fifth operation, and the interface displayed in the first area remains unchanged; or, if the fifth interface is an interface of the upper level of the second interface, the electronic device displays the fifth interface in the first area in response to the fifth operation, and the interface displayed in the second area remains unchanged.
[0026] In another possible implementation, if the fifth interface is the first interface of the upper level of the second interface, the electronic device stops displaying the second interface in the second area in response to the fifth operation (the content displayed in the second area may be the desktop), and still displays the first interface in the first area.
[0027] In another possible implementation, when the user faces the display screen of the electronic device, the second area is located to the right of the first area.
[0028] In this way, when the interface displayed in the second area on the right is the next level of the interface displayed in the first area on the left, it is easier for users to compare and operate, which is more in line with the usage habits of most users. In addition, the first interface of the first application is displayed on the left first, and the second interface of the second application is displayed on the right, which is more in line with the usage habits of most users.
[0029] In another possible implementation, the method also includes: the electronic device detects a sixth operation on the first interface, and the sixth operation is used to open the sixth interface of the first application; the electronic device responds to the sixth operation by displaying the sixth interface in the second area, while the first interface is still displayed in the first area.
[0030] In another possible implementation, the method also includes: the electronic device detects a seventh operation in the first area or the second area, and the seventh operation is used to open a seventh interface of the first application; the electronic device responds to the seventh operation by displaying the seventh interface in the second area, while the first interface is still displayed in the first area.
[0031] In another possible implementation, the method also includes: if the electronic device detects an eighth operation in the first area, and the eighth operation is used to open the eighth interface of the first application; then the electronic device responds to the eighth operation and displays the eighth interface in the second area, while the first area still displays the first interface; if the electronic device detects a ninth operation in the second area, and the ninth operation is used to open the ninth interface of the first application; then the electronic device responds to the ninth operation and displays the ninth interface in the first area, while the second area still displays the second interface.
[0032] That is, after the first interface and the second interface of the first application are displayed in the horizontal screen state, the interface opened on the interface in the current area of the display screen is displayed in another area.
[0033] In another possible implementation, if the electronic device detects an eighth operation in the first area, and the eighth operation is used to open the eighth interface of the first application; then the electronic device responds to the eighth operation by displaying the eighth interface in the first area, while the second interface is still displayed in the second area; if the electronic device detects a ninth operation in the second area, and the ninth operation is used to open the ninth interface of the first application; then the electronic device responds to the ninth operation by displaying the ninth interface in the second area, while the first interface is still displayed in the first area.
[0034] That is to say, after the first interface and the second interface of the first application are displayed in the horizontal screen state, the interface opened on the interface in the current area of the display screen is still displayed in the current area.
[0035] In another possible implementation, an electronic device displays a first interface of a first application in a first area of a display screen of the electronic device, including: if the first application does not support horizontal full-screen display, the electronic device displays the first interface of the first application in the first area of the display screen; if the first application supports horizontal full-screen display, the electronic device prompts the user to select a display mode, the display modes including a horizontal full-screen display mode and an area display mode; in response to the user selecting the area display mode, the electronic device displays the first interface of the first application in the first area of the display screen.
[0036] That is, the user can decide whether to display the interface of the first application in a horizontal full-screen display mode or a regional display mode.
[0037] In another possible implementation, the method further includes: if the electronic device is switched to a portrait state, the electronic device displays the tenth interface of the first application in full screen in the portrait state. The portrait state is a state in which the angle between the long side of the display screen and the horizontal plane is greater than a second preset value.
[0038] In another possible implementation, if the electronic device switches to a portrait mode, the tenth interface displayed in full screen by the electronic device in the portrait mode may be the most recently displayed interface by the electronic device in the landscape mode; or, it may be the most recently detected interface on which the electronic device performs user operations in the landscape mode; or, it may be the most recently displayed interface within a preset area of the electronic device in the landscape mode.
[0039] In a second aspect, the technical solution of the present application provides an application display device, which is included in an electronic device, and has the function of realizing the behavior of the electronic device in any of the above-mentioned first aspect and the possible implementation methods of the first aspect. The function can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the above-mentioned functions. For example, a display module or unit, a detection module or unit, etc.
[0040] In a third aspect, an embodiment of the present application provides an electronic device, comprising one or more processors and one or more memories. The one or more memories are coupled to the one or more processors, and the one or more memories are used to store computer program codes, and the computer program codes include computer instructions. When the one or more processors execute the computer instructions, the electronic device executes the application display method in any possible implementation of the first aspect.
[0041] In a fourth aspect, an embodiment of the present application provides a computer storage medium, including computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the application display method in any possible implementation of the first aspect.
[0042] In a fifth aspect, an embodiment of the present application provides a computer program product, which, when executed on a computer, enables an electronic device to execute an application display method in any possible implementation of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 A schematic diagram of the horizontal screen state and the vertical screen state of the electronic device provided in an embodiment of the present application;
[0044] Figure 2A A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;
[0045] Figure 2B A schematic diagram of the software structure of an electronic device provided in an embodiment of the present application;
[0046] Figure 3 A schematic diagram of a display process provided in an embodiment of the present application;
[0047] Figure 4A A flow chart of a display method provided in an embodiment of the present application;
[0048] Figure 4B A flow chart of another display method provided in an embodiment of the present application;
[0049] Figure 5A A schematic diagram of an interface of an electronic device provided in an embodiment of the present application;
[0050] Figure 5B A schematic diagram of an interface of another electronic device provided in an embodiment of the present application;
[0051] Figure 5C A schematic diagram of an interface of another electronic device provided in an embodiment of the present application;
[0052] Figure 5D A schematic diagram of an interface of another electronic device provided in an embodiment of the present application;
[0053] Figure 6 A schematic diagram of dividing a group of display areas provided in an embodiment of the present application;
[0054] Figure 7 A schematic diagram of a setting interface provided in an embodiment of the present application;
[0055] Figure 8 A set of setting interface schematic diagrams provided for embodiments of the present application;
[0056] Fig. 9 A schematic diagram of another setting interface provided in an embodiment of the present application;
[0057] Fig. 10A A schematic diagram of an interface of another electronic device provided in an embodiment of the present application;
[0058] Fig. 10B A schematic diagram of an interface of another electronic device provided in an embodiment of the present application;
[0059] Fig.11A A schematic diagram of an interface of another electronic device provided in an embodiment of the present application;
[0060] Fig. 11B A schematic diagram of an interface of another electronic device provided in an embodiment of the present application;
[0061] Fig. 11C A schematic diagram of an interface of another electronic device provided in an embodiment of the present application;
[0062] Fig.12 A flowchart of determining a display mode provided in an embodiment of the present application;
[0063] Fig.13 A schematic diagram of an interface of another electronic device provided in an embodiment of the present application;
[0064] Fig.14 A schematic diagram of an interface of another electronic device provided in an embodiment of the present application;
[0065] Fig.15 A schematic diagram of dividing a display area provided in an embodiment of the present application;
[0066] Fig.16 A schematic diagram of another display area division provided in an embodiment of the present application;
[0067] Fig.17 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0068] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.
[0069] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this embodiment, unless otherwise specified, "plurality" means two or more.
[0070] When a user uses an electronic device, the electronic device may be in landscape mode or portrait mode. The display screen of an electronic device may include four sides, including two longer sides that are parallel and equal to each other, which may be referred to as the long sides of the display screen; and two shorter sides that are parallel and equal to each other, which may be referred to as the short sides of the display screen. In landscape mode, the long side of the display screen of the electronic device is parallel to the horizontal plane (e.g., Figure 1 , that is, the angle between the long side of the display screen and the horizontal plane is 0; or the angle 03 between the long side 01 of the display screen and the projection 02 of the long side 01 on the horizontal plane is less than or equal to the preset value 1 (for example, Figure 1 (b) in the figure), that is, the angle between the long side of the display screen and the horizontal plane is less than or equal to the preset value 1. The preset value 1 (i.e., the second preset value) is less than or equal to 45°, and the specific value of the preset value 1 can be set according to the actual application scenario, for example, the preset value 1 can be 20°. In the horizontal screen state, the display screen of the electronic device is basically in a horizontal strip shape.
[0071] In the horizontal screen state, the height of the display screen of the electronic device is less than its width, and the aspect ratio of the display screen (i.e., the ratio of the height to the width) is less than 1. The height of the display screen is the length of the side with the smaller angle between the display screen and the vertical plane, and the width of the display screen is the length of the side with the smaller angle between the display screen and the horizontal plane. Among them, the height of the display screen can also be understood as the longitudinal length of the display screen, the width of the display screen can also be understood as the lateral length of the display screen, and the aspect ratio of the display screen can also be understood as the aspect ratio of the display screen (i.e., the ratio of the longitudinal length to the lateral length).
[0072] In the portrait mode, the long side of the display screen of the electronic device is perpendicular to the horizontal plane (for example, Figure 1 or the angle 03 between the long side 01 of the display screen and the projection 02 of the long side 01 on the horizontal plane is greater than a preset value 1 (for example, Figure 1 As shown in (d), the preset value 1 is greater than or equal to 45°). In the vertical screen state, the height of the display screen of the electronic device is greater than its width, the aspect ratio of the display screen is greater than 1, and the display screen of the electronic device is basically in the shape of a vertical strip.
[0073] At present, when an electronic device is in portrait mode, the aspect ratio of the display screen is usually a conventional ratio such as 16:9, 18:9, 20:9 or 16:10. The display configuration of most applications on electronic devices is also adapted to this conventional ratio. In portrait mode, the aspect ratio of the display screen of the electronic device is equal to or not much different from the conventional ratio, and the electronic device can display the application interface normally. When the electronic device is in landscape mode, the aspect ratio of the display screen of the electronic device is significantly different from the conventional ratio, which may cause the electronic device to be unable to display the application interface normally.
[0074] The embodiment of the present application provides an application display method, in the horizontal screen state, the horizontal strip display screen of the electronic device can be divided into a plurality of vertical strip-shaped, narrower areas, these areas are used for the electronic device to display, and thus these areas can also be referred to as display areas. There is no overlap between different display areas, and the aspect ratio of each display area is slightly different from the preset ratio, for example, the absolute value of the difference between the aspect ratio of each display area and the preset ratio is less than or equal to the preset value 2 (i.e., the first preset value), and the electronic device can normally display the interface of the application in the vertical strip-shaped display area.
[0075] The aspect ratio of the display area may be the ratio of the height to the width of the display area. The height of the display area is the length of the side with the smaller angle between the display area and the vertical plane, and the width of the display area is the length of the side with the smaller angle between the display area and the horizontal plane. Figure 1In the horizontal screen state shown in (a), the height of the display area is the length of the side of the display area parallel to the vertical plane, and the width of the display area is the length of the side of the display area parallel to the horizontal plane. The height of the display area can also be understood as the longitudinal length of the display area, the width of the display area can also be understood as the lateral length of the display area, and the aspect ratio of the display area can also be understood as the aspect ratio of the display area.
[0076] The display method provided in the embodiments of the present application can be applied to electronic devices such as tablets, mobile phones, wearable devices, vehicle-mounted devices, augmented reality (AR) / virtual reality (VR) devices, laptops, ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), etc. The embodiments of the present application do not impose any restrictions on the specific types of electronic devices.
[0077] For example, Figure 2A 1 shows a schematic diagram of the structure of the electronic device 100. The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, a gravity sensor, etc.
[0078] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0079] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0080] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0081] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0082] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0083] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 communicates with the touch sensor 180K through the I2C bus interface, thereby realizing the touch function of the electronic device 100.
[0084] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to achieve communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 via the I2S interface to achieve the function of answering a call through a Bluetooth headset.
[0085] The PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface to implement the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
[0086] The UART interface is a universal serial data bus for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.
[0087] The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the shooting function of the electronic device 100. The processor 110 and the display screen 194 communicate via the DSI interface to implement the display function of the electronic device 100.
[0088] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
[0089] The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and a peripheral device. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.
[0090] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0091] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.
[0092] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0093] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0094] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0095] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0096] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0097] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0098] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology, etc. GNSS may include the global positioning system (GPS), the global navigation satellite system (GLONASS), the Beidou navigation satellite system (BDS), the quasi-zenith satellite system (QZSS) and / or the satellite based augmentation system (SBAS).
[0099] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0100] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1. In an embodiment of the present application, in the horizontal screen state, the display screen 194 may include multiple display areas, and different display areas may simultaneously display different interfaces of the same application.
[0101] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
[0102] ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.
[0103] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0104] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0105] Video codecs are used to compress or decompress digital videos. The electronic device 100 may support one or more video codecs. Thus, the electronic device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0106] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.
[0107] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.
[0108] The internal memory 121 can be used to store computer executable program codes, and the executable program codes include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0109] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0110] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.
[0111] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or listen to a hands-free call through the speaker 170A.
[0112] The receiver 170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or voice message, the voice can be received by placing the receiver 170B close to the human ear.
[0113] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to microphone 170C to input the sound signal into microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the sound source, realize directional recording function, etc.
[0114] The earphone interface 170D is used to connect a wired earphone and can be a USB interface 130 or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.
[0115] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 can also calculate the touch position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
[0116] The gyro sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyro sensor 180B. The gyro sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyro sensor 180B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.
[0117] The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
[0118] The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip leather case. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 can detect the opening and closing of the flip cover according to the magnetic sensor 180D. Then, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, the flip cover can be automatically unlocked.
[0119] The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in all directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.
[0120] The distance sensor 180F is used to measure the distance. The electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
[0121] The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light outward through the light emitting diode. The electronic device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100. The electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode and pocket mode to automatically unlock and lock the screen.
[0122] The ambient light sensor 180L is used to sense the ambient light brightness. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.
[0123] The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.
[0124] The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 reduces the performance of a processor located near the temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 due to low temperature. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
[0125] The touch sensor 180K is also called a "touch panel". The touch sensor 180K can be set on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass 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 the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.
[0126] The bone conduction sensor 180M can obtain a vibration signal. In some embodiments, the bone conduction sensor 180M can obtain a vibration signal of a vibrating bone block of the vocal part of the human body. The bone conduction sensor 180M can also contact the human pulse to receive a blood pressure beat signal. In some embodiments, the bone conduction sensor 180M can also be set in an earphone and combined into a bone conduction earphone. The audio module 170 can parse out a voice signal based on the vibration signal of the vibrating bone block of the vocal part obtained by the bone conduction sensor 180M to realize a voice function. The application processor can parse the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M to realize a heart rate detection function.
[0127] The electronic device 100 may determine whether the electronic device is currently in a horizontal or vertical state through one or more sensors such as an acceleration sensor 180E, a gyroscope sensor 180B, or a gravity sensor.
[0128] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.
[0129] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
[0130] Indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.
[0131] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
[0132] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes the Android system of the layered architecture as an example to exemplify the software structure of the electronic device 100.
[0133] Figure 2B 1 is a software structure diagram of the electronic device 100 of the embodiment of the present application. The layered architecture divides the software into several layers, each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom, namely, the application layer, the application framework layer, the Android runtime (Android runtime) and the system library, and the kernel layer. The application layer can include a series of application packages.
[0134] like Figure 2B As shown, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, and desktop launcher. For the convenience of description, the application is referred to as application below. The application on the electronic device can be a native application or a third-party application, which is not limited in the embodiments of the present application.
[0135] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
[0136] like Figure 2BAs shown, the application framework layer may include a window manager service (VMS), an activity manager service (AMS), an input event management server (IMS), a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
[0137] The window management server is used to manage window programs. The window management server can obtain the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc.
[0138] The activity manager service (AMS) is responsible for managing activities, starting, switching, and scheduling components in the system, and managing and scheduling applications.
[0139] The input manager service (IMS) can be used to translate and encapsulate the original input events to obtain input events containing more information and send them to the window management server, which stores the clickable area (such as controls) of each application, the location information of the focus window, etc. Therefore, the window management server can correctly distribute the input events to the specified controls or focus windows.
[0140] Content providers are used to store and retrieve data and make it accessible to applications. The data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0141] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
[0142] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including connecting, hanging up, etc.).
[0143] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0144] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
[0145] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.
[0146] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.
[0147] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0148] The system library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0149] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
[0150] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0151] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0152] A 2D graphics engine is a drawing engine for 2D drawings.
[0153] The kernel layer is the layer between hardware and software. The kernel layer can include display drivers, input / output device drivers (for example, keyboards, touch screens, headphones, speakers, microphones, etc.), device nodes, camera drivers, audio drivers, and sensor drivers. Users perform input operations through input devices, and the kernel layer can generate corresponding raw input events based on the input operations and store them in device nodes.
[0154] The display solution provided in the embodiment of the present application is based on Google's freeform feature and multi-window multi-tasking infrastructure. Figure 2B The application framework layer may also include an activity start policy manager (ASPM) for determining information such as start parameters of an activity.
[0155] Based on the above software modules, the display process provided in the embodiment of the present application can be found in Figure 3 . Specifically, the input / output device driver can detect user input events. For example, a user clicks on an application icon to open an input event for an application, or a user uses voice to instruct an input event to open a certain interface. The input / output device driver reports the user's input event to IMS. IMS distributes the input event to the corresponding application. The application calls the startActivity interface in AMS to start the Activity corresponding to the input event. AMS requests ASPM to obtain the startup parameters. ASPM determines the startup parameters and returns the startup parameters to AMS. AMS calls the WMS interface based on the startup parameters. WMS draws the window corresponding to the Activity based on the startup parameters, and calls the display driver to display the interface.
[0156] After WMS obtains the startup parameters, it can determine whether there is an Activity window matching the startup parameters in the background. If yes, WMS sets the background Activity window matching the startup parameters to be visible. If no, WMS creates a new Activity window according to the startup parameters and draws the window content, and calls the display driver to display the drawn window content, thereby presenting the interface to the user.
[0157] Specifically, ASPM can determine the startup parameters of the Activity according to the Activity startup scenario. The startup parameters of the Activity include the display mode of the Activity window, the location where the Activity window is started, the stack of the started Activity window, the width and height in the application startup config, and other information. Among them, the display mode includes full-screen display or area display. The Activity startup scenario includes whether the Activity is started from the desktop, from within the application, or called by other applications, as well as whether the electronic device is currently in landscape or portrait mode, whether the electronic device is currently in full-screen display mode or area display mode, etc.
[0158] If the electronic device has saved the startup parameters of the Activity (such as the startup parameters set when the application is developed, or the startup parameters corresponding to the vertical screen of the electronic device, etc.), then when the startup parameters determined by the ASPM are different from the saved startup parameters, the ASPM can modify the previously saved startup parameters to the startup parameters currently determined by the ASPM. For example, if the regional display mode is adopted, then in the startup parameters determined by the ASPM, the position of the window startup can be the position of the i-th display area on the touch screen when the screen is horizontal, for example, when the touch screen includes a first display area and a second display area, the position of the window startup can be the first display area or the second display area; the stack (Stack) of the startup window is a Freeform Stack (that is, the native multi-window dedicated Stack stack of Android); the width and height information in the application startup config can be the width information and height information of the i-th display area. For another example, if the full-screen display mode is adopted, then in the startup parameters determined by the ASPM, the position of the window startup is full-screen; the stack (Stack) of the startup window can be a full-screen stack (fullscreen stack); the width and height information in the application startup config can be the width information and height information of the display screen when the screen is full-screen.
[0159] The following will take the electronic device as a tablet computer (hereinafter referred to as a tablet) as an example. Figure 1 The state shown in (a) is the horizontal screen state. Figure 1 Taking the state shown in (c) as the portrait state as an example, taking the case where the display screen of the tablet is divided into a first display area and a second display area in the landscape state as an example, the technical solution provided in the embodiment of the present application is specifically described.
[0160] See also Figure 4A , the display method provided in the embodiment of the present application may include:
[0161] 401A. When the tablet is in landscape mode, the desktop is displayed in full screen.
[0162] When the tablet is in landscape mode, the horizontal length of the tablet display screen is greater than the vertical length of the display screen, and the display screen is in a horizontal strip shape. Figure 5A , the tablet can display the desktop 500 in full screen in landscape mode.
[0163] like Figure 5A As shown, the desktop 500 may include a status bar 503, time and weather widgets, and icons of multiple applications such as a Toutiao icon 502, a Taobao icon 505, a Weibo icon 502, and a WeChat icon 501. The status bar 503 may include time, signal strength (such as a Wi-Fi icon), and the current remaining power. In addition, it is understood that in some other embodiments, the status bar 503 may also include a Bluetooth icon, an alarm clock icon, and an external device icon. It is also understood that in some other embodiments, the desktop 500 may also include a Dock bar, which may include icons of commonly used applications (applications, Apps), etc.
[0164] 402. The tablet detects a first operation.
[0165] The first operation is an operation in which the user instructs to open the first application. The first operation may be a gesture operation of the user on the desktop or a voice operation of the user. The gesture operation may be a touch gesture operation or a floating gesture operation. The touch gesture operation may be a click, a double click, a long press or a hard press (i.e., a strong press) and the like.
[0166] Exemplarily, the first application is a Toutiao application (a news application), and the first operation may be an operation in which the user clicks on the Toutiao icon 502 on the desktop; or, the first operation may be an operation in which the user instructs by voice to open the Toutiao application.
[0167] 403. In response to the first operation, the tablet displays a first interface of the first application in a first display area of the display screen in the horizontal state.
[0168] Among them, the aspect ratio of the first display area is slightly different from the preset ratio. For example, the absolute value of the difference between the aspect ratio of the first display area and the preset ratio is less than or equal to the preset value 2, that is, the aspect ratio of the first display area is within the range corresponding to the preset ratio ± the preset value 2. Among them, the preset value 2 can be smaller, for example, it can be 0.7, and the numerical value of the preset value 2 can be set according to the needs of the actual application scenario. The preset value 2 can be set by the user or by the system default setting. Exemplarily, the preset ratio can be a conventional aspect ratio of the display screen when the mobile phone is in portrait mode, such as 16:9, 16:8 or 18:9, or the preset ratio can be a conventional aspect ratio of the display screen when the tablet is in portrait mode, such as 16:10.
[0169] When the aspect ratio of the display screen is a preset ratio, the tablet can normally display the interface of the application in the entire display area of the display screen. When the absolute value of the difference between the aspect ratio of the first display area and the preset ratio is less than or equal to the preset value 2, that is, the aspect ratio of the first display area is slightly different from the preset ratio, the tablet can also normally display the interface of the application in the first display area. In other words, in response to the user's instruction to open the first application, the tablet can normally display the first interface of the first application in the first display area of the display screen.
[0170] For example, in response to a user Figure 5A Click the headline icon 502, see Figure 5B , the tablet can display the first interface 507 in the first display area 506 of the display screen.
[0171] Optionally, the first interface may be a home page of the first application. That is, in response to the user opening the first application, the tablet normally displays the home page of the first application in the first display area. Figure 5B The first interface 507 shown in FIG. 5 is the homepage of Toutiao (application).
[0172] Optionally, in response to the user opening the first application, the tablet displays the homepage of the first application in the first display area, including: after the tablet displays the advertisement page of the first application in the first display area, it displays the homepage of the first application in the first display area. For example, the tablet displays the advertisement page of the first application in the first display area, and after the display time of the advertisement page is greater than or equal to a preset time, the tablet stops displaying the advertisement page and displays the homepage of the first application in the first display area. Alternatively, the tablet displays the advertisement page of the first application in the first display area, and after detecting the user's operation of instructing to skip the advertisement page, the tablet stops displaying the advertisement page and displays the homepage of the first application in the first display area.
[0173] When the tablet responds to the first operation and displays the first interface of the first application in the first display area of the display screen in the horizontal screen state, the interface of the first application is not displayed in the second display area. Specifically, the second display area may display a pattern (such as a wallpaper pattern); or display the desktop background, that is, expose part of the desktop background; or the second display area may be blank.
[0174] 404. The tablet detects a second operation performed by the user on the first interface of the first display area, where the second operation is used to open a second interface of the first application.
[0175] The second operation is a touch operation of the user on the first interface of the first display area, and the second operation is used to instruct to open the second interface of the first application. Figure 5B The operation of clicking on a piece of information on the homepage of the headline shown in FIG. 1 (for example, clicking on Typhoon Mangkhut is approaching).
[0176] 405. In response to the second operation, the tablet displays a second interface in the second display area.
[0177] The aspect ratio of the second display area is slightly different from the preset ratio. For example, the absolute value of the difference between the aspect ratio of the second display area and the preset ratio is less than or equal to the preset value 2, that is, the aspect ratio of the second display area is within the range corresponding to the preset ratio ± the preset value 2. In this way, the tablet can normally display the second interface of the first application in the second display area of the display screen.
[0178] For example, in response to a user Figure 5B When a piece of information is clicked on the homepage of the headline shown in FIG. , the tablet can display the following information in the second display area 508: Figure 5C The second interface 509 shown is a detailed page of the information clicked by the user. At this time, the content of the first display area 506 remains basically unchanged. Alternatively, in the first display area 506, the display effect of the content clicked by the user changes, for example, one or more of the color, brightness, contrast, grayscale or display form of the information content clicked by the user changes, to indicate that the information is currently opened or has been opened.
[0179] In another embodiment, as a replacement step of step 401A, before step 402, the method may further include:
[0180] 401B. The tablet is in portrait mode, and displays the first interface of the first application in full screen.
[0181] Based on step 401B, the first operation in step 402 may be an operation in which the user switches the tablet from the portrait mode to the landscape mode. That is, in the portrait mode, the tablet has opened the first interface of the first application. For example, the first application is a headline application, and the schematic diagram of the tablet displaying the first interface of the first application in full screen in the portrait mode can be seen in Figure 5D Then, in response to the user switching the tablet from the portrait mode to the landscape mode (e.g., the user switches the tablet from Figure 5D The status shown rotates to Figure 1 (a) in the state shown in FIG. Figure 5B In step 403, the tablet displays the first interface in the first display area of the display screen in the horizontal screen state.
[0182] It can be seen that in the horizontal screen state, the tablet can normally display different interfaces of the first application in the first display area and the second display area. In addition, in the horizontal screen state, the tablet can fully utilize the large horizontal length of the tablet in the horizontal screen state by displaying multiple interfaces of the first application in multiple display areas, and provide users with a larger amount of information by displaying multiple interfaces on the display screen.
[0183] In the embodiment of the present application, in the horizontal screen state, the display screen of the tablet may include multiple display areas, and the aspect ratio of the display area is slightly different from the preset ratio. Since the tablet can normally display the interface of the application on the display screen with the aspect ratio of the preset ratio, the tablet can also normally display the interface of the application in the display area with the aspect ratio slightly different from the preset ratio. Therefore, in the horizontal screen state, the tablet can normally display the interface of the application in the display area divided by the display screen.
[0184] Optionally, when the user faces the display screen, the first display area on the display screen is located to the left of the second display area. In other words, the tablet displays the first interface (such as the homepage of the first application) displayed after opening the first application on the left, which is more in line with the usage habits of most users.
[0185] Optionally, when the user faces the display screen, the first display area on the display screen is located to the right of the second display area. In other words, the tablet displays the first interface (eg, the homepage of the first application) displayed after opening the first application on the right.
[0186] It should be noted that the above-mentioned preset ratios may include at least one ratio, and the difference between the aspect ratio of each display area in the display screen and any one of the preset ratios is less than or equal to a preset value of 2.
[0187] In the embodiment of the present application, in the horizontal screen state, the aspect ratios and sizes of different display areas included in the display screen can be the same or different. For example, the preset ratios include 16:9 and 16:8, see Figure 6 In (a), (b) or (c), the first display area 601 and the second display area 602 have the same aspect ratio and size, and the aspect ratio of the first display area 601 and the second display area 602 are both 16:9, and the difference from the preset ratio 16:9 is 0. It should be noted that when the first display area 601 and the second display area 602 do not occupy the entire display screen, refer to Figure 6 In (a), a gap may be left between the first display area 601 and the second display area 602; or, see Figure 6 In (b), a gap may be left on both sides of the first display area 601 and the second display area 602; or, see Figure 6In (c), there may be gaps between the first display area 601 and the second display area 602, and on both sides of the first display area 601 and the second display area 602. Figure 6 In the figure, the diagonal filled part indicates the gap between the display areas.
[0188] In some embodiments, for aesthetic purposes, the space next to the display area on the display screen may display a pattern (eg, a wallpaper pattern), or display the desktop background, that is, expose part of the desktop background.
[0189] For example, the preset ratios include 16:9 and 16:8, see Figure 6 In (d), the aspect ratios and sizes of the first display area 601 and the second display area 602 are different. The aspect ratio of the first display area 601 is 16:8, and the difference from the preset ratio 16:8 is 0, which is less than the preset value 2; the aspect ratio of the second display area 602 is 4:3, and the difference from the preset ratio 16:9 is less than the preset value 2; the longitudinal lengths of the first display area 601 and the second display area 602 are equal, and the lateral lengths of the first display area 601 and the second display area 602 are not equal.
[0190] For the sake of appearance and neatness, and to fully utilize the vertical length of the display screen, the vertical lengths of the first display area and the second display area are equal to the vertical length of the flat panel display screen in the horizontal state. In this way, different interfaces of the first application have the same display height when displayed in the first display area and the second display area.
[0191] It is understandable that the longitudinal lengths of the first display area and the second display area may also be smaller than the longitudinal length of the display screen in the horizontal state.
[0192] In some embodiments, the display screen of the tablet in the horizontal state includes multiple display areas that can be preset. For example, the preset ratio is 16:9, the preset value 2 is 0.7, the aspect ratio of the display screen of the tablet in the horizontal state is 10:16, the display screen includes a first display area and a second display area, the aspect ratios of the first display area and the second display area are both 16:12 (ie, 4:3), and the absolute value of the difference between 16:12 and the preset ratio 16:9 is less than the preset value 2.
[0193] In other embodiments, the plurality of display areas included in the display screen of the tablet in the horizontal state may be set by the user. Figure 7 As shown, the setting interface 701 of the tablet (the setting interface can be displayed in the portrait mode or the landscape mode) displays the setting controls of the display area, and the user can set the aspect ratio of the first display area and the aspect ratio of the second display area by himself, or the user can select the aspect ratio of the first display area and the aspect ratio of the second display area from the setting interface.
[0194] For example, Figure 8 As shown in (a) of FIG. 8 , the setting interface 801 of the tablet displays a control 802 for setting the number of display areas in the horizontal screen state and a control 803 for setting the range of the display area. After the user sets the number of display areas to 2 and clicks the control 803, as shown in FIG. Figure 8 As shown in (b) of FIG. 1 , the tablet can prompt the user to set the range of the first display area, and the user can drag on the display screen to set the range of the first display area. After the user stops dragging, as shown in FIG. Figure 8 As shown in (c) of FIG. 1 , the tablet may display a control 804 for determining the range of the first display area and a control 805 for canceling the setting. After the user clicks the control 804, see Figure 8 In (d), the tablet may prompt the user to set the range of the second display area.
[0195] For example, after the user sets the number of display areas to 2 on the setting interface 801 and clicks the control 803, Fig. 9 As shown, the setting interface of the tablet displays a first dividing line 901 and a second dividing line 902. The user can drag the first dividing line to set the size and aspect ratio of the first display area, and drag the second dividing line to set the size and aspect ratio of the second display area. When the absolute value of the difference between the aspect ratio of the first display area and the preset ratio is greater than the preset value 2, the tablet can prompt the user that the horizontal length of the first display area is too wide or too narrow, so that the aspect ratio of the first display area set by the user is less different from the preset ratio. Similarly, when the absolute value of the difference between the aspect ratio of the second display area and the preset ratio is greater than the preset value 2, the tablet can prompt the user that the horizontal length of the second display area is too wide or too narrow, so that the aspect ratio of the second display area set by the user is less different from the preset ratio.
[0196] As another example, Fig. 9 In an alternative solution, a first dividing line, a second dividing line, a third dividing line, and a fourth dividing line are displayed on the setting interface of the tablet. The user can drag the first dividing line and the second dividing line to set the size and aspect ratio of the first display area, and the user can drag the third dividing line and the fourth dividing line to set the size and aspect ratio of the second display area.
[0197] Of course, the user may also set the display area included in the display screen in the horizontal state in other ways, which is not limited in the embodiments of the present application.
[0198] In the embodiment of the present application, different interfaces of the same application may be divided into upper and lower levels. The tablet may display the interface to be displayed in the display area of the display screen according to the hierarchical relationship between the interface to be displayed and the displayed interface.
[0199] For example, different interfaces of the same application can correspond to the same activity (Activity) or different activities. When different interfaces correspond to the same activity, these interfaces can correspond to the same level. When different interfaces correspond to different activities, these interfaces correspond to different levels. In response to user operations on one interface, the interface can call another interface. When the actively called interface and the called interface correspond to the same activity, the actively called interface and the called interface can correspond to the same level; when the actively called interface and the called interface correspond to different activities, the called interface is the next level of the actively called interface.
[0200] For example, the actively called interface can be Figure 5C In interface 507, the called interface can be Figure 5C Interface 509 in the figure corresponds to different Activities from interface 507 , and interface 509 is an interface at the next level of interface 507 .
[0201] In one technical solution, the process of the tablet calling between interfaces can be implemented through a first-in, last-out stack. For example, when the tablet calls and displays interface 1, interface 1 is pushed into the stack; when interface 1 calls interface 2, interface 2 is pushed into the stack; when the user returns to interface 1 from the current interface 2, the current interface 2 is popped out of the stack. In addition, when the tablet detects the user's return operation on the current interface (for example, the user clicks the return control on the current interface), in response to the operation, it returns to the interface that actively called the current interface before.
[0202] For another example, the tablet has a preset hierarchical relationship between different activities. The interface corresponding to a high-level activity is also high-level, and the interface corresponding to a low-level activity is also low-level. For example, in the Toutiao application, the level of the activity corresponding to the information list interface of attention, recommendation, hot spots, video, and Toutiao account is higher than the level of the activity corresponding to the information detail page (the detail page is an interface); the level of the information list interface of attention, recommendation, hot spots, video, and Toutiao account is also higher than the level of the information detail page.
[0203] Based on the hierarchical relationship between the interfaces, after the above step 404, the above step 405 may specifically include: if the second interface is an interface of a lower level than the first interface, the tablet displays the second interface in the second display area. That is, the tablet displays an interface of a lower level than the first interface in the second display area. For example, when the user is in Figure 5BWhen a piece of information is clicked on the homepage of the headline shown in the figure (for example, a click is made on Typhoon Mangkhut’s strong approach), the level of the detailed page of the information is lower than the level of the homepage of the headline, and the tablet displays the detailed page of the information in the second display area. In addition, after the above step 404, the method may also include: if the second interface corresponds to the same level as the first interface, the tablet displays the second interface in the first display area. That is, the tablet displays an interface at the same level as the first interface in the first display area. Exemplarily, when the user clicks Figure 5B When you click on a "hotspot" in the navigation bar, the tablet displays the "hotspot" interface in the first display area.
[0204] Based on the hierarchical relationship between the interfaces, after the above step 405, when the tablet receives an operation from the user to open other interfaces of the first application on the first interface, the tablet can display the interface to be displayed in the display area of the display screen according to the hierarchical relationship between the interface to be displayed and the displayed interface.
[0205] For example, after step 405, the tablet displays other interfaces of the first application corresponding to the same level as the first interface of the first application in the first display area, and displays an interface of a level below the first interface in the second display area. Figure 4B After step 405, the method may further include:
[0206] 406. The tablet detects a third operation on the first interface, where the third operation is used to open a third interface of the first application.
[0207] 407. If the third interface corresponds to the same level as the first interface, the tablet displays the third interface in the first display area in response to the third operation, and the second interface is still displayed in the second display area.
[0208] For example, in Figure 5C Based on the first interface in the first display area is interface 507, the interface in the second display area is interface 509, and the third operation can be performed by the user in Figure 5C The third interface may be a "hotspot" information list interface. The "hotspot" information list interface and the interface 507 correspond to the same Activity and belong to the same level, so refer to Fig. 10A The tablet can update the interface 507 (ie, the first interface) in the first display area to the "hotspot" information list interface 1001, and still display the interface 509 (ie, the second interface) in the second display area.
[0209] In some embodiments, an Activity may correspond to a window, and different interfaces corresponding to the Activity may be referred to as sub-windows or fragments (flagments) of the window.
[0210] 408. If the third interface is an interface at a lower level than the first interface, the tablet displays the third interface in the second display area in response to the third operation, while the first interface is still displayed in the first display area.
[0211] For example, in Figure 5C Based on the first interface in the first display area is interface 507, the interface in the second display area is interface 509, and the third operation can be performed by the user in Figure 5C The third interface can be a detailed page of "*** made important instructions on the first "Chinese Doctors' Day"" (the detailed page is an interface). The detailed page of "*** made important instructions on the first "Chinese Doctors' Day"" corresponds to different Activities and different levels from the first interface 507; and the interface 507 calls the detailed page of "*** made important instructions on the first "Chinese Doctors' Day", and the detailed page of "*** made important instructions on the first "Chinese Doctors' Day"" is the interface of the next level of the interface 507; therefore, see Fig. 10B The tablet can display the detailed page 1002 of "*** makes important instructions on the first "Chinese Doctors' Day"" in the second display area, and still display the interface 507 (ie, the first interface) in the first display area.
[0212] In the scheme described in steps 401A / 401B-408, when the first interface is the homepage of the first application, the first display area is only used to display the homepage of the first application and the pages at the same level of the homepage, and the second display area is used to display other interfaces of the first application. In this way, it is convenient for users to frequently operate on the homepage or the pages at the same level of the homepage, without having to frequently call out the homepage or the homepage before operating. Under this display method, the first application can be a news and information application, such as Toutiao application, Sohu News, NetEase News, and an application that can include two levels (or two Activities) of interfaces, etc.
[0213] For example, comparison Figure 5C and Fig. 10B , the first application is headlines, the first display area is located to the left of the second display area, and the first display area can be used to display the homepage of headlines (eg, Figure 5C The interface displayed in the display area on the left of the center) or the same level page of the headline homepage (for example, when the user clicks Figure 5C The "hotspot" control on the interface displayed in the middle left area (the interface displayed on the tablet) is used to facilitate users to frequently click on information on the homepage of the headlines in the first display area or on the same-level page of the homepage, so as to view detailed information of different information in the second display area.
[0214] In addition, if the third interface is an interface at the upper level of the first interface, the tablet displays the third interface in the first display area and the first interface in the second display area in response to the third operation; or, the tablet displays the third interface in the first display area and the second interface is still displayed in the second display area in response to the third operation.
[0215] Based on the hierarchical relationship between the interfaces, after the above step 405 or step 408, when the tablet receives an operation from the user to open other interfaces of the first application on the second interface, the tablet can display the interface to be displayed in the display area of the display screen according to the hierarchical relationship between the interface to be displayed and the displayed interface.
[0216] For example, after step 405 or step 408, when the tablet detects an operation by the user on the second interface to indicate opening a new interface of the first application, no matter the new interface corresponds to the same level as the second interface or the new interface is an interface at a lower level than the second interface, the tablet responds to the operation and displays the new interface in the second display area. Specifically, after step 405 or step 408, the method may further include:
[0217] 409. The tablet detects a fourth operation on the second interface, where the fourth operation is used to open a fourth interface of the first application.
[0218] 410. If the fourth interface corresponds to the same level as the second interface, or the fourth interface is an interface of a lower level than the second interface, the tablet displays the fourth interface in the second display area in response to the fourth operation, and the interface displayed in the first display area remains unchanged.
[0219] Among them, the interface displayed in the first display area remains unchanged means that if the first interface is displayed in the first display area before the tablet detects the fourth operation, then in response to the fourth operation, when the fourth interface is displayed in the second display area, the first interface is also displayed in the first display area; if the third interface is displayed in the first display area before the tablet detects the fourth operation, then in response to the fourth operation, when the fourth interface is displayed in the second display area, the third interface is also displayed in the first display area.
[0220] For example, see Fig.11A The first interface may be Taobao's homepage 1101, and the second interface may be a hat list interface 1102 displayed after the user searches for a hat on the first interface. The first interface is displayed in the first display area, and the second interface is displayed in the second display area.
[0221] exist Fig.11A Based on the fourth operation, the user can Fig.11AThe fourth interface may be a detailed page of the hat link (the detailed page is an interface), and the detailed page of the hat link is an interface of the next level of the hat list interface 1102, so refer to Fig. 11B The tablet can display the detailed page 1103 (ie, the fourth interface) of the hat link in the second display area, and the Taobao homepage 1101 (ie, the first interface) is still displayed in the first display area.
[0222] In the scheme described in steps 401A / 401B-410, when the first interface is the homepage of the first application, the first display area is only used to display the homepage of the first application and pages of the same level as the homepage, and the second display area is used to display other interfaces of the first application. In this way, it is convenient for users to frequently operate on the homepage or pages of the same level as the homepage, without having to frequently call out the homepage or operate after the homepage.
[0223] For another example, after the above step 405 or step 408, the interface displayed in the second display area of the tablet is an interface of the next level of the interface displayed in the first display area. In this way, the user can browse the contents of the interfaces of two adjacent levels on the display screen, which is convenient for the user to compare and operate the contents of the interfaces of two adjacent levels. Specifically, after step 409, the method may further include:
[0224] 411. If the fourth interface and the second interface correspond to the same level, the tablet displays the fourth interface in the second display area in response to the fourth operation, and the interface displayed in the first display area remains unchanged.
[0225] For example, in Fig.11A Based on the first interface, the first interface may be the homepage of Taobao 1101, the second interface may be the hat list interface 1102, and the fourth operation may be the user in Fig.11A The fourth interface may be a hat list interface of "Tmall". The tablet may display the hat list interface of "Tmall" in the second display area and still display interface 1101 in the first display area.
[0226] 412. If the fourth interface is an interface at a lower level than the second interface, the tablet displays the fourth interface in the second display area in response to the fourth operation.
[0227] 413. In response to the fourth operation, the tablet displays the second interface in the first display area.
[0228] For example, in Fig.11A Based on the first interface, the first interface may be the homepage of Taobao 1101, the second interface may be the hat list interface 1102, and the fourth operation may be the user in Fig.11AThe fourth interface may be a detailed page of the hat link, which is an interface of the next level of the hat list interface 1102. Fig. 11C , the tablet can display the detailed page 1103 of the hat link (i.e., the fourth interface) in the second display area, and update the Taobao homepage 1101 (i.e., the first interface) in the first display area to the hat list interface 1102 (i.e., the second interface). In this way, the user can simultaneously see the pictures and links of various hats in the first display area, and the picture and detailed information of one of the hats currently opened in the second display area, so that the user can compare the materials, prices, origins and other characteristics of different hats, and understand and purchase them.
[0229] Exemplarily, in this display mode, the first application may be a shopping application, such as Taobao, Amazon Shopping, JD Shopping, and an application that may include an interface of three or more levels (or multiple Activities).
[0230] In some embodiments, the tablet saves the correspondence between different display schemes and applications. When the tablet opens an application, the interface of the application can be displayed according to the display mode corresponding to the tablet in the correspondence. For example, the display scheme described in steps 401-410 (referred to as display scheme one) can correspond to applications such as Toutiao, Sohu News, and NetEase News; the display scheme described in steps 401-407 and steps 411-413 (referred to as display scheme two) corresponds to applications such as Taobao, Amazon Shopping, and JD Shopping. In other embodiments, the user can also actively set the correspondence between the application and the display scheme.
[0231] After the above step 405, step 408, step 410 or step 413, after the tablet detects a fifth operation for opening the fifth interface of the first application on the second interface, if the fifth interface is an interface at an upper level of the second interface, the tablet may execute the following display solutions in response to the fifth operation:
[0232] The fifth interface is displayed in the second display area, and the interface displayed in the first display area remains unchanged. Fig. 11B Based on the above, the second interface in the second display area is interface 1103, the interface in the first display area is interface 1101, the fifth operation is an operation in which the user clicks a return control (e.g., a back key) on interface 1103, and the fifth interface is interface 1102. In response to the fifth operation, the tablet displays interface 1102 in the second display area, and still displays interface 1101 in the first display area.
[0233] Alternatively, the tablet displays the fifth interface in the first display area, and the interface displayed in the second display area remains unchanged. Fig. 11B Based on the fifth operation, the second interface displayed in the second display area is interface 1103, the interface displayed in the first display area is interface 1101, the fifth operation is the operation of the user clicking the return control on interface 1103, and the fifth interface is interface 1102. In response to the fifth operation, the tablet displays interface 1102 in the first display area and still displays interface 1103 in the second display area.
[0234] Alternatively, the tablet stops displaying the second interface in the second display area, and the content displayed in the second display area is the desktop, that is, part of the desktop background is exposed, and the first interface is still displayed in the first display area. Fig.11A On the basis of the above, the second interface in the second display area is interface 1102, the interface in the first display area is interface 1101, the fifth operation is an operation of the user clicking the return control on interface 1103, and the fifth interface is interface 1101. In response to the fifth operation, the tablet still displays interface 1101 in the first display area and displays the desktop in the second display area, that is, part of the desktop background is exposed in the second display area.
[0235] Without considering the hierarchical relationship between interfaces, after the above step 405, the method may further include the following display schemes:
[0236] (1) The tablet detects a sixth operation on the first interface, and the sixth operation is used to open the sixth interface of the first application. In response to the sixth operation, the tablet displays the sixth interface in the second display area, and the first interface is still displayed in the first display area. In other words, the tablet always displays the first interface of the first application in the first display area, and displays other interfaces of the first application called by the first interface in the second display area. Therefore, when the first interface is the homepage of the first application, the homepage can remain displayed in the first display area, which is convenient for users to frequently operate the homepage.
[0237] For example, in Figure 5C On the basis of the first interface in the first display area is interface 507, and the second interface in the second display area is interface 509. If the tablet detects that the user clicks the "hotspot" control on interface 507, the information list interface of the "hotspot" is displayed in the second display area; if the tablet detects that the user clicks an information on interface 507, the detailed information of the information link is displayed in the second display area.
[0238] (2) The tablet detects a seventh operation in the first display area or the second display area, and the seventh operation is used to open the seventh interface of the first application. In response to the seventh operation, the tablet displays the sixth interface in the second display area, and the first interface is still displayed in the first display area. In other words, the tablet always displays the first interface of the first application in the first display area, and displays other interfaces of the first application except the first interface in the second display area. Therefore, when the first interface is the homepage of the first application, the homepage can remain displayed in the first display area, so that the user can frequently operate the homepage.
[0239] For example, in Fig.11A On the basis of the above, the interface in the first display area may be the homepage 1101 of Taobao, and the interface in the second display area may be the hat list interface 1102. If the tablet detects that the user operates on the interface 1101 in the first display area or the interface 1102 in the second display area to open another interface of the first application, the other interface is displayed in the second display area, while the interface 1101 is kept displayed in the first display area.
[0240] (3) If the tablet detects an eighth operation in the first display area, and the eighth operation is used to open the eighth interface of the first application, the tablet will respond to the eighth operation and display the eighth interface in the second display area, while the first interface is still displayed in the first display area. If the tablet detects a ninth operation in the second display area, and the ninth operation is used to open the ninth interface of the first application, the tablet will respond to the ninth operation and display the ninth interface in the first display area, while the second interface is still displayed in the second display area. In other words, other interfaces of the first application called by the tablet through the interface in the first display area are displayed in the second display area; other interfaces called by the tablet through the interface in the second display area are displayed in the first display area. In other words, other interfaces called by the tablet through the interface in a certain display area are displayed in another display area, which makes it easy to compare the actively called interface with the called interface.
[0241] For example, in Fig.11A On the basis of the above, the interface in the first display area may be the homepage 1101 of Taobao, and the interface in the second display area may be the hat list interface 1102. If the tablet detects that the user operates on the interface 1101 in the first display area to open other interfaces of the first application, the other interface is displayed in the second display area, and the interface 1101 is kept displayed in the first display area. If the tablet detects that the user operates on the interface 1102 in the second display area to open other interfaces of the first application, the other interface is displayed in the first display area, and the interface 1102 is kept displayed in the second display area.
[0242] (4) If the tablet detects an eighth operation in the first display area, and the eighth operation is used to open the eighth interface of the first application, the tablet will respond to the eighth operation and display the eighth interface in the first display area, while the second interface is still displayed in the second display area. If the tablet detects a ninth operation in the second display area, and the ninth operation is used to open the ninth interface of the first application, the tablet will respond to the ninth operation and display the ninth interface in the second display area, while the first interface is still displayed in the first display area. In other words, other interfaces of the first application called by the tablet through the interface in the first display area are displayed in the first display area; other interfaces called by the tablet through the interface in the second display area are displayed in the second display area. That is, other interfaces called by the tablet through the interface in a certain display area are still displayed in the same display area. In this way, interfaces with a calling relationship are displayed in the same display area.
[0243] For example, in Fig.11A On the basis of the above, the interface in the first display area may be the homepage 1101 of Taobao, and the interface in the second display area may be the hat list interface 1102. If the tablet detects that the user operates on the interface 1101 in the first display area to open other interfaces of the first application, the other interface is displayed in the first display area, and the interface 1102 is kept displayed in the second display area. If the tablet detects that the user operates on the interface 1102 in the second display area to open other interfaces of the first application, the other interface is displayed in the second display area, and the interface 1101 is kept displayed in the first display area.
[0244] Furthermore, after the tablet exits the first application and returns to the desktop, if the user's operation on the desktop for indicating opening the second application is detected, or the user's voice operation for indicating opening the second application is detected, the tablet can display the interface of the second application in the same manner as the tablet displays the interface of the first application. For example, after the tablet displays the interface of the first application, if the tablet returns to the desktop and detects the user's touch operation on the desktop for indicating opening the second application, the tablet displays the interface of the second application.
[0245] In some embodiments, in the scheme described in steps 401-410, when the tablet detects the user's operation on the interface of the first application to indicate the opening of the second application, the tablet can display the interface of the second application in the second display area. For example, the first application is Toutiao and the second application is WeChat. When the user indicates to share through WeChat on the interface of the Toutiao application, the tablet detects the user's operation on the interface of the Toutiao application to indicate the opening of WeChat, and the tablet can display the interface of WeChat in the second display area, and the content displayed in the first display area remains unchanged. Then, when exiting the interface of the second application displayed in the second display area, the tablet can prompt the user whether to return to the first application or stay in the second application. If the user indicates to return to the first application, the tablet will resume displaying the interface of the first application (the interface of the first application before displaying the interface of the second application) in the second display area, and the content displayed in the first display area will remain unchanged; if the user indicates to stay in the second application, the tablet will no longer display the interface of the first application, but will display the homepage of the second application in the first display area, and display other interfaces of the second application according to steps 404-413, which will not be repeated here.
[0246] In some embodiments, the tablet can display the first interface according to the display mode selected by the user. Fig.12 , the above step 403 may include:
[0247] 1201. The tablet determines whether the first application supports horizontal full-screen display. If not, execute step 1202; if supported, execute step 1203.
[0248] 1202. The tablet displays a first interface of a first application in a first display area of the display screen.
[0249] 1203. The tablet prompts the user to select a display mode, which includes horizontal full-screen display and area display, and then executes step 1204.
[0250] 1204. The tablet determines the display mode selected by the user. If the tablet detects that the user selects the area display mode, step 1202 is executed. If the tablet detects that the user selects the horizontal full screen display mode, step 1205 is executed.
[0251] 1205. The tablet displays the first interface in full screen in the horizontal mode.
[0252] Among them, the regional display method refers to the method provided by the embodiment of the present application, in which the tablet displays the interface of the application in the display area of the display screen in the horizontal screen state. In other words, before displaying the interface of the first application, the tablet can first determine whether the first application supports horizontal full-screen display. If the first application does not support horizontal full-screen display, the tablet uses the regional display method provided by the embodiment of the present application to display the first interface of the first application in the first display area, and displays other interfaces of the first application.
[0253] If the first application supports horizontal full-screen display, in one case, the tablet can display the interface of the first application in horizontal full-screen display by default; in another case, the tablet can ask the user whether to use the horizontal full-screen display method or the area display method provided in the embodiment of the present application. If the user indicates to use the horizontal full-screen display method, the tablet displays the interface of the first application in horizontal full-screen display; if the user indicates to use the area display method, the tablet uses the display method provided in the embodiment of the present application to display the interface of the first application. For example, see Fig.13 The tablet can prompt the user which display mode to use through the prompt box 1301. Alternatively, the user can set some whitelists, and the applications in the whitelist use the regional display mode when the tablet is in landscape mode. Alternatively, the applications in the whitelist use the full screen display mode when the tablet is in landscape mode.
[0254] In other embodiments, the tablet displays the interface of the first application in a regional display manner in the landscape state. When the tablet switches from the landscape state to the portrait state, the tablet can display the interface of the first application in full screen in the portrait state.
[0255] At this time, the interface of the first application displayed in full screen in the vertical screen state of the tablet can be the interface most recently displayed in the display area of the tablet in the horizontal screen state. Fig.11A On the basis of, the latest interface displayed in the display area of the tablet in the horizontal screen state is interface 1102. When the tablet is switched from the horizontal screen state to the vertical screen state, the tablet can display interface 1102 in full screen in the vertical screen state.
[0256] Alternatively, the interface of the first application displayed in full screen when the tablet is in portrait mode may be the interface of the most recently detected user operation in the display area when the tablet is in landscape mode. Fig.11A Based on the above, the interface in the display area of the tablet in the horizontal screen state that is most recently detected to be operated by the user is interface 1101. After the tablet is switched from the horizontal screen state to the vertical screen state, see Fig.14 , the tablet can display interface 1101 in full screen in portrait mode.
[0257] Alternatively, the interface of the first application displayed in full screen when the tablet is in portrait mode may be the interface most recently displayed in the preset display area when the tablet is in landscape mode. Fig.11A On the basis of, the interface in the first display area is interface 1101. When the tablet is switched from the horizontal screen state to the vertical screen state, the tablet can display interface 1101 in full screen in the vertical screen state.
[0258] Since the absolute value of the difference between the aspect ratio of the tablet display screen and the preset ratio in the portrait state is usually less than or equal to the preset value 2, that is, the aspect ratio of the tablet display screen is slightly different from the preset ratio, the tablet can normally display the interface of the application in the portrait state. After the tablet displays the interface of the first application in the landscape state, if the tablet switches to the portrait state, the tablet normally displays the interface of the first application in the portrait state (full-screen display in portrait). Moreover, when the tablet detects the user's operation for opening another interface, it normally displays the other interface in the portrait state. That is, the tablet can normally display the interface of the application in both the portrait state and the landscape state.
[0259] The above description is based on an example in which the display screen of the tablet includes two display areas in the horizontal screen state. In some other embodiments, in the horizontal screen state, the display screen of the tablet may also include one display area or more than two display areas.
[0260] For example, see Fig.15 In the horizontal screen state, the display screen of the tablet includes a display area 1501, and the absolute value of the difference between the aspect ratio of the display area and the preset ratio is less than or equal to the preset value 2, that is, the aspect ratio of the display area is slightly different from the preset ratio. When displaying the interface of the application, the tablet can normally display the interface of the application in the display area of the display screen.
[0261] In some embodiments, in the horizontal screen state, when displaying the first interface of the first application, the tablet includes a Fig.13 The display area 1501 shown in FIG. 15 shows a first interface displayed in the display area 1501. When the tablet continues to display other interfaces of the first application, the display screen includes Figure 6 In the display area 601 and the display area 602 shown, the first interface of the first application is displayed in the first display area 601, and the tablet displays other interfaces of the first application in the display area 601 and the display area 602 according to the display method described in the above embodiment.
[0262] For another example, see Fig.16In the horizontal screen state, the display screen of the tablet includes three display areas, namely display area 1601, display area 1602 and display area 1603. The tablet can display different interfaces of an application in these three display areas. For example, if the user operation requests to open a new interface corresponding to the same level as the interface in the current display area, the new interface is displayed in the current display area. If the user operation requests to open a new interface of the upper level of the interface in the current display area, the new interface is displayed in another display area on the left side of the current display area; if there is no other display area on the left side of the current display area, the new interface is displayed in the current display area. If the user operation requests to open a new interface of the lower level of the interface in the current display area, the new interface is displayed in another display area on the right side of the current display area; if there is no other display area on the right side of the current display area, the new interface is displayed in the current display area.
[0263] It is understandable that, in order to realize the above functions, the electronic device includes hardware and / or software modules corresponding to the execution of each function. In combination with the algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in combination with the embodiments, but such implementation should not be considered to be beyond the scope of the present application.
[0264] In this embodiment, the electronic device can be divided into functional modules according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0265] In the case of dividing each functional module into corresponding functional modules, Fig.17 A possible schematic diagram of the composition of the electronic device 1700 involved in the above embodiment is shown. Fig.17 As shown, the electronic device 1700 may include: a display unit 1701 and a detection unit 1702 .
[0266] Among them, the display unit 1701 can be used to support the electronic device 1700 to execute the above-mentioned steps 401A, step 401B, step 403, step 405, step 407, step 408, step 410, step 411, step 412, step 413, etc., and / or other processes for the technology described in this article.
[0267] The processing unit 1702 may be configured to support the electronic device 1700 in executing the above-mentioned steps 402 , 404 , 406 , 409 , etc., and / or other processes for the technology described herein.
[0268] It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.
[0269] The electronic device 1700 provided in this embodiment is used to execute the above-mentioned application display method, and thus can achieve the same effect as the above-mentioned implementation method.
[0270] In the case of using integrated units, the electronic device 1700 may include a processing module, a storage module and a communication module. Among them, the processing module can be used to control and manage the actions of the electronic device 1700, for example, it can be used to support the electronic device 1700 to perform the steps performed by the above-mentioned display unit 1701 and the detection unit 1702. The storage module can be used to support the electronic device 1700 to store program codes and data, etc. The communication module can be used to support the communication between the electronic device 1700 and other devices.
[0271] Among them, the processing module can be a processor or a controller. It can implement or execute various exemplary logic boxes, modules and circuits described in conjunction with the disclosure of this application. The processor can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc. The storage module can be a memory. The communication module can specifically be a device that interacts with other electronic devices, such as a radio frequency circuit, a Bluetooth chip, a Wi-Fi chip, etc.
[0272] In one embodiment, when the processing module is a processor and the storage module is a memory, the electronic device involved in this embodiment may be a Figure 2A Device of the structure shown.
[0273] An embodiment of the present application further provides a computer storage medium, in which computer instructions are stored. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the application display method in the above-mentioned embodiment.
[0274] An embodiment of the present application further provides a computer program product. When the computer program product is run on a computer, the computer is caused to execute the above-mentioned related steps to implement the application display method executed by the electronic device in the above-mentioned embodiment.
[0275] In addition, an embodiment of the present application also provides a device, which may specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer execution instructions, and when the device is running, the processor may execute the computer execution instructions stored in the memory so that the chip executes the application display method executed by the electronic device in the above-mentioned method embodiments.
[0276] Among them, the electronic device, computer storage medium, computer program product or chip provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above and will not be repeated here.
[0277] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned 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.
[0278] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0279] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0280] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0281] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
[0282] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims
1. An application display method, characterized in that: The method comprises: An electronic device detects a first operation, the electronic device comprising a first application; In response to the first operation, the electronic device displays a first interface of a first application on a display screen of the electronic device; The electronic device detects a second operation on the first interface, where the second operation is used to open a second interface of the first application; the second interface corresponds to a different activity than the first interface; The electronic device displays the second interface in the second area in response to the second operation; wherein when the second interface is displayed in the second area, the first interface is displayed in the first area; the display screen includes at least two areas, and the at least two areas include the first area and the second area which do not overlap; The electronic device detects a third operation on the first interface displayed in the first area, where the third operation is used to open a third interface of the first application; If the third interface and the first interface correspond to the same Activity, the electronic device updates the first interface displayed in the first area to the third interface in response to the third operation, and the interface displayed in the second area remains unchanged; If the third interface and the first interface correspond to different Activities, the electronic device updates the second interface displayed in the second area to the third interface in response to the third operation, and the interface displayed in the first area remains unchanged.
2. The method according to claim 1, characterized in that If the third interface and the first interface correspond to the same Activity, the electronic device updates the first interface displayed in the first area to the third interface in response to the third operation, and the interface displayed in the second area remains unchanged, and the method further includes: The electronic device detects a fourth operation on the second interface, where the fourth operation is used to open a fifth interface of the first application; In response to the fourth operation, the electronic device updates the second interface displayed in the second area to the fifth interface, and the interface displayed in the first area remains unchanged; the fifth interface and the second interface correspond to the same or different Activities.
3. The method according to claim 1, characterized in that If the third interface and the first interface correspond to different activities, the electronic device updates the second interface displayed in the second area to the third interface in response to the third operation, and the interface displayed in the first area remains unchanged, the method further includes: The electronic device detects a fifth operation on the third interface, where the fifth operation is used to open a sixth interface of the first application; In response to the fifth operation, the electronic device updates the third interface displayed in the second area to the sixth interface, and the interface displayed in the first area remains unchanged; the sixth interface and the third interface correspond to the same or different Activities.
4. The method according to claim 2, characterized in that: Also includes: The electronic device detects a first return operation on the fifth interface; In response to the first return operation, the electronic device updates the fifth interface displayed in the second area to the second interface, and the interface displayed in the first area remains unchanged.
5. The method according to claim 1, characterized in that If the third interface and the first interface correspond to the same Activity, the electronic device updates the first interface displayed in the first area to the third interface in response to the third operation, and the interface displayed in the second area remains unchanged, and the method further includes: The electronic device detects a sixth operation on the third interface, where the sixth operation is used to open a seventh interface of the first application; If the seventh interface and the third interface correspond to the same Activity, the electronic device will update the third interface displayed in the first area to the seventh interface in response to the sixth operation, and the interface displayed in the second area remains unchanged; if the seventh interface and the third interface correspond to different Activities, the electronic device will update the second interface displayed in the second area to the seventh interface in response to the sixth operation, and the third interface will still be displayed in the first area.
6. The method according to claim 1, characterized in that If the third interface and the first interface correspond to the same Activity, the electronic device updates the first interface displayed in the first area to the third interface in response to the third operation, and the interface displayed in the second area remains unchanged, and the method further includes: The electronic device detects a second return operation on the third interface; In response to the second return operation, the electronic device updates the third interface displayed in the first area to the first interface.
7. The method according to claim 4, characterized in that Also includes: When the electronic device displays the second interface in the second area, the second interface is pushed into the stack; When the electronic device updates the second interface to the fifth interface, the fifth interface is pushed into the stack; When the electronic device updates the fifth interface to the second interface in response to the first return operation, the fifth interface is popped out.
8. The method according to claim 6, characterized in that Also includes: When the electronic device displays the first interface, the first interface is pushed into a stack; When the electronic device updates the first interface to the third interface, the third interface is pushed into the stack; When the electronic device updates the third interface to the first interface in response to the second return operation, the third interface is popped out.
9. The method according to claim 1, characterized in that: The first operation is an operation for opening the first application.
10. The method according to claim 1, characterized in that The electronic device further includes a second application, and the method further includes: In response to the seventh operation, the electronic device displays an eighth interface of the second application on the display screen of the electronic device; The electronic device detects an eighth operation on the eighth interface, where the eighth operation is used to open a ninth interface of the second application, where the ninth interface and the eighth interface correspond to different activities; In response to the eighth operation, the electronic device displays the ninth interface in the second area; wherein when the ninth interface is displayed in the second area, the eighth interface is displayed in the first area; the display screen includes the first area and the second area, and the first area and the second area do not overlap; The electronic device detects a ninth operation on the ninth interface, where the ninth operation is used to open a tenth interface of the second application; If the tenth interface and the ninth interface correspond to the same Activity, the electronic device updates the ninth interface displayed in the second area to the tenth interface in response to the ninth operation, and the interface displayed in the first area remains unchanged; If the tenth interface and the ninth interface correspond to different Activities, the electronic device updates the ninth interface displayed in the second area to the tenth interface and updates the eighth interface displayed in the first area to the ninth interface in response to the ninth operation.
11. The method according to claim 10, characterized in that If the tenth interface and the ninth interface correspond to different activities, then the electronic device updates the ninth interface displayed in the second area to the tenth interface in response to the ninth operation, and updates the eighth interface displayed in the first area to the ninth interface, and the method further includes: The electronic device detects a tenth operation on the ninth interface, where the tenth operation is used to open an eleventh interface of the second application; If the eleventh interface and the ninth interface correspond to the same Activity, the electronic device updates the ninth interface displayed in the first area to the eleventh interface in response to the tenth operation, and the interface displayed in the second area remains unchanged; If the eleventh interface and the ninth interface correspond to different Activities, the electronic device updates the tenth interface displayed in the second area to the eleventh interface in response to the tenth operation, and the interface displayed in the first area remains unchanged.
12. The method according to claim 10, characterized in that If the tenth interface and the ninth interface correspond to different activities, then the electronic device updates the ninth interface displayed in the second area to the tenth interface in response to the ninth operation, and updates the eighth interface displayed in the first area to the ninth interface, and the method further includes: The electronic device detects an eleventh operation on the tenth interface, where the eleventh operation is used to open a twelfth interface of the second application; If the twelfth interface and the tenth interface correspond to the same Activity, the electronic device updates the tenth interface displayed in the second area to the twelfth interface in response to the eleventh operation, and the interface displayed in the first area remains unchanged; If the twelfth interface and the tenth interface correspond to different Activities, the electronic device updates the tenth interface displayed in the second area to the twelfth interface and updates the ninth interface displayed in the first area to the tenth interface in response to the eleventh operation.
13. The method according to claim 10, characterized in that If the tenth interface and the ninth interface correspond to different activities, then the electronic device updates the ninth interface displayed in the second area to the tenth interface in response to the ninth operation, and updates the eighth interface displayed in the first area to the ninth interface, and the method further includes: The electronic device detects a third return operation on the ninth interface displayed in the first area; In response to the third return operation, the electronic device updates the ninth interface displayed in the first area to the eighth interface.
14. The method according to claim 12, characterized in that If the twelfth interface and the tenth interface correspond to different activities, then the electronic device updates the tenth interface displayed in the second area to the twelfth interface in response to the eleventh operation, and updates the ninth interface displayed in the first area to the tenth interface, and the method further includes: The electronic device detects a fourth return operation on the tenth interface displayed in the first area; In response to the fourth return operation, the electronic device updates the tenth interface displayed in the first area to the ninth interface.
15. The method according to claim 11, characterized in that Also includes: The electronic device detects a fifth return operation on the eleventh interface displayed in the second area; In response to the fifth return operation, the electronic device updates the eleventh interface displayed in the second area to the tenth interface.
16. The method according to claim 12, characterized in that Also includes: The electronic device detects a sixth return operation on the twelfth interface displayed in the second area; In response to the sixth return operation, the electronic device updates the twelfth interface displayed in the second area to the tenth interface, and the interface displayed in the first area remains unchanged.
17. The method according to claim 12, characterized in that If the twelfth interface and the tenth interface correspond to different activities, then the electronic device updates the tenth interface displayed in the second area to the twelfth interface in response to the eleventh operation, and updates the ninth interface displayed in the first area to the tenth interface, and the method further includes: The electronic device detects a seventh return operation on the twelfth interface displayed in the second area; In response to the seventh return operation, the electronic device updates the twelfth interface displayed in the second area to the tenth interface, and also updates the tenth interface displayed in the first area to the ninth interface.
18. The method according to any one of claims 1 to 17, characterized in that: The first area is located on the left side of the second area; or, the first area is located on the right side of the second area.
19. The method according to any one of claims 1 to 17, characterized in that: The display height of the first area is the same as the display height of the second area; or The aspect ratio of the first region is the same as the aspect ratio of the second region; or The size of the first area is the same as the size of the second area.
20. The method according to any one of claims 1 to 17, characterized in that: The electronic device displays, in response to the first operation, a first interface of the first application on a display screen of the electronic device, including: In response to the first operation, the electronic device displays the first interface of the first application on a display screen of the electronic device in a horizontal state.
21. The method according to claim 20, characterized in that The horizontal screen state is a state in which an angle between the long side of the display screen and a horizontal plane is less than or equal to a first preset value.
22. The method according to claim 1, characterized in that: The level of the second interface is lower than the level of the first interface; or The second interface is a detailed interface corresponding to the link of the second operation effect; or When the third interface and the first interface correspond to different Activities, the level of the third interface is lower than that of the first interface, or the third interface is a detailed interface corresponding to the link of the third operation.
23. The method according to any one of claims 1 to 17, characterized in that: The electronic device displays a first interface of a first application on a display screen of the electronic device in response to the first operation, including: In response to the first operation, the electronic device displays the first interface of the first application in the first area of the display screen of the electronic device.
24. The method according to any one of claims 1 to 17, characterized in that: The electronic device displays a first interface of a first application on a display screen of the electronic device in response to the first operation, comprising: the electronic device displays the first interface of the first application in a third area of the display screen of the electronic device in response to the first operation; wherein the third area overlaps with both the first area and the second area; The electronic device displays the second interface in the second area in response to the second operation, including: the electronic device displays the first interface in the first area and displays the second interface in the second area in response to the second operation.
25. The method according to claim 23, characterized in that When the electronic device displays the first interface of the first application in the first area of the display screen of the electronic device in response to the first operation, the interface of the first application is not displayed in the second area.
26. The method according to claim 25, characterized in that The second area not displaying the interface of the first application includes: the second area displaying a wallpaper pattern, a desktop background or a blank interface.
27. The method according to any one of claims 1 to 17, characterized in that: Before the electronic device detects the first operation, the method further includes: The electronic device displays the desktop in full screen in a horizontal state, and the first operation is an operation for opening the first application; or The electronic device displays the first interface in full screen in a portrait state, and the first operation is an operation of switching from the portrait state to the landscape state.
28. The method according to any one of claims 1 to 17, characterized in that After displaying different interfaces of the first application in the first area and the second area respectively, the method further includes: If the electronic device is switched from the horizontal screen state to the vertical screen state, the electronic device displays the interface of the first application in full screen in the vertical screen state; The vertical screen state is a state in which an angle between a long side of the display screen and a horizontal plane is greater than a first preset value.
29. The method according to claim 28, characterized in that The interface of the first application displayed in full screen is the interface most recently displayed by the electronic device in the horizontal screen state; or The interface of the first application displayed in full screen is the interface of the most recent user operation detected by the electronic device in the horizontal screen state; or The interface of the first application displayed in full screen is the latest interface displayed in a preset area of the electronic device in the horizontal screen state.
30. The method according to any one of claims 1 to 17, characterized in that Displaying a first interface of a first application on a display screen of the electronic device includes: After displaying the advertisement page of the first application, the first interface of the first application is displayed on the display screen.
31. The method according to any one of claims 1 to 17, characterized in that Also includes: When the electronic device detects an operation for indicating opening a third application on any interface of the first application displayed in the first area, the electronic device displays the interface of the third application in the second area; the interface of the first application is still displayed in the first area.
32. The method according to any one of claims 1 to 17, characterized in that: The second operation is a click operation on the first interface, and the method further includes: In response to the second operation, the display effect of the clicked content on the first interface changes.
33. The method according to claim 32, characterized in that One or more of the color, brightness, contrast, grayscale or display form of the clicked content changes.
34. The method according to any one of claims 1 to 17, characterized in that: The first operation is a gesture operation or a voice operation of the user; or The first operation is a touch gesture operation of the user; or The first operation is a floating gesture operation of the user.
35. The method according to any one of claims 1 to 17, characterized in that: The first area and the second area are respectively in the shape of vertical bars.
36. The method according to any one of claims 1 to 17, characterized in that: The first interface includes a search box; or The first interface includes an identifier for triggering the electronic device to perform a scan operation.
37. The method according to any one of claims 1 to 17, characterized in that: The display screen of the electronic device is at least two display screens.
38. The method according to any one of claims 1 to 17, characterized in that: There is a gap between the first region and the second region.
39. The method according to any one of claims 1 to 17, characterized in that: The size or aspect ratio of the first area or the second area can be set by a user.
40. The method according to any one of claims 1 to 17, characterized in that Also includes: The electronic device detects a drag operation; The electronic device adjusts the size or aspect ratio of the first area or the second area in response to the drag operation.
41. The method according to any one of claims 1 to 17, characterized in that: One activity corresponds to one window, and the different interfaces corresponding to one activity are sub-windows of one window.
42. The method according to any one of claims 1 to 17, characterized in that: When the two interfaces of the first application correspond to the same Activity, the two interfaces correspond to the same level; or When the two interfaces of the first application correspond to different Activities, the two interfaces correspond to different levels.
43. The method according to any one of claims 1 to 17, characterized in that: The electronic device runs an Android operating system to execute the application display method.
44. The method according to claim 43, characterized in that: The Android operating system includes an application framework layer, and the application framework layer includes an activity management server AMS and an activity startup policy manager ASPM; the AMS is used to manage the Activity; the ASPM is used to determine the startup parameters of the Activity; The electronic device displays the interface of the first application in the following manner: The first application receives an input event corresponding to a user operation, and the first application calls the startActivity interface in the AMS to start the Activity corresponding to the input event; the AMS requests the ASPM to obtain startup parameters; the ASPM determines the startup parameters and returns the startup parameters to the AMS; the AMS calls the window management server WMS according to the startup parameters; the WMS draws the window corresponding to the Activity according to the startup parameters, and calls the display driver to display the interface.
45. The method according to claim 44, characterized in that The WMS draws a window corresponding to the Activity according to the startup parameters, including: The WMS determines, according to the startup parameters, whether there is an Activity window matching the startup parameters in the background; If there is an Activity window in the background that matches the startup parameter, the WMS sets the background Activity window that matches the startup parameter to be visible; If there is no Activity window matching the startup parameters in the background, the WMS creates a new Activity window according to the startup parameters and draws the window content.
46. The method according to claim 44, characterized in that The ASPM determines the startup parameters including: The ASPM determines the startup parameters according to the Activity startup scenario; The startup parameters of the Activity include any one or more of the following: the display mode of the Activity window, the location where the Activity window is started, the stack where the Activity window is started, and the width and height in the application startup config; The Activity window display mode includes full screen display or area display; or The Activity startup scenario includes any one or more of the following: the Activity is started from the desktop, the Activity is started from within the current application, the Activity is started by calling other applications, the electronic device is currently in a horizontal screen state, the electronic device is currently in a vertical screen state, the electronic device is currently in a full-screen display mode, and the electronic device is currently in a regional display mode.
47. The method according to claim 44, characterized in that Also includes: When the startup parameters determined by the ASPM are different from the startup parameters previously saved by the electronic device, the ASPM modifies the previously saved startup parameters into the startup parameters currently determined by the ASPM.
48. The method according to claim 44, characterized in that Also includes: If the area display mode is adopted, then in the startup parameters, the window startup position is the first area or the second area, the startup window stack is a multi-window stack, and the width and height information in the application startup config is the width information and height information of the first area or the second area; or If full-screen display is adopted, in the startup parameters, the window startup position is full-screen, the startup window stack is a full-screen stack, and the width and height information in the application startup config is the width information and height information of the display screen in full screen.
49. An electronic device comprising a display screen, a memory, one or more processors, and one or more programs; wherein the one or more programs are stored in the memory; characterized in that: When the one or more processors execute the one or more programs, the electronic device performs the method as described in any one of claims 1-48.
50. A computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium, characterized in that: When the instructions are executed on an electronic device, the electronic device is caused to execute the method as described in any one of claims 1 to 48.
51. A computer program product, when the computer program product is run on an electronic device, enables the electronic device to execute the method according to any one of claims 1-48.
Citation Information
Patent Citations
Multiwindow interface realization method based on Android operating system
CN104461242A
Application interface display method and terminal device
WO2018040010A1
