WO2022017154A1 - 界面显示方法、装置、电子设备和介质 - Google Patents
界面显示方法、装置、电子设备和介质 Download PDFInfo
- Publication number
- WO2022017154A1 WO2022017154A1 PCT/CN2021/104144 CN2021104144W WO2022017154A1 WO 2022017154 A1 WO2022017154 A1 WO 2022017154A1 CN 2021104144 W CN2021104144 W CN 2021104144W WO 2022017154 A1 WO2022017154 A1 WO 2022017154A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- interface
- data object
- list item
- display
- container
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/0482—Interaction with lists of selectable items, e.g. menus
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4418—Suspend and resume; Hibernate and awake
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
- G06F9/4451—User profiles; Roaming
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/448—Execution paradigms, e.g. implementations of programming paradigms
- G06F9/4482—Procedural
Definitions
- Embodiments of the present disclosure relate to the field of computer technology, and in particular, to an interface display method, apparatus, electronic device, and medium.
- the purpose of some embodiments of the present disclosure is to provide an interface display method, apparatus, electronic device and medium to solve the technical problems mentioned in the above background art section.
- some embodiments of the present disclosure provide an interface display method, the method includes: for a list item in a data object list, creating an interface container proxy and placing the interface data object of the above list item in the above interface container proxy in response to the first update operation of the display interface, if the first update operation is used to instruct the list item to be updated to the display interface for display, then bind the interface container agent to the corresponding interface container on the display interface ; According to the binding relationship between the interface container and the interface container proxy, the interface data object of the list item in the interface container proxy is displayed in the area corresponding to the interface container on the display interface.
- some embodiments of the present disclosure provide an interface display device, the device includes: a creation unit configured to, for a list item in a data object list, create an interface container proxy and place the interface data object of the list item in the interface data object.
- the binding unit is configured to respond to the first update operation of the display interface, if the above-mentioned first update operation is used to instruct the above-mentioned list item to be updated to the above-mentioned display interface for display, then the above-mentioned interface container
- the agent is bound to the corresponding interface container on the above-mentioned display interface;
- the display unit is configured to, according to the binding relationship between the above-mentioned interface container and the above-mentioned interface container agent, in the area corresponding to the above-mentioned interface container on the above-mentioned display interface, to the above-mentioned interface container.
- the interface data object of the above list item in the interface container agent is displayed.
- some embodiments of the present disclosure provide an electronic device, comprising: one or more processors; a storage device on which one or more programs are stored, when one or more programs are stored by one or more The processors execute such that the one or more processors implement a method as in any of the first aspects.
- some embodiments of the present disclosure provide a computer-readable medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the method according to any one of the first aspects.
- One of the above-mentioned embodiments of the present disclosure has the following beneficial effects: by creating an interface container proxy for a list item in a data object list. Then, in response to the first update operation of the display interface, the interface container proxy is bound to the corresponding interface container on the display interface. Finally, according to the binding relationship between the interface container and the interface container proxy, the interface data object of the list item in the interface container proxy is displayed. This implementation enables individual updating of each list item in the list.
- FIG. 1 is a schematic diagram of an application scenario of an interface display method according to some embodiments of the present disclosure
- FIG. 2 is a flowchart of some embodiments of an interface display method according to the present disclosure
- FIG. 3 is a flowchart of other embodiments of an interface display method according to the present disclosure.
- FIG. 4 is a schematic structural diagram of some embodiments of an interface display device according to the present disclosure.
- FIG. 5 is a schematic structural diagram of an electronic device suitable for implementing some embodiments of the present disclosure.
- FIG. 1 is a schematic diagram of an application scenario of an interface display method according to some embodiments of the present disclosure
- the terminal device 101 can create interface container agents 107-110 for the list items 103-106 in the data object list 102 and create the interface data objects 111 of the above list items 103-106 -114 is placed in the above-mentioned interface container agent 107-110; in response to the first update operation of the display interface 115, if the above-mentioned first update operation is used to indicate that the above-mentioned list items 103-105 are updated to the above-mentioned display interface 115 for display, then Bind the above-mentioned interface container agents 107-109 to the corresponding interface containers 116-118 on the above-mentioned display interface 115; according to the binding relationship between the above-mentioned interface containers 116-118 and the above-mentioned interface container agents 107-110, in the above-mentioned display interface In the area corresponding to the above-mentioned interface containers 116-118 on the 115, the interface data objects 107-110.
- the interface display method may be executed by the terminal device 101, or may also be executed by a server, or may also be executed by various software programs.
- the terminal device 101 may be, for example, various electronic devices having a display screen, including but not limited to smart phones, tablet computers, e-book readers, laptop computers, desktop computers, and the like.
- the execution body may also be embodied as a server, software, or the like. When the execution body is software, it can be installed in the electronic devices listed above. It can be implemented, for example, as multiple software or software modules for providing distributed services, or as a single software or software module. There is no specific limitation here.
- FIG. 1 the number of cell phones in FIG. 1 is merely illustrative. There can be any number of handsets depending on implementation needs.
- the interface display method includes the following steps:
- Step 201 for a list item in the data object list, create an interface container proxy and place the interface data object of the above list item in the above interface container proxy.
- the execution body of the interface display method may create an interface container proxy for the list items in the data object list and place the interface data objects of the list items in the above-mentioned list items.
- Interface container proxy As an example, the above data object list may be "'Zhang San, 1, 010032', 'Li Si, 2, 010033', 'Wang Wu, 2, 010034'". Wherein, the above list item may be 'Zhang San, 1, 010032'.
- the above interface container proxy can be considered as a network access method.
- the interface container proxy described above may be an access interface.
- the above-mentioned placing the interface data object of the above-mentioned list item in the above-mentioned interface container agent may be "A: Zhang San, 1, 010032".
- the above interface data objects may belong to the ViewModel layer.
- the data objects in the above data object list may belong to the Model (data) layer.
- the above-mentioned data object list may display data objects (Model) in the form of a list.
- each list item (Item) is used to store a data object.
- the interface data object (ViewModel) can store and manage the data related to the UI (User Interface, interface) in a life cycle-aware manner.
- interface data objects allow data to survive configuration changes (such as screen rotations).
- the interface data object has the advantages of type safety and cohesion.
- the above-mentioned data object list (List) is a very important component in android development. It displays specific content in the form of a list according to the length of the data.
- the interface container proxy (ViewHolder Poxy) usually adds a life cycle for each interface data object.
- Step 202 in response to the first update operation of the display interface, if the first update operation is used to instruct the list item to be updated to the display interface for display, then bind the interface container agent to the corresponding interface on the display interface container.
- the execution body may determine the first update operation of the display interface, and when the first update operation is used to indicate that the list item is updated to the display interface for display, the interface container agent is bound to the The corresponding interface container on the above display interface.
- the above-mentioned interface container may be an area on the above-mentioned display interface for displaying list items. As an example, as shown in FIG. 1 , the list item 103 is displayed on the display interface 115 , and the interface container proxy 107 of the list item 103 is bound to the corresponding interface container 116 on the above-mentioned display interface 115 .
- the display interface may belong to the View layer.
- the interface container usually appears in the adapter (Adapter), in order to quickly set the value when the list scrolls, without having to recreate many objects each time, thereby improving performance.
- Step 203 Display the interface data object of the list item in the interface container proxy in the area corresponding to the interface container on the display interface according to the binding relationship between the interface container and the interface container proxy.
- the execution body may, according to the binding relationship between the interface container and the interface container proxy, in the area corresponding to the interface container on the display interface, the interface of the list item in the interface container proxy
- the data object is displayed.
- the interface container 116 and the interface container proxy 107 in the area corresponding to the interface container 116 on the display interface 115, the interface data of the list item 103 in the interface container proxy 107 Object 111 is displayed.
- the interface data object of the list item is subscribed to the state of the interface container; the state may include at least one of the following : Create state (onCreate), start state (onStart), stop state (onStop) and destroy state (onDestroy).
- the above creation state can be called once for each list item, which can be buried.
- the above start state and stop state can be called during slide in slide out. It can also be called by the parent LifecycleOwner when it is called back.
- the purpose of Lifecycles is that when the state of Android components (activities, fragments) changes (onStart, onStop), other parts can correspondingly change the components.
- the monitored weather forecast is the State, and the Owner manages these State changes.
- the above destruction state is usually called once for each interface container, following the call of the parent LifecycleOwner. The above state is the same as the life state in which the interface container agent exists. If the state of the interface data object of the list item changes, the interface data object of the list item in the interface container proxy is updated.
- the interface data object corresponding to the above-mentioned interface container proxy is obtained when the above-mentioned subscription is obtained, and the interface data object of the above-mentioned list item is updated by using the interface data object corresponding to the above-mentioned interface container proxy, so that the above-mentioned interface container proxy
- the corresponding interface data object is the same as the interface data object of the above list item.
- the interface container agent only enters the interface container on the display interface for the first time is in the created state, the front-to-background transition of the above-mentioned display interface on the terminal device where the above-mentioned display interface is located is the start and stop states, and the above-mentioned display interface is displayed on the above-mentioned terminal device.
- the interface is closed is the destroyed state.
- all subscriptions by default, will call back the last value when the ViewHolder slides back into the screen to restore the UI of the corresponding item.
- the above-mentioned updating the interface data object of the above-mentioned list item in the above-mentioned interface container proxy according to the data object of the above-mentioned list item is specifically: in the case that the Diff result is correct, through DiffUtil Callback to update the interface data object of the above list item in the above interface container proxy.
- the above Diff can be used to compare two files.
- the output of Diff shows what needs to be done on one file to match the second file.
- the role of the above DiffUtil can be to compare two data lists and can calculate a series of operations to convert the old data table into the new data table.
- the interface data object of the above-mentioned list item in the above-mentioned interface container agent is updated according to the operation in the above-mentioned Diff result.
- notify() can be used to wake up the waiting thread in the program. If the monitor has only one waiting thread, notify() can be used to wake up. But if there are multiple threads notify() will wake up one of them randomly.
- the state of the interface container agent corresponding to each list item in the above-mentioned data object list is determined;
- the set conditions are usually preset.
- the above preset condition may be "the number is greater than 10".
- an interface container proxy is created for a list item in a data object list. Then, in response to the first update operation of the display interface, the interface container proxy is bound to the corresponding interface container on the display interface. Finally, according to the binding relationship between the above-mentioned interface container and the above-mentioned interface container agent, the interface data object of the above-mentioned list item in the above-mentioned interface container agent is displayed. This implementation enables individual updating of each list item in the list.
- the interface display methods disclosed by some embodiments of the present disclosure support common basic requirements such as Header (header)/Footer (footer), Loading (loading)/Error (error reporting)/Empty (no data).
- Header can be a string sent by the server before the server transmits HTML (Hyper Text Markup Language, Hypertext Markup Language) data to the browser using the HTTP (HyperText Transfer Protocol) protocol. separated by one line.
- HTTP HyperText Transfer Protocol
- Adapter adapter
- Builder builder
- the Widget Complementing the existing Widget (Web widget, widget) system, in the absence of Widget nesting, the Widget contains a list of scenarios.
- the above Widget usually refers to a derivative of Web 2.0, which can be a small application, it can be a clock, a diary, a video, a weather forecast, and so on.
- the interface display method includes the following steps:
- Step 301 for a list item in the data object list, create an interface container proxy and place the interface data object of the above list item in the above interface container proxy.
- Step 302 in response to the first update operation of the display interface, if the first update operation is used to instruct the list item to be updated to the display interface for display, then bind the interface container agent to the corresponding interface on the display interface container.
- Step 303 Display the interface data object of the list item in the interface container proxy in the area corresponding to the interface container on the display interface according to the binding relationship between the interface container and the interface container proxy.
- steps 301-303 for the specific implementation of steps 301-303 and the technical effects brought about, reference may be made to steps 201-203 in those embodiments corresponding to FIG. 2, and details are not repeated here.
- Step 304 in response to the second update operation of the display interface, if the second update operation is used to indicate that the list item is updated and no longer displayed on the display interface, the binding between the interface container agent and the interface container is released. relation.
- the execution body of the interface display method may, when it is determined that the second update operation of the display interface occurs, when the second update operation is used to indicate that the list item is If it is updated that the above-mentioned display interface is no longer displayed, the binding relationship between the above-mentioned interface container agent and the above-mentioned interface container is released. So that the list items displayed on the above-mentioned interface container are changed according to the second update operation. As an example, as shown in FIG.
- the above-mentioned second update operation is a sliding operation from top to bottom on the display interface 115, and the list item 106 will be updated with the above-mentioned second update operation.
- the display interface 115 is no longer displayed, and the binding relationship between the interface container proxy 110 and the interface container 118 is released.
- the process 300 of the information display method in some embodiments corresponding to FIG. 3 embodies the second update operation in response to the display interface.
- the second update operation is used to indicate that the above-mentioned list item is updated so that the above-mentioned display interface is no longer displayed, and the binding relationship between the above-mentioned interface container agent and the above-mentioned interface container is released. Therefore, the solutions described in these embodiments can introduce that each interface container can be reused, and the binding relationship between the interface container proxy and the interface container is constantly changing.
- the present disclosure provides some embodiments of an interface display device, these device embodiments correspond to those method embodiments described above in FIG. 2 , and the device can be applied in various electronic devices.
- the interface display apparatus 400 of some embodiments includes: a creation unit 401 , a binding unit 402 and a display unit 403 .
- the creating unit 401 is configured to create an interface container proxy for the list item in the data object list and place the interface data object of the above-mentioned list item in the above-mentioned interface container proxy;
- the binding unit 402 is configured to respond to the display interface The first update operation, if the above-mentioned first update operation is used to indicate that the above-mentioned list item is updated to the above-mentioned display interface for display, the above-mentioned interface container agent is bound to the corresponding interface container on the above-mentioned display interface;
- the display unit 403 is configured According to the binding relationship between the interface container and the interface container proxy, the interface data object of the list item in the interface container proxy is displayed in the area corresponding to the interface container on the display interface.
- the interface display device 400 is further configured to: in response to the second update operation of the display interface, if the second update operation It is used to indicate that the above-mentioned list item is updated so that the above-mentioned display interface is no longer displayed, and the binding relationship between the above-mentioned interface container agent and the above-mentioned interface container is released.
- the interface display device 400 is further configured to: during the binding of the interface container to the interface container proxy, subscribe the interface data object status of the list item in the interface container; if the interface of the list item is When the state of the data object changes, the interface data object of the above-mentioned list item in the above-mentioned interface container agent is updated.
- the interface display apparatus 400 is further configured to update the interface data object of the above-mentioned list item in the above-mentioned interface container proxy through the DiffUtil callback when the Diff result is correct.
- the above states include at least one of the following: a created state, a started state, a stopped state, and a destroyed state.
- the interface display device 400 is further configured to: in response to the number of list items in the data object list meeting a preset condition, determine the state of the interface container agent corresponding to each list item in the data object list; Store the list items whose state of the interface container agent is in the stopped state; and perform a deletion operation on the stored list items in the data object list to obtain the deleted data object list.
- the units recorded in the apparatus 400 correspond to the respective steps in the method described with reference to FIG. 2 . Therefore, the operations, features, and beneficial effects described above with respect to the method are also applicable to the apparatus 400 and the units included therein, and details are not described herein again.
- FIG. 5 it shows a schematic structural diagram of an electronic device (eg, the server in FIG. 1 ) 500 suitable for implementing some embodiments of the present disclosure.
- Terminal devices in some embodiments of the present disclosure may include, but are not limited to, such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablets), PMPs (portable multimedia players), vehicle-mounted terminals Mobile terminals such as in-vehicle navigation terminals, etc., and stationary terminals such as digital TVs, desktop computers, and the like.
- the terminal device shown in FIG. 5 is only an example, and should not impose any limitation on the function and scope of use of the embodiments of the present disclosure.
- an electronic device 500 may include a processing device (eg, a central processing unit, a graphics processor, etc.) 501 that may be loaded into random access according to a program stored in a read only memory (ROM) 502 or from a storage device 508 Various appropriate actions and processes are executed by the programs in the memory (RAM) 503 . In the RAM 503, various programs and data required for the operation of the electronic device 500 are also stored.
- the processing device 501, the ROM 502, and the RAM 503 are connected to each other through a bus 504.
- An input/output (I/O) interface 505 is also connected to bus 504 .
- the following devices may be connected to the I/O interface 505: input devices 506 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, a liquid crystal display (LCD), speakers, vibration an output device 507 such as a computer; a storage device 508 including, for example, a memory card; and a communication device 509 .
- Communication means 509 may allow electronic device 500 to communicate wirelessly or by wire with other devices to exchange data. While FIG. 5 shows electronic device 500 having various means, it should be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided. Each block shown in FIG. 5 can represent one device, and can also represent multiple devices as required.
- the processes described above with reference to the flowcharts may be implemented as computer software programs.
- some embodiments of the present disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the method illustrated in the flowchart.
- the computer program may be downloaded and installed from a network via communication device 509, or from storage device 508, or from ROM 502.
- the processing device 501 When the computer program is executed by the processing device 501, the above-mentioned functions defined in the methods of some embodiments of the present disclosure are performed.
- the computer-readable medium described above may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the foregoing two.
- the computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above.
- a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
- a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code therein.
- Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
- a computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device .
- Program code embodied on a computer readable medium may be transmitted using any suitable medium including, but not limited to, electrical wire, optical fiber cable, RF (radio frequency), etc., or any suitable combination of the foregoing.
- the client and server can use any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol) to communicate, and can communicate with digital data in any form or medium Communication (eg, a communication network) interconnects.
- HTTP HyperText Transfer Protocol
- Examples of communication networks include local area networks (“LAN”), wide area networks (“WAN”), the Internet (eg, the Internet), and peer-to-peer networks (eg, ad hoc peer-to-peer networks), as well as any currently known or future development network of.
- the above-mentioned computer-readable medium may be included in the above-mentioned electronic device; or may exist alone without being assembled into the electronic device.
- the above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the electronic device, the electronic device: for the list items in the data object list, an interface container agent is created and the above-mentioned list items are created.
- the interface data object is placed in the above-mentioned interface container agent; in response to the first update operation of the display interface, if the above-mentioned first update operation is used to indicate that the above-mentioned list item is updated to the above-mentioned display interface for display, then the above-mentioned interface container agent is bound to locate the corresponding interface container on the above-mentioned display interface; according to the binding relationship between the above-mentioned interface container and the above-mentioned interface container agent, in the area corresponding to the above-mentioned interface container on the above-mentioned display interface, the above-mentioned list item in the above-mentioned interface container agent The interface data object is displayed.
- Computer program code for carrying out operations of some embodiments of the present disclosure may be written in one or more programming languages, including object-oriented programming languages—such as Java, Smalltalk, C++, or a combination thereof, Also included are conventional procedural programming languages - such as the "C" language or similar programming languages.
- the program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server.
- the remote computer may be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (eg, using an Internet service provider to via Internet connection).
- LAN local area network
- WAN wide area network
- each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more logical functions for implementing the specified functions executable instructions.
- the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved.
- each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations can be implemented in dedicated hardware-based systems that perform the specified functions or operations , or can be implemented in a combination of dedicated hardware and computer instructions.
- the units described in some embodiments of the present disclosure may be implemented by means of software, and may also be implemented by means of hardware.
- the described unit can also be provided in the processor, for example, it can be described as: a processor includes a creation unit, a binding unit and a display unit. Among them, the names of these units do not constitute a limitation of the unit itself in some cases, for example, the creation unit can also be described as "for the list items in the data object list, create an interface container proxy and put the above list items.
- the UI data object is placed in the unit of the UI container proxy described above".
- exemplary types of hardware logic components include: Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), Systems on Chips (SOCs), Complex Programmable Logical Devices (CPLDs) and more.
- FPGAs Field Programmable Gate Arrays
- ASICs Application Specific Integrated Circuits
- ASSPs Application Specific Standard Products
- SOCs Systems on Chips
- CPLDs Complex Programmable Logical Devices
- an interface display method including: for a list item in a data object list, creating an interface container proxy and placing the interface data object of the above list item in the above interface container proxy
- the above-mentioned first update operation is used to indicate that the above-mentioned list item is updated to the above-mentioned display interface for display
- the above-mentioned interface container agent is bound to the corresponding interface container on the above-mentioned display interface
- the interface data object of the list item in the interface container proxy is displayed in the area corresponding to the interface container on the display interface.
- the method further includes: in response to a second update operation of the display interface, if the above-mentioned second update operation uses After indicating that the list item is updated so that the display interface is no longer displayed, the binding relationship between the interface container agent and the interface container is released.
- the method further includes: during the binding of the interface container to the interface container proxy, subscribing to the interface container for the state of the interface data object of the list item; When the state of the interface data object changes, the interface data object of the above-mentioned list item in the above-mentioned interface container agent is updated.
- the above-mentioned updating the interface data object of the above-mentioned list item in the above-mentioned interface container agent according to the data object of the above-mentioned list item is specifically: in the case that the Diff result is correct, calling back through DiffUtil, The interface data object of the above-mentioned list item in the above-mentioned interface container agent is updated.
- the above state includes at least one of the following: a creation state, a start state, a stop state, and a destruction state.
- the method further includes: in response to the number of list items in the data object list meeting a preset condition, determining the state of the interface container agent corresponding to each list item in the data object list ; Store the list items whose status of the interface container agent is in the stopped state; and delete the stored list items in the data object list to obtain the deleted data object list.
- an interface display apparatus comprising: a creation unit configured to, for a list item in a data object list, create an interface container proxy and place the interface data object of the list item in the interface data object.
- the binding unit is configured to respond to the first update operation of the display interface, if the above-mentioned first update operation is used to instruct the above-mentioned list item to be updated to the above-mentioned display interface for display, then the above-mentioned interface container
- the agent is bound to the corresponding interface container on the above-mentioned display interface; the display unit is configured to, according to the binding relationship between the above-mentioned interface container and the above-mentioned interface container agent, in the area corresponding to the above-mentioned interface container on the above-mentioned display interface, to the above-mentioned interface container.
- the interface data object of the above list item in the interface container agent is displayed.
- the apparatus is further configured to: in response to the second update operation of the display interface, if the above-mentioned first The second update operation is used to indicate that the above-mentioned list item is updated so that the above-mentioned display interface is no longer displayed, and the binding relationship between the above-mentioned interface container agent and the above-mentioned interface container is released.
- the apparatus is further configured to: subscribe to the state of the interface data object of the list item in the interface container during the binding of the interface container to the interface container proxy; if the list When the state of the interface data object of the item changes, the interface data object of the above-mentioned list item in the above-mentioned interface container proxy is updated.
- the above-mentioned updating the interface data object of the above-mentioned list item in the above-mentioned interface container agent according to the data object of the above-mentioned list item is specifically: in the case that the Diff result is correct, calling back through DiffUtil, The interface data object of the above-mentioned list item in the above-mentioned interface container agent is updated.
- the above state includes at least one of the following: a creation state, a start state, a stop state, and a destruction state.
- the apparatus is further configured to: in response to the number of list items in the data object list meeting a preset condition, determine the interface container proxy corresponding to each list item in the data object list The state of the interface container agent is stored; the list item whose state is the stop state is stored; and the stored list item in the data object list is deleted to obtain the deleted data object list.
- an electronic device comprising: one or more processors; a storage device on which one or more programs are stored, when the one or more programs are stored by one or more
- the execution of the processor causes one or more processors to implement a method as described in any of the above embodiments.
- a computer-readable medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the method described in any of the foregoing embodiments.
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Computer Security & Cryptography (AREA)
- User Interface Of Digital Computer (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
Claims (9)
- 一种界面显示方法,包括:针对数据对象列表中的列表项,创建界面容器代理并将所述列表项的界面数据对象置于所述界面容器代理中;响应于显示界面的第一更新操作,若所述第一更新操作用于指示所述列表项被更新到所述显示界面进行显示,则将所述界面容器代理绑定到所述显示界面上相应的界面容器;按照所述界面容器与所述界面容器代理之间的绑定关系,在所述显示界面上所述界面容器对应的区域中,对所述界面容器代理中所述列表项的界面数据对象进行显示。
- 根据权利要求1所述的方法,其中,在所述对所述界面容器代理中所述列表项的界面数据对象进行显示之后,还包括:响应于显示界面的第二更新操作,若所述第二更新操作用于指示所述列表项被更新出所述显示界面不再显示,则解除所述界面容器代理与所述界面容器之间的绑定关系。
- 根据权利要求1所述的方法,其中,还包括:在所述界面容器与所述界面容器代理绑定期间,在所述界面容器中订阅所述列表项的界面数据对象的状态;若所述列表项的界面数据对象的状态发生改变,对所述界面容器代理中所述列表项的界面数据对象进行更新。
- 根据权利要求3所述的方法,其中,所述根据所述列表项的数据对象对所述界面容器代理中所述列表项的界面数据对象进行更新,具体为:在Diff结果正确的情况下,通过DiffUtil回调,对所述界面容器代理中所述列表项的界面数据对象进行更新。
- 根据权利要求3所述的方法,其中,所述状态包括以下至少一项:创建状态,开始状态,停止状态和销毁状态。
- 根据权利要求5所述的方法,其中,还包括:响应于所述数据对象列表中的列表项的数量满足预设条件,确定所述数据对象列表中每个列表项对应的界面容器代理的状态;对所述界面容器代理的状态为停止状态的列表项进行存储;对所述数据对象列表中进行存储后的列表项进行删除操作,得到删除后数据对象列表。
- 一种界面显示装置,包括:创建单元,被配置成针对数据对象列表中的列表项,创建界面容器代理并将所述列表项的界面数据对象置于所述界面容器代理中;绑定单元,被配置成响应于显示界面的第一更新操作,若所述第一更新操作用于指示所述列表项被更新到所述显示界面进行显示,则将所述界面容器代理绑定到所述显示界面上相应的界面容器;显示单元,被配置成按照所述界面容器与所述界面容器代理之间的绑定关系,在所述显示界面上所述界面容器对应的区域中,对所述界面容器代理中所述列表项的界面数据对象进行显示。
- 一种电子设备,包括:一个或多个处理器;存储装置,其上存储有一个或多个程序;当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-6中任一所述的方法。
- 一种计算机可读介质,其上存储有计算机程序,其中,所述程序被处理器执行时实现如权利要求1-6中任一所述的方法。
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US18/006,333 US12282783B2 (en) | 2020-07-23 | 2021-07-02 | Data object list display method, data object list display apparatus, electronic device and medium |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010716130.0 | 2020-07-23 | ||
| CN202010716130.0A CN113971060B (zh) | 2020-07-23 | 2020-07-23 | 界面显示方法、装置、电子设备和介质 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2022017154A1 true WO2022017154A1 (zh) | 2022-01-27 |
Family
ID=79585293
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2021/104144 Ceased WO2022017154A1 (zh) | 2020-07-23 | 2021-07-02 | 界面显示方法、装置、电子设备和介质 |
Country Status (3)
| Country | Link |
|---|---|
| US (1) | US12282783B2 (zh) |
| CN (1) | CN113971060B (zh) |
| WO (1) | WO2022017154A1 (zh) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113971060B (zh) | 2020-07-23 | 2023-10-27 | 抖音视界有限公司 | 界面显示方法、装置、电子设备和介质 |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20100070924A1 (en) * | 2008-09-18 | 2010-03-18 | Microsoft Corporation | Rendering a customized list of controls |
| CN103778128A (zh) * | 2012-10-18 | 2014-05-07 | 腾讯科技(深圳)有限公司 | 一种列表信息的绘制方法和装置 |
| US8887085B1 (en) * | 2008-03-20 | 2014-11-11 | Amazon Technologies, Inc. | Dynamic content navigation |
| CN105607909A (zh) * | 2015-12-21 | 2016-05-25 | 武汉斗鱼网络科技有限公司 | 一种基于mvc框架改进列表开发效率的方法和系统 |
| US20160154543A1 (en) * | 2014-12-02 | 2016-06-02 | Facebook, Inc. | Generating a List of Content Items |
| CN109669756A (zh) * | 2018-12-25 | 2019-04-23 | 北京金山安全软件有限公司 | 数据刷新方法、装置、电子设备及存储介质 |
Family Cites Families (13)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR20100035474A (ko) * | 2008-09-26 | 2010-04-05 | 삼성전자주식회사 | 휴대 단말기의 컨텐츠 리스트 표시 방법 |
| US9311069B2 (en) * | 2013-03-13 | 2016-04-12 | Google Inc. | Search in application launcher |
| CN107797833B (zh) * | 2016-08-29 | 2020-08-28 | 雪球(北京)技术开发有限公司 | 智能设备上应用程序的界面显示方法 |
| CN106445314B (zh) * | 2016-09-07 | 2019-07-26 | Oppo广东移动通信有限公司 | 显示界面刷新方法及装置 |
| CN107484003B (zh) * | 2017-07-01 | 2019-11-15 | 武汉斗鱼网络科技有限公司 | 电视列表数据局部刷新方法、存储介质、电子设备及系统 |
| US20190146645A1 (en) * | 2017-11-14 | 2019-05-16 | Renew.com Inc. | Replaying event-based sessions between a user device and an agent device |
| CN110618821A (zh) * | 2018-06-19 | 2019-12-27 | 普天信息技术有限公司 | 基于Docker的容器集群系统及快速搭建方法 |
| US10860603B2 (en) * | 2018-06-29 | 2020-12-08 | Lucid Software, Inc. | Visualization customization |
| CN109976620B (zh) * | 2019-03-28 | 2020-09-01 | 北京字节跳动网络技术有限公司 | 列表项展现属性信息的确定方法、装置、设备及存储介质 |
| CN110109670B (zh) * | 2019-05-16 | 2020-06-23 | 北京字节跳动网络技术有限公司 | 视图列表数据的处理方法、装置、电子设备及存储介质 |
| CN110750323A (zh) * | 2019-10-28 | 2020-02-04 | 北京字节跳动网络技术有限公司 | 社交界面入口的显示方法、装置、电子设备及存储介质 |
| CN111309417B (zh) * | 2020-01-19 | 2024-07-26 | 北京有竹居网络技术有限公司 | 应用程序中的数据显示方法、装置、电子设备和可读介质 |
| CN113971060B (zh) | 2020-07-23 | 2023-10-27 | 抖音视界有限公司 | 界面显示方法、装置、电子设备和介质 |
-
2020
- 2020-07-23 CN CN202010716130.0A patent/CN113971060B/zh active Active
-
2021
- 2021-07-02 US US18/006,333 patent/US12282783B2/en active Active
- 2021-07-02 WO PCT/CN2021/104144 patent/WO2022017154A1/zh not_active Ceased
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8887085B1 (en) * | 2008-03-20 | 2014-11-11 | Amazon Technologies, Inc. | Dynamic content navigation |
| US20100070924A1 (en) * | 2008-09-18 | 2010-03-18 | Microsoft Corporation | Rendering a customized list of controls |
| CN103778128A (zh) * | 2012-10-18 | 2014-05-07 | 腾讯科技(深圳)有限公司 | 一种列表信息的绘制方法和装置 |
| US20160154543A1 (en) * | 2014-12-02 | 2016-06-02 | Facebook, Inc. | Generating a List of Content Items |
| CN105607909A (zh) * | 2015-12-21 | 2016-05-25 | 武汉斗鱼网络科技有限公司 | 一种基于mvc框架改进列表开发效率的方法和系统 |
| CN109669756A (zh) * | 2018-12-25 | 2019-04-23 | 北京金山安全软件有限公司 | 数据刷新方法、装置、电子设备及存储介质 |
Also Published As
| Publication number | Publication date |
|---|---|
| US20230273802A1 (en) | 2023-08-31 |
| US12282783B2 (en) | 2025-04-22 |
| CN113971060A (zh) | 2022-01-25 |
| CN113971060B (zh) | 2023-10-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2023040443A1 (zh) | 用于绘制画布的方法和装置 | |
| WO2023040948A1 (zh) | 信息的处理方法、装置、终端和存储介质 | |
| CN111597467A (zh) | 展示方法、装置和电子设备 | |
| CN114817631A (zh) | 媒体内容的发布方法、装置、设备、存储介质和程序产品 | |
| CN115334027B (zh) | 信息处理方法、装置、电子设备和存储介质 | |
| WO2023124962A1 (zh) | 任务参与者的添加方法、装置、电子设备以及存储介质 | |
| CN114331331A (zh) | 信息处理方法、装置、电子设备和存储介质 | |
| US20230385080A1 (en) | Method and apparatus for presenting information on lock screen interface, terminal, and storage medium | |
| WO2025055917A1 (zh) | 话题界面的显示方法、装置、电子设备和存储介质 | |
| CN111596991A (zh) | 交互操作执行方法、装置和电子设备 | |
| CN118627481B (zh) | 表格处理方法、装置、终端和存储介质 | |
| JP2024509808A (ja) | ドキュメント作成方法、装置、デバイス及び記憶媒体 | |
| JP2025533416A (ja) | テーブルデータ処理方法、装置、電子機器、記憶媒体及びコンピュータプログラム | |
| CN111274503B (zh) | 数据处理的方法、装置、电子设备及计算机可读介质 | |
| CN107205031B (zh) | 信息提醒方法、装置和终端设备 | |
| CN110633126B (zh) | 信息显示方法、装置和电子设备 | |
| CN112035030A (zh) | 信息展示方法、装置和电子设备 | |
| CN111460211A (zh) | 音频信息播放方法、装置和电子设备 | |
| CN111459364A (zh) | 图标更新方法、装置和电子设备 | |
| CN111273830A (zh) | 显示数据方法、装置、电子设备和计算机可读介质 | |
| CN114697285A (zh) | 信息展示和信息发送方法、装置、设备、介质和产品 | |
| WO2022148485A1 (zh) | 信息展示方法、装置和电子设备 | |
| CN117234588A (zh) | 信息处理方法、装置、电子设备和存储介质 | |
| CN115145560B (zh) | 业务编排方法、装置、设备、计算机可读介质和程序产品 | |
| CN111399872A (zh) | 页面更新方法、装置和电子设备 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 21846692 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 020523) |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 21846692 Country of ref document: EP Kind code of ref document: A1 |
|
| WWG | Wipo information: grant in national office |
Ref document number: 18006333 Country of ref document: US |