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

Active Publication Date: 2021-01-01
WUHAN DOUYU NETWORK TECH CO LTD
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The present invention provides an Android view access method and device. By improving the storage structure of the Android view set, the problem of the limited number of Android views stored in the Android view set is solved, and the application scenarios of the Android view set are expanded.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • An Android view access method and device
  • An Android view access method and device
  • An Android view access method and device

Examples

Experimental program
Comparison scheme
Effect test

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.

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides an access method and device for an Android view. The method comprises the following steps: a storage base type of an Android view set is constructed based on a two-dimensional HashMap, wherein, the two-dimensional HashMap adopts a two-dimensional array as a basic structure of data storage; the Android view set is used for storing an Android view to be processed; Obtaining anexpected value for each of the Android views to be processed, the expected value being used to predict the degree to which the Android view is expected to be queried; Storing the Android view to be processed into the Android view set in order from high to low according to the expected value; When an instruction to query a target Android view is received, a sequential lookup method is used to search the target Android view in the Android view set. By improving the storage structure of Android Viewset, the problem of limited number of Android views stored in Android Viewset is solved, and the application scenario of Android Viewset is expanded.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to an Android view access method and device. Background technique [0002] In the Android system, the Android view view is a superclass, which is the basic component unit for the visualization of the application layer interface of the Android system. The Android view set (LinearViewSet, LVS) can be used to store Android views with similar height, width and content, and the layout direction can be horizontal or vertical. And because the Android view set does not have a resource recovery and reuse mechanism, it is very practical in some scenarios where the height and width of the view need to be changed dynamically. [0003] However, since the number of Android views stored in the Android view set is limited, generally less than 12, the application scenarios of the Android view set are greatly limited. Contents of the invention [0004] The present invention provides an Android ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06F16/22G06F16/24G06F9/451
CPCG06F9/451
Inventor 尹成
Owner WUHAN DOUYU NETWORK TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products