CN109977164A - A kind of mobile terminal list development approach based on data-driven - Google Patents
A kind of mobile terminal list development approach based on data-driven Download PDFInfo
- Publication number
- CN109977164A CN109977164A CN201910257864.4A CN201910257864A CN109977164A CN 109977164 A CN109977164 A CN 109977164A CN 201910257864 A CN201910257864 A CN 201910257864A CN 109977164 A CN109977164 A CN 109977164A
- Authority
- CN
- China
- Prior art keywords
- data
- section
- list
- mobile terminal
- development approach
- 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.)
- Pending
Links
- 238000011161 development Methods 0.000 title claims abstract description 27
- 238000013459 approach Methods 0.000 title claims abstract description 22
- 238000013499 data model Methods 0.000 claims abstract description 6
- 238000000034 method Methods 0.000 claims description 11
- 238000012545 processing Methods 0.000 claims description 7
- 238000004891 communication Methods 0.000 claims description 5
- 230000000694 effects Effects 0.000 claims description 5
- 238000013523 data management Methods 0.000 abstract description 4
- 230000004069 differentiation Effects 0.000 abstract description 4
- 238000009877 rendering Methods 0.000 abstract description 4
- 230000000007 visual effect Effects 0.000 abstract description 4
- 238000005516 engineering process Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 238000013507 mapping Methods 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
Landscapes
- Telephonic Communication Services (AREA)
- Information Transfer Between Computers (AREA)
- Telephone Function (AREA)
Abstract
The mobile terminal list development approach based on data-driven that the invention discloses a kind of, comprising: collection merging is carried out by the table data returned to server and forms at least one array Array;Array Array is divided at least one Section for being used to show same type data;Section is divided at least one Item for being used for display data model;The Item data in Section are managed collectively using handling implement class.After the present invention is by unziping it the data that data-interface returns, arrangement and completeness check are carried out to data, the differentiation for row-column list type of going forward side by side, different Section assemblings is carried out by different list types, and each Section includes the data line Item of list, it reuses unified TableViewManager and carries out table data management, it is final to carry out the visual UI rendering displaying of user, to be different from traditional list development approach, accomplish the quick exploitation that list interface is carried out with data.
Description
Technical field
The present invention relates to mobile Internet cell phone client App technology more particularly to a kind of movements based on data-driven
Hold list development approach.
Background technique
In mobile phone A pp, list is a kind of very common interface type, most of interface in App commonly used by us
It is to be made of list, is using conventional cell phone system API mostly for the development approach of list in traditional App development field
It realizes, needs to develop each page using the form of the DataSource and Delegate of list, for
The drawbacks of this mode, that there is some size of code is larger, heavy workload, therefore it is unfavorable for engineering and marquee account end App
Development and implementation.
Summary of the invention
The mobile terminal list development approach based on data-driven that the purpose of the present invention is to provide a kind of, to solve mobile terminal
Drawback in list development process.
The present invention using following technical scheme in order to solve the above technical problems, realized:
The present invention provides a kind of mobile terminal list development approach based on data-driven, comprising:
Collection merging, which is carried out, by the table data returned to server forms at least one array Array;
Array Array is divided at least one Section for being used to show same type data;
Section is divided at least one Item for being used for display data model;
The Item data in Section are managed collectively using handling implement class.
Preferably, the table data of the return is by the compressed data of compress technique or to use communications protocol lattice
Data after formula.
Preferably, the data support all kinds of universal class formats.
Preferably, the same type data include picture, voice, text, advertisement and screen.
Preferably, the handling implement class is TableViewManager.
Preferably, the processing includes showing that operation, paging activity, agency realize operation, receive distribution operation and place
Reason user click, slide on the screen, touch operation.
By gathering the table data that server data interface returns, the data of return be can be through gzip etc.
Mainstream technology carries out compressed data, is also possible to using the formatted data of the communications protocol such as HTTP, TCP, data lattice
Formula type supports the universal class such as JSON, XML.After unziping it above-mentioned data, data arrange and integrality school
It tests, the differentiation for row-column list type of going forward side by side, different Section is carried out by different list types and is assembled, and each
Section includes the data line Item of list, reuses unified TableViewManager and carries out table data management, most
User's visual UI rendering is carried out eventually to show, to be different from traditional list development approach, accomplishes to be arranged with data
The quick exploitation of surface and interface.
Data that treated are the data being shown for App to list information, are existed comprising at least one array Array
Interior data information;Data in array Array indicate the Item data for showing to user, and for same type of
Item is merged using Section.Same type refers to that needing the data shown to user is same class data, such as opens up
Show the advertising pictures for the image content, server push that user issued, same type of table data can be placed on same
In Section.
Array Array and Section are the data shown for needs for one-to-one correspondence or one-to-many relationship
Item then carries the data model for specifically needing to show user in array Array, and Item will be stored in the form of data
In Section, Section then finally store it is in need to user show specific data.
Use TableViewManager as handling implement class, tool-class is used for the list row data in Section
Unified management is carried out, is shown data in TableView list by the Item data in processing Section, including
Show that operation, paging activity, agency realize that operation, reception distribution operation and processing user click on the screen, slide, touch
Operation.
Manager is found after being shown to corresponding Item using the form of mapping during carrying out data displaying
Corresponding Cell, while corresponding Cell is returned to the related proxy method of tableview, to realize in Manager
The displaying process at interface, different item correspond to different cell, can carry out to different user's operations in cell different anti-
Feedback executes, then carries out related distribution by manager, to constitute complete list development process.
The beneficial effects of the present invention are: the present invention provides a kind of mobile terminal list development approach based on data-driven,
After unziping it to the data that data-interface returns, arrangement and completeness check, row-column list class of going forward side by side are carried out to data
The differentiation of type carries out different Section by different list types and assembles, and each Section includes the one of list
Row data Item reuses unified TableViewManager and carries out table data management, and final progress user is visual
UI rendering is shown, to be different from traditional list development approach, accomplishes the quick exploitation that list interface is carried out with data.
Detailed description of the invention
Fig. 1 is list development approach flow chart in mobile terminal of the invention.
Fig. 2 is list development approach entity relationship diagram in mobile terminal of the invention.
Fig. 3 is list development approach architecture diagram in mobile terminal of the invention.
Specific embodiment
In order to be easy to understand the technical means, the creative features, the aims and the efficiencies achieved by the present invention, tie below
Specific embodiment is closed, the present invention is further explained, and however, the following embodiments are merely preferred embodiments of the present invention, and not all.
Based on the implementation example in the implementation mode, those skilled in the art's obtained other realities without making creative work
Example is applied, protection scope of the present invention is belonged to.
As shown in Figure 1-3, a kind of mobile terminal list development approach based on data-driven, comprising:
Collection merging, which is carried out, by the table data returned to server forms at least one array Array;
Array Array is divided at least one Section for being used to show same type data;
Section is divided at least one Item for being used for display data model;
The Item data in Section are managed collectively using handling implement class.
Preferably, the table data of the return is by the compressed data of compress technique or to use communications protocol lattice
Data after formula.
Preferably, the data support all kinds of universal class formats.
Preferably, the same type data include picture, voice, text, advertisement and screen.
Preferably, the handling implement class is TableViewManager.
Preferably, the processing includes showing that operation, paging activity, agency realize operation, receive distribution operation and place
Reason user click, slide on the screen, touch operation.
By gathering the table data that server data interface returns, the data of return be can be through gzip etc.
Mainstream technology carries out compressed data, is also possible to using the formatted data of the communications protocol such as HTTP, TCP, data lattice
Formula type supports the universal class such as JSON, XML.After unziping it above-mentioned data, data arrange and integrality school
It tests, the differentiation for row-column list type of going forward side by side, different Section is carried out by different list types and is assembled, and each
Section includes the data line Item of list, reuses unified TableViewManager and carries out table data management, most
User's visual UI rendering is carried out eventually to show, to be different from traditional list development approach, accomplishes to be arranged with data
The quick exploitation of surface and interface.
Data that treated are the data being shown for App to list information, are existed comprising at least one array Array
Interior data information;Data in array Array indicate the Item data for showing to user, and for same type of
Item is merged using Section.Same type refers to that needing the data shown to user is same class data, such as opens up
Show the advertising pictures for the image content, server push that user issued, same type of table data can be placed on same
In Section.
Array Array and Section are the data shown for needs for one-to-one correspondence or one-to-many relationship
Item then carries the data model for specifically needing to show user in array Array, and Item will be stored in the form of data
In Section, Section then finally store it is in need to user show specific data.
Use TableViewManager as handling implement class, tool-class is used for the list row data in Section
Unified management is carried out, is shown data in TableView list by the Item data in processing Section, including
Show that operation, paging activity, agency realize that operation, reception distribution operation and processing user click on the screen, slide, touch
Operation.
Manager is found after being shown to corresponding Item using the form of mapping during carrying out data displaying
Corresponding Cell, while corresponding Cell is returned to the related proxy method of tableview, to realize in Manager
The displaying process at interface, different item correspond to different cell, can carry out to different user's operations in cell different anti-
Feedback executes, then carries out related distribution by manager, to constitute complete list development process.
It is obvious to a person skilled in the art that invention is not limited to the details of the above exemplary embodiments, Er Qie
In the case where without departing substantially from spirit or essential attributes of the invention, the present invention can be realized in other specific forms.Therefore, no matter
From the point of view of which point, the present embodiments are to be considered as illustrative and not restrictive, and the scope of the present invention is by appended power
Benefit requires rather than above description limits, it is intended that all by what is fallen within the meaning and scope of the equivalent elements of the claims
Variation is included within the present invention.Any reference signs in the claims should not be construed as limiting the involved claims.
In addition, it should be understood that although this specification is described in terms of embodiments, but not each embodiment is only wrapped
Containing an independent technical solution, this description of the specification is merely for the sake of clarity, and those skilled in the art should
It considers the specification as a whole, the technical solutions in the various embodiments may also be suitably combined, forms those skilled in the art
The other embodiments being understood that.
Claims (6)
1. a kind of mobile terminal list development approach based on data-driven characterized by comprising
Collection merging, which is carried out, by the table data returned to server forms at least one array Array;
Array Array is divided at least one Section for being used to show same type data;
Section is divided at least one Item for being used for display data model;
The Item data in Section are managed collectively using handling implement class.
2. a kind of mobile terminal list development approach based on data-driven according to claim 1, which is characterized in that described
The table data of return is by the compressed data of compress technique or to use the formatted data of communications protocol.
3. a kind of mobile terminal list development approach based on data-driven according to claim 2, which is characterized in that described
Data support all kinds of universal class formats.
4. a kind of mobile terminal list development approach based on data-driven according to claim 1, which is characterized in that described
Same type data include picture, voice, text, advertisement and screen.
5. a kind of mobile terminal list development approach based on data-driven according to claim 1, which is characterized in that described
Handling implement class is TableViewManager.
6. a kind of mobile terminal list development approach based on data-driven according to claim 5, which is characterized in that described
Processing include show operation, paging activity, agency realize operation, receive distribution operation and handle user click on the screen,
Sliding, touch operation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910257864.4A CN109977164A (en) | 2019-04-01 | 2019-04-01 | A kind of mobile terminal list development approach based on data-driven |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910257864.4A CN109977164A (en) | 2019-04-01 | 2019-04-01 | A kind of mobile terminal list development approach based on data-driven |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109977164A true CN109977164A (en) | 2019-07-05 |
Family
ID=67082230
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910257864.4A Pending CN109977164A (en) | 2019-04-01 | 2019-04-01 | A kind of mobile terminal list development approach based on data-driven |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109977164A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113778401A (en) * | 2021-01-05 | 2021-12-10 | 北京沃东天骏信息技术有限公司 | Page generation method and device |
CN114356334A (en) * | 2022-01-20 | 2022-04-15 | 山东捷瑞数字科技股份有限公司 | TableView-based mobile terminal dynamic form generation method and device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107066178A (en) * | 2017-01-23 | 2017-08-18 | 山东浪潮商用系统有限公司 | It is a kind of to realize the method that mobile phone A PP list animations show |
CN107168702A (en) * | 2017-05-10 | 2017-09-15 | 苏州奇松软件有限公司 | A kind of App, small routine and web interface definition and code generating method |
CN107656729A (en) * | 2017-08-31 | 2018-02-02 | 上海壹账通金融科技有限公司 | Updating device, method and the computer-readable recording medium of List View |
CN108038212A (en) * | 2017-12-20 | 2018-05-15 | 江苏国泰新点软件有限公司 | A kind of data interactive method, device, system, equipment and storage medium |
CN108154569A (en) * | 2017-12-27 | 2018-06-12 | 广州奥格智能科技有限公司 | A kind of inspection acquisition method based on object modelization configuration |
CN109471689A (en) * | 2018-09-30 | 2019-03-15 | 广州虎牙信息科技有限公司 | Interface display driving method, device, electronic equipment and storage medium |
-
2019
- 2019-04-01 CN CN201910257864.4A patent/CN109977164A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107066178A (en) * | 2017-01-23 | 2017-08-18 | 山东浪潮商用系统有限公司 | It is a kind of to realize the method that mobile phone A PP list animations show |
CN107168702A (en) * | 2017-05-10 | 2017-09-15 | 苏州奇松软件有限公司 | A kind of App, small routine and web interface definition and code generating method |
CN107656729A (en) * | 2017-08-31 | 2018-02-02 | 上海壹账通金融科技有限公司 | Updating device, method and the computer-readable recording medium of List View |
CN108038212A (en) * | 2017-12-20 | 2018-05-15 | 江苏国泰新点软件有限公司 | A kind of data interactive method, device, system, equipment and storage medium |
CN108154569A (en) * | 2017-12-27 | 2018-06-12 | 广州奥格智能科技有限公司 | A kind of inspection acquisition method based on object modelization configuration |
CN109471689A (en) * | 2018-09-30 | 2019-03-15 | 广州虎牙信息科技有限公司 | Interface display driving method, device, electronic equipment and storage medium |
Non-Patent Citations (1)
Title |
---|
NEMOCDZ: "《iOS打造一个静态Cell通用的TableViewManager》", 《简书》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113778401A (en) * | 2021-01-05 | 2021-12-10 | 北京沃东天骏信息技术有限公司 | Page generation method and device |
CN114356334A (en) * | 2022-01-20 | 2022-04-15 | 山东捷瑞数字科技股份有限公司 | TableView-based mobile terminal dynamic form generation method and device |
CN114356334B (en) * | 2022-01-20 | 2022-08-05 | 山东捷瑞数字科技股份有限公司 | TableView-based mobile terminal dynamic form generation method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10277702B2 (en) | Method and apparatus for accessing an enterprise resource planning system via a mobile device | |
CN109614100B (en) | Page display method, device, server, front end and storage medium | |
TWI484416B (en) | Dynamic tag generating apparatus and dynamic tag generating method thereof for use in display arratatus | |
CN104199879A (en) | Data processing method and device | |
CN109977164A (en) | A kind of mobile terminal list development approach based on data-driven | |
CN113741860A (en) | Data processing method and device based on RPA robot | |
CN111597489A (en) | Realization method and device based on mobile terminal draggable user-defined form component | |
CN102129851B (en) | Information display method and device and information interaction system | |
CN111400488A (en) | Online document information processing method and device, electronic equipment and readable medium | |
CN110874172A (en) | Method, device, medium and electronic equipment for amplifying APP interface | |
CN112486482A (en) | Page display method and device | |
CN111614762B (en) | Electronic data exchange system and apparatus comprising an electronic data exchange system | |
CN102523271A (en) | Terminal and communication method and system thereof | |
CN205092022U (en) | NFC electron table tablet | |
JPWO2017135145A1 (en) | Electronic commerce mail linkage system, information terminal, electronic commerce email linkage method and program | |
CN113342450A (en) | Page processing method and device, electronic equipment and computer readable medium | |
CN110769036A (en) | MGM pushing method and device and electronic equipment | |
CN112988140B (en) | Communication method and server based on data communication protocol | |
CN117557240B (en) | Method, system, device and storage medium for reading jobs | |
CN109104501B (en) | Data synchronization method, device and system | |
CN113656506B (en) | Electronic specification acquisition method and device and readable medium | |
CN1984088A (en) | E-mail management systems and methods | |
CN116932665A (en) | Service material processing method, device, equipment and storage medium | |
CN101102331A (en) | Device for mobile phone application extension of new service learning system | |
CN114756796A (en) | Method, apparatus, device and computer readable medium for displaying image |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190705 |