Adaptation method and device for list item view in Android system, equipment and medium
A list item and view technology, applied in the computer field, can solve problems such as low adaptation efficiency and code redundancy, and achieve the effect of improving adaptation efficiency and reducing code redundancy
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0022] figure 1 It is a schematic flowchart of a method for adapting a list item view in an Android system provided by Embodiment 1 of the present invention. The method for adapting the list item view in the Android system disclosed in this embodiment is applicable to the case of adapting multiple list item views. The method for adapting the list item view in the Android system disclosed in this embodiment can be executed by an electronic device, and specifically can be implemented by software and / or hardware in the electronic device.
[0023] see figure 1 As shown, the adaptation method of the list item view in the Android system includes the following steps:
[0024] S110. In response to the adaptation instruction, acquire the number of items of the list item view to be adapted based on the predefined adapter, and obtain the item type of each item in the list item view cyclically until the number of times of acquisition reaches the number of items.
[0025] In the Android...
Embodiment 2
[0084] figure 2 It is a schematic structural diagram of a device for adapting a list item view in an Android system provided by Embodiment 2 of the present invention. see figure 2 As shown, the adaptation devices for the list item view in the Android system include:
[0085] The item type obtaining module 210 is configured to obtain the number of items of the list item view to be adapted based on the predefined adapter in response to the adaptation instruction, and obtain the item type of each item in the list item view in a loop until the number of times of acquisition reaches the number of items ;
[0086] The view container object acquisition module 220 is used to call the view container acquisition method of the view container management class corresponding to the currently acquired item type based on the view container creation method of the predefined adapter in the process of cyclically acquiring the item type of each item, A view container object can be de...
Embodiment 3
[0102] image 3 It is a schematic structural diagram of an electronic device provided in Embodiment 3 of the present invention. image 3 A block diagram of an exemplary electronic device 12 suitable for implementing any of the embodiments of the invention is shown. image 3 The electronic device 12 shown is only an example, and should not limit the functions and scope of use of the embodiments of the present invention. The device 12 is typically an electronic device that undertakes the adaptation of the list item view in the Android system.
[0103] Such as image 3 As shown, electronic device 12 takes the form of a general-purpose computing device. Components of electronic device 12 may include, but are not limited to: one or more processors or processing units 16, memory 28, bus 18 connecting the various components including memory 28 and processing unit 16.
[0104] Bus 18 represents one or more of several types of bus structures, including a memory bus or mem...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com