Split-screen display method, electronic device, chip and readable storage medium
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-30
- Publication Date
- 2026-08-11
AI Technical Summary
由于在主分屏中打开的新页面,亦会跳转到副分屏中运行,用户不易理解新页面是属于哪个应用,容易造成困惑,用户交互体验不佳
[0031]第五方面,本申请实施例提供一种装置(如芯片),该装置具有实现上述第一方面所提供的方法中第一电子设备行为的功能。功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述功能相对应的模块。
Smart Images

Figure CN115544403B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of terminal technology, and in particular to a split-screen display method, electronic device, chip, and computer-readable storage medium. Background Technology
[0002] Split-screen display refers to the device system displaying two pages or applications side-by-side or top-bottom. The split-screen function allows users to conveniently browse multiple pages or use multiple applications at the same time.
[0003] Existing operating systems, such as Android, offer a split-screen technology solution that supports displaying two pages or applications side-by-side to form a split screen. Regardless of which split screen a new page is opened in, the new page will open in the secondary split screen (e.g., the secondary split screen is the bottom or right split screen, and the main split screen is the top or left split screen). Because a new page opened in the main split screen will also jump to the secondary split screen to run, it is not easy for users to understand which application the new page belongs to, which can easily cause confusion and result in a poor user experience. Summary of the Invention
[0004] In view of this, it is necessary to provide a split-screen display method that can display a new split-screen page opened by a split-screen page in the same split-screen display area.
[0005] The first aspect of this application discloses a split-screen display method applied to an electronic device. The method includes: in response to a request from an application (APP) to open a new page, obtaining the split-screen type of the source page, wherein the source page is the page that opens a new page in response to the new page request; identifying the page type of the source page according to the split-screen type of the source page, wherein the page type of the source page includes one of top / left split-screen page and bottom / right split-screen page; and opening a new page according to the page type of the source page.
[0006] By adopting this technical solution, it is possible to open a new page in any split-screen area, according to the page type of the source page. This allows the new page to open in the current split-screen area without interfering with the operation of another split-screen area, providing users with a continuous split-screen experience.
[0007] In one possible implementation, obtaining the split-screen type of the source page includes: if the new page request does not specify the page type of the new page, obtaining the type of the stack corresponding to the source page, wherein the stack type includes a main stack and a secondary stack; determining the split-screen type of the source page based on the type of the stack corresponding to the source page, wherein the main stack corresponds to the top / left split-screen and the secondary stack corresponds to the bottom / right split-screen.
[0008] By adopting this technical solution, the page type of the source page can be identified by obtaining the split-screen type of the source page when no page type of the new page is specified, making it easier to open the new page according to the page type of the source page.
[0009] In one possible implementation, opening a new page according to the page type of the source page includes: if the new page supports the page type of the source page, opening the new page according to the page type of the source page; or if the new page does not support the page type of the source page, opening the new page according to the default page type.
[0010] By adopting this technical solution, when the new page supports the page type of the source page, the new page will open according to the page type of the source page; when the new page does not support the page type of the source page (split screen), the new page will open according to the default page type (full screen).
[0011] In one possible implementation, opening a new page according to the page type of the source page includes: opening the new page in the split-screen display area to which the source page belongs, wherein the new page and the source page have the same split-screen type.
[0012] By adopting this technical solution, the newly opened page can be displayed in the split-screen display area to which the source page belongs, without interfering with the operation of the other split-screen area.
[0013] In one possible implementation, the split-screen display method also includes: if a new page requests a specified page type, opening the new page according to the specified page type.
[0014] In one possible implementation, the split-screen display method also includes creating a new stack for the new page when the new page belongs to a new instance.
[0015] By adopting this technical solution, a new stack can be created for the new page when the opened new page belongs to a new instance (task, process, or new thread).
[0016] In one possible implementation, the electronic device includes multiple stack lists, each stack list corresponding to a page type, and each stack list stores the stack creation order. The split-screen display method also includes: when a new stack is created for a new page, inserting the new stack into the corresponding stack list.
[0017] By adopting this technical solution, stacks are managed through a stack list that stores the creation order of the stacks. This allows the previous split-screen page to be restored sequentially according to the opening order when a split-screen page is exited, providing users with a continuous user experience.
[0018] In one possible implementation, the split-screen display method further includes: in response to the APP's exit page request, selecting the previous background page with the same page type as the target page, and switching the selected background page to the foreground for display; wherein, the target page is the page currently displayed in the foreground by the APP, and the selected background page gains focus when switched to the foreground.
[0019] By adopting this technical solution, when a split-screen page is exited, the previous split-screen page can be restored sequentially according to the opening order of the split-screen pages, and the previous page can regain focus.
[0020] In one possible implementation, the stack list includes a first stack and a second stack, wherein the second stack is created before the first stack. Selecting the previous background page with the same page type as the target page includes: if the first stack has a background page, selecting the previous background page of the target page from the first stack; or if the target page is the page at the bottom of the first stack, selecting the previous background page of the target page from the second stack.
[0021] By adopting this technical solution, when the unfinished page at the bottom of a stack exits, a background page can be selected from that stack; when the page at the bottom of a stack exits, the target page can be selected from the stack below that stack.
[0022] In one possible implementation, the split-screen display method also includes: when a page located at the bottom of the first stack exits, the first stack is exited.
[0023] By adopting this technical solution, the stack can be exited when the page at the bottom of the stack is exited.
[0024] In one possible implementation, exiting the first stack includes: removing the first stack from the stack list; or moving the first stack to the bottom of the stack list.
[0025] In one possible implementation, the split-screen display method further includes: when the stack list corresponding to the top / left split-screen page has a first backup page set, and all stacks in the stack list are dequeued, the first backup page is switched to the foreground for display; or when the stack list corresponding to the bottom / right split-screen page has a second backup page set, and all stacks in the stack list are dequeued, the second backup page is switched to the foreground for display.
[0026] By adopting this technical solution, a backup page can be set in the stack list of a certain type of split screen. When all stacks in the stack list are exited, the backup page is displayed, thus maintaining the split screen state without exiting.
[0027] In one possible implementation, the split-screen display method further includes: creating a new stack for the first backup page in the stack list corresponding to the top / left split-screen page; or creating a new stack for the second backup page in the stack list corresponding to the bottom / right split-screen page.
[0028] Secondly, embodiments of this application provide a computer-readable storage medium including computer instructions that, when executed on an electronic device, cause the electronic device to perform the split-screen display method as described in the first aspect.
[0029] Thirdly, embodiments of this application provide an electronic device, which includes a processor and a memory. The memory is used to store instructions, and the processor is used to call the instructions in the memory to cause the electronic device to execute the split-screen display method as described in the first aspect.
[0030] Fourthly, embodiments of this application provide a computer program product that, when run on a computer, causes the computer to execute the split-screen display method as described in the first aspect.
[0031] Fifthly, embodiments of this application provide an apparatus (such as a chip) that has the function of implementing the behavior of the first electronic device in the method provided in the first aspect above. The function can be implemented in hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-described function.
[0032] It is understood that the computer-readable storage medium described in the second aspect, the electronic device described in the third aspect, the computer program product described in the fourth aspect, and the device described in the fifth aspect all correspond to the method described in the first aspect. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects in the corresponding methods provided above, and will not be repeated here. Attached Figure Description
[0033] Figure 1 This is a schematic diagram illustrating an application scenario of the split-screen display method provided in an embodiment of this application;
[0034] Figure 2 A schematic diagram of the display interface of an electronic device in split-screen mode according to an embodiment of this application;
[0035] Figure 3 A schematic flowchart illustrating a split-screen display method provided in an embodiment of this application;
[0036] Figure 4 for Figure 3 A detailed flowchart illustrating the one-step process of the split-screen display method;
[0037] Figure 5This is a schematic diagram of the structure of a first stack list provided in an embodiment of this application;
[0038] Figure 6 This is a schematic diagram of the structure of a possible electronic device provided in an embodiment of this application. Detailed Implementation
[0039] It should be noted that in this application, "at least one" means one or more, and "more than one" means two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The terms "first," "second," "third," "fourth," etc. (if present) in the specification, claims, and drawings of this application are used to distinguish similar objects, not to describe a specific order or sequence.
[0040] The following is combined Figure 1 An exemplary application scenario diagram of the split-screen display method provided in the embodiments of the present invention is shown.
[0041] This embodiment can be applied to electronic device 100. Electronic device 100 can refer to a device including a display screen, such as a mobile phone, tablet computer, in-vehicle device, smartwatch, etc. Electronic device 100 can have multiple applications (Apps) installed to perform multiple functions, such as desktop Apps, chat Apps, video Apps, etc. The following embodiment uses a mobile phone as an example for illustration.
[0042] like Figure 1 As shown, the display interface 110 of the electronic device 100 supports both full-screen and split-screen modes. In full-screen mode, the display interface 110 can display only one page of a specific app. When the electronic device 100 receives a split-screen command, it enters split-screen mode and can divide the display interface 110 into at least two display areas. For example, the display interface 110 can be divided into a first display area 111 and a second display area 112. The first display area 111 and the second display area 112 can be arranged vertically or horizontally. The specific arrangement is not specifically limited in this invention. The split-screen command can be triggered by the user touching a designated icon on the display interface 110 (e.g., the task key in the navigation bar), performing a designated swipe gesture on the display screen (this gesture can be set according to actual needs, such as a slight / slightly forceful swipe of a single finger knuckle across the display area), or pressing a designated button on the electronic device 100.
[0043] In some embodiments, the first display area 111 and the second display area 112 may each display two pages. A page can refer to the content of the user interaction area of the app displayed on the screen. The shape of a page is generally rectangular, but the specific shape of the page is not specifically limited in this invention. A page may include display content, input controls that can receive user input commands, etc. Display content may include images, text, etc.
[0044] In some embodiments, the two pages displayed in the first display area 111 and the second display area 112 in a split-screen manner may come from different apps. For example, the two pages may come from a chat app and a browser app, or from two browser apps. Alternatively, the two pages displayed in the first display area 111 and the second display area 112 in a split-screen manner may come from the same app. For example, both pages may come from a phone app, with one page being the dialer page of the phone app and the other being the call log page of the phone app.
[0045] In some embodiments, taking a phone app as an example, the dialer interface is one page and the call log interface is another page. This can be configured by the phone app developer. After opening one page in full-screen mode, another page can be opened, and this second page can be either split-screen or not. For example, after opening the dialer page and then opening the call log page, if the developer has set up split-screen display, the dialer page and the call log page can be displayed in a horizontal split or a vertical split.
[0046] like Figure 2 As shown, when a user clicks on a control, icon, link, or attachment in any split-screen display area (e.g., the first display area 111 or the second display area 112), the electronic device 100 can open a new page in that split-screen display area (this new page can belong to a new app or the current app). This new page will not jump to other split-screen display areas for display and will not affect the other split-screen display areas, thus providing the user with a continuous split-screen interactive experience.
[0047] For example, the first display area 111 of the electronic device 100 displays page a11 of the chat app A1 (a conversation page with user U1), and the second display area 112 displays page b11 of the picture app B1. When the user clicks an icon L1 on page a1, a new page a12 (a conversation page with user U2) can be opened. This page a12 covers page a11 and can receive focus.
[0048] In some embodiments, if the new page a12 is a page of another app and does not support split-screen, the electronic device 100 can open page a12 in full-screen mode.
[0049] In some embodiments, for any split-screen display area, when the currently displayed page is exited, the electronic device 100 can also restore the previous page (application) sequentially according to the page (or APP) opening order, and the currently restored page can gain focus, which can improve the user experience of continuous split-screen use. For example, if page a12 is the target page (the page with focus), when the user touches the back button of the electronic device 100 or the electronic device 100 detects a user-specified gesture (this gesture can be set according to actual needs, such as a finger swiping upwards), the first display area 111 can exit page a12 and restore the display of page a11. The back button can be the back button of the navigation bar, the back icon of the currently focused page, etc., and the present invention does not specifically limit it.
[0050] Reference Figure 3 As shown in the embodiment of this application, a split-screen display method is applied to an electronic device 100. In this embodiment, the split-screen display method includes:
[0051] 31. In response to the APP's request to open a new page, obtain the split-screen type of the source page.
[0052] In some embodiments, a new page request can be automatically triggered by the app, for example, when an app is launched, the app automatically opens a welcome page (new page). A new page request can also be triggered by the user, for example, when the app receives a user action event (such as a click) and opens a new page.
[0053] In some embodiments, the source page can refer to the page in the app that responds to a new page request and opens a new page, or it can refer to the page in the app that currently receives a user operation event. For example, if a user clicks an icon on page a11 of the app, and the electronic device 100 responds to the click operation and opens page a12, page a11 can be defined as the source page.
[0054] In some embodiments, the split-screen type of the source page may include top, bottom, left, and right split-screen. The split-screen type of the source page can be obtained by retrieving the stack corresponding to the source page. For example, first obtain the type of the stack corresponding to the source page, and then determine the split-screen type of the source page based on the type of the stack corresponding to the source page.
[0055] Electronic device 100 can use four types of stacks (ActivityStack) to manage the pages displayed on its interface. These four stacks include: main stack, secondary stack, full-screen stack, and floating window stack. Each type of stack corresponds to a different page type. There is no limit to the number of each type of stack, and stacks do not need to be related to each other. For example, the main stack corresponds to pages displayed in the left or top split screen, the secondary stack corresponds to pages displayed in the right or bottom split screen, the full-screen stack corresponds to pages displayed in full-screen mode, and the floating window stack corresponds to pages displayed in a floating window mode, allowing the page to be moved across the surface of the app while it is floating.
[0056] If the stack corresponding to the source page is the main stack, we can determine whether the source page's split-screen type is left-side or top-side. If the stack corresponding to the source page is the minor stack, we can determine whether the source page's split-screen type is right-side or bottom-side.
[0057] In some embodiments, the stack involved in this application can refer to a container for loading instances, and one stack can correspond to one instance of the App. An instance can include multiple pages, and a page can include displayed content (images, text), input controls that can receive user input commands, etc. The content contained in a page can come from one instance, or from two or more instances. An instance can refer to a task, a process, or a thread of the App. When a new page comes from a new instance, a new stack can be created for that new page.
[0058] 32. Identify the page type of the source page based on its split-screen type. In some embodiments, taking a two-screen split as an example, the page type of the source page may include a top / left split-screen page, a bottom / right split-screen page, a full-screen page, or a floating window page. If the source page is a split-screen page, its page type should be one of the top / left split-screen page or the bottom / right split-screen page. For example, if the source page's split-screen type is left split-screen or top split-screen, its page type can be determined to be a top / left split-screen page; if the source page's split-screen type is right split-screen or bottom split-screen, its page type can be determined to be a bottom / right split-screen page.
[0059] 33. Open a new page according to the page type of the source page.
[0060] In some embodiments, when the page type of the source page is obtained, a new page can be opened according to the page type of the source page. For example, opening a new page according to the page type of the source page can mean opening the new page in the split-screen display area to which the source page belongs, where the new page and the source page have the same split-screen type, so that the new page can be opened and displayed in the split-screen area of the source page without interfering with the operation of the other split-screen area, thus providing the user with a continuous split-screen experience.
[0061] In some embodiments, when a new page request does not specify a page type for the new page, the new page can be opened according to the page type of the source page by identifying the source page's page type. When a new page request specifies a page type for the new page, the new page can be opened directly according to the specified page type, without needing to identify the source page's page type. For example, if a new page request specifies a floating window as the page type for the new page, the new page can be opened directly as a floating window. For instance, if the current split-screen display scenario of electronic device 100 is a split-screen of the video page and the notes page of an online course app, and electronic device 100 responds to the user's click by opening a dictionary page (e.g., the main page of a dictionary app) as a floating window on the notes page.
[0062] In some embodiments, such as Figure 4 As shown, step 33 may include steps 321 and 322, which are performed in parallel:
[0063] 321. If the new page supports the page type of the source page, open the new page directly according to the page type of the source page.
[0064] 322. If the new page does not support the page type of the source page, open the new page according to the default page type.
[0065] For example, if the default page type is full-screen and the source page's page type is left-split-screen, and the new page does not support split-screen display, it will open in full-screen mode using the default page type. If the new page supports split-screen display, it will open in left-split-screen mode using the source page's page type.
[0066] In some embodiments, the electronic device 100 may include multiple stack lists (e.g., stacks of stacks), each stack list corresponding to a page type, and the stack lists may store stacks of different apps. For example, the electronic device 100 includes a first stack list, a second stack list, a third stack list, and a fourth stack list. The first stack list corresponds to a left split screen or a top split screen, the second stack list corresponds to a right split screen or a bottom split screen, the third stack list corresponds to full screen, and the fourth stack list corresponds to a floating window. The first stack list is used to store the main stack, and it stores the creation order of multiple main stacks. The second stack list is used to store the secondary stack, and it may also store the creation order of multiple secondary stacks. The third stack list is used to store the full-screen stack, and it may also store the creation order of multiple full-screen stacks. The fourth stack list is used to store the floating window stack, and it may also store the creation order of multiple floating stacks.
[0067] In some embodiments, when the new page originates from a new instance, a new stack can be created for the new page; otherwise, a new stack does not need to be created. When a new stack is created, it can be inserted into the corresponding stack list. For example, if the new stack belongs to the main stack, it is inserted into the first stack list. Insertion into the first stack list can be achieved by placing the new stack above the top element of the existing stack in the first stack list, making it the new top element. Similarly, if the new stack belongs to the secondary stack, it is inserted into the second stack list.
[0068] 34. In response to the APP's exit page request, select the previous backend page with the same page type as the target page, and switch the selected backend page to the foreground for display.
[0069] In some embodiments, the target page can refer to the page currently displayed in the foreground of the app. For example, the target page may be the currently focused page displayed in the left / top split screen or the currently focused page displayed in the right / bottom split screen. The exit page request can be triggered by the user. For example, the app receives a user action event (such as clicking the back button on the navigation bar, clicking the back icon on the target page, etc.), exits the target page, and restores the previous background page with the same page type. The background page can refer to the page to be displayed after exiting the current target page.
[0070] In some embodiments, the page exit methods in an app can include a first exit method and a second exit method. The first exit method can be the `finish()` method, and the second exit method can be the `moveTaskToBack()` method. Developers can choose to set the app's page exit method to either `finish()` or `moveTaskToBack()` during app development. For example, the app's page exit method can be obtained through an application programming interface (API). If the `finish()` method is used to exit the target page, and the target page is the bottom page of a stack, the stack corresponding to the target page is removed from the stack list when the target page exits, meaning the stack corresponding to the target page is destroyed. If the `moveTaskToBack()` method is used to exit the current target page, and the target page is the bottom page of a stack, the stack corresponding to the target page is moved to the bottom of the stack list when the target page exits, meaning the stack corresponding to the target page is not destroyed.
[0071] It is understandable that there is no specific execution order between steps 31 and 34. In a split-screen display method of a certain embodiment, step 34 can be executed first.
[0072] In some embodiments, it is assumed that the stack list includes a first stack and a second stack, with the second stack created before the first stack, and the stack corresponding to the target page being the first stack. In response to an app's exit request, if the first stack has background pages, the previous background page of the target page is selected from the first stack; if the target page is the bottom page of the first stack (i.e., the first stack does not have background pages), the previous background page of the target page is selected from the second stack. When the page at the bottom of the first stack exits, the first stack can be exited.
[0073] For example, such as Figure 5 As shown, the first stack list 50 includes a first stack 51, a second stack 52, and a third stack 53. The second stack 52 is located below the first stack 51 (the second stack was created before the first stack), and the third stack 53 is located below the second stack 52 (the third stack was created before the second stack). The first stack list 50 can be a stack for storing stacks. An app opens multiple pages, all belonging to the same instance. The stack corresponding to this instance is the first stack 51. These multiple pages include the target page, the first background page, and the second background page. The app's multiple page exit process can be as follows: Exit the target page, restore the previous background page (the first background page), and display the first background page as the new target page in the foreground; Exit the currently displayed first background page, restore the second background page, and display the second background page as the new target page in the foreground; When exiting the currently displayed second background page again, the first stack 51 corresponding to this instance exits, and the system selects the previous background page of the current target page (the second background page) from the second stack 52.
[0074] In some embodiments, after the electronic device 100 enters split-screen mode, in order to maintain the user's split-screen experience, when the user does not actively exit the split-screen mode, a "safety page" can be set so that even if the last background split-screen page of a certain split-screen is exited, the system can still remain in split-screen mode.
[0075] For example, for a certain type of split-screen stack list, a backup page can be set. This backup page can be created as an independent stack. This application does not limit the timing of stack creation, but it is necessary to ensure that the backup page can be displayed when exiting all other stacks in the stack list, so that the system can maintain split-screen mode.
[0076] For example, when the first stack list corresponding to the top / left split screen has a first backup page set, and all stacks in the first stack list are removed, a new stack is created for the first backup page. This new stack can be inserted into the first stack list, and the top / left split screen can display the first backup page, maintaining the split screen. Similarly, when the second stack list corresponding to the bottom / right split screen has a second backup page set, and all stacks in the second stack list are removed, a new stack is created for the second backup page. This new stack can be inserted into the second stack list, and the bottom / right split screen can display the second backup page, maintaining the split screen. The first and second backup pages can be set according to actual needs, such as being user-defined or developer-defined. For example, the first backup page could be the phone's home screen, and the second backup page could be the homepage of a browser app.
[0077] In some embodiments, for a certain type of split-screen stack list, if no corresponding backup page is set, when all stacks in the split-screen stack list are exited, the electronic device 100 exits the split-screen mode. The electronic device 100 can display the desktop in full-screen mode or display the page currently displayed in another split-screen area in full-screen mode.
[0078] The above-described split-screen display method allows users to open a new page in any split-screen. The new split-screen page can be opened in the current split-screen without jumping to other split-screen areas or interfering with the operation of other split-screen areas. This provides users with a continuous split-screen experience. When a split-screen page in any split-screen area is closed, the previous split-screen page can be restored in the order it was opened and can regain focus, further enhancing the user's split-screen experience.
[0079] refer to Figure 6 This is a schematic diagram of the hardware structure of the electronic device 100 provided in an embodiment of this application. Figure 6 As shown, the electronic device 100 may include a display screen 1001, a processor 1002, a memory 1003, and a communication bus 1004. The memory 1003 is used to store one or more computer programs 1005. The one or more computer programs 1005 are configured to be executed by the processor 1002. The one or more computer programs 1005 include instructions, and the processor 1002 executing the instructions can implement a split-screen display method in the electronic device 100.
[0080] It is understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 100. In other embodiments, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements.
[0081] Processor 1002 may include one or more processing units, such as application processors (APs), modems, graphics processing units (GPUs), image signal processors (ISPs), controllers, video codecs, digital signal processors (DSPs), baseband processors, and / or neural network processing units (NPUs). These different processing units may be independent devices or integrated into one or more processors.
[0082] The processor 1002 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 1002 is a cache memory. This memory can store instructions or data that the processor 1002 has just used or that are used repeatedly. If the processor 1002 needs to use the instruction or data again, it can retrieve it directly from this memory. This avoids repeated accesses, reduces the waiting time of the processor 1002, and thus improves the efficiency of the system.
[0083] In some embodiments, the processor 1002 may include one or more interfaces. Interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a SIM interface, and / or a USB interface, etc.
[0084] In some embodiments, memory 1003 may include high-speed random access memory, and may also include non-volatile memory, such as hard disk, memory, plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, at least one disk storage device, flash memory device, or other volatile solid-state storage device.
[0085] This embodiment also provides a computer storage medium storing computer instructions. When the computer instructions are executed on an electronic device, the electronic device performs the aforementioned method steps to implement the split-screen display method in the above embodiment.
[0086] This embodiment also provides a computer program product that, when run on a computer, causes the computer to perform the aforementioned steps to implement the split-screen display method in the above embodiment.
[0087] In addition, embodiments of this application also provide an apparatus, which may specifically be a chip, component or module. The apparatus may include a connected processor and a memory. The memory is used to store computer execution instructions. When the apparatus is running, the processor can execute the computer execution instructions stored in the memory to cause the chip to execute the split-screen display method in the above-described method embodiments.
[0088] In this embodiment, the electronic device, computer storage medium, computer program product or chip are all used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can be referred to the beneficial effects of the corresponding method provided above, and will not be repeated here.
[0089] Through the above description of the embodiments, those skilled in the art can clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0090] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0091] The unit described as a separate component may or may not be physically separate. The component shown as a unit can be one physical unit or multiple physical units, that is, it can be located in one place or distributed in multiple different places. Some or all of the units can be selected to achieve the purpose of the solution in this embodiment according to actual needs.
[0092] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0093] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, essentially or in other words, the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0094] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions within the technical scope disclosed in this application should be covered within the scope of protection of this application.
Claims
1. A split-screen display method, applied to electronic devices, characterized in that, The method includes: In response to a request from the first application (APP) to open a new page, if the new page request does not specify the page type of the new page, the split-screen type of the source page is obtained, wherein the source page is the page that opens the new page in response to the new page request, the source page belongs to the first APP, and the new page belongs to a second APP that is different from the first APP; The page type of the source page is identified based on the split-screen type of the source page, wherein the page type of the source page includes one of the top / left split-screen page and the bottom / right split-screen page; Open the new page according to the page type of the source page.
2. The split-screen display method as described in claim 1, characterized in that, If the new page request does not specify the page type of the new page, obtaining the split-screen type of the source page includes: If the new page request does not specify the page type of the new page, obtain the type of the stack corresponding to the source page, where the stack type includes the main stack and the secondary stack; The screen splitting type of the source page is determined based on the type of stack corresponding to the source page, wherein the main stack corresponds to the top / left screen splitting, and the secondary stack corresponds to the bottom / right screen splitting.
3. The split-screen display method as described in claim 1 or 2, characterized in that, The step of opening the new page according to the page type of the source page includes: If the new page supports the page type of the source page, open the new page according to the page type of the source page; or If the new page does not support the page type of the source page, the new page will open according to the default page type.
4. The split-screen display method according to any one of claims 1 to 3, characterized in that, The step of opening the new page according to the page type of the source page includes: The new page is opened in the split-screen display area of the source page, wherein the new page has the same split-screen type as the source page.
5. The split-screen display method as described in claim 2, characterized in that, The split-screen display method further includes: If the new page requests a specified page type, the new page will be opened according to the specified page type.
6. The split-screen display method according to any one of claims 1 to 5, characterized in that, The split-screen display method further includes: When the new page belongs to a new instance, a new stack is created for the new page.
7. The split-screen display method as described in claim 6, characterized in that, The electronic device includes multiple stack lists, each stack list corresponding to a page type, and each stack list stores the stack creation order. The split-screen display method further includes: When the new stack is created for the new page, the new stack is inserted into the corresponding stack list.
8. The split-screen display method as described in claim 7, characterized in that, The split-screen display method further includes: In response to the first APP's exit page request, a previous backend page with the same page type as the target page is selected, and the selected backend page is switched to the foreground for display; The target page is the page currently displayed in the foreground of the first APP, and the selected background page gains focus when it is switched to the foreground.
9. The split-screen display method as described in claim 8, characterized in that, The stack list includes a first stack and a second stack, wherein the second stack is created before the first stack, the stack corresponding to the target page is the first stack, and the step of selecting the previous backend page with the same page type as the target page includes: If the first stack has a background page, select the previous background page of the target page from the first stack; or If the target page is the page at the bottom of the first stack, select the previous background page of the target page from the second stack.
10. The split-screen display method as described in claim 9, characterized in that, The split-screen display method further includes: When a page at the bottom of the first stack exits, the first stack is exited.
11. The split-screen display method as described in claim 10, characterized in that, The exit from the first stack includes: Remove the first stack from the stack list; or Move the first stack to the bottom of the stack list.
12. The split-screen display method according to any one of claims 8 to 11, characterized in that, The split-screen display method further includes: When the stack list corresponding to the top / left split-screen page has a first backup page set, and all stacks in the stack list are exited, the first backup page is switched to the foreground for display; or When the stack list corresponding to the bottom / right split-screen page has a second backup page set, and all stacks in the stack list are exited, the second backup page is switched to the foreground for display.
13. The split-screen display method as described in claim 12, characterized in that, The split-screen display method further includes: Create a new stack for the first backup page in the stack list corresponding to the top / left split-screen page; or Create a new stack for the second backup page in the stack list corresponding to the bottom / right split-screen page.
14. A computer-readable storage medium, characterized in that, Includes computer instructions that, when executed on an electronic device, cause the electronic device to perform the split-screen display method as described in any one of claims 1 to 13.
15. An electronic device, characterized in that, The electronic device includes a processor and a memory, the memory being used to store instructions, and the processor being used to invoke the instructions in the memory to cause the electronic device to execute the split-screen display method according to any one of claims 1 to 13.
16. A chip coupled to a memory in an electronic device, characterized in that, The chip is used to control the electronic device to perform the split-screen display method according to any one of claims 1 to 13.
Citation Information
Patent Citations
Terminal screen split-screen display method, device and terminal
CN106201241A