CN105956145A - Method and system for carrying out mixed loading on different styles in lists - Google Patents
Method and system for carrying out mixed loading on different styles in lists Download PDFInfo
- Publication number
- CN105956145A CN105956145A CN201610315938.1A CN201610315938A CN105956145A CN 105956145 A CN105956145 A CN 105956145A CN 201610315938 A CN201610315938 A CN 201610315938A CN 105956145 A CN105956145 A CN 105956145A
- Authority
- CN
- China
- Prior art keywords
- data
- association
- view
- resolver
- pattern
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/248—Presentation of query results
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computational Linguistics (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a method and system for carrying out mixed loading on different styles in lists, and relates to the technical field of list style mixed loading in an android system. The method comprises the steps of establishing a data video association cache; compiling corresponding data types, data views and data view containers according to different styles; compiling a corresponding association analyzer for each style, adding the compiled association analyzers to the data view association cache one by one, and assigning that the subscripts are hash codes of the data types; taking out each piece of data one by one when all kinds of data are displayed in the lists, obtaining the corresponding association analyzer according to the data type hash code of the data each time after one piece of data is taken out, establishing the data views and data view containers in sequence by use of the association analyzers, and filling the data in the established view containers and displaying the data. According to the method and the system, the mixed loading is carried out on different styles of contents, moreover, the code quantity is greatly reduced, the development efficiency and operation efficiency are improved, and the mixed loading error rate is reduced.
Description
Technical field
The present invention relates to the mashed up loading technique of list style in Android system field, be specifically
The realization method and system of the different mashed up loadings of style content in a kind of list.
Background technology
All there is original list in the major applications program in Android system, original list can arrange
Show many data.As it is shown in figure 1, original list energy in the way of arranging from top to bottom
Show 7 data.
List is a kind of common controls, by List View, list adapter, Data View sum
Form according to view container.Wherein, List View is a kind of view container, and it is from list adapter
Middle acquisition data, insert data wherein after creating Data View, then aobvious for Data View arrangement
Showing in self, if Data View is too much, not exclusively, user can be sliding by touching in display
Dynamic operation slides up and down list, demonstrates more data view.List adapter is a kind of number
Group, the data that its stored list will show.Data View is a kind of view that developer writes,
For video data.Data View container is the control routine associated with List View, such as: row
In table adapter store be picture network address, then Data View should be picture view, list from
After reading picture network address in adapter, giving Data View container, Data View container accesses net
The binary data that network Loads Image, refills and shows into picture view decoding.
At present, the List View that Android system carries is commonly used to show the data of single pattern,
As shown in Figure 1.If but to show in same list complicated pattern blended data (as
Shown in Fig. 2), then need to realize following operation by writing the most extra code:
1, for each pattern correspondence one data type, as Fig. 2 has 3 kinds of different patterns:
" magic lantern ", " thumbnail " and " summary ", then need corresponding three kinds of data types;
2, for each data type correspondence one Data View;
3, for each Data View correspondence one Data View container;
4, because the storage sequence of different patterns is unknown in adapter, need to judge one by one
The type of each data;
5, because data type is unfixed, need to create correspondence according to different types of data
Data View;
6, because Data View is unfixed, it is right to need according to different Data View establishments
The Data View container answered;
7, because Data View container is unfixed, it is right that needs are packed into different data
The data capsule view answered.
In aforesaid operations, step 1 to step 3 is all must be real in all list load modes
Existing, written in code is easier to the most relatively.But step 4 is the most loaded down with trivial details to step 7, need circulation
Judge the operation more (as shown in Figure 3) of data type.When developer writes code voluntarily,
Owing to needing to use if/else or switch statement to judge one by one when judging data type, and need
The pattern of mashed up loading is the most, carry out data type judgement size of code will exponentially as increase.
This causes size of code the hugest undoubtedly, and compiling procedure is loaded down with trivial details, reduces development efficiency and operation
Efficiency;And owing to too much data type judges operation, when also add the mashed up loading of content
Probability of makeing mistakes.
Summary of the invention
The invention aims to overcome the deficiency of above-mentioned background technology, it is provided that in a kind of list
The realization method and system of the different mashed up loadings of style content, can mix realizing different style content
While taking loading, greatly simplify size of code, promote development efficiency and operational efficiency, reduce mixed
Take the error rate of loading.
For reaching object above, the present invention provides the different mashed up loadings of style content in a kind of list
Implementation method, comprise the following steps:
A, structure are for depositing the Data View association caching of various association resolver;
B, according to different patterns, write data type, Data View and the Data View of correspondence
Container;
C, for every kind of pattern write correspondence association resolver;The association resolver that will write
Add one by one to described Data View association caching, and be designated as it under specified associations resolver
The Hash codes of data type, the Hash codes of this data type has unique numeric in internal memory;
D, when list to show various data, from list adapter, take out every number one by one
According to;After often taking out a data, obtain correspondence according to the Hash codes of the data type of these data
Association resolver, utilization obtains associating resolver and creates Data View, Data View container successively,
And this data inserted in the Data View container of establishment and show.
On the basis of technique scheme, described association resolver is for pushing away according to data type
Derive Data View and the Data View container of association.
On the basis of technique scheme, described in step B, different patterns specifically include three
Kind pattern: " magic lantern " pattern, " thumbnail " pattern and " summary " pattern.
On the basis of technique scheme, described in step C, write correspondence for every kind of pattern
Association resolver, specifically include following operation:
When writing association resolver corresponding to " magic lantern " pattern, write for this association resolver
Following correlation rule: the data type of " magic lantern " pattern is that " character string ", Data View are for " scheming
Sheet view ", Data View container be " picture load vessel ", Data View container behavior be " from
Network loading data is to picture ";
When writing association resolver corresponding to " thumbnail " pattern, compile for this association resolver
Write following correlation rule: the data type of " thumbnail " pattern is Java pair that thumbnail is corresponding
As, Data View is that " compound picture, textual view ", Data View container are for " being combined and hold
Device ", Data View container behavior is " in taking out thumbnail pictures network address from Java object and allowing
The picture view in portion to local picture, takes out breviary from network loading data from Java object
Figure describes and inserts the text view of inside ";
When writing association resolver corresponding to " summary " pattern, write for this association resolver
Following correlation rule: the data type of " summary " pattern is the Java object that summary is corresponding, number
According to view be " compound picture, textual view ", Data View container be " clad vessel ", several
According to view container behavior be " from Java object take out summary picture network address and allow inside figure
Sheet view to local picture, takes out summary title also from network loading data from Java object
Insert the text view of inside ".
On the basis of technique scheme, step D specifically includes following operation: D1, sentences
Whether disconnected list adapter there are data to be shown, if so, proceed to step D2;Otherwise,
Terminate;D2, from list adapter, take out a data in turn;By calling system Java
Function hashcode (), it is thus achieved that the Hash codes of the data type of this data;According to described Hash
Code obtains the association resolver corresponding with this data from Data View association caching, proceeds to step
Rapid D3;The association resolver that D3, utilization obtain directly creates Data View, proceeds to step
D4;The association resolver that D4, utilization obtain directly creates Data View container, proceeds to step
D5;D5, the Data View utilizing the association resolver obtained that this data is inserted establishment hold
In device and show, return step D1.
The present invention also provides for the system that realizes of the different mashed up loadings of style content, bag in a kind of list
Include Data View association caching construction unit, data parameters writes unit, association resolver is write
Unit and the mashed up loading unit of content;Described Data View association caching construction unit is used for: structure
Building Data View association caching, this Data View association caching resolves for depositing different associations
Device;Described data parameters write unit for: according to different patterns, write the data class of correspondence
Type, Data View and Data View container;Described association resolver write unit for: for often
Plant pattern and write the association resolver of correspondence;The association resolver write is added one by one to institute
State in Data View association caching, and under specified associations resolver, be designated as the Kazakhstan of its data type
Uncommon code, the Hash codes of this data type has unique numeric in internal memory;Described content is mashed up to be added
Carrier unit is used for: when list to show various data, takes out every from list adapter one by one
Data;After often taking out a data, it is right to obtain according to the Hash codes of the data type of these data
The association resolver answered, utilization obtains associating resolver and creates Data View, Data View successively
Container, and this data inserted in the Data View container of establishment and show.
On the basis of technique scheme, the association that unit is write write by described association resolver
Resolver for deriving Data View and the Data View container of association according to data type.
On the basis of technique scheme, described data parameters writes unit according to three kinds of differences
Pattern: " magic lantern " pattern, " thumbnail " pattern and " summary " pattern, writes the number of correspondence
According to type, Data View and Data View container.
On the basis of technique scheme, unit write by described association resolver is every kind of pattern
The detailed process of the association resolver writing correspondence is as follows:
When writing association resolver corresponding to " magic lantern " pattern, unit write by association resolver
Following correlation rule is write: the data type of " magic lantern " pattern is " word for this association resolver
Symbol string ", Data View be " picture view ", Data View container be " picture load vessel ",
Data View container behavior is " from network loading data to picture ";
When writing association resolver corresponding to " thumbnail " pattern, list write by association resolver
Unit writes following correlation rule for this association resolver: the data type of " thumbnail " pattern is
The Java object that thumbnail is corresponding, Data View is " compound picture, textual view ", data
View container is " clad vessel ", and Data View container behavior is " to take out from Java object
Thumbnail pictures network address and allow the picture view of inside from network loading data to local picture, from
Java object is taken out thumbnail and describes and insert the text view of inside ";
When writing association resolver corresponding to " summary " pattern, unit write by association resolver
Following correlation rule is write: the data type of " summary " pattern is summary for this association resolver
Corresponding Java object, Data View is " compound picture, textual view ", Data View appearance
Device is " clad vessel ", and Data View container behavior is " to take out synoptic diagram from Java object
Sheet network address also allows internal picture view from network loading data to local picture, from Java pair
As middle taking-up summary title and insert inside text view ".
On the basis of technique scheme, the mashed up loading unit of described content includes that data judge
Subelement, association resolver select subelement, Data View to create subelement, Data View holds
Device creates subelement and data display subelement;
Described data judgment sub-unit is used for: when list to show various data or receive judgement
After signal, it is judged that whether list adapter has data to be shown, if having, resolve to association
Device selects subelement to send and selects signal;Otherwise, terminate;
Described association resolver selects subelement to be used for: after receiving selection signal, adaptive from list
Device takes out in turn a data;By calling system Java function hashcode (), it is thus achieved that should
The Hash codes of the data type of data;According to described Hash codes from Data View association caching
Obtain the association resolver corresponding with this data, create subelement to Data View and send data
View creates signal;
Described Data View creates subelement and is used for: after receiving Data View establishment signal, utilize
The association resolver that described association resolver selects subelement to obtain directly creates Data View, and
Create subelement to Data View container and send Data View container establishment signal;
Described Data View container creates subelement and is used for: receives Data View container and creates signal
After, utilize the association resolver obtained directly to create Data View container, and to data display
Unit sends display signal;
Described data display subelement is used for: after receiving display signal, utilize the association solution obtained
This data is inserted in the Data View container of establishment and shows by parser, judges that son is single to data
Unit sends and judges signal.
The beneficial effects of the present invention is:
In the present invention, the association resolver of correspondence, this pass are write for the different patterns in list
Connection resolver can go out Data View and the Data View appearance of association according to data type direct derivation
Device, and then realize quickly creating view, view container, and data is inserted the view of establishment
In container and the purpose that shows.Further, this association resolver adds to Data View association caching
Time, the Hash codes being designated as its data type under it can be specified, including the Hash codes of this data type
There is in depositing unique numeric;When list to show the data of various different pattern, can be according to every
The data type Hash codes of data quickly obtains the association resolver of correspondence, utilizes association to resolve
Device realizes the mashed up loaded and displayed of different style content in list.
Compared with prior art, the present invention, when showing the data of various different pattern, is directly led to
The Hash codes crossing the data type accessing data i.e. can be mapped to associate resolver accordingly, it is not necessary to
By if/else or switch statement, the type of every data is carried out one by one as prior art
Judging, speed is exceedingly fast;In addition association resolver is utilized to realize in list the mixed of different style content
Take loaded and displayed, size of code can be greatly simplified, promote development efficiency and operational efficiency, and then fall
Error rate during the mashed up loading of low different content.
Accompanying drawing explanation
Fig. 1 is the schematic diagram showing single pattern in list;
Fig. 2 is the schematic diagram showing mixed pattern in list;
Fig. 3 is the flow chart of existing list load mode;
Fig. 4 is the realization side of the different mashed up loadings of style content in list in the embodiment of the present invention
The flow chart of method;
Fig. 5 is the realization system of the different mashed up loadings of style content in list in the embodiment of the present invention
The structured flowchart of system.
Detailed description of the invention
Below in conjunction with the accompanying drawings and specific embodiment the present invention is described in further detail.
Shown in Figure 4, the embodiment of the present invention provides different style content in a kind of list mashed up
The implementation method loaded, comprises the following steps:
Step S1: build a Data View association caching, this Data View association caching is used
In depositing different association resolvers, proceed to step S2.
It is understood that association resolver is the abstract entities of a kind of similar flow chart, its energy
Enough various things are together in series, indicate a flow process clearly.For example, it is desired to from A (bag
Containing A0 to A9), B (comprising B0 to B9), C (comprising C0 to C9) three kinds different
In classification, obtain three things respectively;Because having 10 things under every kind, total
30 different things, cause selecting branch various.Now create an association resolver, rule
Determine result for (A0 → B1 → C2), then according to this resolver, A0, B1, C2 tri-
Things is interrelated, can derive other of association from any one things of A0, B1, C2
Two things.
For the present invention, data type is as A, Data View are such as B, Data View
Container behavior is such as C, and described association resolver can go out association with direct derivation according to data type
Data View and Data View container.
Step S2: according to different patterns, write the data type of correspondence, Data View sum
According to view container, i.e. write data type, Data View and the respective code of Data View container,
Proceed to step S3.In the embodiment of the present invention, the different patterns one carrying out mashed up loading have three
Kind: " magic lantern ", " thumbnail " and " summary ", every kind of pattern is required to correspondence and writes independent
Data View and Data View container.
Step S3: write the association resolver of correspondence for every kind of pattern, proceed to step S4.Real
During the operation of border, step S3 is write for every kind of pattern the concrete operations of the association resolver of correspondence
As follows:
When writing association resolver corresponding to " magic lantern " pattern, for this association resolver write with
Lower correlation rule: the data type of " magic lantern " pattern is that " character string ", Data View are for " scheming
Sheet view ", Data View container be " picture load vessel ", Data View container behavior be " from
Network loading data is to picture ";
When writing association resolver corresponding to " thumbnail " pattern, write for this association resolver
Following correlation rule: the data type of " thumbnail " pattern is the Java object that thumbnail is corresponding,
Data View be " compound picture, textual view ", Data View container be " clad vessel ",
Data View container behavior is " to take out thumbnail pictures network address from Java object and allow inside
Picture view to local picture from network loading data, is taken out thumbnail from Java object and is retouched
State and insert the text view of inside ";
When writing association resolver corresponding to " summary " pattern, for this association resolver write with
Lower correlation rule: the data type of " summary " pattern is the Java object that summary is corresponding, data
View be " compound picture, textual view ", Data View container be " clad vessel ", data
View container behavior be " from Java object take out summary picture network address and allow inside picture
View to local picture from network loading data, takes out summary title from Java object and fills out
Enter the text view of inside ".
Step S4: the association resolver write is added one by one to described Data View and associate
In caching, and under specified associations resolver, it is designated as the Hash codes of its data type, proceeds to step
S5.It is understood that the Hash codes of data type has unique numeric in internal memory,
Therefore, regardless of data content, as long as data type is identical, Hash codes is the most identical.Logical
Cross this Hash codes and can quickly judge data type.
Whether step S5: when list to show various data, first judge in list adapter
There are data to be shown, if so, proceed to step S6;Otherwise, terminate.
Step S6: take out a data from list adapter in turn;By calling system Java
Function hashcode (), it is thus achieved that the Hash codes of the data type of this data;Straight according to Hash codes
Connect and obtain the association resolver corresponding with this data from described Data View association caching, turn
Enter step S7.
Step S7: utilize the association resolver obtained directly to create Data View, i.e. create number
According to the entity object of view, now without doing any judgement about type again, proceed to step
S8.During concrete operations, it is assumed that the pattern of the data taken out from list adapter is " magic lantern ",
Then according to the association resolver of " magic lantern ", its Data View must be " picture view ", then
Directly create picture view.Other style types in like manner, do not repeat.
Step S8: utilize the association resolver obtained directly to create Data View container, i.e. create
Build the entity object of Data View container, now without doing any judgement about type again, turn
Enter step S9.During concrete operations, it is assumed that the pattern of the data taken out from list adapter is
" magic lantern ", then according to the association resolver of " magic lantern ", its Data View container is also set to " figure
Sheet load vessel ", the most directly create picture load vessel.Other style types in like manner,
Do not repeat.
Step S9: utilize the association resolver obtained the data that this data inserts establishment to be regarded
In figure container and show, now without doing any judgement about type again, return step S5,
Carry out the display of next data, until all data to be shown all show complete, terminate.
During concrete operations, it is assumed that the pattern of the data taken out from list adapter is " magic lantern ", then
Association resolver according to " magic lantern ", its Data View container behavior must be " to add from network
Carry data to picture ", then directly directly call according to the behavior.Other pattern classes
Type in like manner, does not repeats.
Shown in Figure 5, the embodiment of the present invention also provides for different style content in a kind of list and mixes
That takes loading realizes system, writes including Data View association caching construction unit, data parameters
Unit, association resolver write unit and the mashed up loading unit of content.
Wherein, described Data View association caching construction unit is used for: build Data View association
Caching, this Data View association caching is for depositing different association resolvers.
Described data parameters write unit for: according to different patterns, write the data class of correspondence
Type, Data View and Data View container.
Described association resolver write unit for: for every kind of pattern write correspondence association resolve
Device;The association resolver write is added one by one to described Data View association caching, and
The Hash codes of its data type it is designated as, the Hash codes of this data type under specified associations resolver
There is in internal memory unique numeric.
The mashed up loading unit of described content is used for: when list to show various data, from list
Adapter takes out every data one by one;After often taking out a data, according to the data of these data
The Hash codes of type obtains the association resolver of correspondence, and utilization obtains associating resolver and creates successively
Data View, Data View container, and this data is inserted in the Data View container of establishment
And show.
Further, shown in Figure 5, the mashed up loading unit of described content includes that data judge
Subelement, association resolver select subelement, Data View to create subelement, Data View holds
Device creates subelement and data display subelement.
Described data judgment sub-unit is used for: when list to show various data or receive judgement
After signal, it is judged that whether list adapter has data to be shown, if having, resolve to association
Device selects subelement to send and selects signal;Otherwise, terminate.
Described association resolver selects subelement to be used for: after receiving selection signal, adaptive from list
Device takes out in turn a data;By calling system Java function hashcode (), it is thus achieved that should
The Hash codes of the data type of data;According to described Hash codes from Data View association caching
Obtain the association resolver corresponding with this data, create subelement to Data View and send data
View creates signal.
Described Data View creates subelement and is used for: after receiving Data View establishment signal, utilize
The association resolver that described association resolver selects subelement to obtain directly creates Data View, and
Create subelement to Data View container and send Data View container establishment signal.
Described Data View container creates subelement and is used for: receives Data View container and creates signal
After, utilize the association resolver obtained directly to create Data View container, and to data display
Unit sends display signal.
Described data display subelement is used for: after receiving display signal, utilize the association solution obtained
This data is inserted in the Data View container of establishment and shows by parser, judges that son is single to data
Unit sends and judges signal.
It should be understood that the different mashed up loadings of style content in the list of above-described embodiment offer
The system that realizes carry out mashed up load time, only illustrate with the division of above-mentioned each functional module
Illustrate, in actual application, can as desired above-mentioned functions be distributed by different function moulds
Block completes, and the internal structure of system will be divided into different functional modules, to complete above retouching
The all or part of function stated.
The present invention is not limited to above-mentioned embodiment, for those skilled in the art
For, under the premise without departing from the principles of the invention, it is also possible to make some improvements and modifications,
Within these improvements and modifications are also considered as protection scope of the present invention.This specification is not made in detail
The content described belongs to prior art known to professional and technical personnel in the field.
Claims (10)
1. the implementation method of the different mashed up loadings of style content in a list, it is characterised in that
Comprise the following steps:
A, structure are for depositing the Data View association caching of various association resolver;
B, according to different patterns, write data type, Data View and the Data View of correspondence
Container;
C, for every kind of pattern write correspondence association resolver;The association resolver that will write
Add one by one to described Data View association caching, and be designated as it under specified associations resolver
The Hash codes of data type, the Hash codes of this data type has unique numeric in internal memory;
D, when list to show various data, from list adapter, take out every number one by one
According to;After often taking out a data, obtain correspondence according to the Hash codes of the data type of these data
Association resolver, utilization obtains associating resolver and creates Data View, Data View container successively,
And this data inserted in the Data View container of establishment and show.
2. the realization side of the different mashed up loadings of style content in list as claimed in claim 1
Method, it is characterised in that: described association resolver for deriving the number of association according to data type
According to view and Data View container.
3. the realization side of the different mashed up loadings of style content in list as claimed in claim 1
Method, it is characterised in that: different patterns described in step B specifically include three kinds of patterns: " magic lantern "
Pattern, " thumbnail " pattern and " summary " pattern.
4. the realization side of the different mashed up loadings of style content in list as claimed in claim 3
Method, it is characterised in that: the association resolver of correspondence is write described in step C for every kind of pattern,
Specifically include following operation:
When writing association resolver corresponding to " magic lantern " pattern, write for this association resolver
Following correlation rule: the data type of " magic lantern " pattern is that " character string ", Data View are for " scheming
Sheet view ", Data View container be " picture load vessel ", Data View container behavior be " from
Network loading data is to picture ";
When writing association resolver corresponding to " thumbnail " pattern, compile for this association resolver
Write following correlation rule: the data type of " thumbnail " pattern is Java pair that thumbnail is corresponding
As, Data View is that " compound picture, textual view ", Data View container are for " being combined and hold
Device ", Data View container behavior is " in taking out thumbnail pictures network address from Java object and allowing
The picture view in portion to local picture, takes out breviary from network loading data from Java object
Figure describes and inserts the text view of inside ";
When writing association resolver corresponding to " summary " pattern, write for this association resolver
Following correlation rule: the data type of " summary " pattern is the Java object that summary is corresponding, number
According to view be " compound picture, textual view ", Data View container be " clad vessel ", several
According to view container behavior be " from Java object take out summary picture network address and allow inside figure
Sheet view to local picture, takes out summary title also from network loading data from Java object
Insert the text view of inside ".
5. the realization side of the different mashed up loadings of style content in list as claimed in claim 1
Method, it is characterised in that step D specifically includes following operation:
D1, judge whether list adapter has data to be shown, if so, proceed to step
D2;Otherwise, terminate;
D2, from list adapter, take out a data in turn;By calling system Java letter
Number hashcode (), it is thus achieved that the Hash codes of the data type of this data;According to described Hash codes
From Data View association caching, obtain the association resolver corresponding with this data, proceed to step
D3;
The association resolver that D3, utilization obtain directly creates Data View, proceeds to step D4;
The association resolver that D4, utilization obtain directly creates Data View container, proceeds to step
D5;
D5, the Data View utilizing the association resolver obtained that this data is inserted establishment hold
In device and show, return step D1.
6. in a list the different mashed up loadings of style content realize system, it is characterised in that:
This system includes Data View association caching construction unit, data parameters writes unit, association solves
Parser writes unit and the mashed up loading unit of content;
Described Data View association caching construction unit is used for: build Data View association caching,
This Data View association caching is for depositing different association resolvers;
Described data parameters write unit for: according to different patterns, write the data class of correspondence
Type, Data View and Data View container;
Described association resolver write unit for: for every kind of pattern write correspondence association resolve
Device;The association resolver write is added one by one to described Data View association caching, and
The Hash codes of its data type it is designated as, the Hash codes of this data type under specified associations resolver
There is in internal memory unique numeric;
The mashed up loading unit of described content is used for: when list to show various data, from list
Adapter takes out every data one by one;After often taking out a data, according to the data of these data
The Hash codes of type obtains the association resolver of correspondence, and utilization obtains associating resolver and creates successively
Data View, Data View container, and these data are inserted in the Data View container of establishment also
Display.
7. the realization system of the different mashed up loadings of style content in list as claimed in claim 6
System, it is characterised in that: described association resolver for deriving the number of association according to data type
According to view and Data View container.
8. the realization system of the different mashed up loadings of style content in list as claimed in claim 6
System, it is characterised in that: described data parameters writes unit according to three kinds of different patterns: " magic lantern "
Pattern, " thumbnail " pattern and " summary " pattern, write the data type of correspondence, data
View and Data View container.
9. the realization system of the different mashed up loadings of style content in list as claimed in claim 8
System, it is characterised in that: unit write by described association resolver is the pass that every kind of pattern writes correspondence
The detailed process of connection resolver is as follows:
When writing association resolver corresponding to " magic lantern " pattern, write for this association resolver
Following correlation rule: the data type of " magic lantern " pattern is that " character string ", Data View are for " scheming
Sheet view ", Data View container be " picture load vessel ", Data View container behavior be " from
Network loading data is to picture ";
When writing association resolver corresponding to " thumbnail " pattern, compile for this association resolver
Write following correlation rule: the data type of " thumbnail " pattern is Java pair that thumbnail is corresponding
As, Data View is that " compound picture, textual view ", Data View container are for " being combined and hold
Device ", Data View container behavior is " in taking out thumbnail pictures network address from Java object and allowing
The picture view in portion to local picture, takes out breviary from network loading data from Java object
Figure describes and inserts the text view of inside ";
When writing association resolver corresponding to " summary " pattern, write for this association resolver
Following correlation rule: the data type of " summary " pattern is the Java object that summary is corresponding, number
According to view be " compound picture, textual view ", Data View container be " clad vessel ", several
According to view container behavior be " from Java object take out summary picture network address and allow inside figure
Sheet view to local picture, takes out summary title also from network loading data from Java object
Insert the text view of inside ".
10. the realization system of the different mashed up loadings of style content in list as claimed in claim 6
System, it is characterised in that: the mashed up loading unit of described content includes data judgment sub-unit, association
Resolver selects subelement, Data View to create subelement, Data View container creates subelement
Subelement is shown with data;
Described data judgment sub-unit is used for: when list to show various data or receive judgement
After signal, it is judged that whether list adapter has data to be shown, if having, resolve to association
Device selects subelement to send and selects signal;Otherwise, terminate;
Described association resolver selects subelement to be used for: after receiving selection signal, adaptive from list
Device takes out in turn a data;By calling system Java function hashcode (), it is thus achieved that should
The Hash codes of the data type of data;According to described Hash codes from Data View association caching
Obtain the association resolver corresponding with this data, create subelement to Data View and send data
View creates signal;
Described Data View creates subelement and is used for: after receiving Data View establishment signal, utilize
The association resolver that described association resolver selects subelement to obtain directly creates Data View, and
Create subelement to Data View container and send Data View container establishment signal;
Described Data View container creates subelement and is used for: receives Data View container and creates signal
After, utilize the association resolver obtained directly to create Data View container, and to data display
Unit sends display signal;
Described data display subelement is used for: after receiving display signal, utilize the association solution obtained
This data is inserted in the Data View container of establishment and shows by parser, judges that son is single to data
Unit sends and judges signal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610315938.1A CN105956145B (en) | 2016-05-12 | 2016-05-12 | The realization method and system of the mashed up load of different style contents in a kind of list |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610315938.1A CN105956145B (en) | 2016-05-12 | 2016-05-12 | The realization method and system of the mashed up load of different style contents in a kind of list |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105956145A true CN105956145A (en) | 2016-09-21 |
CN105956145B CN105956145B (en) | 2019-05-17 |
Family
ID=56912801
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610315938.1A Active CN105956145B (en) | 2016-05-12 | 2016-05-12 | The realization method and system of the mashed up load of different style contents in a kind of list |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105956145B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109190068A (en) * | 2018-07-12 | 2019-01-11 | 北京猫眼文化传媒有限公司 | A kind of data processing method and device |
CN109240792A (en) * | 2018-09-27 | 2019-01-18 | 武汉华中时讯科技有限责任公司 | Device, method and the storage medium of data are shown using composite data type |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101377806A (en) * | 2008-07-24 | 2009-03-04 | 江苏大学 | Information flow analysis method based on system source code searching concealed channel |
CN101452486A (en) * | 2008-12-31 | 2009-06-10 | 中国建设银行股份有限公司 | System data management method for [inscriptions on bones or tortoise shells and apparatus thereof |
CN101611399A (en) * | 2007-02-16 | 2009-12-23 | 罗凡 | Webpage, website modeling and generation |
CN101861580A (en) * | 2007-09-28 | 2010-10-13 | 埃克斯里昂股份公司 | Network operating system |
CN102915319A (en) * | 2011-03-28 | 2013-02-06 | 微软公司 | Techniques for electronic aggregation of information |
CN103607414A (en) * | 2013-12-05 | 2014-02-26 | 用友软件股份有限公司 | Mobile forepart service display system and mobile forepart service display method |
US20150112990A1 (en) * | 2013-10-18 | 2015-04-23 | Apple Inc. | Cross Application Framework for Aggregating Data Relating to People, Locations, and Entities |
US20150120766A1 (en) * | 2013-10-30 | 2015-04-30 | Twofold Ip Pty Ltd | Method and Apparatus for Delivering Search Results |
CN104704489A (en) * | 2012-08-16 | 2015-06-10 | 高通股份有限公司 | Predicting the usage of document resources |
-
2016
- 2016-05-12 CN CN201610315938.1A patent/CN105956145B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101611399A (en) * | 2007-02-16 | 2009-12-23 | 罗凡 | Webpage, website modeling and generation |
CN101861580A (en) * | 2007-09-28 | 2010-10-13 | 埃克斯里昂股份公司 | Network operating system |
CN101377806A (en) * | 2008-07-24 | 2009-03-04 | 江苏大学 | Information flow analysis method based on system source code searching concealed channel |
CN101452486A (en) * | 2008-12-31 | 2009-06-10 | 中国建设银行股份有限公司 | System data management method for [inscriptions on bones or tortoise shells and apparatus thereof |
CN102915319A (en) * | 2011-03-28 | 2013-02-06 | 微软公司 | Techniques for electronic aggregation of information |
CN104704489A (en) * | 2012-08-16 | 2015-06-10 | 高通股份有限公司 | Predicting the usage of document resources |
US20150112990A1 (en) * | 2013-10-18 | 2015-04-23 | Apple Inc. | Cross Application Framework for Aggregating Data Relating to People, Locations, and Entities |
US20150120766A1 (en) * | 2013-10-30 | 2015-04-30 | Twofold Ip Pty Ltd | Method and Apparatus for Delivering Search Results |
CN103607414A (en) * | 2013-12-05 | 2014-02-26 | 用友软件股份有限公司 | Mobile forepart service display system and mobile forepart service display method |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109190068A (en) * | 2018-07-12 | 2019-01-11 | 北京猫眼文化传媒有限公司 | A kind of data processing method and device |
CN109240792A (en) * | 2018-09-27 | 2019-01-18 | 武汉华中时讯科技有限责任公司 | Device, method and the storage medium of data are shown using composite data type |
Also Published As
Publication number | Publication date |
---|---|
CN105956145B (en) | 2019-05-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106598591B (en) | Webpage dynamic menu generation method and device | |
US6763498B2 (en) | Graphical environment for managing and developing applications | |
CN105760534B (en) | Data structure, hadoop cluster, server and its application method of customized serializability | |
CN104850498B (en) | A kind of filling information method of testing and system | |
US20020039101A1 (en) | Binary cache file format for themeing the visual appearance of a computer system | |
CN107918666A (en) | Method of data synchronization and system on a kind of block chain | |
CN106155755A (en) | Program compiling method and compiler | |
CN102915242A (en) | Method for implementing code programming by graphical operations | |
US8139872B2 (en) | Splitting file types within partitioned images | |
CN106648569A (en) | Target serialization achieving method and device | |
CN105956145A (en) | Method and system for carrying out mixed loading on different styles in lists | |
CN104463296A (en) | Two-dimension code structured information generation, obtaining and processing method and system | |
CN111221530A (en) | Mobile terminal Web application interface construction method, Web application interface and operation method thereof | |
CN109918299A (en) | A kind of method of comparison database architectural difference | |
CN104898991B (en) | A kind of register access methods and system based on automation RAL | |
CN112394928B (en) | Method for constructing multilevel menu in embedded system and computer storage medium | |
CN101719059A (en) | Method for manipulating objects in a soa registry | |
CN101814064B (en) | Report template creating method, report generating method and report system | |
CN116483240A (en) | Method and device for realizing space data occupying view based on list and electronic equipment | |
Martinez | React: cross-platform application development with React Native: build 4 real-world apps with React Native | |
CN115237395A (en) | Automatic WEB program code generation algorithm system | |
CN102801936A (en) | Method for realizing on screen display | |
CN101661743A (en) | Device and method for carrying out mixed display | |
CN106844192A (en) | A kind of detection method of program's source code, device and electronic equipment | |
CN112966457A (en) | Graphical cloud development platform |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |