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
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Publication Date
- 2020-05-12
Smart Images

Figure 1 
Figure 2 
Figure 3
Abstract
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...