An Android view access method and device
An access method and Android technology, applied in the computer field, can solve problems such as the limited number of Android views, and achieve the effect of simple structure and fast access speed
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0054] Embodiment 1 of the present invention provides an Android view access method, please refer to figure 1 , the method includes:
[0055] S101. Construct a storage base type of an Android view set based on a two-dimensional HashMap, wherein the two-dimensional HashMap uses a two-dimensional array as a basic structure of data storage, and the Android view set is used to store Android views to be processed.
[0056] Specifically, HashMap is an important member of the Java Collection Framework (Java Collection Framework), and is also the most commonly used framework in the Map family. Simply put, HashMap is an implementation of the Map interface based on a hash table, and the stored object contains both the key Key and the value Value. In HashMap, the storage locations of keys and values are calculated according to the hash algorithm and quickly accessed. Two important parameters that affect the performance of HashMap include: initial capacity and load factor. The capaci...
Embodiment 2
[0092] Embodiment 2 of the present invention provides an Android view access device, please refer to figure 2 , the device includes:
[0093] The construction unit 201 is used to construct the storage base type of the Android view set based on the two-dimensional HashMap, wherein the two-dimensional HashMap adopts a two-dimensional array as the basic structure of data storage, and the Android view set is used to store the Android view to be processed;
[0094] The obtaining unit 202 is used to obtain the expected value of each Android view to be processed, and the expected value is used to predict the extent to which the Android view is expected to be queried;
[0095] The storage unit 203 is configured to sequentially store the Android views to be processed into the Android view set in order of the expected value from high to low;
[0096] The search unit 204 is configured to search for the target Android view in the Android view set by using a sequential search method when...
Embodiment 3
[0102] Based on the same inventive concept, this embodiment provides a computer device 300, such as image 3 As shown, it includes a memory 310, a processor 320, and a computer program 311 stored on the memory 310 and operable on the processor 320. When the processor 320 executes the computer program 311, all the steps of the first embodiment above can be realized. Therefore, in This will not be repeated here.
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