Display method, graphical interface and related device
The display method and graphical interface address the challenge of operating large screens by flexibly rearranging content positions, enhancing user convenience and experience through a system-level boundary switching function.
Patent Information
- Application Number
- CN202310660314.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-05
- Publication Date
- 2024-12-06
AI Technical Summary
The larger the screen on electronic devices, the more difficult it is for users to operate certain areas with their fingers, leading to a less efficient user experience due to restricted finger operation range.
A display method and graphical interface that allows flexible adjustment of content layout based on user operations, moving content from inconvenient to convenient operation areas by swapping positions vertically or horizontally, using a system-level boundary switching function.
Enhances user convenience by allowing easier operation of electronic devices by adjusting content positions according to user needs, improving overall user experience.
Smart Images

Figure CN119088265A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminals, and in particular to display methods, graphical interfaces and related devices. Background Art
[0002] In the development process of the terminal field, whether in the past or now, "big screen" has always been one of the core competitive advantages of electronic devices. The larger the screen, the more information it can carry, and the more efficient the user is in handling transactions on the electronic device.
[0003] However, this also brings up a problem: since the range of operation that users can perform with their fingers is limited when holding an electronic device, the larger the screen, the larger the screen area that is inconvenient for users to operate.
[0004] Take the mobile phone as an example, Figure 1 When the user holds the mobile phone in his right hand and interacts with the mobile phone by touching the screen with his right thumb, the area where the screen is located can be divided into a convenient operation area and a non-convenient operation area, where the display content in the convenient operation area is content that is easy for the user to touch, and the display content in the non-convenient operation area is content that is not easy for the user to touch.
[0005] It is conceivable that if the content that the user wants to operate is located in an area of the screen that is inconvenient for the user to operate, the user often cannot quickly and easily operate the content in that area, and may even need to change the posture of holding the electronic device, which greatly affects the user's experience. Summary of the invention
[0006] The present application provides a display method, a graphical interface and related devices, which realize flexible adjustment of the layout of the page according to the user operation, so that the user can control the electronic device more conveniently.
[0007] In a first aspect, an embodiment of the present application provides a display method, which includes: an electronic device displays a first page of a first application, the first page includes first content and second content, and the first content is located above the second content in the first page; the electronic device detects a first operation; the electronic device displays a second page, the second page includes first content and second content, and the first content is located below the second content in the second page.
[0008] By implementing the method provided in the first aspect, the upper and lower positions of the displayed content in the page can be flexibly adjusted according to the user's needs, avoiding the user's operation being restricted by the fixed display position of the displayed content in the page, and moving the content in the upper area of the page that is not easy for the user to operate to the lower area that is easy for the user to operate, so that the user can operate the electronic device more conveniently.
[0009] In combination with the first aspect, in a possible implementation manner, the widths of the first content and the second content may both be the width of the first page.
[0010] In this way, the first content and the second content can be regarded as the contents contained in the first page divided into multiple contents placed vertically. When the user adjusts the display position of the first content and the second content, the layout of the first content and the second content in the first page can be changed directly by moving the displayed content vertically.
[0011] In combination with the first aspect, in a possible implementation manner, the first content in the first page is displayed in an upper area of a display screen of the electronic device, and the first content in the second page is displayed in a lower area of the display screen.
[0012] It can be seen that this method can move the content in the upper area of the page, which is not easy for users to operate, to the lower area, which is easy for users to operate, based on user operations, thereby providing convenience for users to easily operate page content.
[0013] In a second aspect, an embodiment of the present application provides another display method, which includes: an electronic device displays a first page of a first application, the first page including first content and second content, the first content is located to the left of the second content in the first page, and the first content in the first page is displayed in the left area of the display screen of the electronic device; the electronic device detects a first operation; the electronic device displays a second page, the second page including first content and second content, the first content is located to the right of the second content in the second page, and the first content in the second page is displayed in the right area of the display screen.
[0014] By implementing the method provided in the second aspect, the left and right positions of the displayed content in the page can be flexibly adjusted according to the user's needs, avoiding the user's operation being restricted by the fixed display position of the displayed content in the page, and facilitating the user to operate the electronic device more conveniently.
[0015] In combination with the second aspect, in a possible implementation manner, the height of the first content and the height of the second content may both be the height of the first page.
[0016] In this way, the first content and the second content can be regarded as the content included in the first page divided into multiple contents placed on the left and right. When the user adjusts the display position of the first content and the second content, the layout of the first content and the second content in the first page can be changed directly by moving the displayed content horizontally.
[0017] In combination with the second aspect, in a possible implementation manner, the first content in the first page is displayed in a left area of a display screen of the electronic device, and the first content in the second page is displayed in a right area of the display screen.
[0018] It can be seen that this method can move the content in the left area of the page, which is not easy for users to operate, to the right area, which is easy for users to operate, based on user operations, thereby providing convenience for users to easily operate page content.
[0019] In combination with the first aspect and the second aspect, in a possible implementation method, the first operation includes any one of the following: a preset operation, an operation acting on a first icon, wherein the first icon is an icon corresponding to a boundary switching function in a drop-down menu, a sidebar, or a settings application.
[0020] In combination with the first aspect and the second aspect, in a possible implementation, after the electronic device detects the first operation, the method also includes: in response to the first operation, the electronic device displays a first identifier in the first page; the electronic device detects a second operation of dragging the first identifier in a first direction, and the first direction is the direction in which the second content in the first page points to the first content.
[0021] In this way, the user can adjust the positions of the first content and the second content on the page by dragging the first mark.
[0022] In combination with the first aspect and the second aspect, in a possible implementation, in the first page, the first identifier is located at an edge of a first side of the second content, where the first side is a side of the second content in the first page relative to the first content.
[0023] In this way, the first identifier is located in an area that is convenient for users to operate. The user can easily and conveniently drag the first identifier to move the first content that is difficult for users to operate to an area that is easy for users to operate, thereby providing users with operational convenience.
[0024] In combination with the first aspect and the second aspect, in a possible implementation, the method further includes: when the electronic device detects a second operation of dragging the first marker to a first direction, the electronic device moves the first marker on the display screen following the movement trajectory of the second operation.
[0025] In this way, the user's dragging operation can be converted into the movement process of the first mark that can be viewed on the page. Through the movement track and movement distance of the first mark, the user can simply and clearly know the page layout adjustment situation. For example, if the first mark moves a large distance, it means that more display content is moved to the bottom of the page, and the page layout is adjusted to a large extent. If the first mark moves a small distance, it means that less display content is moved to the bottom of the page, and the page layout is adjusted to a small extent.
[0026] In combination with the first aspect and the second aspect, in a possible implementation, after the electronic device displays the second page, the method further includes: the electronic device detects a third operation; and in response to the third operation, the electronic device cancels display of the first identification.
[0027] Among them, the third operation can be used to trigger the electronic device to exit the boundary switching mode, so that the user can interact with the content in the page normally and trigger the corresponding function.
[0028] In combination with the first aspect and the second aspect, in a possible implementation method, the third operation includes any one of the following: a preset operation, an operation acting on the first icon, a drag operation acting on the first identifier, an operation of switching pages; wherein the first icon is an icon corresponding to the boundary switching function in a drop-down menu, sidebar or settings application.
[0029] In combination with the first aspect and the second aspect, in a possible implementation manner, the method further includes: in response to the third operation, the electronic device continues to display the second page, or the electronic device displays the first page.
[0030] That is, after the electronic device exits the boundary switching mode, the electronic device can maintain the layout after the page adjustment, or restore the layout before the page adjustment.
[0031] In combination with the first aspect and the second aspect, in a possible implementation, after the electronic device detects the first operation and before displaying the second page, the method also includes: the electronic device detects a fourth operation of dragging the first content in a first direction, or the electronic device detects a fifth operation of dragging the first content to a first side of the second content; wherein the first direction is the direction in which the first content in the first page points to the second content, and the first side is a side of the second content in the first page relative to the first content.
[0032] That is, the electronic device can adjust the display position of the first content by dragging in a specified direction or to a specified position.
[0033] In combination with the first aspect and the second aspect, in a possible implementation, after the electronic device displays the second page, the method also includes: the electronic device detects a sixth operation, and the sixth operation is used to trigger the electronic device to display the first interface element; in response to the sixth operation, the electronic device displays a third page, and displays the first interface element in the third page; the third page includes third content and fourth content, the third content includes a part of the second content and the first content, the fourth content includes another part of the second content, the direction of the third content pointing to the fourth content is the same as the direction of the first content pointing to the second content in the second page, and part or all of the first interface element is displayed in the display area where a part of the second content contained in the third content is located.
[0034] That is, when the electronic device determines that the interface element displayed by the user operation will exceed a certain area in the currently adjusted page, the electronic device can readjust the page layout so that the display range of the displayed interface element does not exceed a certain display area in the page. It can be seen that the electronic device can adaptively adjust the layout of the page so that the electronic device can display the optimal page layout.
[0035] In combination with the first aspect and the second aspect, in a possible implementation, after the electronic device displays the first interface element in the third page, the method also includes: the electronic device detects a seventh operation, and the seventh operation is used to trigger the electronic device to cancel the display of the first interface element; in response to the seventh operation, the electronic device cancels the display of the first interface element in the third page, or the electronic device displays the second page and cancels the display of the first interface element.
[0036] That is, after the electronic device is adaptively adjusted, if the electronic device cancels displaying the interface element causing the adaptive adjustment of the page, the electronic device may keep displaying the page layout after the adaptive adjustment, or may restore to the page layout before the adaptive adjustment.
[0037] In combination with the first aspect and the second aspect, in a possible implementation, after the electronic device displays the second page, the method also includes: the electronic device detects an operation acting on a second interface element in the second page; in response to the operation, the electronic device changes the display effect of the second interface element, and the display effect includes one or more of the following: size, position, color, brightness, and transparency.
[0038] That is to say, during the page adjustment process, the electronic device can also change the display effects of the interface elements in the page to improve the user's operability so that the user can personalize the page layout that suits him or her.
[0039] In combination with the first aspect and the second aspect, in a possible implementation, the first content includes: fifth content and sixth content. After the electronic device detects the first operation, the method also includes: the electronic device detects a selection operation acting on the fifth content and the sixth content in the first content.
[0040] That is to say, after selecting multiple contents, the electronic device can adjust the display positions of multiple contents at one time, thereby improving the efficiency of the user in adjusting the page layout.
[0041] In combination with the first aspect and the second aspect, in a possible implementation, after the electronic device displays the second page, the method also includes: the electronic device detects an eighth operation, and the eighth operation is used to trigger the electronic device to display the content in the second page on other devices; in response to the eighth operation, the electronic device sends indication information of the second content, and does not send indication information of the first content.
[0042] That is to say, after the electronic device adjusts the layout of the page, it can further combine the screen projection function to select one or more remaining display contents divided during the adjustment process of the page for screen projection. In this way, part of the content in the page can be displayed intensively, which is convenient for users to quickly find or intensively view part of the content in the page.
[0043] In combination with the first aspect and the second aspect, in a possible implementation, the eighth operation includes a user operation acting on a first icon in the first window, the first window includes a first icon and a second icon, the first icon is used to indicate the second content, and the second icon is used to indicate the first content.
[0044] In combination with the first aspect and the second aspect, in a possible implementation manner, the first content and the second content are display contents of a first page divided by the electronic device according to a first dividing line.
[0045] In combination with the first aspect and the second aspect, in a possible implementation manner, the method is executed by a system unit of the electronic device, and the system unit and the first application are different modules of the electronic device.
[0046] The system unit may be located at the framework layer of the electronic device. In other words, the boundary switching function may be defined as a system-level function. In this way, any application under the system may adjust the layout of the page in response to the first operation, thereby expanding the application scenarios of the page adjustment provided by the embodiment of the present application and improving the user's experience of adjusting the page layout.
[0047] It should be noted that the first content and the second content are the contents in different areas determined by dividing DecorView during the View drawing process. The first application does not perceive the division behavior, and the divided areas carry system information. In other words, when the first content and the second content are exchanged in the first page, it is different from the exchange of display positions between different controls in the application. The first content and the second content divided in the first page refer to cutting the first page horizontally or vertically into multiple areas placed up and down or left and right.
[0048] In this way, when the electronic device adjusts and swaps the first content and the second content, the positions of different areas in the first page can be swapped, and multiple controls contained in the first content and the background where the controls are located can be moved together, thereby changing the layout of the page and achieving a substantial adjustment to the page content, so that the user can move multiple controls contained in an area to an area that is convenient for the user to operate at one time.
[0049] Moreover, the division of DecorView into regions is a system behavior, and the application is not aware of it. The adjustment process is implemented by the system. In other words, the display method provides a system function that can adjust the layout of any application page of any application in the electronic device, expanding the application scenario of the display method. Users can customize the page layout suitable for their own usage habits for any application, making it easier for users to interact with the electronic device.
[0050] In a third aspect, an embodiment of the present application provides an electronic device comprising a memory, one or more processors, and one or more programs; when the one or more processors execute the one or more programs, the electronic device implements the method described in the first aspect or any one of the implementations in the first aspect, the second aspect or any one of the implementations in the second aspect.
[0051] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, comprising instructions, which, when executed on an electronic device, cause the electronic device to execute a method as described in the first aspect or any one of the implementations of the first aspect, or the second aspect or any one of the implementations of the second aspect.
[0052] In a fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product runs on a computer, it enables the computer to execute the method described in the first aspect or any one of the implementations of the first aspect, or the second aspect or any one of the implementations of the second aspect.
[0053] For the beneficial effects of the third to fifth aspects, reference may be made to the description of the beneficial effects in the first and second aspects, and the present application will not repeat them here. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Figure 1 A schematic diagram of a user using an electronic device;
[0055] Figure 2A A schematic diagram of the hardware structure of an electronic device 100 provided in an embodiment of the present application;
[0056] Figure 2B A software structure block diagram of the electronic device 100 provided in an embodiment of the present application;
[0057] Figure 3A-3G , Figure 4A-4C , Figure 5A-5D , Figure 6A-6B , Figure 7A-7B as well as Figure 8A-8C Some exemplary user interfaces provided for embodiments of the present application;
[0058] Fig. 9 A flow chart of a method for page adjustment process provided in an embodiment of the present application;
[0059] Fig.10 A schematic diagram of the dividing lines of a page provided in an embodiment of the present application;
[0060] Fig.11 It is a structural diagram of the screen layout;
[0061] Fig.12 A flow chart for drawing the View;
[0062] Fig.13 A schematic diagram of the execution sequence of the view drawing process and the page adjustment process provided in the embodiment of the present application;
[0063] Fig.14 A flow chart of a method for adaptively adjusting a page provided in an embodiment of the present application;
[0064] Fig.15 A schematic diagram of the dividing line before and after the page adaptive adjustment provided in an embodiment of the present application;
[0065] Fig.16 A flow chart of a display method provided in an embodiment of the present application;
[0066] Fig.17 A flowchart of another display method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0067] The technical solutions in the embodiments of the present application will be described clearly and in detail below in conjunction with the accompanying drawings. 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 the text 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.
[0068] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting 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, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.
[0069] The term "user interface (UI)" in the following embodiments of the present application refers to a medium interface for interaction and information exchange between an application or operating system and a user, which realizes the conversion between the internal form of information and the form acceptable to the user. The user interface is a source code written in a specific computer language such as Java and extensible markup language (XML). The interface source code is parsed and rendered on an electronic device, and finally presented as content that can be recognized by the user. The commonly used form of user interface is a graphical user interface (GUI), which refers to a user interface related to computer operation displayed in a graphical manner. It can be a visual interface element such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, etc. displayed on the display screen of an electronic device.
[0070] An embodiment of the present application provides a display method, in which an electronic device can display a first page of a first application, the first page including first content and second content placed one above the other, the first content in the first page being displayed in the upper area of the display screen, and after the electronic device detects a first operation, the electronic device displays a second page, the second page including second content and first content placed one above the other, and the first content in the second page being displayed in the lower area of the display screen.
[0071] An embodiment of the present application also provides a display method, in which an electronic device can display a first page of a first application, the first page including a first content and a second content placed on the left and right, and the first content in the first page is displayed in the left area of the display screen. After the electronic device detects the first operation, the electronic device displays a second page, the second page including the second content and the first content placed on the left and right, and the first content in the second page is displayed in the right area of the display screen.
[0072] It can be seen that the above two display methods provided in the embodiments of the present application can flexibly adjust the layout of the page according to the needs of the user, avoid the user's operation being restricted by the fixed display position of the displayed content in the page, and improve the user's experience of using the electronic device. In addition, the method can move the content in the area of the page that is not easy for the user to operate to the area that is easy for the user to operate, so that the user can operate the electronic device more conveniently.
[0073] Figure 2A A schematic diagram of the hardware structure of the electronic device 100 is shown.
[0074] The electronic device 100 may be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (PDA), an augmented reality (AR) device, a virtual reality (VR) device, an artificial intelligence (AI) device, a wearable device, an in-vehicle device, a smart home device and / or a smart city device. The embodiments of the present application do not impose any special restrictions on the specific type of the electronic device.
[0075] 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, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0076] It is to be understood that the structure illustrated in the embodiment of the present invention 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 separate 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.
[0077] 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 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.
[0078] In some embodiments, the processor 110 can be used to determine the dividing line of the page, divide the page into multiple rectangular areas with a height equal to the page height, or divide the page into multiple rectangular areas with a width equal to the page width, adjust the display positions of the multiple contents, etc.
[0079] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
[0080] A memory may also be provided in the processor 110 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 is cyclically used.
[0081] 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 the wired charger through the USB interface 130 .
[0082] 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 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, and battery health status (leakage, impedance).
[0083] 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.
[0084] 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.
[0085] 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 can receive electromagnetic waves through the antenna 1, 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.
[0086] 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, demodulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0087] 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. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).
[0088] 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.
[0089] The display screen 194 is used to display images, videos, etc. In some embodiments, the electronic device may include 1 or N display screens 194, where N is a positive integer greater than 1. The electronic device 100 may include 2 display screens 194, in which case the electronic device 100 may be a folding screen device.
[0090] In some embodiments, the display screen 194 can be used to display the user interface involved in the display method provided in the embodiment of the present application, including the application page and the adjustment process of the page. For a detailed description of the user interface, please refer to the subsequent Figure 3A-3G , Figure 4A-4C , Figure 5A-5D , Figure 6A-6B , Figure 7A-7B as well as Figure 8A-8C content.
[0091] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
[0092] The camera 193 is used to capture still images or videos. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0093] The internal memory 121 may include one or more random access memories (RAM) and one or more non-volatile memories (NVM).
[0094] The random access memory can be directly read and written by the processor 110, and can be used to store executable programs (such as machine instructions) of the operating system or other running programs, and can also be used to store user and application data.
[0095] The non-volatile memory may also store executable programs and user and application data, etc., and may be loaded into the random access memory in advance for direct reading and writing by the processor 110 .
[0096] The external memory interface 120 can be used to connect to an external non-volatile memory to expand the storage capacity of the electronic device 100. The external non-volatile memory communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music and videos are stored in the external non-volatile memory.
[0097] 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.
[0098] The audio module 170 is used to convert digital audio information into analog audio signal output, and also used to convert analog audio input into digital audio signal. The audio module 170 can also be used to encode and decode audio signals.
[0099] 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.
[0100] 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.
[0101] 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 approaching the microphone 170C with his mouth to input the sound signal into the microphone 170C.
[0102] The earphone jack 170D is used to connect a wired earphone.
[0103] The pressure sensor 180A is used to sense pressure signals and can convert pressure signals into electrical signals. When a touch operation is applied to the display screen 194, the electronic device 100 detects the intensity of the touch operation 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.
[0104] 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 (ie, x, y, and z axes) can be determined by the gyro sensor 180B. The gyro sensor 180B can be used for anti-shake shooting.
[0105] 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.
[0106] The magnetic sensor 180D includes a Hall sensor, and the electronic device 100 can detect the opening and closing of the flip leather case by using the magnetic sensor 180D.
[0107] 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.
[0108] 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.
[0109] 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 the 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.
[0110] The ambient light sensor 180L is used to sense the brightness of the ambient light. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the sensed brightness of the ambient light. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
[0111] 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.
[0112] 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.
[0113] The touch sensor 180K is also called a "touch control device". The touch sensor 180K can be set on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch control 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.
[0114] In some embodiments, the touch sensor 180K can be used to detect user operations of entering and exiting the boundary switching mode, as well as user operations of adjusting the display position of displayed content in the page, etc. The specific description of the boundary switching mode can be found in subsequent content, which will not be expanded here.
[0115] 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 a human vocal part.
[0116] 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.
[0117] 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.
[0118] Indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.
[0119] The SIM card interface 195 is used to connect a SIM card.
[0120] The electronic device may be a portable terminal device equipped with iOS, Android, Microsoft or other operating systems, such as a mobile phone, a tablet computer, a wearable device, etc., and may also be a non-portable terminal device such as a laptop computer with a touch-sensitive surface or a touch panel, a desktop computer with a touch-sensitive surface or a touch panel. 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 invention takes the Android system of the layered architecture as an example to exemplify the software structure of the electronic device 100.
[0121] Figure 2B It is a software structure block diagram of the electronic device 100 according to an embodiment of the present application.
[0122] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime (Android Runtime) and the system library, and the kernel layer.
[0123] The application layer can include a series of application packages.
[0124] like Figure 2B As shown, the application package may include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.
[0125] 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.
[0126] like Figure 2B As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, a system monitoring module, a state decision module, a view drawing module, a layout adaptation module, a system coordination module, and the like.
[0127] The system monitoring module can be used to monitor whether the user triggers or exits the boundary switching mode. The boundary switching mode is the state of the page displayed by the electronic device 100 after the boundary switching function in the electronic device 100 is turned on. In this boundary switching mode, the electronic device 100 can adjust the display position of the display content in different areas of the page and change the layout of the page. The boundary switching function can be used to divide the application page into multiple areas and adjust the display position of the display content in these multiple areas.
[0128] In addition, it should be noted that the boundary switching function may be a system-level function in the electronic device 100. In this way, the electronic device 100 can adjust the page layout of any application in the electronic device 100 through the boundary switching function, thereby expanding the use scenario of the boundary switching function.
[0129] The state decision module can be used to determine the relevant parameters on the page in the boundary switching mode. The electronic device 100 can adjust the layout of the page through the parameter, specifically including: dividing the page into multiple areas, and adjusting the display position of the display content in these multiple areas. Exemplarily, the parameter may include: page indication information, dividing line information. The page indication information is used to indicate the page to be adjusted in the boundary switching mode, and the dividing line information is used to indicate the dividing line of the page. The electronic device 100 can divide the page into multiple areas according to the dividing line, and adjust the page according to the dividing line. For a specific description of the dividing line, please refer to the subsequent content, which will not be repeated here.
[0130] The view drawing module can be used to draw the page according to the relevant parameters in the boundary switching mode, so that the user can view the page after the layout is adjusted.
[0131] The layout adaptation module can be used to redefine the dividing line according to the change of the display effect of the interface elements in the page, so that the view drawing module redraws the page to achieve the readjustment of the page.
[0132] The system coordination module can be used to achieve the adaptation of the boundary switching function with other functions in the system. For example, the other function may be a screen projection function, and the electronic device 100 can only project the part of the display content of the page divided in the boundary switching mode when using the screen projection function to project the page to other electronic devices for display.
[0133] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
[0134] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0135] 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.
[0136] 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.).
[0137] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0138] 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.
[0139] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.
[0140] 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.
[0141] 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.
[0142] 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.
[0143] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
[0144] 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.
[0145] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0146] A 2D graphics engine is a drawing engine for 2D drawings.
[0147] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
[0148] The following is an illustrative description of the workflow of the software and hardware of the electronic device 100 in conjunction with capturing a photo scene.
[0149] When the touch sensor 180K receives a touch operation, the corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes the touch operation into a raw input event (including touch coordinates, timestamp of the touch operation, and other information). The raw input event is stored in the kernel layer. The application framework layer obtains the raw input event from the kernel layer and identifies the control corresponding to the input event. For example, if the touch operation is a touch single-click operation and the control corresponding to the single-click operation is the control of the camera application icon, the camera application calls the interface of the application framework layer to start the camera application, and then starts the camera driver by calling the kernel layer to capture static images or videos through the camera 193.
[0150] Combine the following Figure 3A-3G , Figure 4A-4C , Figure 5A-5D , Figure 6A-6B , Figure 7A-7B as well as Figure 8A-8C Describe some exemplary user interfaces provided by embodiments of the present application.
[0151] Figure 3A-3G A related user interface for adjusting the page layout of the electronic device 100 is shown.
[0152] Figure 3AAn exemplary user interface 10 for an application menu on an electronic device 100 is exemplarily shown.
[0153] like Figure 3A As shown, the user interface 10 may include: a status bar 101, a time and weather indicator 102, and an application icon 103. Among them:
[0154] The status bar 101 may include one or more signal strength indicators of mobile communication signals, one or more signal strength indicators of wireless fidelity (WiFi) signals, a battery status indicator, and a time indicator. The time and weather indicator 102 may be used to indicate the current time and weather type. The application icon 103 may be used to display one or more application icons. The application icon 103 may include: a browser icon 103A. The browser icon 103A may be used to trigger the opening of a "browser" application.
[0155] like Figure 3A As shown, when the electronic device 100 detects a user operation on the browser icon 103A, such as a click operation, in response to the operation, the electronic device 100 may open the browser application and display Figure 3B User interface 20 is shown.
[0156] Understandably, Figure 3A-3G Taking the browser application as an example, the display method provided in the embodiment of the present application is described to adjust the page of the browser application. In other embodiments of the present application, the display method can also be used to adjust the page layout of any other application, and the embodiment of the present application does not limit this.
[0157] like Figure 3B As shown, the user interface 20 is used to display the search page of the browser application. Among them, the user interface 20 may include: a search bar 201, an option bar 202, a recommendation bar 203, and an information display area 204, which together constitute the search page of the browser application. The search bar 201 can be used to retrieve information based on keywords. The option bar 202 can be used to display one or more information retrieval categories, including: news, entertainment, finance, military, sports, novels, real estate, automobiles, videos, etc. Exemplarily, the electronic device 100 can detect the user's selection operation on one of the information retrieval categories, and display the media information under the information retrieval category in the information display area 204, including: pictures, text, video, audio, etc. The recommendation bar 203 is used to display the titles of one or more media information recommended by the browser application. The information display area 204 can be used to display the key information of one or more media information recommended by the browser application, including the pictures and titles of the media information, etc.
[0158] The width of the rectangular area where the search bar 201, option bar 202, recommendation bar 203 and information display area 204 are located can be the same as the width of the search page. When the electronic device 100 triggers page adjustment, the electronic device 100 can directly adjust the upper and lower positions of these displayed contents to adjust the page layout.
[0159] Figure 3C (a) and (b) show the electronic device 100 in the display Figure 3B There are two possible interaction modes involved when entering the boundary switching mode on the search page shown.
[0160] like Figure 3C As shown in (a), the electronic device 100 can detect a specified operation acting on the user interface 20, such as a double-click operation, a knuckle tapping operation, etc., and enter a boundary switching mode in response to the operation.
[0161] like Figure 3C As shown in (b), the electronic device 100 can detect a user operation, such as a click operation, on the icon 205A in the drop-down menu 205, and in response to the operation, turn on the split-screen switching function and enter the split-screen switching mode. The icon 205A is an icon corresponding to the split-screen switching function, and the electronic device 100 can detect a user click operation on the icon 205A to turn on or off the split-screen switching function. The drop-down menu 205 can be a menu for the electronic device 100 to select a split-screen switching function. Figure 3B The user interface 20 shown shows content displayed on the user interface 20 when the user detects a downward sliding operation performed by the user on the top of the user interface 20 .
[0162] It is understandable that the electronic device 100 can also turn on the boundary switching mode in other ways. For example, the electronic device 100 can turn on the boundary switching function by setting the application, so that the page displayed by the electronic device 100 enters the boundary switching mode. For another example, the electronic device 100 can also turn on the boundary switching function through the sidebar, and an icon corresponding to the boundary switching function can be displayed in the sidebar, and the icon can be used to turn on or off the boundary switching function. The embodiment of the present application does not limit the way in which the electronic device 100 enters the boundary switching mode.
[0163] Optionally, after the electronic device 100 enters the split switching mode, the page currently displayed by the electronic device 100 may have a display effect change. Exemplarily, after the electronic device 100 enters the split switching mode when searching for pages, the electronic device 100 may display Figure 3D User interface 20 is shown.
[0164] contrast Figure 3B and Figure 3DAs can be seen from the user interface 20 shown, after the electronic device 100 enters the boundary switching mode, the user interface 20 can be newly displayed. Figure 3D The dividing mark 206 shown is used to prompt the user that the currently displayed search page is in the dividing switching mode. The user can adjust the display position of the displayed content in the search page to change the layout of the search page.
[0165] Exemplarily, the dividing mark 206 may be displayed at the bottom of the user interface 20 , that is, at the bottom area of the information display area 204 .
[0166] It is understandable that the demarcation mark 206 is not only displayed as Figure 3D The black rectangular icon shown in FIG. 206 may also be displayed as a line, a diamond icon, etc. The embodiment of the present application does not limit the form of the boundary mark 206. In addition, after the electronic device 100 enters the boundary switching mode, in addition to adding a similar Figure 3D In addition to the dividing mark 206 shown, there may also be changes in the display effects such as page size, brightness, transparency, etc., which are not limited in this embodiment of the present application.
[0167] in, Figure 3D (a) and (b) in the figure show two interactive ways in which users manually adjust the page layout.
[0168] like Figure 3D As shown in (a), the electronic device 100 can detect a user operation on the demarcation mark 206, such as an operation of dragging upwards. In response to the operation, the electronic device 100 changes the layout of the currently displayed search page. Specifically, the electronic device 100 can scroll upwards to display the content of the search page. Among them, the display content above the search page disappears at the top during the upward scrolling process, and the disappeared display content appears at the bottom. In addition, the demarcation mark 206 moves with the user's dragging operation. In other words, the search bar 201, the options bar 202, the recommendation bar 203, and the information display area 204 scroll upwards, and the page content that disappeared at the top of the page appears at the bottom of the page and continues to scroll upwards. Until the user stops dragging, the search page stops scrolling and displays Figure 3E User interface 20 is shown.
[0169] In addition, it should be noted that when the electronic device 100 detects the user operation of dragging the demarcation mark 206 upward, the electronic device 100 can move the demarcation mark 206 on the display screen following the movement track of the user operation.
[0170] like Figure 3DAs shown in (b) of FIG. 1 , the electronic device 100 can detect a user operation on the search bar 201, such as a drag operation downward or toward the bottom of the user interface 20. In response to the operation, the electronic device 100 can change the layout of the search page and move the search bar 201 to the bottom of the currently displayed user interface 20. In other words, the search bar 201 moves below the option bar 202, the recommendation bar 203, and the information display area 204, that is, the display Figure 3E User interface 20 is shown.
[0171] It is understandable that it is not limited to Figure 3D The position of the dividing mark 206 shown in (a) and (b) is, for example, that the dividing mark 206 can be located between any two of the search bar 201, the option bar 202, the recommendation bar 203, and the information display area 204. When the electronic device 100 detects a user operation on the dividing mark 206, the electronic device 100 can scroll up to display the content of the search page. In the process of scrolling up, the displayed content above the search page disappears at the top, and the disappeared displayed content appears at the bottom.
[0172] It is understandable that it is not limited to Figure 3D In addition to the user operations shown in (a) and (b), the electronic device 100 can also adjust the layout of the page through other interactive methods, which is not limited in the embodiment of the present application.
[0173] It is understood that it is not limited to Figure 3D As shown in (a) and (b), the search bar 201 is moved to the bottom of the currently displayed user interface 20. The electronic device 100 can also move the search bar 201 to other locations of the currently displayed user interface 20, such as between the recommendation bar 203 and the information display area 204. This embodiment of the present application is not limited to this.
[0174] like Figure 3E As shown, in the user interface 20, the search bar 201 in the search page is located at the bottom of the page, and the option bar 202, the recommendation bar 203, and the information display area 204 are displayed above the search bar 201 in order from top to bottom.
[0175] contrast Figure 3B and Figure 3EIt can be seen that the display content at the top of the screen in the search page, that is, the search bar 201, has moved to the bottom of the screen. In this way, taking the electronic device 100 as a mobile phone as an example, when the user operates the electronic device 100 while holding the electronic device 100, if the user wants to retrieve information through the search bar 201, there is no need to touch the top of the screen, but only need to touch the bottom of the screen, and the interaction with the electronic device 100 can be easily completed, so that the user can easily operate the electronic device 100. It can be seen that the user can change the layout of the page by himself, flexibly determine the position of the user operation, and improve the user experience.
[0176] In some embodiments, when the electronic device 100 enters the boundary switching mode while displaying a search page, the electronic device 100 can automatically divide the search page into multiple areas and adjust the positions of the displayed contents in the multiple areas, that is, adjust the layout of the search page without requiring user operation. Figure 3C After the user interface 20 shown, the Figure 3E The user interface 20 is shown.
[0177] In this case, Figure 3E In the user interface 20 shown, the adjusted layout of the search page can be the adjusted layout of the search page when the history enters the boundary switching mode, or it can be the layout adjusted by the electronic device 100 according to a preset adjustment method or preset adjustment rule. The specific description of the adjustment process of the electronic device 100 on the page can be found in the subsequent method embodiments, which will not be repeated here.
[0178] Figure 3F An exemplary user interface for the electronic device 100 to exit the split switching mode is shown.
[0179] in, Figure 3F (a), (b), (c), and (d) show four possible interaction modes for the electronic device 100 to exit the boundary switching mode.
[0180] like Figure 3F As shown in (a), the electronic device 100 can detect a user operation acting on the user interface 20, such as a double-click operation, a knuckle tapping operation, etc., and exit the boundary switching mode in response to the operation.
[0181] like Figure 3FAs shown in (b), the electronic device 100 can detect a user operation, such as a click operation, on the icon 205A in the drop-down menu 205. In response to the operation, the electronic device 100 turns off the split-screen switching function and exits the split-screen switching mode. The drop-down menu 205 can be the content that is triggered to be displayed when the electronic device 100 detects a user dragging downward from the top of the user interface 20.
[0182] like Figure 3F As shown in (c) of FIG. 1 , the electronic device 100 can detect a user operation on the demarcation mark 206, such as a downward drag operation. In response to the operation, the electronic device 100 moves the search page in the user interface 20 downward, so that the search bar 201 disappears at the bottom of the user interface 20 and appears at the top of the user interface 20. At this time, the layout of the search page in the user interface 20 is restored to Figure 3B The search page shown is restored to the page layout before entering the boundary switching mode. At this time, the electronic device 100 can trigger the exit of the boundary switching mode.
[0183] It is understandable that in Figure 3F In the user operation shown in (c) of FIG. 1 , the user can manually restore the page layout to the page layout before entering the boundary switching mode by continuing to drag the boundary mark 206, thereby triggering the electronic device 100 to exit the boundary switching mode. Then, in addition to Figure 3F In addition to dragging the dividing mark 206 downward as shown in (c), the electronic device 100 can also detect the user operation of continuing to drag the dividing mark 206 upward, continue to scroll the content of the search page upward, move the content of the top area of the search page to the bottom for display, and also restore the page layout to the page layout before entering the dividing switching mode, thereby triggering the electronic device 100 to exit the dividing switching mode.
[0184] like Figure 3F As shown in (d) in the figure, the information display area 204 may include a first information bar 204A, and the first information bar 204A may be used to trigger the electronic device 100 to switch the search page to the detailed display page of the media information corresponding to the first information bar 204A. When the electronic device 100 detects a user operation on the first information bar 204A, such as a click operation, in response to the operation, the electronic device 100 may exit the boundary switching mode while displaying the detailed display page of the media information corresponding to the first information bar 204A.
[0185] from Figure 3FAs can be seen from (d) in the figure, the electronic device 100 can trigger the exit of the boundary switching mode when detecting that the page needs to be switched. It is understandable that the electronic device 100 can trigger the switching of pages in addition to the user's operation on the controls in the page, and can also include other methods, such as swiping left or right on the edge of the screen, etc., and the embodiments of the present application are not limited to this.
[0186] It is understandable that, in addition to Figure 3F In addition to the interaction methods shown in (a), (b), (c), and (d), the electronic device 100 can also exit the boundary switching mode in other ways, which is not limited in the embodiments of the present application.
[0187] by Figure 3F In terms of (a) or (b) in FIG. 1 , when the electronic device 100 exits the boundary switching mode on the search page, the electronic device 100 may display Figure 3G The user interface 20 shown in (a) or (b).
[0188] Combination Figure 3E and Figure 3G As can be seen from (a) in FIG. 1 , after the electronic device 100 exits the boundary switching mode, the user interface 20 no longer displays Figure 3E The demarcation mark 206 is shown. And after exiting the demarcation switching mode, the layout of the search page (see Figure 3F (a)) and the layout of the search page in the split switching mode (see Figure 3E ), that is, the search bar 201 is located at the bottom of the page, and the option bar 202, the recommendation bar 203, and the information display area 204 are arranged in order from top to bottom and displayed above the search bar 201.
[0189] Combination Figure 3B , Figure 3E and Figure 3G As can be seen from (b) in FIG. 1 , after the electronic device 100 exits the boundary switching mode, the user interface 20 no longer displays Figure 3E The demarcation mark 206 is shown. And after exiting the demarcation switching mode, the layout of the search page (see Figure 3F (b) in the figure) and the layout of the search page before entering the split switching mode (see Figure 3B ), that is, the search bar 201, the option bar 202, the recommendation bar 203, and the information display area 204 are arranged in order from top to bottom.
[0190] from Figure 3G As can be seen from (a) and (b) in the figure, after exiting the boundary switching mode, the page can maintain the layout changed under the boundary switching mode, or it can be restored to the layout before entering the boundary switching mode.
[0191] from Figure 3A-3G It can be seen that the electronic device 100 can enter the boundary switching mode, adjust the layout of the page under the boundary switching mode, divide the page into multiple areas, and rearrange the display positions of the display contents in the multiple areas, so that the user's operations on the display contents in the page are no longer limited to the fixed positions of the display contents in the page, thereby providing convenience for the user's interactive operations with the electronic device 100.
[0192] In addition, it should be noted that after the electronic device 100 completes the adjustment of the page layout of the application, if the electronic device 100 closes the application and reopens the application, when displaying the page, the electronic device 100 can directly display the page after the last adjustment, so that the user does not need to repeatedly adjust the layout of the page when viewing the page next time. Alternatively, the electronic device 100 can also display the page before the adjustment. The embodiments of the present application are not limited to this.
[0193] Furthermore, the electronic device 100 can also send the adjusted parameters of the application page layout to the developer of the application. The developer can collect the adjustment status of the application page sent from various electronic devices, and the developer can apply the same page layout adjusted by most users to the application page, so that the developer can rectify the unreasonable parts of the page layout.
[0194] For details about the internal implementation process of the electronic device 100 adjusting the page layout, please refer to the following Fig. 9 Related content.
[0195] Figure 4A-4C The relevant user interface of the electronic device 100 for adaptively adjusting the page layout is shown.
[0196] Figure 4A The user interface 20 is shown after the electronic device 100 adjusts the search page of the browser application in the split switching mode. For a detailed description of the user interface 20, please refer to the aforementioned Figure 3E The relevant content will not be repeated here.
[0197] like Figure 4A As shown, the search bar 201 may include: a more icon 201A. The more icon 201A may be used to trigger the display of one or more options, which may be used to display one or more functions provided by the browser application, such as scanning files, taking photos for translation, voice search, and the like.
[0198] For example, when the electronic device 100 detects a user operation on the more icon 201A, such as a click operation, in response to the operation, the electronic device 100 may display the more icon 201A in the search page. Figure 4BOption group 207 is shown.
[0199] It should be noted that, in response to the operation on the more icon 201A, the electronic device 100 displays Figure 4B Before the option group 207 shown, if the option group 207 is displayed below the more icon 201A, since the current search bar 201 has been adjusted to the bottom of the user interface 20, the option group 207 to be displayed will exceed the display range of the current user interface 20. Therefore, the electronic device 100 can adaptively adjust the layout of the search page, for example, continue to scroll the search page upward, and move the content that disappears at the top of the user interface 20 to the bottom of the user interface 20 for display, so that the option group 207 can be displayed below the more icon 201A.
[0200] In this case, the electronic device 100 may readjust the layout of the search page to Figure 4B The layout of the search page displayed in the user interface 20 is shown, and an option group 207 is displayed on the search page.
[0201] like Figure 4B As shown, the information display area 204, the search bar 201, the option bar 202, and the recommendation bar 203 are arranged in the user interface 20 in a certain order, and the option group 207 is displayed below the more icon 201A.
[0202] Further optionally, the electronic device 100 may also detect a trigger for canceling the display Figure 4B User operations of option group 207 are shown.
[0203] For example, when the electronic device 100 detects that the Figure 4B In response to a user operation of the more icon 201A shown, such as a click operation, the electronic device 100 cancels the display of the option group 207. At this time, the electronic device 100 may display Figure 4C The user interface 20 shown in (a) or (b).
[0204] like Figure 4C As shown in (a) of FIG. 2 , the user interface 20 may include: an information display area 204, a search bar 201, an option bar 202, and a recommendation bar 203, but does not include an option group 207. In addition, the information display area 204, the search bar 201, the option bar 202, and the recommendation bar 203 are arranged in the user interface 20 in a sequential order.
[0205] Combination Figure 4A , Figure 4B and Figure 4CAs can be seen from (a) in FIG. 1 , after the electronic device 100 adds a new display interface element to the page, it can adaptively adjust the layout of the page so that the newly added interface element can be fully displayed on the page. Furthermore, when the electronic device 100 cancels the display of the newly added interface element on the page, the electronic device 100 can maintain the adjusted layout of the page.
[0206] like Figure 4C As shown in (b) of FIG. 2 , the user interface 20 includes: an option bar 202, a recommendation bar 203, an information display area 204, and a search bar 201, but does not include an option group 207. In addition, the option bar 202, the recommendation bar 203, the information display area 204, and the search bar 201 are placed in the user interface 20 in a sequential order.
[0207] Combination Figure 4A , Figure 4B and Figure 4C As can be seen from (b) in FIG. 1 , after the electronic device 100 adds a new interface element to the page, it can adaptively adjust the layout of the page so that the newly added interface element can be fully displayed on the page. Furthermore, when the electronic device 100 cancels the display of the newly added interface element on the page, the electronic device 100 can restore the layout of the page to the page layout before the newly added interface element was added.
[0208] It is understandable that after the page layout is adjusted, the electronic device 100 can adaptively adjust the page when the page is in the boundary switching mode, and can also adaptively adjust the page when the page is not in the boundary switching mode. The embodiment of the present application does not limit whether the page is in the boundary switching mode when adaptively adjusting the page. Figure 4A-4C It shows the adaptive adjustment of the page by the electronic device 100 when the interface elements appear and disappear in the page. In other embodiments of the present application, the electronic device 100 can also adaptively adjust the page when the position and / or size of the interface elements in the page changes.
[0209] from Figure 4A-4C It can be seen that when there is a change in the display effect of the interface elements in the page, the electronic device 100 can adaptively adjust the page so that the adjusted page layout is adapted to the interface elements after the change in display effect.
[0210] For details about the internal implementation process of the electronic device 100 for adaptively adjusting the page, please refer to the following Fig.11 Related content.
[0211] Figure 5A-5D Some other user interfaces involved in adjusting the page layout of the electronic device 100 are shown.
[0212] Figure 5A It can be the user interface 20 where the search page is displayed in the boundary switching mode of the electronic device 100. For a detailed description of the user interface 20, please refer to the aforementioned Figure 3A-3D The relevant content will not be repeated here.
[0213] like Figure 5A As shown, the search bar 201 , the option bar 202 , the recommendation bar 203 , and the information display area 204 are arranged in the user interface 20 from top to bottom in sequence.
[0214] Among them, the electronic device 100 can detect a user operation acting on the search bar 201, such as a long press operation. In response to the operation, the electronic device 100 selects the search bar 201, and the search bar 201 is in a selected state.
[0215] It is understandable that the display effect of the search bar 201 when it is in a selected state and when it is not in a selected state may be different, for example, the display effect may include differences in color, transparency, size, position, brightness, etc.
[0216] Exemplarily, the search bar 201 in the selected state can refer to Figure 5B The search bar 201 is shown. It can be seen that after the search bar 201 is in the selected state, a thick solid line can be newly added to the boundary of the icon.
[0217] like Figure 5B As shown, the electronic device 100 can also detect a user operation on the recommendation bar 203, such as a long press operation. In response to the operation, the electronic device 100 selects the recommendation bar 203. At this time, both the search bar 201 and the recommendation bar 203 are in the selected state, and the electronic device 100 can display Figure 5C The user interface 20 is shown.
[0218] like Figure 5C As shown, the icon boundaries of the search bar 201 and the recommendation bar 203 in the selected state are displayed with bold solid lines.
[0219] The electronic device 100 can detect user operations acting on the selected search bar 201 and recommendation bar 203, for example Figure 5C In response to the drag operation shown, the electronic device 100 moves the display positions of the search bar 201 and the recommendation bar 203, and moves the search bar 201 and the recommendation bar 203 to the bottom of the user interface 20, that is, the display Figure 5D The user interface 20 is shown.
[0220] like Figure 5DAs shown, the user interface 20 includes: an option bar 202, an information display area 204, a search bar 201, and a recommendation bar 203. Moreover, the option bar 202, the information display area 204, the search bar 201, and the recommendation bar 203 are arranged in the user interface 20 in a sequential order from top to bottom.
[0221] Combination Figure 5C and Figure 5D It can be seen that after the electronic device 100 detects user operations acting on the selected search bar 201 and recommendation bar 203 , the electronic device 100 can move the search bar 201 and recommendation bar 203 below the option bar 202 and the information display area 204 .
[0222] from Figure 5A-5D It can be seen that the electronic device 100 can detect the user's selection operations on multiple areas in the page, and adjust the display positions of the contents in these multiple areas in the page at one time, so that the user can quickly adjust the layout of the page.
[0223] Figure 6A-6B A related user interface for adjusting the display effect of interface elements of the electronic device 100 is shown.
[0224] Fig. 6A The user interface 20 where the search page is displayed when the electronic device 100 opens the browser application is shown.
[0225] in addition, Fig. 6A The user interface 20 shown may be a user interface displayed by the electronic device 100 when it is in the split switching mode. For a detailed description of the user interface 20, please refer to the aforementioned Figure 3E The relevant content will not be repeated here.
[0226] like Fig. 6A As shown, the user interface 20 may include a more icon 201A. The electronic device 100 may detect a user operation on the more icon 201A, such as a two-finger outward drag operation. In response to the operation, the electronic device 100 may enlarge the more icon 201A and display it as Figure 6B More icons 201A are shown enlarged.
[0227] It is understandable that, in the process of adjusting the page layout, the electronic device 100 can not only change the size of the interface elements, but also change the position, color, transparency, brightness and other display effects of the interface elements.
[0228] from Figure 6A-6B It can be seen that in the process of adjusting the page layout, the electronic device 100 can also adjust the size, position, color, transparency, brightness and other display effects of the interface elements in the page based on user operations to improve the user's operability of the page.
[0229] Figure 7A-7B It shows some user interfaces involved in screen projection of a page after the electronic device 100 adjusts the page layout.
[0230] Fig. 7A The user interface 20 may be displayed after the electronic device 100 adjusts the layout of the search page. The user interface 20 may be displayed when the electronic device 100 is in the split switching mode, that is, Figure 3E The user interface 20 shown may also refer to the user interface displayed after the electronic device 100 exits the boundary switching mode, that is, Figure 3G The user interface 20 shown in (a) in FIG.
[0231] When the electronic device 100 displays Fig. 7A When the user interface 20 shown in the figure is displayed, it can be detected that the user starts the screen projection function, and the page content displayed in the user interface 20 is projected to other devices for display. In response to the operation, the electronic device 100 can display the page content displayed in the user interface 20. Fig. 7A The window 208 shown is used to prompt the user to select the area where the screen needs to be projected.
[0232] When the screen projection function is activated, the electronic device 100 displays a window 208 to prompt the user to select the area to be projected. Fig. 7A The search page shown is an adjusted page, which is divided into two areas due to the change in layout. The two areas are: the area where the option bar 202, the recommendation bar 203, and the information display area 204 are located (hereinafter referred to as area 1), and the area where the search bar 201 is located (hereinafter referred to as area 2). At this time, the electronic device 100 can select the display content in one of the areas to be projected to other devices for display.
[0233] like Fig. 7A As shown, window 208 may include: a first option 208A, a second option 208B, and a third option 208C. Among them, the first option 208A is used to indicate the content in area 1, and the first option 208A can be used to trigger the electronic device 100 to project the displayed content in area 1 to other devices for display when the screen is projected, the second option 208B is used to indicate the content in area 2, and the second option 208B can be used to trigger the electronic device 100 to project the displayed content in area 2 to other devices for display when the screen is projected, and the third option 208C is used to indicate the content in area 1 and area 2, and the third option 208C can be used to trigger the electronic device 100 to project the search page composed of area 1 and area 2 to other devices for display when the screen is projected.
[0234] Exemplarily, when the electronic device 100 detects a user operation acting on the first option 208A, such as a click operation, in response to the operation, the electronic device 100 may send the indication information of the display content in area 1 to other devices (hereinafter referred to as the electronic device 200), and not send the indication information of the display content in area 2 to the electronic device 200, and the electronic device 200 displays the display content in area 1.
[0235] Figure 7B The user interface 30 displayed by the electronic device 200 after receiving the display content of the area 1 sent by the electronic device 100 is exemplarily shown.
[0236] like Figure 7B As shown, the content displayed in the user interface 30 includes the electronic device 100 in Fig. 7A The options bar 202, recommendation bar 203, and information display area 204 displayed in the figure do not include the search bar 201.
[0237] It is understandable that, in addition to selecting the area in the page to be projected based on user operations, the electronic device 100 can also determine the area to be projected by the system. For example, the electronic device 100 can default to projecting the largest area among the multiple areas divided in the page.
[0238] It should be noted that when the electronic device 100 projects a page, it only selects a part of the content in the page for projection. This is because the adjustment of the page layout causes the page to be divided into multiple areas, so the electronic device 100 can select the display content of one of the areas for projection.
[0239] from Figure 7A-7B It can be seen that after adjusting the layout of the page, the electronic device 100 can further combine the screen projection function to select the display content in one or more areas divided during the adjustment of the page for screen projection. In this way, part of the content in the page can be displayed in a centralized manner, which is convenient for users to quickly search or centrally view part of the content in the page.
[0240] Above Figure 3A-3G , Figure 4A-4C , Figure 5A-5D , Figure 6A-6B , Figure 7A-7B It shows that the electronic device 100 can split the page horizontally, divide the page into multiple upper and lower areas of content, and adjust the layout of the page by changing the display positions of the multiple contents vertically.
[0241] In other embodiments of the present application, the electronic device 100 may also split the page vertically, divide the page into multiple areas of content on the left and right, and adjust the layout of the page by changing the display positions of the multiple contents horizontally.
[0242] Alternatively, the electronic device 100 may also combine the vertical and horizontal splitting methods to divide the page into multiple areas of content that are placed relatively left and right and relatively up and down, and adjust the layout of the page by combining the vertical and horizontal changing of the display positions of the multiple contents.
[0243] In addition, in addition to adjusting the layout of a page, the electronic device 100 can also adjust the layout of multiple pages, such as two horizontally placed pages, divide the multiple pages into multiple areas, and adjust the display position of the displayed content in the multiple areas. The embodiment of the present application does not limit the number of pages involved in the page adjustment process.
[0244] Specifically, the electronic device 100 can adjust the page layout by splitting the page vertically or further combining the horizontal splitting method. Figure 8A-8C .
[0245] Figure 8A-8C Some other user interfaces involved in adjusting the page layout of the electronic device 100 are shown.
[0246] Fig. 8A The user interface 40 displayed when the electronic device 100 opens a page of a setting application is exemplarily shown.
[0247] like Fig. 8A As shown, the user interface 40 may include: a settings bar 401 and a details bar 402. Among them, the settings bar 401 is located on the left side of the user interface 40, and the details bar 402 is located on the right side of the user interface 40. The settings bar 401 is used to display the settings page of the settings application, and the settings page may include one or more settings items, such as flight mode, Wi-Fi, Bluetooth, personal hotspot, mobile network, etc. The electronic device 100 can detect a selection operation acting on one of the settings items and select the setting item. Among them, the selected setting item may have a change in display effect, including but not limited to: darkening of the background color, changes in position and / or size, etc. In addition, the electronic device 100 can display the details page of the selected setting item in the details bar 402.
[0248] It can be seen that the user interface 40 displays two horizontally arranged pages for setting the application: a setting page and a detail page.
[0249] For example, in Fig. 8A In the user interface 40 shown, the Wi-Fi setting item 401A is selected in the setting column 401. At this time, the background color of the Wi-Fi setting item 401A is dark, and the details column 402 is used to display the connected Wi-Fi network and one or more Wi-Fi networks available for connection.
[0250] Optionally, when the electronic device 100 enters the boundary switching mode, the electronic device 100 may display the following in the user interface 40: Fig. 8A The demarcation mark 403 is used to indicate that the electronic device 100 has entered the demarcation switching mode, or further, the electronic device 100 can detect the user operation on the demarcation mark 403 and adjust the layout of the page displayed in the user interface 40.
[0251] After the electronic device 100 enters the split switching mode and adjusts the layout of the page, the electronic device 100 may display Figure 8B or Figure 8C User interface 40 is shown.
[0252] For details about how the electronic device 100 enters the boundary switching mode, please refer to the aforementioned Figure 3C The relevant content in will not be repeated here.
[0253] like Figure 8B As shown, the user interface 40 may include: a setting bar 401 and a detail bar 402. The setting bar 401 is located on the right side of the user interface 40, and the detail bar 402 is located on the left side of the user interface 40.
[0254] Combination Fig. 8A and Figure 8B It can be seen that the electronic device 100 can adjust the layout of the page by specifically exchanging the display positions of the setting bar 401 and the details bar 402. It can be seen that the electronic device 100 can also adjust the layout of the page by adjusting the relative display positions between the pages, such as exchanging the display positions of the setting page in the setting bar 401 and the details page in the details bar 402.
[0255] For example, the electronic device 100 may detect that Fig. 8A In response to the operation of dragging the demarcation mark 403 from right to left, the electronic device 100 may display Figure 8B The user interface 40 shown is to adjust the relative positions of the setting column 401 and the detail column 402. In addition, the dividing mark 403 moves according to the dragging operation of the user.
[0256] Generally speaking, the right area of the user interface 40 is an area that is convenient for users to operate. If the user wants to select a setting item in the setting bar 401, the user can only select the setting item by manipulating the left area of the display screen when the page layout cannot be adjusted. At this time, there may be problems of inconvenience in user operation and poor interaction experience with the electronic device 100. If the user can adjust the layout of the page and move the setting items in the setting bar 401 to the right area that is convenient for users to operate, the user can interact with the electronic device 100 more flexibly, and the touch position of the user on the display screen is no longer limited to the fixed position of the display content in the user interface.
[0257] like Figure 8C As shown, the user interface 40 may include: a setting bar 401, a detail bar 402, and a Wi-Fi setting item 404. The setting bar 401 is located on the left side of the user interface 40, and the detail bar 402 is located on the right side of the user interface 40. The Wi-Fi setting item 404 is located at the bottom of the user interface 40. Fig. 8A The Wi-Fi setting item 401A is moved out of the setting bar 401 .
[0258] Combination Fig. 8A and Figure 8C It can be seen that the electronic device 100 can adjust the layout of the setting page by moving one of the setting items in the setting bar 401, such as the Wi-Fi setting item 401A, to the bottom of the user interface 20 to facilitate the user to turn on or off the Wi-Fi function.
[0259] from Figure 8A-8C It can be seen that the electronic device 100 can divide the multiple pages into multiple areas and adjust the display content in the multiple areas while displaying multiple pages at the same time. In addition, during the specific adjustment process, the electronic device 100 can divide the areas horizontally or vertically, and adjust the display position of the displayed content horizontally or vertically, thereby increasing the flexibility of page adjustment. In this way, when the user interacts with the content in the user interface, it is not necessary to be limited to the fixed position of the content in the user interface in the display screen. The user can flexibly adjust the display position of the content in the user interface, thereby increasing the flexibility of the user in manipulating the electronic device 100.
[0260] In order to better understand this solution, Figure 9-11 Describe the internal implementation process involved in the electronic device 100 when adjusting the page.
[0261] Fig. 9 A flow chart of a method for page adjustment process provided in an embodiment of the present application.
[0262] For example, Fig. 9As shown, the page adjustment process may include but is not limited to the following steps:
[0263] S101. The electronic device 100 draws a page of an application.
[0264] After detecting the user's operation of opening the application page, the electronic device 100 may draw the application page in response to the operation. Afterwards, after the electronic device 100 completes drawing the application page, the drawn application page may be displayed.
[0265] The application may refer to any application installed in the electronic device 100, and the page may refer to any one or more pages of the application. This embodiment of the present application does not limit this.
[0266] For example, the application may refer to the aforementioned Figure 3A-3G The browser application described, this page can refer to Figure 3B Alternatively, the application may refer to the search page of the browser application shown. Figure 8A-8C The settings described in this application can include Fig. 8A The settings page and details page of the settings app shown.
[0267] S102. The electronic device 100 determines whether to enter the boundary switching mode.
[0268] The boundary switching mode can be regarded as the state of the electronic device 100 after the electronic device 100 starts the boundary switching function. In this boundary switching mode, the electronic device 100 can adjust the layout of the page. Specifically, the electronic device 100 can split the page into multiple areas and adjust the display position of the display content in these multiple areas.
[0269] The electronic device 100 can enter the boundary switching mode in any of the following ways:
[0270] 1) The electronic device 100 detects a specified operation and triggers the entry into the boundary switching mode
[0271] Among them, the specified operation may refer to a specified touch operation, such as a double-click operation, a knuckle tapping operation, etc., or may refer to a specified voice command, etc. The embodiment of the present application does not limit the specified operation.
[0272] Exemplarily, the specified operation may refer to Figure 3C The double-click operation shown in (a) in FIG.
[0273] That is, the electronic device 100 can determine whether the electronic device 100 enters the boundary switching mode by determining whether a designated operation is detected.
[0274] 2) The electronic device 100 detects a user operation on an icon corresponding to the boundary switching function, triggering entry into the boundary switching mode
[0275] Among them, the icon corresponding to the boundary switching function can be displayed in the drop-down menu, sidebar, and setting application page. The icon is used to trigger the electronic device 100 to enter the boundary switching mode. The embodiment of the present application does not limit the display position of the icon.
[0276] For example, the icon may refer to Figure 3C Icon 205A shown in (b) in FIG.
[0277] That is, the electronic device 100 can determine whether the electronic device 100 enters the boundary switching mode by determining whether a user operation acting on an icon corresponding to the boundary switching function is detected.
[0278] It is understandable that the electronic device 100 may also determine whether the electronic device 100 enters the boundary switching mode in other ways, and the embodiments of the present application are not limited to this.
[0279] When the electronic device 100 determines to enter the boundary switching mode, the electronic device 100 executes step S103.
[0280] S103. The electronic device 100 determines a boundary line in the page.
[0281] After the electronic device 100 enters the split switching mode, the electronic device 100 may adjust the layout of the page.
[0282] Exemplarily, before the electronic device 100 adjusts the layout of the page, the electronic device 100 can determine a dividing line in the page, which is used to divide the page into multiple rectangular areas placed vertically or horizontally, and the rectangular area contains a complete control group, so that the electronic device 100 can adjust the vertical or horizontal position of the content in the multiple areas divided in the page.
[0283] Among them, when the dividing line divides the page into multiple rectangular areas placed up and down, the width of these multiple rectangular areas can be the width of the page, and when the dividing line divides the page into multiple rectangular areas placed left and right, the height of these multiple rectangular areas can be the height of the page.
[0284] For example, the electronic device 100 may find a dividing line that can divide the page leftward or rightward or topward or bottomward by identifying the area boundaries of each control in the page.
[0285] When the electronic device 100 determines the boundary line in the page, there may be the following situations:
[0286] 1) The dividing line is the dividing line set by the user after the electronic device 100 enters the dividing switching mode.
[0287] In this case, the electronic device 100 may determine the boundary line in the page according to the user operation.
[0288] For example, see Figure 3D In (a), the electronic device 100 can determine the dividing line in the search page according to the dragging operation performed by the user on the dividing mark 206.
[0289] For example, see Figure 3D In (b), the electronic device 100 may determine a dividing line in the search page according to a dragging operation performed by the user on the search bar 201 .
[0290] For example, see Figure 5A-5C The electronic device 100 may determine the dividing line in the search page according to the selection and dragging operations performed by the user on the search bar 201 and the recommendation bar 203 .
[0291] 2) The dividing line is a preset dividing line
[0292] In this case, for a specific page, the electronic device 100 may preset a boundary line corresponding to the page. When the electronic device 100 needs to determine a boundary line in a page, the boundary line in the page is directly found from the preset boundary lines corresponding to multiple pages.
[0293] 3) The dividing line is a dividing line determined by the electronic device 100 according to a preset rule
[0294] Exemplarily, the preset rule may mean that the electronic device 100 may, based on the layout of the page and the placement of each control group in the page, search for the boundary line of the control group that can divide the page into left and right or top and bottom areas, and determine the boundary line of the control group as the dividing line of the page, so that the dividing line can divide the page into multiple rectangular areas placed top and bottom or left and right.
[0295] That is, the electronic device 100 may determine the dividing line according to a preset rule.
[0296] 4) The dividing line is the dividing line set after the electronic device 100 enters the dividing switching mode
[0297] In this case, the electronic device 100 can save the boundary of the page determined by the electronic device 100 each time it enters the boundary switching mode. In this way, when the electronic device 100 enters the boundary switching mode next time, the previously determined boundary of the page can be used as the boundary of the page this time.
[0298] Among them, the historically determined dividing line can be a dividing line set by the user, or a dividing line set by the electronic device 100. Please refer to the above-mentioned situations 1-3, and the embodiments of the present application are not limited to this.
[0299] From the above four situations, it can be seen that for situation 1, after the electronic device 100 enters the boundary switching mode, the electronic device 100 needs to adjust the layout of the page according to the user's operation. At this time, for example, the electronic device 100 can display Figure 3C-Figure 3E For situations 2-4, after the electronic device 100 enters the boundary switching mode, the electronic device 100 can directly and automatically adjust the layout of the page. At this time, illustratively, the electronic device 100 can display Figure 3C , Figure 3E The user interface shown.
[0300] Combined with the user interface described above, Fig.10 A schematic diagram of the dividing lines of pages provided in an embodiment of the present application.
[0301] For example, in Figure 3D During the page adjustment process shown in (a) or (b) in FIG. 1 , the dividing line may include Fig.10 The dividing line 1 shown in (a) in FIG. Figure 3D The search page shown in (a) and (b) is divided into two areas: the area where the search bar 201 is located, and the area where the option bar 202, the recommendation bar 203 and the information display area 204 are located.
[0302] For example, in Figure 5A-5C During the page adjustment process shown, the dividing line can include Fig.10 The dividing line 2, dividing line 3 and dividing line 4 shown in (b) of FIG. The dividing line 2, dividing line 3 and dividing line 4 can be Figure 5A-5C The search page shown is divided into four areas: an area where the search bar 201 is located, an area where the option bar 202 is located, an area where the recommendation bar 203 is located, and an area where the information display area 204 is located.
[0303] For example, in Fig. 8A and Figure 8B During the page adjustment process shown, the dividing line can include Fig.10 The dividing line 5 shown in (c) in FIG. Fig. 8A The page shown is divided into two areas: an area where a setting column 401 is located, and an area where a detail column 402 is located.
[0304] For example, in Fig. 8A and Figure 8C During the page adjustment process shown, the dividing line can include Fig.10The dividing line 6 and the dividing line 7 shown in (d) in FIG. The dividing line 6 and the dividing line 7 can be Fig. 8A The page shown is divided into two areas: an area where the Wi-Fi setting item 401A is located, and other areas of the setting page except the area where the Wi-Fi setting item 401A is located.
[0305] S104. The electronic device 100 divides the page into multiple areas according to the dividing line, and adjusts the display positions of the display contents in the multiple areas.
[0306] The adjustment of the display positions of the display contents in the multiple regions may include but is not limited to the following situations:
[0307] 1) Swap the display positions between displayed contents in multiple areas
[0308] The multiple regions may refer to part or all of the multiple regions divided according to the dividing line.
[0309] Taking two areas as an example, the display positions of the display contents in the two areas can be exchanged with each other.
[0310] For example, assuming that the two areas are arranged vertically, the electronic device 100 may swap the contents of the pages in the two areas vertically.
[0311] For example, the two regions may refer to Fig.10 The upper and lower regions are divided by the dividing line 1 shown in (a). Figure 3D as well as Figure 3E It can be seen that the electronic device 100 divides the search page into two areas according to the dividing line 1, and swaps the contents of the two areas.
[0312] For another example, assuming that the two areas are arranged left and right, the electronic device 100 can swap the contents of the pages in the two areas left and right.
[0313] For example, these two regions may refer to Fig.10 The left and right areas are divided by the dividing line 6 shown in (c). Fig. 8A and Figure 8B It can be seen that the electronic device 100 divides the page into multiple areas according to the dividing line 6, including: the area where the setting column 401 is located and the area where the detail column 402 is located, and the electronic device 100 swaps the contents of the two areas.
[0314] 2) Move the display content in one or more areas to the specified display position, and adjust the display content in the remaining areas adaptively
[0315] The designated display position may refer to the middle, bottom, top, left or right side of the user interface, etc. The designated display position may be a position designated by the user or a position preset by the electronic device 100. This embodiment of the present application does not limit this.
[0316] Take specifying the display position as the bottom of the user interface as an example.
[0317] For example, see Figure 5A-5D , the display content that needs to be moved to the specified display position may include Figure 5A-5C The search bar 201 and recommendation bar 203 shown in FIG. Figure 5D When the electronic device 100 moves the search bar 201 and the recommendation bar 203 to the bottom of the user interface 20 , the option bar 202 and the information display area 204 move to the top of the user interface 20 .
[0318] For example, see Fig. 8A and Figure 8C , the display content that needs to be moved to the specified display position may include Fig. 8A Wi-Fi setting item 401A shown, see Figure 8C When the electronic device 100 moves the Wi-Fi setting item 401A to the bottom of the user interface 40 , the setting bar 401 and the detail bar 402 adaptively adjust the displayed content.
[0319] In addition, the electronic device 100 may adjust the page in the following two situations:
[0320] 1) The electronic device 100 adjusts the page according to the user operation
[0321] In this case, the electronic device 100 can determine the area, direction, position, etc. that need to be adjusted according to the user operation, so as to achieve the purpose of the user's flexible adjustment of the page.
[0322] 2) The electronic device 100 automatically adjusts the page
[0323] In this case, the electronic device 100 can determine the area, direction, position, etc. that need to be adjusted by itself, which facilitates user operation and enables the electronic device 100 to quickly adjust the page layout.
[0324] S105. The electronic device 100 determines whether to exit the boundary switching mode.
[0325] After the electronic device 100 completes adjusting the page, the electronic device 100 may exit the boundary switching mode.
[0326] The electronic device 100 can exit the boundary switching mode in any of the following ways:
[0327] 1) The electronic device 100 detects a specified operation and triggers exit from the boundary switching mode
[0328] Among them, the specified operation may refer to a specified touch operation, such as a double-click operation, a knuckle tapping operation, etc., or may refer to a specified voice command, etc. The embodiment of the present application does not limit the specified operation.
[0329] Exemplarily, the specified operation may refer to Figure 3F The double-click operation shown in (a) in FIG.
[0330] That is, when the electronic device 100 is in the boundary switching mode, the electronic device 100 can determine whether the electronic device 100 exits the boundary switching mode by determining whether a designated operation is detected.
[0331] 2) The electronic device 100 detects a user operation on an icon corresponding to the boundary switching function, triggering the exit of the boundary switching mode
[0332] Among them, the icon corresponding to the boundary switching function can be displayed in a drop-down menu, a sidebar, or a setting application page. The embodiment of the present application does not limit the display position of the icon.
[0333] For example, the icon may refer to Figure 3F Icon 205A shown in (b) in FIG.
[0334] That is, when the electronic device 100 is in the boundary switching mode, the electronic device 100 can determine whether the electronic device 100 exits the boundary switching mode by determining whether a user operation acting on an icon corresponding to the boundary switching function is detected.
[0335] In conjunction with the manner in which the electronic device 100 enters the boundary switching mode mentioned in step S102, the electronic device 100 can enter and exit the boundary switching mode through a designated operation or a user operation acting on an icon of the boundary switching function.
[0336] 3) When the electronic device 100 detects the user's operation of adjusting the page layout, and the operation is used to restore the layout of the page to the layout before entering the boundary switching mode, the exit of the boundary switching mode is triggered.
[0337] Exemplarily, the operation may refer to Figure 3F A drag operation is shown acting on the dividing mark 206 .
[0338] That is, when the electronic device 100 is in the boundary switching mode, the electronic device 100 can determine whether the electronic device 100 exits the boundary switching mode by determining whether an operation of restoring the page layout by the user is detected.
[0339] 4) The electronic device 100 detects the user's operation of switching pages, triggering the exit of the boundary switching mode
[0340] Since the boundary switching mode is for the page currently displayed by the electronic device 100, when the electronic device 100 detects a user operation of switching pages, the electronic device 100 can trigger the exit of the boundary switching mode.
[0341] Exemplarily, the operation may refer to Figure 3F (d) in FIG. 1 shows the user operation on the first information field 204A.
[0342] That is, when the electronic device 100 is in the boundary switching mode, the electronic device 100 can determine whether the electronic device 100 exits the boundary switching mode by determining whether an operation of switching pages is detected.
[0343] It is understandable that the electronic device 100 may also determine whether the electronic device 100 exits the boundary switching mode in other ways, and the embodiment of the present application does not limit this.
[0344] When the electronic device 100 determines to exit the boundary switching mode, the electronic device 100 executes step S106.
[0345] S106. The electronic device 100 saves the parameters of the page in this boundary switching mode.
[0346] The parameter is used to enable the electronic device 100 to restore the adjusted layout of the page. Thus, when the electronic device 100 displays the page again, the page adjusted last time can be reproduced according to the parameter.
[0347] Exemplarily, the parameter may include page indication information and boundary information. The page indication information is used to indicate the page, and the boundary information is used to indicate the boundary in the page. Further, the parameter may also include adjustment direction, adjustment position, etc. The embodiment of the present application does not limit the parameter.
[0348] It is understandable that step S106 is an optional step. That is, after the electronic device 100 finishes the adjustment, the electronic device 100 may not save the parameters of the page adjusted this time, so that when the electronic device 100 displays the page again, the electronic device 100 may readjust the page according to the user operation, the preset dividing line or the preset adjustment rule.
[0349] From steps S101-S106, it can be seen that the electronic device 100 adjusts the page by dividing the page into multiple areas and adjusting the display positions of the displayed contents in the multiple areas. In this way, the electronic device 100 can flexibly change the layout of the page, avoiding the user from only being able to interact with the electronic device 100 at a fixed position on the interface, thereby improving the flexibility of user operation.
[0350] From the above Fig.10 As can be seen from the dividing lines shown, the display method provided in the embodiment of the present application is to divide the application page into areas, and adjust the display positions of the areas based on user operations, thereby changing the layout of the application page, rather than adjusting the display positions of the controls contained in the application page.
[0351] To better understand the difference between region adjustment and control adjustment, let's take the Android system as an example. Fig.11 , Fig.12 , Fig.13 Introduce the relevant principles involved in the division of page areas mentioned in the implementation of this application.
[0352] Fig.11 A schematic diagram of the screen layout.
[0353] like Fig.11 As shown, View drawing mainly involves three modules: Activity, WindowManager, and WindowManagerService. Among them:
[0354] Activity is one of the four most basic and common components in Android. Activity is a component responsible for interacting with users. In an Android application, an Activity is usually a separate screen that can display some controls and listen to and process user events to respond.
[0355] In addition, each Activity will create a Window to carry the display of the View, and Window has a unique implementation class PhoneWindow.
[0356] PhoneWindow inherits from the Window class and is a specific implementation of the Window class. You can use this PhoneWindow to draw a window. In addition, this class contains a DecorView object, which is the root View of all application windows.
[0357] As a top-level View, DecorView may include TitleView and ContentView.
[0358] WindowManager is an interface with the following common methods: add View, update View, and delete View. It is mainly used to manage Windows. WindowManager includes ViewRoot, which is responsible for the event processing and logic processing of View.
[0359] WindowManagerService is responsible for managing the creation, update, deletion, display order, etc. of each application window. Among them, WindowManagerService can start drawing View by calling some methods of IWindow. Similarly, WindowManager can call some methods in WindowManagerService through IWindowSession.
[0360] It should be noted that in Fig.11 In the diagram shown, the Activity module contains the View module and controls related functions such as Measure, Layout, and Draw. For a detailed description of these three processes, please refer to the following Fig.12 In addition, all Views carried in Window have a certain tree structure hierarchy. Among them, the top layer is DecorView, which covers the entire display area of the display screen. The APK level is ContentView, which can be used to draw controls in the application page.
[0361] Fig.12 A flowchart for drawing a View.
[0362] The drawing of View starts from the PerformTraversals method of ViewRoot, and each View in the View tree is drawn layer by layer starting from the top-level View (ViewGroup).
[0363] Among them, PerformTraversals will call PerformMeasure, PerformLayout, and PerformDraw in sequence to complete the three processes of View Measure, Layout, and Draw. Measure is used to measure the width and height of View, Layout is used to place the position of View in ViewGroup, and Draw is used to draw images on View.
[0364] Specifically, PerformTraversals first calls the PerformMeasure method, which calls the measure function of the top-level View (ViewGroup), which calls the onmeasure function to measure the View. And if the View has child Views, all of its child Views will also be measured.
[0365] Secondly, PerformTraversals will call the PerformLayout method to implement the Layout operation on the View and all its sub-Views. Finally, PerformTraversals will call the PerformDraw method to implement the draw operation on the View and all its sub-Views and draw images on the View. The operation process of the Layout operation and the draw operation is similar to the measure operation, which can be referred to accordingly and will not be repeated here.
[0366] from Fig.12 It can be seen that the drawing of View is a recursive process. The parent View draws itself and its child View, and then the child View draws itself and its own child View, completing the three processes of measure, layout, and draw in sequence.
[0367] Fig.13 A schematic diagram of the execution sequence of the view drawing process and the page adjustment process provided in an embodiment of the present application.
[0368] from Fig.13It can be seen that the display method provided in the embodiment of the present application adds a method flow at the PerformTraversals method. Specifically, the judgment logic involved in this solution is added after the Layout flow in the three processes of measure, Layout, and draw (see the aforementioned steps S101-S106). When the entire layout of the view is known, it is determined whether to enter the boundary switching mode, divide the page into regions, and adjust the page layout by changing the display position of the region. Among them, if it is determined to divide the page into regions and change the display position of the region, then in the internal implementation, the DecorView is redivided, and the DecorView is divided into multiple Views according to the size of each region, thereby changing the display position of the region, but the View of the lower level does not perceive the adjustment, that is, the redivided DecorView is still reflected as a DecorView to the outside. Among them, the size of the area divided in the DecorView can be determined according to the size and position of each ContentView contained in the DecorView.
[0369] In general, the region adjustment and control adjustment involved in this application include but are not limited to the following differences:
[0370] 1) The display method provided in the embodiment of the present application provides a system function that can divide the page of any application into areas, adjust the areas and change the layout of the page, while the adjustment of controls as an application-level behavior can only be limited to adjusting the position of controls in a certain application page.
[0371] 2) The area adjustment involved in this application is to divide the area in the top-level view DecorView. The application is not aware of the division behavior. The divided area carries system information, and the adjustment of controls belongs to the application's own division of the area. Different controls have their own unique properties, and the divided area carries application information.
[0372] Compared with adjusting the display position of controls, dividing the page into regions and adjusting the regions can achieve moving one or more controls contained in the region together with the background of the controls, and adjusting the layout of the page as much as possible. And as a system function, this method can adjust the page layout of any application, expanding the application scenarios of application page layout adjustment, and helping users customize the page layout of any application page that suits their own usage habits.
[0373] Fig.14 A flow chart of a method for adaptively adjusting a page provided in an embodiment of the present application.
[0374] like Fig.14As shown, page adaptive adjustment may include but is not limited to the following steps:
[0375] S201. The electronic device 100 detects an operation performed on the page.
[0376] The page may refer to any one or more pages of the application. For example, the page may refer to Figure 4A The search page of the browser application is shown.
[0377] Among them, the operation may refer to a touch operation, such as a click operation, a sliding operation, etc., or may refer to a voice command, etc. The embodiment of the present application does not limit the form of the operation.
[0378] In addition, it should be noted that before executing step S201, the electronic device 100 has adjusted the page. For details about the page adjustment process, please refer to the above steps S101-S106. Further optionally, the electronic device 100 is still in the boundary switching mode.
[0379] S202. The electronic device 100 determines whether the operation triggers a change in the display effect of the interface element.
[0380] Interface elements may refer to a series of UI elements in the page that meet the user's interaction needs, including but not limited to: text, icons, controls, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, etc.
[0381] The change of the display effect may include one or more of the following:
[0382] 1) Add new interface elements
[0383] 2) The position of interface elements changes
[0384] 3) The size of interface elements changes
[0385] When the electronic device 100 determines that the operation triggers a change in the display effect of the interface element, the electronic device 100 executes step S203.
[0386] S203. The electronic device 100 determines the position and size of the interface element after the display effect changes.
[0387] S204. The electronic device 100 determines whether the display range of the interface element exceeds the area where the element is located after the display effect changes.
[0388] Since the current page is a page adjusted by the electronic device 100, when there is a change in the display effect of the interface elements in the page, there may be a problem of confusing page display content, such as the interface elements cannot be fully displayed, the display position of the interface elements is unreasonable, etc.
[0389] For example, Figure 4A The search page shown is the adjusted page. If before the page is adjusted, when the electronic device 100 detects a click operation on the more icon 201A, the electronic device 100 will display the following below the more icon 201A: Figure 4B The option group 207 is shown. However, due to the current Figure 4A In the search page shown, the search bar 201 is moved to the bottom of the user interface 20. Therefore, if the electronic device 100 detects a click operation on the more icon 201A after the page is adjusted, Figure 4B The option group 207 shown may not be fully displayed, or may be moved to be displayed above the more icon 201A, resulting in a problem of chaotic content displayed on the page.
[0390] Specifically, the electronic device 100 can determine whether the display range of the interface element after the display effect changes exceeds the area where the interface element is located based on the position and size of the interface element after the display effect changes.
[0391] For example, when the change in the display effect is a newly added interface element, the electronic device 100 can determine whether the newly added interface element will exceed the area where it is located.
[0392] For another example, when the change in display effect is a change in the position of an interface element, the electronic device 100 may determine whether the interface element will exceed the area where it is located after the position changes.
[0393] For another example, when the change in the display effect is a change in the size of an interface element, the electronic device 100 can determine whether the interface element will exceed the area where it is located after the size changes.
[0394] The region refers to the area of the page divided by a dividing line, and the region where the interface element is located can be determined according to the position and / or size of the interface element.
[0395] by Figure 4A-4B For example, the interface elements after the display effect changes are Figure 4B As shown in the option group 207, before the page is adjusted, the option group 207 is displayed below the more icon 201A by default. Figure 4A In the user interface 20 shown, the area where the option group 207 is located is the area where the search bar 201 is located.
[0396] When the display range of the interface element after the display effect changes exceeds the area where it is located, it means that the interface element after the display effect changes cannot be displayed normally under the current page layout. Therefore, the electronic device 100 needs to readjust the page and change the layout of the page.
[0397] When the electronic device 100 determines that after the display effect changes, the display range of the interface element will exceed the area where the interface element is located, the electronic device 100 executes step S205.
[0398] S205. The electronic device 100 redefines the boundary line in the page.
[0399] The electronic device 100 redefines the dividing line in the page so that the electronic device 100 re-divides the page according to the redetermined dividing line and adjusts the layout of the page so that the display range of the interface element after the display effect changes does not exceed the re-adjusted area.
[0400] For example, relative to the originally determined dividing line, the electronic device 100 may move the dividing line upward or downward, or move the dividing line leftward or rightward.
[0401] in, Fig.15 An example is shown Figure 4A-4B The diagram shows the dividing line before and after page adaptive adjustment during the page adaptive adjustment process.
[0402] from Fig.15 It can be seen that the re-determined dividing line (dividing line after adjustment) is below the original dividing line (dividing line before adjustment). The dividing line before the page adjustment makes the search page adjusted to Figure 4A The search page shown in the figure has a dividing line after the page is adjusted so that the search page is adjusted to Figure 4B The search page is shown.
[0403] S206. The electronic device 100 displays the interface element after the display effect is changed, and re-divides the page into multiple areas according to the re-determined dividing lines, and adjusts the display positions of the display contents in the multiple areas.
[0404] The adjustment of the display positions of the display contents in the multiple regions may include but is not limited to the following situations:
[0405] 1) Swap the display positions of the displayed contents in these multiple areas
[0406] Taking two areas as an example, the display positions of the display contents in the two areas can be exchanged with each other.
[0407] For example, in Figure 4A-4B During the page adaptive adjustment process, these two areas can refer to Fig.15 The adjusted dividing line shown in the figure divides the upper and lower areas. Figure 4B It can be seen that the electronic device 100 will Fig.15 The search page shown is divided into two areas, and the contents of the two areas are swapped up and down.
[0408] 2) Move the display content in one or more areas to the specified display position, and adjust the display content in the remaining areas adaptively
[0409] It is understandable that the specific description of the electronic device 100 dividing the page according to the dividing line and adjusting the page can be found in the relevant content of the aforementioned step S104, which will not be repeated here.
[0410] It can be seen from steps S201-S206 that after adjusting the page, the electronic device 100 can also readjust the page according to the changes in the display effects of the interface elements in the page, so that the layout of the page can better adapt to the interface elements after the display effects are adjusted, providing users with a more beautiful UI interface and a better interactive experience.
[0411] In addition, illustratively, taking Android as an example, the drawing of a view includes three steps: measure, layout, and draw. Steps S101-S106 and steps S201-S206 can be executed after the layout process, that is, the code corresponding to this method is inserted after layout.
[0412] Fig.16 A flowchart of a display method provided in an embodiment of the present application.
[0413] like Fig.16 As shown, the display method may include but is not limited to the following steps:
[0414] S301. The electronic device 100 displays a first page of a first application, the first page including first content and second content, the first content being located above the second content in the first page.
[0415] The first application may refer to any application installed in the electronic device 100, and the first page may refer to any one or more pages of the first application. Figure 3A-3G , the first application may refer to a browser application, and the first page may refer to Figure 3B The search page shown may be the default main page of the browser application displayed when the electronic device 100 opens the browser application.
[0416] The first content and the second content are displayed contents in the first page.
[0417] In some possible implementations, the first content in the first page may be displayed in the upper area of the display screen. At this time, in combination with the electronic device 100 being held by the user, the current first content is in an area that is inconvenient for the user to operate.
[0418] It should be noted that the upper area can represent an absolute position in the display screen. For example, the display area where the display screen is located is divided into two areas according to the middle horizontal dividing line, the upper area is the upper area, and the lower area is the lower area. Alternatively, the upper area can represent a relative position in the display screen, and the relative position can be expressed in a position compared with the display position of the first content in the second page in step S303. For example, when the display position of the first content in the first page is above the display position of the first content in the second page, the display position of the first content in the first page is the upper area of the display screen, and the display position of the first content in the second page is the lower area of the display screen. In addition, the lower area mentioned in step S303 is similar and will not be repeated below.
[0419] In some possible implementations, the first content in the first page may be displayed in a top area of the display screen.
[0420] In some possible implementations, the widths of the first content and the second content may both be the width of the first page. In this way, the first content and the second content may be regarded as the content included in the first page divided into a plurality of contents placed vertically. When the user adjusts the display position of the first content and the second content, the layout of the first content and the second content in the first page may be changed directly by moving the displayed content vertically.
[0421] In some possible implementations, the first content and the second content are display contents of a first page divided by the electronic device 100 according to a first dividing line.
[0422] The first dividing line is a horizontal straight line. The first dividing line may include one or more dividing lines. The first dividing line may divide the first page into a plurality of contents arranged vertically, so that the user can adjust the position of the displayed content in the page vertically.
[0423] Exemplarily, the first dividing line may refer to Fig.10 The dividing line 1 shown in (a) may also include Fig.10 The boundary lines 2, 2, and 4 shown in (b) of FIG. Specific descriptions of the electronic device 100 determining the boundary lines can refer to the relevant contents in the aforementioned step S103, which will not be repeated here.
[0424] For example, see Figure 3B, the first content may refer to the search bar 201, and the second content may refer to the option bar 202, the recommendation bar 203 and the information display area 204. The search bar 201 is located above the option bar 202, the recommendation bar 203 and the information display area 204.
[0425] from Figure 3B It can be seen that the boundaries of the search bar 201, the option bar 202, the recommendation bar 203 and the information display area 204 all constitute a rectangular area, and the width of the rectangular area is the width of the search page. In this way, the electronic device 100 can adjust the positions of the search bar 201, the option bar 202, the recommendation bar 203 and the information display area 204 up and down to change the layout of the page.
[0426] It can also be understood that the first content and the second content are the contents in different areas determined by dividing the DecorView into areas during the View drawing process. For details about the principle of View drawing, please refer to the aforementioned Fig.11 , Fig.12 , Fig.13 The relevant description in will not be repeated here.
[0427] In addition, when the first content in the first page is displayed in the top area of the display screen of the electronic device 100 , correspondingly, the second content in the first page can be displayed in the bottom area of the display screen of the electronic device 100 .
[0428] Taking the electronic device 100 as a mobile phone as an example, the display area of the mobile phone is a rectangular area with a height greater than a width. Generally speaking, when a user holds the mobile phone, the top area of the mobile phone display screen is an area that is inconvenient for the user to operate, and the bottom area of the mobile phone display screen is an area that is convenient for the user to operate.
[0429] It can be seen that, in the current first page, the interaction between the user and the first content is not as convenient as the interaction between the user and the second content.
[0430] S302. The electronic device 100 detects a first operation.
[0431] Among them, the first operation can be used to trigger the electronic device 100 to enter the boundary switching mode. The first operation can refer to a touch operation, such as a click operation, a long press operation, etc., or the first operation can also refer to a voice command, etc. The embodiment of the present application does not limit the form of the first operation. The specific description of whether the electronic device 100 determines whether to enter the boundary switching mode can be referred to the aforementioned step S102, which will not be repeated here.
[0432] Exemplarily, the first operation may include any one of the following: a preset operation, an operation acting on a first icon, wherein the first icon is an icon corresponding to a boundary switching function in a drop-down menu, a sidebar, or a settings application, and the preset operation may refer to a specified operation preset by the electronic device 100 for triggering entry into a boundary switching mode, such as a double-click operation, a knuckle tapping operation, and the like.
[0433] See also Figure 3C In (a), the first operation may refer to a double-click operation on the user interface 20; Figure 3C In (b), the first operation may refer to a user operation acting on icon 205A, wherein icon 205A may refer to the icon corresponding to the above-mentioned boundary switching function.
[0434] In some possible implementations, after the electronic device 100 detects the first operation, the electronic device 100 may also display the first identifier in the first page in response to the first operation, and the electronic device 100 may detect the second operation of dragging the first identifier in the first direction, thereby adjusting the layout of the page and displaying the second page. The first direction is the direction in which the second content in the first page points to the first content.
[0435] In this way, the user can adjust the page layout by initiating a simple drag operation on the page.
[0436] See also Figure 3D In (a), the first mark may refer to the dividing mark 206, and the second operation may refer to an operation of dragging the dividing mark 206 upward. The first direction is upward.
[0437] Further optionally, in some possible implementations, the first identifier is located at an edge of a first side of the second content, and the first side may refer to a side of the second content in the first page relative to the first content.
[0438] See also Figure 3D In (a), the first side may refer to the bottom, that is, the dividing mark 206 is located at the bottom edge of the information display area 204.
[0439] In this way, the first identifier is located in an area that is convenient for users to operate. The user can easily and conveniently drag the first identifier to move the first content that is difficult for users to operate to an area that is easy for users to operate, thereby providing users with operational convenience.
[0440] Further optionally, in some possible implementations, when the electronic device 100 detects the second operation of dragging the first marker toward the first area, the electronic device 100 moves the first marker on the display screen following the movement track of the second operation.
[0441] In this way, the user's dragging operation can be converted into the movement process of the first mark that can be viewed on the page. Through the movement track and movement distance of the first mark, the user can simply and clearly know the page layout adjustment situation. For example, if the first mark moves a large distance, it means that more display content is moved to the bottom of the page, and the page layout is adjusted to a large extent. If the first mark moves a small distance, it means that less display content is moved to the bottom of the page, and the page layout is adjusted to a small extent.
[0442] In some other possible implementations, after the electronic device 100 detects the first operation and before displaying the second page, the electronic device 100 may also detect a fourth operation of dragging the first content in a first direction, or the electronic device 100 may also detect a fifth operation of dragging the first content to a first side of the second content; wherein the first direction is the direction in which the first content in the first page points to the second content, and the first side is a side of the second content in the first page relative to the first content.
[0443] See also Figure 3D In (b), the fourth operation or the fifth operation may refer to a drag operation on the search bar 201, the first direction may point downward, and the first side may refer to the bottom.
[0444] That is, the electronic device 100 can adjust the display position of the first content by dragging in a specified direction or to a specified position.
[0445] S303. The electronic device 100 displays a second page, the second page includes a first content and a second content, and the first content is located below the second content in the second page.
[0446] In combination with the first page in step S301, it can be seen that after the electronic device 100 detects the first operation, the electronic device 100 swaps the relative positions of the first content and the second content up and down. In the first page, the first content is located above the second content, and in the second page, the first content is located below the second content.
[0447] For example, see Figure 3E The first content may refer to a search bar 201 , and the second content may refer to an option bar 202 , a recommendation bar 203 , and an information display area 204 . The search bar 201 is located below the option bar 202 , the recommendation bar 203 , and the information display area 204 .
[0448] In some possible implementations, the first content in the second page is displayed in the lower area of the display screen. At this time, combined with the situation that the electronic device 100 is held by the user, the current first content is in an area that is convenient for the user to operate. Combined with the position of the first content in the first page mentioned in step S301 in the display screen, it can be seen that the electronic device 100 can move the content that is inconvenient for the user to operate to an area that is convenient for the user to operate based on the user's operation, thereby facilitating the user's operation and improving the user's operating experience when interacting with the electronic device.
[0449] Furthermore, in some possible implementations, the first content in the second page may be displayed in a bottom area of the display screen.
[0450] It can be seen that the electronic device 100 can adjust the display position of the displayed content in the divided area of the page through user operation, thereby changing the layout of the page. In this way, the layout of the page can be flexibly adjusted according to the needs of the user, avoiding the restriction of the fixed display position of the displayed content in the page by the user operation, and improving the user's experience of using the electronic device. In addition, the display method provided in the embodiment of the present application is to adjust the area of the horizontal division of the page vertically, and is not limited to the adjustment of a single small control in the page, so that the page can be adjusted significantly, and the user can adjust the page layout at will, avoiding the unscientific design of the page layout and affecting the user's interactive experience.
[0451] When the first content in the second page is displayed in the bottom area of the display screen of the electronic device 100 , correspondingly, the second content in the second page can be displayed in the top area of the display screen of the electronic device 100 .
[0452] It can be seen from the fact that the first content in the first page is displayed in the top area of the display screen of the electronic device 100 that the electronic device 100 can move the first content that is inconvenient for the user to operate to an area that is convenient for the user to operate through the first operation, thereby solving the problem of inconvenient user operation due to the fixed display position of the displayed content.
[0453] In some possible implementations, after the electronic device 100 displays the second page, the electronic device 100 may further detect a third operation, and cancel the display of the first identification in response to the third operation.
[0454] Among them, the third operation can be used to trigger the electronic device 100 to exit the boundary switching mode. The third operation can refer to a trigger operation, such as a click operation, a long press operation, etc., or the third operation can also refer to a voice command. The embodiment of the present application does not limit the form of the third operation. The specific description of the electronic device 100 determining whether to exit the boundary switching mode can be referred to the aforementioned step S105, which will not be repeated here.
[0455] Exemplarily, the third operation includes any one of the following: a preset operation, an operation acting on the first icon, a drag operation acting on the first identifier, an operation of switching pages; wherein the first icon is an icon corresponding to the boundary switching function in a drop-down menu, sidebar or setting application, and the preset operation may refer to a specified trigger operation preset by the electronic device 100 for exiting the boundary switching mode, such as a double-click operation, a knuckle tapping operation, and the like.
[0456] See also Figure 3F In (a), the preset operation may refer to a double-click operation on the user interface 20. Figure 3F In (b), the first icon may refer to the icon 205A, and the operation on the first icon may refer to a click operation on the icon 205A. Figure 3F In (c), the first mark may refer to the demarcation mark 206, and the dragging operation on the first mark may refer to the operation of dragging downward on the demarcation mark 206. Figure 3F In (d), the page switching operation may refer to a user operation on the first information bar 204A.
[0457] Further optionally, in some possible implementations, in response to the third operation, the electronic device 100 may continue to display the second page, or display the first page.
[0458] That is, after the electronic device 100 exits the split switching mode, the electronic device 100 can maintain the adjusted layout of the page, for example, display Figure 3G The user interface 20 shown in (a) in FIG. 1 can also be restored to the layout before the page adjustment, for example, displaying Figure 3G The user interface 20 shown in (b) .
[0459] In some possible implementations, after displaying the second page, the electronic device 100 may further detect a sixth operation, wherein the sixth operation is used to trigger the electronic device 100 to display the first interface element; in response to the sixth operation, the electronic device 100 may display a third page, and display the first interface element in the third page; wherein the third page includes third content and fourth content, the third content includes a first part of the second content and the first content, the fourth content includes another part of the second content, the direction in which the third content points to the fourth content is the same as the direction in which the first content in the second page points to the second content, and part or all of the first interface element is displayed in a display area where a part of the second content contained in the third content is located.
[0460] Among them, the sixth operation may refer to a touch operation, such as a click operation, a long press operation, etc., or the sixth operation may also refer to a voice command. The embodiment of the present application does not limit the form of the sixth operation.
[0461] See also Figure 4A-4B , the sixth operation may refer to Figure 4A As shown, the third page may refer to the user operation of the more icon 201A. Figure 4B The search page shown, the third content may refer to Figure 4B The search bar 201, option bar 202 and recommendation bar 203 shown in FIG. Figure 4B The information display area 204 is shown.
[0462] It can be understood that the sixth operation can be to trigger the electronic device 100 to display the first interface element from scratch, or can be to trigger the electronic device 100 to adjust the size and / or position of the interface element. In this case, the first interface element can be the interface element after being removed and / or changed in position.
[0463] That is, when the electronic device 100 determines that the interface element displayed by the user operation will exceed a certain area in the currently adjusted page, the electronic device 100 can readjust the page layout so that the display range of the displayed interface element does not exceed a certain display area in the page. It can be seen that the electronic device 100 can adaptively adjust the layout of the page so that the electronic device 100 can display the optimal page layout.
[0464] Further optionally, in some possible implementations, after the electronic device 100 displays the first interface element in the third page, the electronic device 100 may also detect a seventh operation, and the seventh operation is used to trigger the electronic device 100 to cancel the display of the first interface element; in response to the seventh operation, the electronic device 100 may cancel the display of the first interface element in the third page, or the electronic device 100 displays the second page and cancels the display of the first interface element.
[0465] Among them, the seventh operation may refer to a touch operation, such as a click operation, a long press operation, etc., or the seventh operation may also refer to a voice command. The embodiment of the present application does not limit the form of the seventh operation.
[0466] See also Figure 4B The seventh operation may refer to a user operation acting on the more icon 201A. When the electronic device 100 cancels the display of the first interface element in the third page, the electronic device 100 may display Figure 4C In the user interface 20 shown in (a), when the electronic device 100 displays the second page and cancels the display of the first interface element, the electronic device 100 may display Figure 4C The user interface 20 shown in (b) .
[0467] The specific internal implementation process of how the electronic device 100 performs page adaptive adjustment can be found in the aforementioned steps S201-S206, which will not be repeated here.
[0468] That is, after the electronic device 100 is adaptively adjusted, if the electronic device 100 cancels displaying the interface element that causes the adaptive adjustment of the page, the electronic device 100 can keep displaying the adaptively adjusted page layout, or restore to the page layout before the adaptive adjustment.
[0469] In some possible implementations, after the electronic device 100 displays the second page, the electronic device 100 can also detect an operation acting on a second interface element in the second page; in response to the operation, the electronic device 100 changes the display effect of the second interface element, and the display effect includes one or more of the following: size, position, color, brightness, transparency, etc.
[0470] See also Fig. 6A , the second interface element may refer to more icons 201A, and changing the display effect of the second interface element may refer to Figure 6A-6B The resizing of the more icon 201A is shown.
[0471] That is to say, during the page adjustment process, the electronic device 100 can also change the display effects of the interface elements in the page to improve the user's operability so that the user can personalize the page layout that suits him / her.
[0472] In some possible implementations, the first content may include: fifth content and sixth content. After detecting the first operation, the electronic device 100 may also detect a selection operation acting on the fifth content and the sixth content in the first content.
[0473] See also Figure 5A-5C The first content may refer to the search bar 201 and the recommendation bar 203, the fifth content may refer to the search bar 201, the sixth content may refer to the recommendation bar 203, and the second content may refer to the information display area 204. The selection operations acting on the fifth content and the sixth content may include Figure 5A User operations acting on the search bar 201 are shown, and Figure 5B User operations acting on the recommendation column 203 are shown.
[0474] That is to say, after selecting multiple contents, the electronic device 100 can adjust the display positions of multiple contents at one time, thereby improving the efficiency of the user in adjusting the page layout.
[0475] In some possible implementations, after the electronic device 100 displays the second page, the electronic device 100 may also detect an eighth operation, which is used to trigger the electronic device 100 to display the content in the second page on other devices; in response to the eighth operation, the electronic device 100 may send indication information of the second content, but not send indication information of the first content.
[0476] Among them, the eighth operation may refer to a touch operation, such as a click operation, a long press operation, etc., or the eighth operation may also refer to a voice command. The embodiment of the present application does not limit the form of the eighth operation.
[0477] Exemplarily, the eighth operation may include a user operation acting on a first icon in a first window, wherein the first window includes a first icon and a second icon, wherein the first icon is used to indicate the second content, and the second icon is used to indicate the first content.
[0478] See also Figure 7A-7B , the first window may refer to Fig. 7A In the window 208 shown, the first icon may refer to a first option 208A, and the second icon may refer to a second option 208B.
[0479] That is, after the electronic device 100 adjusts the layout of the page, it can further combine the screen projection function to select one or more remaining display contents divided during the adjustment process of the page for screen projection. In this way, part of the content in the page can be displayed intensively, which is convenient for users to quickly search or intensively view part of the content in the page.
[0480] In some possible implementations, the display method may be executed by a system unit of the electronic device 100 , where the system unit and the first application are different modules of the electronic device 100 .
[0481] The system unit may be located at the framework layer of the electronic device 100. In other words, the boundary switching function may be defined as a system-level function. In this way, any application under the system may adjust the layout of the page in response to the first operation, thereby expanding the application scenarios of the page adjustment provided by the embodiment of the present application and improving the user's experience of adjusting the page layout.
[0482] In some possible implementations, the first content and the second content are determined by the system unit dividing the first page into regions, rather than by the first application.
[0483] That is to say, the first content and the second content in the first page mentioned in the embodiment of the present application are the display contents obtained by the system dividing the first page into regions, and the first application does not perceive the region division process in the first page, and the first content and the second content are different from the various controls in the first page. It can be seen that the method provided in the embodiment of the present application can divide the application page into multiple regions based on the user's operation, and adjust the regions to change the layout of the page, thereby achieving a substantial adjustment of the page content, so that the user can change the display position of multiple controls contained in a region through a single adjustment operation of the page layout, and move multiple controls contained in a region to a region that is convenient for the user to operate.
[0484] Fig.17 A flowchart of another display method provided in an embodiment of the present application.
[0485] like Fig.17 As shown, the display method may include but is not limited to the following steps:
[0486] S401. The electronic device 100 displays a first page of a first application, the first page including a first content and a second content, the first content being located on the left side of the second content in the first page.
[0487] In some possible implementations, the first content in the first page is displayed in the left area of the display screen of the electronic device 100. At this time, combined with the situation that the electronic device 100 is held by the user, the current first content is in an area that is inconvenient for the user to operate.
[0488] In a possible implementation, the heights of the first content and the second content can both be the height of the first page. In this way, the first content and the second content can be regarded as the content included in the first page divided into multiple contents placed left and right. When the user adjusts the display position of the first content and the second content, the layout of the first content and the second content in the first page can be changed directly by horizontally moving the displayed content.
[0489] In a possible implementation, the first content and the second content are display areas of the first page divided by the electronic device 100 according to the first dividing line.
[0490] The first dividing line is a vertical straight line, and the first dividing line may include one or more dividing lines. The first dividing line may divide the first page into a plurality of contents arranged left and right, so that the user can adjust the position of the displayed contents in the page left and right.
[0491] Exemplarily, the first dividing line may refer to Fig.10The dividing line 5 shown in (c) of FIG. Specific details on the determination of the dividing line can be found in the related content of the aforementioned step S103, which will not be repeated here.
[0492] For example, see Fig. 8A , the first application may refer to a setting application, and the first page may include a setting page in a setting bar 401 and a detail page in a detail bar 402. The first content may refer to the setting bar 401, and the second content may refer to the detail bar 402.
[0493] In addition, when the first content in the first page is displayed in the left area of the display screen of the electronic device 100 , correspondingly, the second content in the first page can be displayed in the right area of the display screen of the electronic device 100 .
[0494] Taking the electronic device 100 as a tablet or a folding screen device as an example, the display area of the tablet or the folding screen device in the unfolded state is a rectangular area with a width greater than a height. Generally speaking, when a user holds a tablet or a folding screen device in the unfolded state, the left area of the display screen is an area that is inconvenient for the user to operate, and the right area of the display screen is an area that is convenient for the user to operate.
[0495] It can be seen that, in the current first page, the interaction between the user and the first content is not as convenient as the interaction between the user and the second content.
[0496] S402. The electronic device 100 detects a first operation.
[0497] The first operation may be used to trigger the electronic device 100 to enter a boundary switching mode.
[0498] For a detailed description of the first operation, please refer to the relevant content in the aforementioned step S302, which will not be described in detail here.
[0499] In some possible implementations, after the electronic device 100 detects the first operation, the electronic device 100 may also display the first identifier in the first page in response to the first operation, and the electronic device 100 may detect the second operation of dragging the first identifier in the first direction, thereby adjusting the layout of the page and displaying the second page. The first direction is the direction in which the second content in the first page points to the first content.
[0500] For example, see Fig. 8A The first mark may refer to the demarcation mark 403, and the second manipulation may refer to an operation of dragging the demarcation mark 403 to the left. The first direction is to the left.
[0501] Further optionally, in some possible implementations, the first identifier is located at an edge of a first side of the second content, and the first side may refer to a side of the second content in the first page relative to the first content.
[0502] See also Fig. 8A The first side may refer to the left side, that is, the dividing mark 206 is located at the left edge of the detail column 402 .
[0503] S403. The electronic device 100 displays a second page, the second page includes a first content and a second content, and the first content is located on the right side of the second content in the second page.
[0504] In combination with the first page in step S401, it can be seen that after the electronic device 100 detects the first operation, the electronic device 100 swaps the relative positions of the first content and the second content left and right. In the first page, the first content is located on the left side of the second content, and in the second page, the first content is located on the right side of the second content.
[0505] For example, see Figure 8B The first content refers to the setting bar 401 , and the second content refers to the detail bar 402 . The setting bar 401 is located on the right side of the detail bar 402 .
[0506] In some possible implementations, the first content in the second page is displayed in the right area of the display screen. At this time, combined with the electronic device 100 being held by the user, the current first content is in an area that is convenient for the user to operate. Combined with the position of the first content in the first page mentioned in step S401 in the display screen, it can be seen that the electronic device 100 can move the content that is inconvenient for the user to operate to an area that is convenient for the user to operate based on the user's operation, thereby facilitating the user's operation and improving the user's operating experience when interacting with the electronic device.
[0507] When the first content in the second page is displayed in the right area of the display screen of the electronic device 100 , correspondingly, the second content in the second page can be displayed in the left area of the display screen of the electronic device 100 .
[0508] It can be seen from the fact that the first content in the first page is displayed in the left area of the display screen of the electronic device 100 that the electronic device 100 can move the first content that is inconvenient for the user to operate to an area where it is convenient for the user to operate through the first operation, thereby solving the problem of inconvenient user operation due to the fixed display position of the displayed content.
[0509] It can be understood that specific content not mentioned in steps S401-S403, such as adjusting the page layout by dragging the boundary marker, adjusting the page layout by dragging the first content, entering and exiting the boundary switching mode, adaptive adjustment of the page, changes in the display effects of interface elements, selection operations on multiple contents, screen projection of contents, etc., can all be found in the aforementioned steps S301-S303, and will not be described in detail here.
[0510] In general, the display method provided in the embodiment of the present application can divide the application page into multiple areas arranged up and down or left and right, so as to adjust the display content in these areas up and down or left and right, and move the content that the user needs to interact with to the area which is convenient for the user to operate, so that the user can customize the page layout according to his own needs to suit his own habits, thereby improving the flexibility and convenience of the user's interaction with the electronic device.
[0511] It should be understood that each step in the above method embodiment can be completed by an integrated logic circuit of hardware in a processor or by instructions in the form of software. The method steps disclosed in the embodiments of the present application can be directly embodied as being executed by a hardware processor, or by a combination of hardware and software modules in a processor.
[0512] The present application also provides an electronic device, which may include: a memory and a processor. The memory may be used to store a computer program; the processor may be used to call the computer program in the memory, so that the electronic device executes the method executed by the electronic device 100 in any of the above embodiments.
[0513] The present application also provides a chip system, which includes at least one processor for implementing the functions involved in the method performed by the electronic device 100 in any of the above embodiments.
[0514] In one possible design, the chip system also includes a memory, which is used to store program instructions and data, and the memory is located inside or outside the processor.
[0515] The chip system may be composed of the chip, or may include the chip and other discrete devices.
[0516] Optionally, the processor in the chip system may be one or more. The processor may be implemented by hardware or by software. When implemented by hardware, the processor may be a logic circuit, an integrated circuit, etc. When implemented by software, the processor may be a general-purpose processor implemented by reading software code stored in a memory.
[0517] Optionally, the memory in the chip system may also be one or more. The memory may be integrated with the processor or may be separately arranged with the processor, which is not limited in the embodiments of the present application. Exemplarily, the memory may be a non-transient processor, such as a read-only memory ROM, which may be integrated with the processor on the same chip or may be arranged on different chips respectively. The embodiments of the present application do not specifically limit the type of memory and the arrangement of the memory and the processor.
[0518] Exemplarily, the chip system can be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a microcontroller unit (MCU), a programmable logic device (PLD) or other integrated chips.
[0519] The present application also provides a computer program product, which includes: a computer program (also referred to as code, or instruction), which, when executed, enables a computer to execute a method executed by any one of the electronic devices 100 in any of the above embodiments.
[0520] The present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program (also referred to as code or instruction). When the computer program is executed, the computer executes any method executed by the electronic device 100 in any of the above embodiments.
[0521] It should be understood that the processor in the embodiment of the present application can be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method embodiment can be completed by the hardware integrated logic circuit or software instructions in the processor. The above processor can be a general processor, a digital signal processor (digitalsignal processor, DSP), an application specific integrated circuit (AP 800plication specific integrated circuit, ASIC), a field programmable gate array (field programmable gate array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to perform, or the hardware and software modules in the decoding processor are combined to perform. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
[0522] In addition, an embodiment of the present application further provides a device. The device may be a component or a module, and the device may include one or more processors and a memory connected to each other. The memory is used to store a computer program. When the computer program is executed by one or more processors, the device executes the method in each of the above method embodiments.
[0523] Among them, the device, computer-readable storage medium, computer program product or chip provided in the embodiments of the present application are used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.
[0524] The various implementation modes of the present application can be combined arbitrarily to achieve different technical effects.
[0525] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state disk (SSD)), etc.
[0526] Those skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by computer programs to instruct related hardware, and the programs can be stored in computer-readable storage media. When the programs are executed, they can include the processes of the above-mentioned method embodiments. The aforementioned storage media include: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store program codes.
[0527] In short, the above description is only an embodiment of the technical solution of the present invention, and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made according to the disclosure of the present invention shall be included in the protection scope of the present invention.
Claims
1. A display method, characterized in that: The method comprises: The electronic device displays a first page of a first application, the first page includes a first content and a second content, and the first content is located above the second content in the first page; The electronic device detects a first operation; The electronic device displays a second page, the second page includes the first content and the second content, and the first content is located below the second content in the second page.
2. The method according to claim 1, characterized in that: The widths of the first content and the second content are both the width of the first page.
3. The method according to claim 1 or 2, characterized in that: The first content in the first page is displayed in an upper area of a display screen of the electronic device, and the first content in the second page is displayed in a lower area of the display screen.
4. A display method, characterized in that: The method comprises: The electronic device displays a first page of a first application, the first page includes a first content and a second content, and the first content is located on the left side of the second content in the first page; The electronic device detects a first operation; The electronic device displays a second page, the second page includes the first content and the second content, and the first content is located on the right side of the second content in the second page.
5. The method according to claim 4, characterized in that The heights of the first content and the second content are both the heights of the first page.
6. The method according to claim 4 or 5, characterized in that: The first content in the first page is displayed in a left area of a display screen of the electronic device, and the first content in the second page is displayed in a right area of the display screen.
7. The method according to any one of claims 1 to 6, characterized in that: After the electronic device detects the first operation, the method further includes: In response to the first operation, the electronic device displays a first identifier on the first page; The electronic device detects a second operation of dragging the first mark to a first direction, where the first direction is a direction in which the second content in the first page points to the first content.
8. The method according to claim 7, characterized in that In the first page, the first marker is located at an edge of a first side of the second content, where the first side is a side of the second content in the first page relative to the first content.
9. The method according to claim 7 or 8, characterized in that: The method further comprises: When the electronic device detects a second operation of dragging the first marker toward a first direction, the electronic device moves the first marker on the display screen following a moving track of the second operation.
10. The method according to any one of claims 7 to 9, characterized in that: After the electronic device displays the second page, the method further includes: The electronic device detects a third operation; In response to the third operation, the electronic device cancels display of the first logo.
11. The method according to claim 10, characterized in that The method further comprises: In response to the third operation, the electronic device keeps displaying the second page, or the electronic device displays the first page.
12. The method according to any one of claims 1 to 11, characterized in that: After the electronic device detects the first operation and before displaying the second page, the method further includes: The electronic device detects a fourth operation of dragging the first content in a first direction, or the electronic device detects a fifth operation of dragging the first content to a first side of the second content; wherein the first direction is a direction in which the first content in the first page points to the second content, and the first side is a side of the second content in the first page relative to the first content.
13. The method according to any one of claims 1 to 12, characterized in that: After the electronic device displays the second page, the method further includes: The electronic device detects a sixth operation, where the sixth operation is used to trigger the electronic device to display a first interface element; In response to the sixth operation, the electronic device displays a third page and displays the first interface element in the third page; the third page includes third content and fourth content, the third content includes a part of the second content and the first content, the fourth content includes another part of the second content, the direction in which the third content points to the fourth content is the same as the direction in which the first content in the second page points to the second content, and part or all of the first interface element is displayed in a display area where a part of the second content contained in the third content is located.
14. The method according to claim 13, characterized in that After the electronic device displays the first interface element on the third page, the method further includes: The electronic device detects a seventh operation, where the seventh operation is used to trigger the electronic device to cancel display of the first interface element; In response to the seventh operation, the electronic device cancels display of the first interface element in the third page, or the electronic device displays the second page and cancels display of the first interface element.
15. The method according to any one of claims 1 to 14, characterized in that: The first content includes: fifth content and sixth content. After the electronic device detects the first operation, the method further includes: The electronic device detects a selection operation performed on the fifth content and the sixth content in the first content.
16. The method according to any one of claims 1 to 15, characterized in that: After the electronic device displays the second page, the method further includes: The electronic device detects an eighth operation, where the eighth operation is used to trigger the electronic device to project the content in the second page onto another device for display; In response to the eighth operation, the electronic device sends indication information of the second content, and does not send indication information of the first content.
17. The method according to claim 16, characterized in that The eighth operation includes a user operation acting on a first icon in a first window, wherein the first window includes the first icon and a second icon, wherein the first icon is used to indicate the second content, and the second icon is used to indicate the first content.
18. The method according to any one of claims 1 to 17, characterized in that: The first content and the second content are display contents obtained by dividing the first page by the electronic device according to a first dividing line.
19. The method according to any one of claims 1 to 18, characterized in that: The method is executed by a system unit of the electronic device, and the system unit and the first application are different modules of the electronic device.
20. An electronic device, characterized in that: The electronic device comprises a memory, one or more processors, and one or more programs; when the one or more processors execute the one or more programs, the electronic device implements the method as described in any one of claims 1 to 19.
21. A computer-readable storage medium comprising instructions, characterized in that: When the instructions are executed on an electronic device, the electronic device is caused to execute the method according to any one of claims 1 to 19.
22. A computer program product, characterized in that When the computer program product is run on a computer, the computer is caused to execute the method according to any one of claims 1 to 19.
