Application processing methods and apparatus, electronic devices, storage media

CN115640079BActive Publication Date: 2026-08-11BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-20
Publication Date
2026-08-11

AI Technical Summary

Technical Problem

然而,当电子设备内的多个应用程序APP需要分栏显示时需要为每一个应用程序单独适配,增加工作量

Benefits of technology

[0067]As can be seen from the above embodiments, the solution provided in this disclosure can use the column splitting function in the frame layer to mark the left page as the main page and obtain the ratio data of the left and right pages returned by the column splitting function; then, the window width of the left page is determined according to the ratio data of the left page, and the left page is set to a visible state in the preset system process of the frame layer; then, the layout data of the right page is determined according to the window width of the left page; the layout data includes the pixel position of the right page that is closest to the left page; finally, the window width of the right page is obtained according to the ratio data of the right page and the layout data, and a first preset flag is added to the right page to set the left page to an operable state. In this way, in this embodiment, column splitting information can be configured in the frame layer without adapting to multiple loaded applications, reducing the workload of adaptation. Furthermore, in this embodiment, obtaining the window width of the left page before determining the layout data of the right page means obtaining the position of the starting pixel of the right page, so that the left and right pages are arranged adjacently to form a whole page, which is beneficial to improving the viewing experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115640079B_ABST
    Figure CN115640079B_ABST
Patent Text Reader

Abstract

This disclosure relates to an application processing method and apparatus, electronic device, and storage medium. The method includes: marking the left page as the main page using a column splitting function in a frame layer, and obtaining the ratio data of the left and right pages returned by the column splitting function; determining the window width of the left page based on the ratio data and setting the left page to a visible state in a preset system process of the frame layer; determining the layout data of the right page based on the ratio data and the window width of the left page; the layout data includes the pixel position of the closest element to the left page in the right page; obtaining the window width of the right page based on the ratio data and the layout data, and adding a first preset flag to the right page to set the left page to an operable state. In this embodiment, column splitting information can be configured in the frame layer without needing to adapt to multiple loaded applications, reducing the workload of adaptation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of control technology, and in particular to an application processing method and apparatus, electronic equipment, and storage medium. Background Technology

[0002] With the widespread use of electronic devices (such as tablets, personal computers, and smart TVs), users are accustomed to using these devices for tasks such as office work or watching videos. When multiple operations are required, users often need to display the screen in columns to improve ease of use.

[0003] In related technologies, taking the Android operating system as an example, it provides the ActivityView control to achieve a proportional left-right display effect. However, when multiple applications (APPs) on an electronic device need to be displayed in columns, each application needs to be adapted separately, increasing the workload. Furthermore, the left and right pages are independent and not a unified whole, degrading the viewing experience. Summary of the Invention

[0004] This disclosure provides an application processing method and apparatus, an electronic device, and a storage medium to address the shortcomings of related technologies.

[0005] According to a first aspect of the present disclosure, an application processing method is provided, applied to an electronic device, the method comprising:

[0006] The left-side page is marked as the main page using the column splitting function in the frame layer, and the ratio data of the left-side page and the right-side page returned by the column splitting function is obtained.

[0007] The window width of the left page is determined based on the proportion data of the left page, and the left page is set to a visible state in the preset system process of the frame layer.

[0008] The layout data of the right page is determined based on the window width of the left page;

[0009] The window width of the right-side page is processed based on the proportion data and layout data of the right-side page, and a first preset flag is added to the current right-side page to set the left-side page to an operable state.

[0010] Optionally, the left-side page is marked as the main page using the column splitting function in the frame layer, and the ratio data of the left and right pages returned by the column splitting function is obtained, including:

[0011] Get the Activity#onCreate() function, which creates the page on the left side of the application.

[0012] The page creation function calls the frame layer's split function setSplit() to mark the left-side page as the main page;

[0013] Obtain the ratio data returned by the split function setSplit(), which represents the proportion of the left page in the display area.

[0014] Optionally, setting the left-side page to a visible state in a preset system process includes:

[0015] Select the ActivityRecord page record class from the preset system process system server;

[0016] Change the value of the parameter mOccludesParent in the page record class ActivityRecord from true to false to make the left-side page visible.

[0017] Optionally, the method further includes:

[0018] A second preset flag is set for the right-side page so that the right-side page can maintain its column display and can be passed to the next right-side page.

[0019] Optionally, the method further includes:

[0020] A third preset flag is set for the right-side page to disable the column display on the right-side page and to display the new page after the right-side page in full screen.

[0021] Optionally, the method further includes:

[0022] Set a fourth preset flag for the right-side page to keep the right-side page displayed in columns.

[0023] Optionally, the method further includes:

[0024] When the current page is launched by the main page, a fifth preset flag is set for the right-side page, so that when the preset system process obtains the fifth preset flag, it determines that the right-side page is a first-level right-side page, and there is no window animation when switching between the two first-level right-side pages.

[0025] Optionally, the method further includes:

[0026] When an operation is triggered on a list item in the left-hand page, the current right-hand page and its subpages are terminated; a new right-hand page is then launched.

[0027] Optionally, the method further includes:

[0028] When a triggered operation is detected that meets the set conditions, the current top-of-the-page column is retrieved from the specified location, or the column is terminated; the identification code of the application corresponding to the column is stored in the specified location.

[0029] Optionally, the method further includes:

[0030] When a trigger action is detected that leads from the desktop to the main page, the previously displayed right-hand page is created.

[0031] Optionally, the method further includes:

[0032] When an animation transition is detected, the first page is panned to the left until it reaches the left edge of the right page, and the transparency is gradually increased during the panning process. Meanwhile, the second page is panned from the right edge to the left until it reaches the left edge of the right page.

[0033] According to a second aspect of the present disclosure, an application processing apparatus is provided for use in an electronic device, the apparatus comprising:

[0034] The ratio acquisition module is used to mark the left page as the main page using the column splitting function in the frame layer, and to obtain the ratio data of the left page and the right page returned by the column splitting function.

[0035] The status setting module is used to determine the window width of the left page based on the proportion data of the left page, and set the left page to a visible state in the preset system process of the frame layer.

[0036] The data determination module is used to determine the layout data of the right page based on the window width of the left page; the layout data includes the pixel position of the right page that is closest to the left page;

[0037] The flag adding module is used to process the window width of the right page according to the proportion data and layout data of the right page, and add a first preset flag to the current right page to set the left page to an operable state.

[0038] Optionally, the ratio acquisition module includes:

[0039] Create a function to retrieve the Activity#onCreate() function, which is used to retrieve the page creation function of the application's left-side page.

[0040] The left-side page marker unit is used to mark the left-side page as the main page by calling the frame layer's column splitting function setSplit() through the page creation function;

[0041] The proportion data acquisition unit is used to acquire the proportion data returned by the column splitting function setSplit(), which represents the proportion of the left page in the display area.

[0042] Optionally, the status setting module includes:

[0043] The process selection unit is used to select the ActivityRecord page record class in the preset system process system server;

[0044] The value modification unit is used to change the value of the parameter mOccludesParent in the page record class ActivityRecord from true to false, so that the left page is made visible.

[0045] Optionally, the device further includes:

[0046] The second flag setting module is used to set a second preset flag for the right-side page so that the right-side page can maintain the column display and can be passed to the next right-side page.

[0047] Optionally, the device further includes:

[0048] The third flag setting module is used to set a third preset flag for the right-side page, so that the right-side page cancels the column display and the new page after the right-side page adopts full-screen display.

[0049] Optionally, the device further includes:

[0050] The fourth flag setting module is used to set a fourth preset flag for the right-side page so that the right-side page maintains a column display.

[0051] Optionally, the device further includes:

[0052] The fifth flag setting module is used to set a fifth preset flag for the right page when the current page is launched by the main page, so that when the preset system process obtains the fifth preset flag, it determines that the right page is a first-level right page, and there is no window animation when switching between two first-level right pages.

[0053] Optionally, the device further includes:

[0054] The right-side page end module is used to end the current right-side page and its subpages when an operation is triggered on a list item in the left-side page; and then start a new right-side page.

[0055] Optionally, the device further includes:

[0056] The column page acquisition module is used to acquire the column page currently at the top of the displayed page from a specified location when a trigger operation is detected that meets the set conditions, or to end the column page; the identification code of the application corresponding to the column page is stored in a specified location.

[0057] Optionally, the device further includes:

[0058] The right-side page creation module is used to create the previously displayed right-side page when a trigger action of entering the main page from the desktop is detected.

[0059] Optionally, the device further includes:

[0060] An animation switching module is used to, when an animation switching is detected, shift the first page to the left until it reaches the left edge of the right page, and gradually increase the transparency during the shift, while shifting the second page from the right edge to the left until it reaches the left edge of the right page.

[0061] According to a third aspect of the present disclosure, an electronic device is provided, comprising:

[0062] processor;

[0063] Memory for storing computer programs executable by the processor;

[0064] The processor is configured to execute a computer program in the memory to implement the method described in any of the preceding descriptions.

[0065] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided that, when an executable computer program in the storage medium is executed by a processor, enables the implementation of the method described in any of the preceding claims.

[0066] The technical solutions provided by the embodiments of this disclosure may include the following beneficial effects:

[0067] As can be seen from the above embodiments, the solution provided in this disclosure can use the column splitting function in the frame layer to mark the left page as the main page and obtain the ratio data of the left and right pages returned by the column splitting function; then, the window width of the left page is determined according to the ratio data of the left page, and the left page is set to a visible state in the preset system process of the frame layer; then, the layout data of the right page is determined according to the window width of the left page; the layout data includes the pixel position of the right page that is closest to the left page; finally, the window width of the right page is obtained according to the ratio data of the right page and the layout data, and a first preset flag is added to the right page to set the left page to an operable state. In this way, in this embodiment, column splitting information can be configured in the frame layer without adapting to multiple loaded applications, reducing the workload of adaptation. Furthermore, in this embodiment, obtaining the window width of the left page before determining the layout data of the right page means obtaining the position of the starting pixel of the right page, so that the left and right pages are arranged adjacently to form a whole page, which is beneficial to improving the viewing experience.

[0068] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0069] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.

[0070] Figure 1 This is a flowchart illustrating a system application processing method according to an exemplary embodiment.

[0071] Figure 2 This is a schematic diagram illustrating the effect of the page bar being displayed on the right side of the page when displaying columns according to an exemplary embodiment.

[0072] Figure 3 This is a schematic diagram illustrating the effect of the page bar being displayed on the right side of the page when displaying columns in related technologies.

[0073] Figure 4 This is a schematic diagram illustrating the effect of a columnar display according to an exemplary embodiment.

[0074] Figure 5 This is a schematic diagram illustrating the effect of a pop-up window being displayed in full screen, according to an exemplary embodiment.

[0075] Figure 6 This is a schematic diagram illustrating the effect of a pop-up window displayed on the right side of the page according to an exemplary embodiment.

[0076] Figure 7 This is a schematic diagram illustrating the effect of an animation transition according to an exemplary embodiment.

[0077] Figure 8 This is a block diagram illustrating a system application processing apparatus according to an exemplary embodiment.

[0078] Figure 9 This is a block diagram illustrating an electronic device according to an exemplary embodiment. Detailed Implementation

[0079] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described below by way of example do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatus consistent with some aspects of this disclosure as detailed in the appended claims. It should be noted that, without conflict, the following embodiments and features in the implementation methods can be combined with each other.

[0080] To address the aforementioned technical problems, this disclosure provides a system application processing method. Figure 1 This is a flowchart illustrating a system application processing method according to an exemplary embodiment, applicable to electronic devices such as smartphones, smart bracelets, tablets, personal computers, and smart TVs. The aforementioned electronic devices have an Android operating system and system applications (APPs) installed, such as configuration APPs, SMS APPs, email APPs, etc., and the above method is executed by the system APP. See also... Figure 1 A system application processing method, comprising steps 11 to 14.

[0081] In step 11, the left page is marked as the main page using the column splitting function in the frame layer, and the ratio data of the left and right pages returned by the column splitting function is obtained.

[0082] In this embodiment, when the system app is triggered, the left-hand page can be marked as the main page using the splitting function in the framework layer. For example, the system app obtains the page creation function Activity#onCreate() of its left-hand page; then, it calls the splitting function setSplit() in the framework layer through the page creation function Activity#onCreate(), and uses the splitting function setSplit() to mark the left-hand page as the main page split base. The splitting function setSplit() is one of the interface functions in the framework layer, and its implementation principle can be found in related technologies.

[0083] In addition, the system app can also obtain the ratio data returned by the split function setSplit(). This ratio data is used to represent the proportion of the left page in the display area. For example, if the ratio data of the left page is 0.4, the ratio data of the right page is 0.6, that is, the ratio data of the right page = (1 - the ratio data of the left page).

[0084] It should be noted that the frame layer can include multiple split-screen functions (setSplit()), each with different parameters, and each parameter can be set with different ratio data. This allows the system app to call the appropriate split-screen function as needed (e.g., landscape or portrait mode). Understandably, in this embodiment, the ratio data can be adjusted according to the specific scenario to achieve the effect of adjusting the window width of the left and right pages, which is superior to the display effect of two pages equally dividing the display area in related technologies.

[0085] Understandably, system apps on electronic devices can connect to other application apps, such as wallpapers, lock screens, and sounds, and these apps' pages can run within the same settings task. Thus, when setting up a split-screen layout for a system app, the setting target is the aforementioned device task rather than the package name of a specific app, achieving the effect of setting one layout for multiple apps to display in separate columns; furthermore, when navigating to other apps' pages, the split-screen layout can be synchronized and consistent.

[0086] In step 12, the window width of the left page is determined based on the proportion data of the left page, and the left page is made visible in the preset system process of the frame layer.

[0087] In this embodiment, after obtaining the proportion data of the left-side page, the system app can determine the window size of the left-side page. Specifically, based on the size of the display area on the electronic device's screen, the window width that satisfies the aforementioned proportion data is calculated starting from the leftmost edge of the display area. Furthermore, the system app can also set the page view using the `setLayoutParams()` function to ensure that the window of the left-side page meets the aforementioned proportion data and window width.

[0088] In this embodiment, the system app can obtain the preset system process `systemserver` in the framework layer and the page recording class `ActivityRecord` in the `systemserver`. Then, the system app can change the value of the parameter `mOccludesParent` in the `ActivityRecord` from true to false, so that the left-side page is visible, thus preventing it from being covered by a new page.

[0089] In step 13, the layout data of the right page is determined based on the window width of the left page; the layout data includes the pixel position of the right page that is closest to the left page.

[0090] In this embodiment, the system app can determine the rightmost pixel position of the left-side page based on the window width of the left-side page. Then, the system app can use the pixels adjacent to the rightmost pixel of the left-side page as pixels of the right-side page; that is, the rightmost pixel of the left-side page and the leftmost pixel of the right-side page are adjacent. In other words, the system app can obtain the leftmost pixel of the right-side page and use it as layout data.

[0091] In this embodiment, the layout data can make the left and right pages adjacent, so that the left and right pages are displayed side by side to form a whole, thereby avoiding the sense of division caused by the dividing line between the two pages in related technologies.

[0092] In step 14, the window width of the right page is obtained based on the proportion data and layout data of the right page, and a first preset flag is added to the current right page to set the left page to an operable state.

[0093] In this embodiment, the system app can determine the window width of the right-side page based on the proportion and layout data of the right-side page. Specifically, the window width can be determined based on the display area of ​​the electronic device and the proportion data of the right-side page, with the layout data as the starting point on the left. In practical applications, the system app can set the window width and layout data using the PhoneWindow#setAttributes() function.

[0094] In this embodiment, the system app can add a first preset flag, WindowManager#FLAG_NOT_TOUCH_MODAL, to the current right-hand page to set the left-hand page to an operable state. This is because when an action is triggered on the left-hand page, the right-hand page will display content matching the triggered action. At this time, the content displayed on the right-hand page is later than the content displayed on the left-hand page, and the right-hand page is in an operable state; however, the left-hand page switches from an operable state to an inoperable state. Therefore, in this example, setting the first preset flag ensures that both the left-hand and right-hand pages are simultaneously operable, guaranteeing a good user experience.

[0095] During the display process, when the left and right pages are displayed in separate columns, the action bar for each page will be displayed in its own window, as shown below. Figure 2 As shown. This is similar to the use of VirtualDisplay in related technologies. Figure 3 The page action bar shown is positioned out of place on both pages, resulting in a better display effect.

[0096] In this embodiment, by configuring the parameters of the right-side page, the back button in the upper left corner of the right-side primary page can be removed, which helps to make the left and right pages form a whole, as shown in the example. Figure 4 As shown. See also Figure 4 The left-hand page is marked with a solid line, and the right-hand page is marked with a dashed line.

[0097] Thus, in this embodiment, column information can be configured at the frame layer. When other applications load the column function later, they can directly use the configuration information at the frame layer. This eliminates the need for users to perform adaptation (programming or configuration settings, etc.) for multiple loaded applications, reducing the workload of adaptation. Furthermore, in this embodiment, the layout data of the right page is determined after obtaining the window width of the left page, thus obtaining the starting pixel position of the right page. This allows the left and right pages to be arranged adjacently to form a single page, improving the viewing experience. Additionally, by synchronously displaying the left and right pages, this embodiment facilitates users in accessing information from the parent page and making selections, further enhancing the user experience.

[0098] In one embodiment, the system app can set a second preset flag FLAG_MIUI_SPLIT_ACTIVITY for the right-side page to ensure that the right-side page remains displayed in columns and can be passed to the next right-side page, thereby preventing the new page from displaying in full screen and covering the right-side page. It should be noted that this second preset flag can be added by the system app without requiring other connected applications to add it, thus reducing the need for adaptation.

[0099] In one embodiment, the system app can set a third preset flag FLAG_MIUI_CANCEL_SPLIT for the right-side page, so that the right-side page cancels the split-screen display and the new page after the right-side page is displayed in full screen, thereby switching from split-screen display to full-screen display. The effect is as follows: Figure 5 As shown. See also Figure 5 The pop-up window shown in the dashed box is displayed in full screen.

[0100] In one embodiment, the system app can set a fourth preset flag, FLAG_MIUI_FORCE_SPLIT, for the right-side page to maintain its columnar display. Thus, when the right-side page is detected to include both the third and fourth preset flags, it can continue to maintain its columnar display, avoiding the issue of automatically switching to full-screen display in transparent or floating scenarios, achieving a half-screen display effect within the right-side page, as shown below. Figure 6 As shown. Refer to Figure 6 , the pop-up window shown by the dashed box is displayed within the right page.

[0101] In one embodiment, when the system APP starts from the main page on the current page, it can set the fifth preset flag FLAG_MIUI_FIRST_SPLIT for the right page, so that when the preset system process system server obtains the fifth preset flag, it can determine that the right page is the right first-level page second state Activity, and there is no window animation when switching between two right first-level pages second state Activity. In this way, in this embodiment, by having no window animation when switching between two right first-level pages, the left page and the right page can be kept as a whole, improving the viewing experience.

[0102] In one embodiment, when it is detected that a list item within the left page is triggered, the system APP can end the current right page and its sub-pages, and start a new right page again. In this way, the user can trigger an operation on the left page and display the corresponding content on the right page, achieving the effect of linkage between the left page and the right page.

[0103] In one embodiment, a specified location is set within the electronic device, such as the stack of the Android Management Service AMS (AndroidManger Service). And the system APP can save the identification code pid of the accessed application APP to the above-mentioned specified location. When the trigger operation meets the preset conditions, such as detecting multiple clicks on the same application APP, the system APP can obtain the split page (split Activity instance) at the top of the currently displayed page from the specified location. If the detected split page and the clicked application APP are the same object, the currently displayed split page can be maintained. Or, when the trigger operation meets the preset conditions, such as when detecting a click on another application APP (such as WiFi) from a page showing an application APP (such as Bluetooth), the system APP can end the split page. In this way, the user can trigger an operation on the left page and display the corresponding content on the right page, achieving the effect of linkage between the left page and the right page.

[0104] In one embodiment, when it is detected that entering the main page from the desktop, the system APP can create the previously displayed right page through the function Activity#onResume, achieving the effect that the left page and the right page enter synchronously and display related content.

[0105] In one embodiment, when a back button press is detected and the right-side page is a first-level page, the configuration task is moved to the background. For example, when the back button is detected to be pressed, if the right-side page has no subpages, the system app can execute the function Activity#moveTaskToBack to move the entire configuration task to the background after the right-side page's Activity#onBackPressed function finishes executing. In this way, this embodiment achieves the effect of simultaneous exit of the left and right pages, allowing the user to operate on a single page.

[0106] In one embodiment, see Figure 7 The system app can pan the first page (labeled 2) to the left until it reaches the left edge of the right-side page, gradually increasing its transparency during the panning process. Simultaneously, the second page (labeled 3) pans from the right edge to the left until it reaches the left edge of the right-side page. Thus, in this embodiment, the animation effect during the right-side page transition is achieved through the change in the transparency of the first page and the panning of the first and second pages. It is understood that technicians can set different animation effects according to specific scenarios (such as half-screen to full-screen, full-screen to half-screen, etc.) to improve the user experience.

[0107] Based on the system application processing method provided in the above embodiments, this disclosure also provides a system application processing apparatus for use in electronic devices. See [link to relevant documentation]. Figure 8 The device includes:

[0108] The ratio acquisition module 81 is used to mark the left page as the main page using the column splitting function in the frame layer, and to acquire the ratio data of the left page and the right page returned by the column splitting function.

[0109] The state setting module 82 is used to determine the window width of the left page based on the proportion data of the left page and set the left page to a visible state in the preset system process of the frame layer.

[0110] The data determination module 83 is used to determine the layout data of the right page based on the window width of the left page; the layout data includes the pixel position of the right page that is closest to the left page;

[0111] The flag adding module 84 is used to obtain the window width of the right page according to the proportion data and layout data of the right page, and add a first preset flag to the current right page to set the left page to an operable state.

[0112] In one embodiment, the ratio acquisition module includes:

[0113] Create a function to retrieve the Activity#onCreate() function, which is used to retrieve the page creation function of the application's left-side page.

[0114] The left-side page marker unit is used to mark the left-side page as the main page by calling the frame layer's column splitting function setSplit() through the page creation function;

[0115] The proportion data acquisition unit is used to acquire the proportion data returned by the column splitting function setSplit(), which represents the proportion of the left page in the display area.

[0116] In one embodiment, the status setting module includes:

[0117] The process selection unit is used to select the ActivityRecord page record class in the preset system process system server;

[0118] The value modification unit is used to change the value of the parameter mOccludesParent in the page record class ActivityRecord from true to false, so that the left page is made visible.

[0119] In one embodiment, the device further includes:

[0120] The second flag setting module is used to set a second preset flag for the right-side page so that the right-side page can maintain the column display and can be passed to the next right-side page.

[0121] In one embodiment, the device further includes:

[0122] The third flag setting module is used to set a third preset flag for the right-side page, so that the right-side page cancels the column display and the new page after the right-side page adopts full-screen display.

[0123] In one embodiment, the device further includes:

[0124] The fourth flag setting module is used to set a fourth preset flag for the right-side page so that the right-side page maintains a column display.

[0125] In one embodiment, the device further includes:

[0126] The fifth flag setting module is used to set a fifth preset flag for the right page when the current page is launched by the main page, so that when the preset system process obtains the fifth preset flag, it determines that the right page is a first-level right page, and there is no window animation when switching between two first-level right pages.

[0127] In one embodiment, the device further includes:

[0128] The right-side page end module is used to end the current right-side page and its subpages when an operation is triggered on a list item in the left-side page; and then start a new right-side page.

[0129] In one embodiment, the device further includes:

[0130] The column page acquisition module is used to acquire the column page currently at the top of the displayed page from a specified location when a trigger operation is detected that meets the set conditions, or to end the column page; the identification code of the application corresponding to the column page is stored in a specified location.

[0131] In one embodiment, the device further includes:

[0132] The right-side page creation module is used to create the previously displayed right-side page when a trigger action of entering the main page from the desktop is detected.

[0133] In one embodiment, the device further includes:

[0134] An animation switching module is used to, when an animation switching is detected, shift the first page to the left until it reaches the left edge of the right page, and gradually increase the transparency during the shift, while shifting the second page from the right edge to the left until it reaches the left edge of the right page.

[0135] It should be noted that the device shown in this embodiment is similar to... Figure 1 The content of the method embodiment shown is consistent with that of the above method embodiment, and will not be repeated here.

[0136] Figure 9 This is a block diagram illustrating an electronic device according to an exemplary embodiment. For example, the electronic device 900 may be a smartphone, computer, digital broadcasting terminal, tablet device, medical device, fitness equipment, personal digital assistant, etc.

[0137] Reference Figure 9 The electronic device 900 may include one or more of the following components: a processing component 902, a memory 904, a power supply component 906, a multimedia component 908, an audio component 910, an input / output (I / O) interface 912, a sensor component 914, a communication component 916, an image acquisition component 918, and the aforementioned housing.

[0138] Processing component 902 typically controls the overall operation of electronic device 900, such as operations associated with display, telephone calls, data communication, camera operation, and recording operations. Processing component 902 may include one or more processors 920 to execute computer programs. Furthermore, processing component 902 may include one or more modules to facilitate interaction between processing component 902 and other components. For example, processing component 902 may include a multimedia module to facilitate interaction between multimedia component 908 and processing component 902.

[0139] Memory 904 is configured to store various types of data to support the operation of electronic device 900. Examples of this data include computer programs for any application or method operating on electronic device 900, contact data, phone book data, messages, pictures, videos, etc. Memory 904 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.

[0140] Power supply component 906 provides power to various components of electronic device 900. Power supply component 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 900. Power supply component 906 may include a power chip, and a controller may communicate with the power chip to control the power chip to turn on or off switching devices, enabling or disabling battery power to the motherboard circuitry.

[0141] Multimedia component 908 includes a screen that provides an output interface between electronic device 900 and target object. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touchscreen to receive input information from the target object. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can sense not only the boundaries of touch or swipe actions but also the duration and pressure associated with the touch or swipe operation.

[0142] Audio component 910 is configured to output and / or input audio file information. For example, audio component 910 includes a microphone (MIC) configured to receive external audio file information when electronic device 900 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio file information may be further stored in memory 904 or transmitted via communication component 916. In some embodiments, audio component 910 also includes a speaker for outputting audio file information.

[0143] I / O interface 912 provides an interface between processing component 902 and peripheral interface modules, such as keyboards, click wheels, buttons, etc.

[0144] Sensor assembly 914 includes one or more sensors for providing state assessments of various aspects of electronic device 900. For example, sensor assembly 914 can detect the on / off state of electronic device 900, the relative positioning of components (e.g., the display screen and keypad of electronic device 900), changes in position of electronic device 900 or a component, the presence or absence of contact between a target object and electronic device 900, the orientation or acceleration / deceleration of electronic device 900, and temperature changes of electronic device 900. In this example, sensor assembly 914 may include a magnetic sensor, a gyroscope, and a magnetic field sensor, wherein the magnetic field sensor includes at least one of the following: a Hall sensor, a thin-film magnetoresistive sensor, and a magnetic fluid accelerometer.

[0145] Communication component 916 is configured to facilitate wired or wireless communication between electronic device 900 and other devices. Electronic device 900 can access wireless networks based on communication standards, such as WiFi, 2G, 3G, 4G, 5G, or combinations thereof. In one exemplary embodiment, communication component 916 receives broadcast information or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 916 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0146] In an exemplary embodiment, the electronic device 900 may be implemented by one or more application-specific integrated circuits (ASICs), digital information processors (DSPs), digital information processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components.

[0147] In an exemplary embodiment, a non-transitory readable storage medium including an executable computer program is also provided, such as a memory 904 including instructions, wherein the executable computer program can be executed by a processor. The readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, or optical data storage device, etc.

[0148] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the disclosure herein. This disclosure is intended to cover any variations, uses, or adaptations that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.

[0149] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.

Claims

1. An application processing method, characterized in that, Applied to electronic devices, the method includes: The left-side page is marked as the main page using the column splitting function in the frame layer, and the ratio data of the left-side page and the right-side page returned by the column splitting function is obtained. The window width of the left-side page is determined based on the proportion data of the left-side page, and the left-side page is made visible in the preset system process of the frame layer; The layout data of the right page is determined based on the window width of the left page; the layout data includes the pixel position of the right page that is closest to the left page. The window width of the right page is obtained based on the proportion data and layout data of the right page, and a first preset flag is added to the current right page to set the left page to an operable state.

2. The method according to claim 1, characterized in that, The left-side page is marked as the main page using the column splitting function in the frame layer, and the ratio data of the left and right pages returned by the column splitting function is obtained, including: Get the Activity#onCreate() function, which creates the page on the left side of the application. The page creation function calls the frame layer's split function setSplit() to mark the left-side page as the main page; Obtain the ratio data returned by the split function setSplit(), which represents the proportion of the left page in the display area.

3. The method according to claim 1, characterized in that, Setting the left-side page to be visible in a preset system process includes: Select the ActivityRecord page record class from the preset system process system server; Change the value of the parameter mOccludesParent in the page record class ActivityRecord from true to false to make the left-side page visible.

4. The method according to claim 1, characterized in that, The method further includes: A second preset flag is set for the right-side page so that the right-side page can maintain its column display and can be passed to the next right-side page.

5. The method according to claim 1, characterized in that, The method further includes: A third preset flag is set for the right-side page to disable the column display on the right-side page and to display the new page after the right-side page in full screen.

6. The method according to claim 1, characterized in that, The method further includes: Set a fourth preset flag for the right-side page to keep the right-side page displayed in columns.

7. The method according to claim 1, characterized in that, The method further includes: When the current page is launched by the main page, a fifth preset flag is set for the right-side page, so that when the preset system process obtains the fifth preset flag, it determines that the right-side page is a first-level right-side page, and there is no window animation when switching between the two first-level right-side pages.

8. The method according to claim 1, characterized in that, The method further includes: When an operation is triggered on a list item in the left-hand page, the current right-hand page and its subpages are terminated; a new right-hand page is then launched.

9. The method according to claim 1, characterized in that, The method further includes: When a triggered operation is detected that meets the set conditions, the current top-of-the-page column is retrieved from the specified location, or the column is terminated; the identification code of the application corresponding to the column is stored in the specified location.

10. The method according to claim 1, characterized in that, The method further includes: When a trigger action is detected that leads from the desktop to the main page, the previously displayed right-hand page is created.

11. The method according to claim 1, characterized in that, The method further includes: When an animation transition is detected, the first page is panned to the left until it reaches the left edge of the right page, and the transparency is gradually increased during the panning process. Meanwhile, the second page is panned from the right edge to the left until it reaches the left edge of the right page.

12. An application processing device, characterized in that, Applied to electronic devices, the device includes: The ratio acquisition module is used to mark the left page as the main page using the column splitting function in the frame layer, and to obtain the ratio data of the left page and the right page returned by the column splitting function. The status setting module is used to determine the window width of the left page based on the proportion data of the left page, and set the left page to a visible state in the preset system process of the frame layer. The data determination module is used to determine the layout data of the right page based on the window width of the left page; the layout data includes the pixel position of the right page that is closest to the left page; The flag adding module is used to obtain the window width of the right page based on the proportion data and layout data of the right page, and add a first preset flag to the current right page to set the left page to an operable state.

13. The apparatus according to claim 12, characterized in that, The ratio acquisition module includes: Create a function to retrieve the Activity#onCreate() function, which is used to retrieve the page creation function of the application's left-side page. The left-side page marker unit is used to mark the left-side page as the main page by calling the frame layer's column splitting function setSplit() through the page creation function; The proportion data acquisition unit is used to acquire the proportion data returned by the column splitting function setSplit(), which represents the proportion of the left page in the display area.

14. The apparatus according to claim 12, characterized in that, The status setting module includes: The process selection unit is used to select the ActivityRecord page record class in the preset system process system server; The value modification unit is used to change the value of the parameter mOccludesParent in the page record class ActivityRecord from true to false, so that the left page is made visible.

15. The apparatus according to claim 12, characterized in that, The device further includes: The second flag setting module is used to set a second preset flag for the right-side page so that the right-side page can maintain the column display and can be passed to the next right-side page.

16. The apparatus according to claim 12, characterized in that, The device further includes: The third flag setting module is used to set a third preset flag for the right-side page, so that the right-side page cancels the column display and the new page after the right-side page adopts full-screen display.

17. The apparatus according to claim 12, characterized in that, The device further includes: The fourth flag setting module is used to set a fourth preset flag for the right-side page so that the right-side page maintains a column display.

18. The apparatus according to claim 12, characterized in that, The device further includes: The fifth flag setting module is used to set a fifth preset flag for the right page when the current page is launched by the main page, so that when the preset system process obtains the fifth preset flag, it determines that the right page is a first-level right page, and there is no window animation when switching between two first-level right pages.

19. The apparatus according to claim 12, characterized in that, The device further includes: The right-side page end module is used to end the current right-side page and its subpages when an operation is triggered on a list item in the left-side page; and then start a new right-side page.

20. The apparatus according to claim 12, characterized in that, The device further includes: The column page acquisition module is used to acquire the column page currently at the top of the displayed page from a specified location when a trigger operation is detected that meets the set conditions, or to end the column page; the identification code of the application corresponding to the column page is stored in a specified location.

21. The apparatus according to claim 12, characterized in that, The device further includes: The right-side page creation module is used to create the previously displayed right-side page when a trigger action of entering the main page from the desktop is detected.

22. The apparatus according to claim 12, characterized in that, The device further includes: An animation switching module is used to, when an animation switching is detected, shift the first page to the left until it reaches the left edge of the right page, and gradually increase the transparency during the shift, while shifting the second page from the right edge to the left until it reaches the left edge of the right page.

23. An electronic device, characterized in that, include: processor; Memory for storing computer programs executable by the processor; The processor is configured to execute a computer program in the memory to implement the method as described in any one of claims 1 to 11.

24. A computer-readable storage medium, characterized in that, When the executable computer program in the storage medium is executed by a processor, it can implement the method as described in any one of claims 1 to 11.

Citation Information

Patent Citations

  • System and method supporting displaying content on portable apparatus

    CN101361059A

  • Page lining method and device

    CN106126625A