Display control method of common user interface view and electronic equipment
By integrating a public database management user interface view into the application, decentralized control is achieved, solving the problem of poor display caused by single-process management and ensuring stable display of the UI view and user experience.
Patent Information
- Application Number
- CN202411115967.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-14
- Publication Date
- 2026-03-03
Smart Images

Figure CN121597310A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of public user interface technology, and in particular to a display control method and electronic device for a public user interface view. Background Technology
[0002] Some current operating systems use a process (an independent service or application (APP) that acts as a central manager for the common user interface (UI) view) to handle the display of the common user interface (UI). If three applications all need to display the common UI view, they need to call the interface of this process to display the corresponding common UI view. This process is responsible for scheduling the display of the common UI view of all applications.
[0003] However, scheduling the display of the common UI view for all applications through a central manager is ineffective. If the central manager malfunctions, it will affect the display of the common UI view across the entire system. For example, if the central manager freezes or crashes, the common UI views it hosts will fail to display correctly. Furthermore, playing videos or parsing large files within the common UI view may require sending file information to the central manager, increasing inter-process communication latency and also affecting the display of the common UI view. Summary of the Invention
[0004] In view of this, in order to solve the technical problem that the display of the common UI view of all applications is poorly scheduled by a single process, this disclosure provides a method and electronic device for controlling the display of a common user interface view.
[0005] According to a first aspect of the present disclosure, a method for controlling the display of a public user interface view is provided, the method comprising:
[0006] The application saves the view information corresponding to the public user interface view to be displayed to a public database;
[0007] The target application determines whether other applications have a public user interface view with the same public user interface style as the target public user interface view based on the target view information and other view information in the public database; wherein, the target application is any application with a public user interface view to be displayed, the target public user interface view is the public user interface view to be displayed by the target application, and the target view information is the view information corresponding to the target public user interface view;
[0008] If the target application determines that other applications have a public user interface view with the same public user interface style as the target public user interface view, then it controls the display of the target public user interface view based on the display priority in the target view information and the display priority in the view information corresponding to the currently displayed public user interface view; and / or, it controls the display of the target public user interface view based on the overlay display attribute in the target view information.
[0009] In one optional implementation, controlling the display of the target public user interface view based on the display priority in the target view information and the display priority in the view information corresponding to the currently displayed public user interface view includes:
[0010] If the display priority in the target view information is higher than the display priority in the view information corresponding to the currently displayed public user interface view, then the target public user interface view is displayed.
[0011] In one optional implementation, controlling the display of the target common user interface view based on the overlay display attributes in the target view information includes:
[0012] If the overlay display attribute in the target view information indicates that the target public user interface view can be overlaid with other public user interface views, then the target public user interface view is displayed.
[0013] In an optional implementation, if the target application determines that another application has a public user interface view with the same public user interface style as the target public user interface view, the display control method includes:
[0014] If it is determined that the display priority in the target view information is not higher than the display priority in the view information corresponding to the currently displayed public user interface view, and it is determined that the overlay display attribute in the target view information indicates that the target public user interface view is not allowed to be overlaid with other public user interface views, then the display timing of the target public user interface view is determined by setting rules based on the view information corresponding to the public user interface views not displayed in the public database.
[0015] In one optional implementation, the setting rules include:
[0016] For public user interface views with different display priorities, the display time of the public user interface view with higher display priority will be set to precede the display time of the public user interface view with lower display priority; or,
[0017] For public user interface views with the same display priority, the display time of the public user interface view with the smaller timestamp in the view information is set to precede the display time of the public user interface view with the larger timestamp in the view information.
[0018] In an optional implementation, before determining the display timing of the target public user interface view based on view information corresponding to public user interface views not displayed in the public database, the display control method includes:
[0019] Receive notification information in a set mode; wherein the notification information is used to instruct the target application to determine when to display the target public user interface view, and the set mode includes polling mode and / or observer mode.
[0020] In one optional implementation, after the application saves the view information corresponding to the public user interface view to be displayed to a public database, the display control method includes:
[0021] Before the public user interface view is displayed and disappears, the corresponding application sends heartbeat data of the view information corresponding to this application to the public database at a first time interval; wherein, the heartbeat data represents the validity of the corresponding view information.
[0022] In one optional implementation, the display control method includes:
[0023] When invalid view information exists in the public database, if the application corresponding to any valid view information in the public database detects the invalid view information, it will delete the invalid view information from the public database.
[0024] In one optional implementation, the target application controls the display of the target public user interface view based on the target view information and other view information in the public database, including:
[0025] If the target application determines that no other application has a public user interface view with the same public user interface style as the target public user interface view, then the target public user interface view is displayed.
[0026] or,
[0027] If the target application determines that there is no view information other than the target view information in the public database, then the target public user interface view is displayed.
[0028] According to a second aspect of the present disclosure, an electronic device is provided, the electronic device comprising: a processor and a memory, the processor being configured to execute a control program stored in the memory to implement a display control method for a common user interface view as described in any of the first aspects.
[0029] The technical solutions provided by the embodiments of this disclosure can include the following beneficial effects: In this disclosure, the function of managing user UI views is integrated into the application. When the application needs to display a public UI view, it can save the view information corresponding to the public UI view to be displayed to the public database of the operating system (OS). Any application with a public UI view to be displayed can be used as a target application to manage the public database. The public UI view to be displayed by the target application can be denoted as the target public UI view, and the view information corresponding to the target public UI view can be denoted as the target view information. The target application can control the display of the target public UI view based on the target view information and other view information in the public database. In other words, the solution of this disclosure achieves the decentralization of the display of public UI views. Each application controls the display of its own public UI view independently through the public database. Even if any application has a problem (e.g., crashes), it will not affect the display of the public UI views of other applications, providing better protection for the display of the operating system's public UI views and improving the user experience.
[0030] 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
[0031] 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.
[0032] Figure 1 This is a flowchart illustrating a method for controlling the display of a public user interface view according to an exemplary embodiment.
[0033] Figure 2 This is a block diagram of a display control device for a common user interface view, illustrated according to an exemplary embodiment.
[0034] Figure 3 This is a block diagram of an electronic device according to an exemplary embodiment. Detailed Implementation
[0035] The embodiments of this application will be described below with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of this application from the content disclosed in this specification. This application can also be implemented or applied through other different specific embodiments, and various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of this application. It should be understood that the preferred embodiments are only for illustrating this application and are not intended to limit the scope of protection of this application.
[0036] It should be noted that the illustrations provided in the following embodiments are only schematic representations of the basic concept of this application. Therefore, the illustrations only show the components related to this application and are not presented according to the actual number, shape and size of the components in the actual implementation. In the actual implementation, the form, quantity and proportion of each component can be arbitrarily changed, and the layout of the components may also be more complex.
[0037] The embodiments of this application will be described below with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of this application from the content disclosed in this specification. This application can also be implemented or applied through other different specific embodiments, and various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of this application. It should be understood that the preferred embodiments are only for illustrating this application and are not intended to limit the scope of protection of this application.
[0038] To address the poor performance of scheduling the display of common UI views for all applications by a single process, this disclosure provides a method for controlling the display of common user interface views. In this disclosure, the function of managing user UI views is integrated into the application. When an application needs to display a common UI view, it can save the view information corresponding to its desired common UI view to the operating system's (OS) common database. Any application with a desired common UI view can manage the common database as a target application. The common UI view currently to be displayed by the target application can be denoted as the target common UI view, and the view information corresponding to this target common UI view can be denoted as the target view information. The target application can control the display of the target common UI view based on the target view information and other view information in the common database. In other words, this disclosure achieves decentralized display of common UI views, with each application independently controlling the display of its own common UI view through the common database. Even if any application encounters a problem (e.g., a crash), it will not affect the display of common UI views of other applications, providing better protection for the display of the operating system's common UI views and improving the user experience.
[0039] In one exemplary embodiment, a method for controlling the display of a common user interface view is provided, which can be applied to an electronic device. (Reference) Figure 1 As shown, the method may include:
[0040] S110. The application saves the view information corresponding to the public user interface view to be displayed to the public database;
[0041] S120. The target application controls the display of the target public user interface view based on the target view information and other view information in the public database.
[0042] In step S110, the operating system can configure a public database (e.g., ContentProvider). The public UI views and their scheduling methods are developed into a Library (functional module), which is then integrated by various applications that require it. For example, when compiling and packaging an application, the Library can be directly packaged into the application's APK (Android application package) installation file, allowing the corresponding application to independently call and display the public views and independently manage and schedule them.
[0043] It should be noted that the operating system disclosed herein may refer to operating systems such as iOS / MacOS / Windows / Android / Linux that have a public database.
[0044] The Library can be mainly divided into three parts: public UI view, database operations, and scheduling. Each application can independently display the public UI view and write the view information of the public UI view into the public database. Other applications can obtain the view information of the public UI view being displayed through this database, thereby determining when to display their own public UI view.
[0045] It should be noted that public UI can be divided into system public UI and non-system public UI. System public UI refers to UI that can still be displayed when the application is not in the foreground, such as volume UI, low battery warning, high temperature alert, shutdown pop-up, UI containing sliding views, UI containing progress bars, UI containing buttons or text input, and text-based UI. Non-system public UI refers to views such as account login and account input within the application. The public UI views in this embodiment can include both system public UI views and non-system public UI views; there is no limitation on this.
[0046] In some related technologies, to prevent the generalization of across different device models and to create a consistent user experience, many system vendors have begun to focus on building their own ecosystems, allowing only OEMs (Original Equipment Manufacturers) to customize a small portion of the code. This results in all systems having completely identical public UI styles, hindering OEMs from creating their own unique view styles. However, in the embodiments disclosed in this disclosure, the public UI view is controlled by each application itself, making it easier to create public UI styles with unique characteristics.
[0047] In this step, when an application that integrates the above-mentioned Library has a public UI view that needs to be displayed, the application's Library can transfer the view information of the above-mentioned public UI view to the operating system's public database to save the view information to the public database.
[0048] The view information can include display priority, timestamp, overlay display attributes, and other information as needed, such as display attributes, subscripts, and application unique identifiers. Of course, the view information can also include style information representing the common UI style of the corresponding common UI view; this is not limited.
[0049] Among them, the display priority refers to the display priority of the public UI view corresponding to the view information, the timestamp refers to the time when the corresponding view information was generated, the overlay display attribute indicates whether the public UI view corresponding to the view information is allowed to be overlaid with other public UI views, the display attribute indicates whether the public UI view corresponding to the view information is being displayed, the subscript indicates the sequence number of the corresponding view information in all view information in the public database, and the application unique identifier indicates the unique identifier of the application corresponding to the view information.
[0050] In some implementations, the first application needs to display a public UI view in the form of a pop-up view. Displaying this pop-up view can be divided into two parts: 1. Calling the Library to display the pop-up view; 2. Writing the view information corresponding to the pop-up view into the ContentProvider. The view information may include the following: display attributes, display priority, index, unique identifier of the first application, overlay display attributes, timestamp, etc. This information can be read by other applications at any time.
[0051] In step S120, the target application is any application with a public UI view to be displayed, the target public UI view is the public UI view to be displayed by the target application, and the target view information is the view information corresponding to the target public UI view.
[0052] In other words, any application with a public UI view to be displayed can act as a target application to view the view information in the public database. Then, based on the view information of its own currently displayed public UI view (i.e., the target public UI view) and other view information in the public database, it controls the display of the aforementioned currently displayed public UI view.
[0053] The target application can first determine whether view information other than the target view information exists in the public database. If the target application determines that view information other than the target view information does not exist in the public database, it can directly display the target public UI view.
[0054] If the target application determines that there is view information other than the target view information in the public database, the target application can first determine whether other applications have a public UI view with the same public UI style as the target public UI view based on the target view information and other view information in the public database.
[0055] If the target application determines that no other application has a public UI view with the same public UI style as the target public UI view, then the target public UI view can be displayed directly.
[0056] For example, before creating a public UI view, the second application, acting as the target application, will first read the view information in the ContentProvider to determine if there are other applications displaying a public UI view with the same "public UI style". If not, the second application will directly display its own public UI view; if it does exist, it can determine when to display its own public UI view.
[0057] If the target application determines that another application has a public UI view with the same public UI style as the target public UI view, it can control the display of the target UI view based on information such as display priority and / or overlay display attributes in the view information.
[0058] For example, the display of a target common UI view can be controlled based on its display priority in the target view information and the display priority in the view information corresponding to the currently displayed common UI view. In this way, the target application can more flexibly control the display order of the target common UI views. Thus, when multiple applications need to display a common UI view, the system can ensure that the most important or relevant view is displayed first according to preset priority rules, improving the responsiveness of the user interface and the user experience.
[0059] If the display priority of the target view is higher than the display priority of the currently displayed public UI view, then the target public UI view can be displayed. In this case, the target application can send a message to the application corresponding to the currently displayed public UI view, requesting it to immediately cancel the display of the corresponding public UI view. At the same time, the target application displays the target public UI view. Of course, the target application can also choose not to notify the application corresponding to the currently displayed public UI view, but instead directly overlay the target public UI view with the higher display priority on top of the currently displayed public UI view with the lower priority (i.e., overlay display).
[0060] In some implementations, displaying a public UI view requires an additional display priority field, such as High / Medium / Low. Assuming the second application needs to display a public UI view with a High display priority, and the first application currently displays a public UI view with a Low display priority, the second application, as the target application, sends a message to the first application requesting it to immediately cancel the pop-up view's display. The second application then displays its own public UI view (i.e., the target public UI view). Alternatively, the second application can choose not to notify the first application and simply place its own public UI view on top of the first application's displayed public UI view (i.e., overlay it).
[0061] It is important to note that in related technologies, since the scheduling of public UI views is completed in the central manager, if a public UI view with a higher display priority is displayed at the same time, the application to which the public UI view with a lower display priority belongs will not be aware of this. However, in the embodiments of this disclosure, the scheduling of public UI views is implemented by the application. Therefore, the target application can clearly understand the display priority and other view information of the public UI views of other applications that are being displayed, which facilitates the scheduling of public UI views.
[0062] It should be noted that, in addition to displaying the target public UI view in the manner described above, other methods may also be used to display the target public UI view, and there are no restrictions on these methods.
[0063] For example, the display of a target common UI view can be controlled based on the overlay display attributes in the target view information. By introducing overlay display attributes, the target application can overlay and display target common UI views as needed. This approach not only enhances the expressiveness of the UI view but also provides more customized display options, making the user interface richer and more dynamic.
[0064] If the overlay display attribute in the target view information indicates that the target public UI view allows overlay display with other public UI views, then the target public UI view can be overlaid with the currently displayed public UI view. It should be noted that this overlay display can mean either the target public UI view floats above the currently displayed public UI view, or the currently displayed public UI view floats above the target public UI view; there is no limitation on this, and it can be set according to actual needs.
[0065] In cases where the target application determines, based on the target view information and other view information in the public database, that other applications have a public UI view with the same public UI style as the target public UI view, if the target application determines that the display priority in the target view information is not higher than the display priority in the view information corresponding to the currently displayed public UI view, and determines that the overlay display attribute in the target view information indicates that the target public UI view is not allowed to be overlaid with other public UI views, then the display timing of the target public UI view can be determined by setting rules based on the view information corresponding to the public UI view that is not displayed in the public database.
[0066] The rules can be set according to requirements, and their specific content is not limited. For example, the rules could include setting the display time of the public UI views with higher display priority before the display time of the public UI views with lower display priority, for example, comparing the display priorities of the public UI views in the corresponding view information in the public database, configuring the public UI views corresponding to the view information with higher display priority to be displayed first, and configuring the public UI views corresponding to the view information with lower display priority to be displayed later.
[0067] For example, if the public database contains view information corresponding to three undisplayed public UI views, and the display priority of the view information corresponding to the target public UI view is higher than the display priority of the other two view information, then the target public UI view can be configured to be displayed before the other two public UI views. That is, after the currently displayed public UI view disappears, the target public UI view will be displayed.
[0068] Additionally, the rules can include setting the display time of the public UI view with the same display priority to be earlier than that of the public UI view with the larger timestamp in its view information. In other words, for public UI views that are not currently displayed, when their corresponding display priorities are the same, the public UI view with the smaller timestamp will be configured to be displayed first, and the public UI view with the larger timestamp will be configured to be displayed later. It should be noted that a smaller timestamp indicates that the public UI view was created earlier and therefore has priority in display.
[0069] For example, if the public database contains view information corresponding to three undisplayed public UI views, and the timestamp of the view information corresponding to the target public UI view is less than the timestamps of the other two view information, then the target public UI view can be configured to be displayed before the other two public UI views. That is, the target public UI view will be displayed after the currently displayed public UI view disappears.
[0070] It should be noted that since the display timing can only be determined based on the timestamp when the display priority of the target public UI view is the same as that of the currently displayed public UI view, when the target application determines the display timing of the target public UI view, it can first determine the display priority and then determine the timestamp to better improve the display control efficiency of the public UI view.
[0071] For example, the public database includes view information for three undisplayed public UI views, denoted as the first public UI view, the second public UI view, and the third public UI view. The first public UI view has a higher display priority than the other two. The second and third public UI views have the same display priority, but the timestamp corresponding to the second public UI view is less than that of the third public UI view. Assuming the second public UI view is the target public UI view, the display order of the three public UI views is: first public UI view, second public UI view, and third public UI view. That is, after the currently displayed public UI view disappears, the first public UI view is displayed. After the first public UI view disappears, if the public database only contains the second and third public UI views at this time, the second public UI view (i.e., the target public UI view) is displayed.
[0072] In the scheme where the target application determines the display timing of a target public UI view based on view information corresponding to a public UI view not displayed in a public database, the target application can rely on message notifications. For example, suppose multiple applications need to display public UI views with the same public UI style at the same time, then these applications need to determine the appropriate display timing for their own public UI views, and this determination relies on message notifications.
[0073] In other words, before determining when to display a target public UI view based on view information corresponding to a public UI view not displayed in the public database, the target application can first receive a notification message in a set mode; the notification message is used to instruct the target application to determine when to display the target public UI view. After receiving the above notification message, the target application can then determine when to display the target public UI view based on the view information corresponding to the public UI view not displayed in the public database.
[0074] The design pattern can include polling, observer, or other patterns depending on the specific needs; there are no limitations. It's important to note that polling is a software design pattern where the CPU periodically queries each peripheral device to see if it needs service. If so, service is provided, and the process repeats until the next peripheral device is reached. The observer pattern, also a software design pattern, defines a one-to-many dependency relationship. When the state of an object changes, all its registered observers are notified. Compared to polling, the observer pattern offers higher real-time performance.
[0075] When the setting includes polling mode, you can first define the polling time interval according to the actual situation. For example, the time interval can be 50ms. When the polling time interval is 50ms, if there is a public UI view being displayed, the display timing of the view can be determined every 50ms.
[0076] When the settings include the observer pattern, you can first register the target application as an observer. For example, you can register an observer for a public field, which in Android OS is usually the GlobalSettings Key. Information such as the display and hiding of public UI views of other applications can be notified to the target application as the observer in this way.
[0077] In some implementations, if the display priority of the public UI view that the second application needs to display is Low, and the display priority of the public UI view currently displayed by the first application is High, then the second application registers as an observer as the target application. After the public UI view of the first application disappears, it can receive a notification message. Upon receiving the notification message, the second application can determine the display timing. If it is determined that the public UI view of the second application is in the first priority for display, then that public UI view can be displayed. If the public UI view of the second application is not in the first priority for display, then after the public UI view in the first priority is displayed and disappears, the second application can again receive the notification message as an observer. After receiving the notification message, the second application can determine the display timing again. This process continues until the public UI view of the second application is displayed.
[0078] It should be noted that in addition to the above modes, message notifications can also be implemented through other modes, and there are no restrictions on which modes are used.
[0079] In this embodiment, after the application saves the view information corresponding to the public UI view to be displayed to the public database, before the public UI view is displayed and disappears, the corresponding application (i.e., the application corresponding to the aforementioned public UI view) can send heartbeat data of the view information corresponding to this application to the public database at a first time interval. The heartbeat data represents the validity of the corresponding view information.
[0080] If the heartbeat data of a view in the public database is no longer updated, the view can be marked as invalid, meaning it is considered an invalid view. When invalid view information exists in the public database, any application corresponding to a valid view in the database can delete the invalid view from the public database if it detects the invalid view.
[0081] In other words, from the moment an application transmits the view information corresponding to a public UI view to the public database until the public UI view is displayed and disappears, the application needs to update the heartbeat data of the corresponding view information to the public database every first time interval to maintain the validity of the view information. Other applications that have view information in the public database can use the validity of the view information to determine whether to remove the view information.
[0082] In some implementations, after the first application displays its corresponding public UI view and a crash occurs, the public UI view, belonging to the first application itself, disappears immediately upon the crash. However, the corresponding view information (which can be denoted as the first view information) remains in the public database. Since the heartbeat data of the first view information is no longer updated, it is marked as invalid data. When another application needs to display its own public UI view again, the aforementioned first view information can be deleted.
[0083] In this embodiment, the function of managing user UI views is integrated into the application. When an application needs to display a public UI view, it can save the view information corresponding to the public UI view to be displayed to the operating system's (OS) public database. Any application with a public UI view to be displayed can be used as a target application to manage the public database. The public UI view currently to be displayed by the target application can be denoted as the target public UI view, and the view information corresponding to the target public UI view can be denoted as the target view information. The target application can control the display of the target public UI view based on the target view information and other view information in the public database. In other words, the solution disclosed in this invention achieves decentralized public UI view display, with each application independently controlling the display of its own public UI view through the public database. Even if any application encounters a problem (e.g., a crash), it will not affect the display of public UI views of other applications, providing better protection for the display of the operating system's public UI views and improving the user experience.
[0084] By applying the method of this embodiment, the display control of the common UI view in the operating system can be placed in each application, while the common database is placed in the operating system. Each application can independently control the display of its corresponding common UI view, and the applications can coordinate the appropriate display timing through the common database, which provides better protection for the display of the common UI view of the operating system and improves the user experience.
[0085] In one exemplary embodiment, a display control device for a public user view is provided, applied to an electronic device. This display control device can be used to implement the display control method described above. For example, refer to... Figure 2 As shown, the display control device may include a control module 10, which can be used to control:
[0086] The application saves the view information corresponding to the public UI view to be displayed to a public database;
[0087] The target application controls the display of the target public UI view based on the target view information and other view information in the public database; wherein, the target application is any application with a public UI view to be displayed, the target public UI view is the public UI view to be displayed by the target application, and the target view information is the view information corresponding to the target public UI view.
[0088] In one exemplary embodiment, a display control device for a public user view is provided, applied to an electronic device. This display control device can be used to implement the display control method described above. (Reference) Figure 2 As shown, in this display control device, the control module 10 can be used to control:
[0089] If the target application determines, based on the target view information and other view information in the public database, that other applications have a public UI view with the same public UI style as the target public UI view,
[0090] Based on the display priority in the target view information and the display priority in the view information corresponding to the currently displayed public UI view, the display of the target public UI view is controlled; and / or,
[0091] The display of the target public UI view is controlled based on the overlay display attributes in the target view information.
[0092] In one exemplary embodiment, a display control device for a public user view is provided, applied to an electronic device. This display control device can be used to implement the display control method described above. (Reference) Figure 2 As shown, in this display control device, the control module 10 can be used to control:
[0093] If the display priority in the target view information is higher than the display priority in the view information corresponding to the currently displayed public UI view, then the target public UI view is displayed.
[0094] In one exemplary embodiment, a display control device for a public user view is provided, applied to an electronic device. This display control device can be used to implement the display control method described above. (Reference) Figure 2 As shown, in this display control device, the control module 10 can be used to control:
[0095] If the overlay display attribute in the target view information indicates that the target public UI view is allowed to be overlaid with other public UI views, then the target public UI view is displayed.
[0096] In one exemplary embodiment, a display control device for a public user view is provided, applied to an electronic device. This display control device can be used to implement the display control method described above. (Reference) Figure 2 As shown, in this display control device, the control module 10 can be used to control:
[0097] If the display priority in the target view information is not higher than the display priority in the view information corresponding to the currently displayed common UI view, and the overlay display attribute in the target view information indicates that the target common UI view is not allowed to be overlaid with other common UI views, then...
[0098] Based on the view information corresponding to public UI views that are not displayed in the public database, rules are set to determine when the target public UI view will be displayed.
[0099] In one exemplary embodiment, a display control device for a public user view is provided, applied to an electronic device. This display control device can be used to implement the display control method described above. In this display control device, setting rules may include:
[0100] For public UI views with different display priorities, the display time of the public UI view with higher display priority will be set to precede the display time of the public UI view with lower display priority; and / or,
[0101] For public UI views with the same display priority, the display time of the public UI view with the smaller timestamp in the view information is set to precede the display time of the public UI view with the larger timestamp in the view information.
[0102] In one exemplary embodiment, a display control device for a public user view is provided, applied to an electronic device. This display control device can be used to implement the display control method described above. (Reference) Figure 2 As shown, in this display control device, the control module 10 can be used to control:
[0103] Based on the view information corresponding to the public UI view not displayed in the public database, before determining the display timing of the target public UI view, a notification message is received in a set mode; wherein, the notification message is used to instruct the target application to determine the display timing of the target public UI view, and the set mode includes polling mode and / or observer mode.
[0104] In one exemplary embodiment, a display control device for a public user view is provided, applied to an electronic device. This display control device can be used to implement the display control method described above. (Reference) Figure 2 As shown, in this display control device, the control module 10 can be used to control:
[0105] After an application saves the view information corresponding to the public UI view to be displayed to a public database, before the public UI view is displayed and disappears, the corresponding application (i.e. the application corresponding to the aforementioned public UI view) sends heartbeat data of the view information corresponding to this application to the public database at a first time interval; wherein, the heartbeat data represents the validity of the corresponding view information.
[0106] In one exemplary embodiment, a display control device for a public user view is provided, applied to an electronic device. This display control device can be used to implement the display control method described above. (Reference) Figure 2 As shown, in this display control device, the control module 10 can be used to control:
[0107] When invalid view information exists in the public database, if the application corresponding to any valid view information in the public database detects the invalid view information, it will delete the invalid view information from the public database.
[0108] In one exemplary embodiment, a display control device for a public user view is provided, applied to an electronic device. This display control device can be used to implement the display control method described above. (Reference) Figure 2 As shown, in this display control device, the control module 10 can be used to control:
[0109] If the target application determines, based on the target view information and other view information in the public database, that no other application has a public UI view with the same public UI style as the target public UI view, then the target public UI view is displayed.
[0110] or,
[0111] If the target application determines that there is no view information other than the target view information in the public database, then the target public UI view is displayed.
[0112] In one exemplary embodiment, an electronic device is provided, which may be a mobile phone, a computer, or other devices that have a public UI view display requirement, and is not limited thereto.
[0113] refer to Figure 3As shown, the electronic device 100 may include at least one processor 101, a memory 102, at least one network interface 104, and other user interfaces 103. The various components in the electronic device 100 are coupled together via a bus system 105. It is understood that the bus system 105 is used to implement communication between these components. In addition to a data bus, the bus system 105 also includes a power bus, a control bus, and a status signal bus. However, for clarity, all buses are referred to as bus system 105.
[0114] The user interface 103 may include a display, keyboard, or clickable electronic device (e.g., mouse, trackball, touchpad, or touchscreen).
[0115] It is understood that the memory 102 in the embodiments of this application can be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced Synchronous DRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The memory 102 described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0116] In some implementations, memory 102 stores elements, executable units or data structures, or subsets thereof, or extended sets thereof: operating system 1021 and application program 1022.
[0117] The operating system 1021 includes various system programs, such as a framework layer, a core library layer, and a driver layer, used to implement various basic business functions and handle hardware-based tasks. The application program 1022 includes various applications, such as a media player and a browser, used to implement various application functions. Programs implementing the methods of this application embodiment can be included in the application program 1022.
[0118] In this embodiment of the application, the processor 101 executes the methods provided in each method embodiment by calling the program or instructions stored in the memory 102, specifically the program or instructions stored in the application program 1022.
[0119] The methods disclosed in the embodiments of this application can be applied to or implemented by the processor 101. The processor 101 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the integrated logic circuit of the hardware or by instructions in the form of software in the processor 101. The processor 101 may be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly embodied in the execution of a hardware decoding processor, or executed by a combination of hardware and software units in the decoding processor. The software units may be located in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. The storage medium is located in memory 102. Processor 101 reads the information in memory 102 and performs the above method in conjunction with its hardware.
[0120] It is understood that the embodiments described herein can be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing electronic devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described herein, or combinations thereof.
[0121] For software implementation, the techniques described herein can be implemented by units that perform the functions described herein. The software code can be stored in memory and executed by a processor. The memory can be implemented in the processor or external to the processor.
[0122] This application also provides a storage medium (computer-readable storage medium). This storage medium stores one or more programs. The storage medium may include volatile memory, such as random access memory; it may also include non-volatile memory, such as read-only memory, flash memory, hard disk, or solid-state drive; and it may also include combinations of the above types of memory.
[0123] When a storage medium contains one or more programs that can be executed by one or more processors, and when the storage medium is used in an electronic device, the method described above for execution in the electronic device can be implemented. The processor executes a control program for the electronic device stored in the memory to implement the method described above for execution in the electronic device.
[0124] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0125] It should be noted that the terms "one implementation," "embodiment," "exemplary embodiment," and "some embodiments" used in the specification indicate that the described embodiment may include a specific feature, structure, or characteristic, but not every embodiment necessarily includes that specific feature, structure, or characteristic. Furthermore, such phrases do not necessarily refer to the same embodiment. Moreover, when a specific feature, structure, or characteristic is described in connection with an embodiment, implementing such a feature, structure, or characteristic in conjunction with other embodiments, whether explicitly described or not, is within the knowledge scope of those skilled in the art.
[0126] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or electronic device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or electronic device. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or electronic device that includes said element.
[0127] The above embodiments are merely preferred embodiments provided to fully illustrate this application, and the scope of protection of this application is not limited thereto. Equivalent substitutions or modifications made by those skilled in the art based on this application are all within the scope of protection of this application.
Claims
1. A method for controlling the display of a public user interface view, characterized in that, The display control method includes: The application saves the view information corresponding to the public user interface view to be displayed to a public database; The target application determines whether other applications have a public user interface view with the same public user interface style as the target public user interface view based on the target view information and other view information in the public database; wherein, the target application is any application with a public user interface view to be displayed, the target public user interface view is the public user interface view to be displayed by the target application, and the target view information is the view information corresponding to the target public user interface view; If the target application determines that other applications have a public user interface view with the same public user interface style as the target public user interface view, then it controls the display of the target public user interface view based on the display priority in the target view information and the display priority in the view information corresponding to the currently displayed public user interface view; and / or, it controls the display of the target public user interface view based on the overlay display attribute in the target view information.
2. The display control method according to claim 1, characterized in that, The step of controlling the display of the target public user interface view based on the display priority in the target view information and the display priority in the view information corresponding to the currently displayed public user interface view includes: If the display priority in the target view information is higher than the display priority in the view information corresponding to the currently displayed public user interface view, then the target public user interface view is displayed.
3. The display control method according to claim 1, characterized in that, The step of controlling the display of the target public user interface view based on the overlay display attributes in the target view information includes: If the overlay display attribute in the target view information indicates that the target public user interface view can be overlaid with other public user interface views, then the target public user interface view is displayed.
4. The display control method according to claim 1, characterized in that, If the target application determines that another application has a public user interface view with the same public user interface style as the target public user interface view, the display control method includes: If it is determined that the display priority in the target view information is not higher than the display priority in the view information corresponding to the currently displayed public user interface view, and it is determined that the overlay display attribute in the target view information indicates that the target public user interface view is not allowed to be overlaid with other public user interface views, then the display timing of the target public user interface view is determined by setting rules based on the view information corresponding to the public user interface views not displayed in the public database.
5. The display control method according to claim 4, characterized in that, The setting rules include: For public user interface views with different display priorities, the display time of the public user interface view with higher display priority will be set to precede the display time of the public user interface view with lower display priority; or, For public user interface views with the same display priority, the display time of the public user interface view with the smaller timestamp in the view information is set to precede the display time of the public user interface view with the larger timestamp in the view information.
6. The display control method according to claim 4, characterized in that, Before determining the display timing of the target public user interface view based on view information corresponding to public user interface views not displayed in the public database, the display control method includes: Receive notification information in a set mode; wherein the notification information is used to instruct the target application to determine when to display the target public user interface view, and the set mode includes polling mode and / or observer mode.
7. The display control method according to claim 1, characterized in that, After the application saves the view information corresponding to the public user interface view to be displayed to the public database, the display control method includes: Before the public user interface view is displayed and disappears, the corresponding application sends heartbeat data of the view information corresponding to this application to the public database at a first time interval; wherein, the heartbeat data represents the validity of the corresponding view information.
8. The display control method according to claim 7, characterized in that, The display control method includes: When invalid view information exists in the public database, if the application corresponding to any valid view information in the public database detects the invalid view information, it will delete the invalid view information from the public database.
9. The display control method according to any one of claims 1-8, characterized in that, The target application controls the display of the target public user interface view based on the target view information and other view information in the public database, including: If the target application determines that no other application has a public user interface view with the same public user interface style as the target public user interface view, then the target public user interface view is displayed. or, If the target application determines that there is no view information other than the target view information in the public database, then the target public user interface view is displayed.
10. An electronic device, characterized in that, The electronic device includes a processor and a memory, the processor being configured to execute a control program stored in the memory to implement the display control method for the common user interface view as described in any one of claims 1-9.