Method, storage medium, device and system for synchronous communication between title bar and popup bar

A technology of synchronous communication and title bar, which is applied in the direction of program synchronization, inter-program communication, program control design, etc., can solve the problems of difficulty in message tracking, low practicability, and high resource overhead, etc., to improve scalability and scalability Maintainability, reduce strong coupling relationship, simple and clear structure

CN107450992BActive Publication Date: 2020-05-12WUHAN DOUYU NETWORK TECH CO LTD
1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Publication Date
2020-05-12

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

Disclosed are a method, device and system for synchronous communication between a title bar and a pop-up bar, and a storage medium, wherein same relate to the technical field of application program development. The method comprises: setting both the title bar and the pop-up bar to bear information about title elements using a title element container, and monitoring click events of the respective title elements through data adapters corresponding to the respective title element containers; when it is monitored that a certain title of the title bar is clicked on, forwarding corresponding click event information to a current page, and then forwarding same to the title element container of the pop-up bar through the current page; and when it is monitored that a certain title of the pop-up bar is clicked on, forwarding the corresponding click event information to the current page, and then forwarding same to the title element container of the title bar through the current page. The invention can realise synchronous communication between the tab bar and the pop-up bar. The hierarchical structure of communication is simple and clear, the information is easy to track, and a third-party communication framework does not need to be introduced, and the resource overhead is low.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to the technical field of application program development, and specifically relates to a method, a storage medium, a device and a system for synchronous communication between a title bar and a pop-up frame bar. Background technique

[0002] At present, secondary menus are usually used in the development and design of various APPs (Applications). The so-called secondary menu means that menu buttons can be pulled down to select a menu. In the design of the second-level menu page of the application, the developer will design a title bar for the second-level menu page. The title bar is used to classify the second-level menu pages, and each category is a title. When there are a lot of titles, you need to slide left and right, which is cumbersome and not easy to view. Therefore, current developers usually design a pop-up frame bar, that is, click the button on the right side of the title bar to pop up A drop-down box, the content of th...

Examples

Embodiment Construction

[0034] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0035] see figure 1 As shown, the embodiment of the present invention provides a method for synchronous communication between the title bar and the pop-up frame bar, and the method includes the following steps:

[0036] Step S1, setting of the title bar and the pop-up bar: set the title bar and the pop-up bar so that both the title bar and the pop-up bar use the title element container to carry the title element information, and pass the corresponding Data adapters to listen for click events on the respective header elements.

[0037] For example, taking the operating system as an Android system as an example, in one embodiment, the title element container may be a RecycleVIew container provided by the Android system, and the data adapter may be an Android adapter Adapter (hereinafter referred to as for Adapter). The biggest featur...