CN106919383A - The methods of exhibiting and system of a kind of Android items lists - Google Patents

The methods of exhibiting and system of a kind of Android items lists Download PDF

Info

Publication number
CN106919383A
CN106919383A CN201710057462.0A CN201710057462A CN106919383A CN 106919383 A CN106919383 A CN 106919383A CN 201710057462 A CN201710057462 A CN 201710057462A CN 106919383 A CN106919383 A CN 106919383A
Authority
CN
China
Prior art keywords
data
rule
adapter
android
control
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
Application number
CN201710057462.0A
Other languages
Chinese (zh)
Inventor
杨雪芹
黄承松
夏里峰
宋书俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Chimy Network Technology Co Ltd
Original Assignee
Wuhan Chimy Network Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Wuhan Chimy Network Technology Co Ltd filed Critical Wuhan Chimy Network Technology Co Ltd
Priority to CN201710057462.0A priority Critical patent/CN106919383A/en
Publication of CN106919383A publication Critical patent/CN106919383A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0641Shopping interfaces
    • G06Q30/0643Graphical representation of items or shoppers

Abstract

The invention discloses the methods of exhibiting and system of a kind of Android items lists, method includes:A self-defined pattern provides component adapter;Define the rule of a data structure;The topology data of items list is passed to front end by rear end according to the rule of the data structure of definition;Adapter, the data that adapter parsings are received are passed data to after front end receiver data, and calculates spacing, position of each pattern in screen display;According to the result that adapter is calculated, plot exhibits are carried out using primary Graphics Control.Beneficial effect:By using primary Graphics Control, simplify complex topology calculating, Fast rendering figure, so as to improve drawing performance, interim card, displaying be not quick when user browses;Commodity Flow and the advertisement of any pattern are supported by a kind of self-defined data structure of formatting, client it goes without doing any change, as long as the data of the interfacial effect of displaying are wished in service end configuration, front end display screen will show strictly according to the facts, substantially increase flexibility, and diversity.

Description

The methods of exhibiting and system of a kind of Android items lists
Technical field
The present invention relates to field of computer technology, a kind of methods of exhibiting more particularly, to Android items lists and it is System.
Background technology
Android application displaying items lists are that consumer browses commodity, the important channel of the free choice of goods.Items list Consumer's Experience is most important, can have influence on whether user is ready to use the product.But the type of merchandize of items list is various, pattern Each one, along with some advertisements for also needing to show businessman so that whole interface is sufficiently complex.User browse commodity when Wait, interim card just occurs, cause customer loss.Advertisement is also particularly significant, is the entrance for doing activity, and advertisement is due to needing with unification A little activities must accomplish flexible configuration, flexibly display, it is impossible to all rely on client addition novel type every time.
Now with the technical scheme of support items list have:(1) android primary listview controls, self-defined Style type (layout of usually primary control combination), by adapter (a kind of component that pattern is provided to listview) Binding data, then shows all commodity patterns.(2) using the web page display of HTML5, shown by the webview of android The items list of type of webpage.
The defect of present scheme:One is to use the primary listview controls of android, if the type of merchandise is too many, can be made Multiplexing function into listview is weakened, and is added advertisement and is taken many types, and customized pattern is by primary set of controls Into so that layout calculation is extremely complex and interfaces transition is drawn more than 4x, ultimately results in interim card when slip browses commodity serious. Two is the page for using HTML5, and, due to being webpage, greatly, user sees that the page just has and substantially prolongs transmitted data on network amount for itself Late, and because whole HTML can be parsed, webview is then rendered again, Consumer's Experience is excessively poor.
View:Android graphic plotting abstract components, drafting in need figure need inherit the component.
The content of the invention
It is an object of the invention to overcome above-mentioned technical deficiency, propose a kind of Android items lists methods of exhibiting and System, the layout calculation for solving items list in the prior art is complicated, browses the serious technical problem of interim card.
To reach above-mentioned technical purpose, technical scheme provides a kind of methods of exhibiting of Android items lists, Including:
S1, a self-defined pattern provide component adapter;
S2, the rule for defining a data structure;
The rule of the data structure that S3, rear end define according to S2, front end is passed to by the topology data of items list;
Adapter, the data that adapter parsings are received are passed data to after S4, front end receiver data, and calculates various kinds Spacing, position of the formula in screen display;
S5, the result calculated according to adapter, plot exhibits are carried out using primary Graphics Control.
The present invention also provides a kind of display systems of Android items lists, including:
Pattern provides component definition module:A self-defined pattern provides component adapter;
Rule-definition module:Define the rule of a data structure;
Data transfer module:The rule of the data structure that rear end defines according to rule-definition module, by the cloth of items list Office data passes to front end;
Computing module:Adapter, the data that adapter parsings are received are passed data to after front end receiver data, and is counted Calculate spacing, position of each pattern in screen display;
Drawing display module:According to the result that adapter is calculated, plot exhibits are carried out using primary Graphics Control.
Compared with prior art, beneficial effects of the present invention include:The system for abandoning Android offers carries basic control Part, Commodity Flow and advertisement are drawn by using primary Graphics Control, simplify complex topology calculating, Fast rendering figure, so as to carry Drawing performance high, interim card, displaying be not quick when user browses;Support any by a kind of self-defined data structure of formatting The Commodity Flow of pattern and advertisement, client it goes without doing any change, as long as the number of the interfacial effect of displaying is wished in service end configuration According to front end display screen will show strictly according to the facts, and user need not update application, substantially increase flexibility, and diversity.
Brief description of the drawings
Fig. 1 is a kind of methods of exhibiting flow chart of Android items lists that the present invention is provided;
Fig. 2 is a kind of display systems structured flowchart of Android items lists that the present invention is provided.
In accompanying drawing:1st, the display systems of Android items lists, 11, pattern component definition module is provided, 12, rule it is fixed Adopted module, 13, data transfer module, 14, computing module, 15, drawing display module.
Specific embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
The invention provides a kind of methods of exhibiting of Android items lists, wherein, including:
S1, a self-defined pattern provide component adapter;
S2, the rule for defining a data structure;
The rule of the data structure that S3, rear end define according to S2, front end is passed to by the topology data of items list;
Adapter, the data that adapter parsings are received are passed data to after S4, front end receiver data, and calculates various kinds Spacing, position of the formula in screen display;
S5, the result calculated according to adapter, plot exhibits are carried out using primary Graphics Control.
The methods of exhibiting of Android items lists of the present invention, in step S1:
Adapter pre-sets the pattern control of needs, and the pattern control that adapter pre-sets needs is inherited from View, plot and display is carried out for parsing the data of reception and coordinating with Graphics Control.
The pattern control that adapter pre-sets needs needs all adlines and commodity stream type supported, with The changeable loose-leaf of reply, and changeable Commodity Flow bandwagon effect.
The methods of exhibiting of Android items lists of the present invention, in step S2:
Rule 1:Definition data structure is the nested row of row, and the row of data structure is an advertisement structure unit, defines data The row of structure are a control combination units, then, an advertisement is formed by the unit control combination of multiple row;
Rule 2:One array includes multiple rows so that number of ads can be without limitation;
Rule 3:Rear end calculates the width height of each advertising unit and transmits front end, and line width limit high is entered in front end according to result of calculation System display, greatly facilitates the flexibility of configuration, can be adapted to different size of picture;
Rule 4:Spacing field passes to front end, the spacing between spacing field control front end is often capable by rear end;
Rule 5:Cut-off rule field passes to front end by rear end, and whether cut-off rule field control advertisement top or inside need Cut-off rule is wanted to split advertisement, this greatly improves UI bandwagon effects, normal conditions need to draw segmentation by art designing on picture Line, due to android ends screen size each, can cause cut-off rule to show fuzzy, and the incorrect situation of thickness occurs, and primary The cut-off rule of drafting, displaying is clear, occurs without blooming;
Rule 6:The countdown structure of rear end broadcasts data to front end, and the countdown of countdown structure control front end shows.
UI displayings being constrained using rule rather than fixed data and greatly facilitating client control reusability, basis is only provided Component, all complicated bandwagon effects are determined by rule, so that changeable, and flexible page UI displayings are possibly realized.
The methods of exhibiting of Android items lists of the present invention, in step S5:
The onDraw methods of View are rewritten, application method drawXXX draws on primary Graphics Control canvas.
General technology encapsulates the situation of too many complexity, is a kind of general policies, and primary drafting is directed to specified conditions Under the drafting that carries out, so the performance of primary drafting is much higher than general technology, cardinal principle is:It is unnecessary to avoid Position calculates and figure render times, and the effect that primary drafting is brought is exactly the fluency of application, without some interim cards.
The methods of exhibiting of Android items lists of the present invention, in step S5:
The page presentation of items list after being drawn by recyclerview, is more flowed compared to listview interfaces Freely.
The present invention also provides a kind of display systems 1 of Android items lists, including:
Pattern provides component definition module 11:A self-defined pattern provides component adapter;
Rule-definition module 12:Define the rule of a data structure;
Data transfer module 13:The rule of the data structure that rear end defines according to rule-definition module, by items list Topology data passes to front end;
Computing module 14:Adapter is passed data to after front end receiver data, adapter parses the data for receiving, and Calculate spacing, position of each pattern in screen display;
Drawing display module 15:According to the result that adapter is calculated, plot exhibits are carried out using primary Graphics Control.
The display systems 1 of Android items lists of the present invention, pattern is provided in component definition module 11:
Adapter pre-sets the pattern control of needs, and the pattern control that adapter pre-sets needs is inherited from View, plot and display is carried out for parsing the data of reception and coordinating with Graphics Control.
The display systems 1 of Android items lists of the present invention, in rule-definition module 12:
Definition data structure is the nested row of row, and the row of data structure is an advertisement structure unit, definition data structure Row are a control combination units, and an array includes multiple rows, and rear end calculates the width height of each advertising unit and transmits front end, preceding Line width limitation display high is entered in end according to result of calculation, and spacing field passes to front end by rear end, and spacing field control front end is often gone Between spacing, cut-off rule field passes to front end by rear end, and the cut-off rule of cut-off rule field control front end show, rear end Timing structure broadcasts data to front end, and the countdown of countdown structure control front end shows.
The display systems 1 of Android items lists of the present invention, in drawing display module 15:
The onDraw methods of View are rewritten, application method drawXXX draws on primary Graphics Control canvas.
The display systems 1 of Android items lists of the present invention, in drawing display module 15:
The page presentation of items list after being drawn by recyclerview.
Compared with prior art, beneficial effects of the present invention include:The system for abandoning Android offers carries basic control Part, Commodity Flow and advertisement are drawn by using primary Graphics Control, simplify complex topology calculating, Fast rendering figure, so as to carry Drawing performance high, interim card, displaying be not quick when user browses;Support any by a kind of self-defined data structure of formatting The Commodity Flow of pattern and advertisement, client it goes without doing any change, as long as the number of the interfacial effect of displaying is wished in service end configuration According to front end display screen will show strictly according to the facts, and user need not update application, substantially increase flexibility, and diversity.
The specific embodiment of present invention described above, is not intended to limit the scope of the present invention..Any basis Various other corresponding change and deformation that technology design of the invention is made, should be included in the guarantor of the claims in the present invention In the range of shield.

Claims (10)

1. a kind of methods of exhibiting of Android items lists, it is characterised in that including:
S1, a self-defined pattern provide component adapter;
S2, the rule for defining a data structure;
The rule of the data structure that S3, rear end define according to S2, front end is passed to by the topology data of items list;
The adapter, the data that the adapter parsings are received are passed data to after S4, front end receiver data, and is calculated Spacing, position of each pattern in screen display;
S5, the result calculated according to the adapter, plot exhibits are carried out using primary Graphics Control.
2. the methods of exhibiting of Android items lists as claimed in claim 1, it is characterised in that in step S1:
The adapter pre-sets the pattern control of needs, and the pattern control that the adapter pre-sets needs is inherited from View, plot and display is carried out for parsing the data of reception and coordinating with Graphics Control.
3. the methods of exhibiting of Android items lists as claimed in claim 1, it is characterised in that in step S2:
Definition data structure is the nested row of row, and the row of data structure is an advertisement structure unit, and the row of definition data structure are One control combination unit a, array includes multiple rows, and rear end calculates the width height of each advertising unit and transmits front end, front end root Enter line width limitation display high according to result of calculation, spacing field passes to front end by rear end, between spacing field control front end is often gone Spacing, cut-off rule field passes to front end by rear end, and the cut-off rule of cut-off rule field control front end shows, the countdown of rear end Structure broadcasts data to front end, and the countdown of countdown structure control front end shows.
4. the methods of exhibiting of Android items lists as claimed in claim 1, it is characterised in that in step S5:
The onDraw methods of View are rewritten, application method drawXXX draws on primary Graphics Control canvas.
5. the methods of exhibiting of Android items lists as claimed in claim 1, it is characterised in that in step S5:
The page presentation of items list after being drawn by recyclerview.
6. a kind of display systems of Android items lists, it is characterised in that including:
Pattern provides component definition module:A self-defined pattern provides adapter described in component;
Rule-definition module:Define the rule of a data structure;
Data transfer module:The rule of the data structure that rear end defines according to rule-definition module, by the cloth inning of items list According to passing to front end;
Computing module:The adapter is passed data to after front end receiver data, the adapter parses the data for receiving, And calculate spacing, position of each pattern in screen display;
Drawing display module:According to the result that the adapter is calculated, plot exhibits are carried out using primary Graphics Control.
7. display systems of Android items lists as claimed in claim 6, it is characterised in that pattern provides component definition In module:
The adapter pre-sets the pattern control of needs, and the pattern control that the adapter pre-sets needs is inherited from View, plot and display is carried out for parsing the data of reception and coordinating with Graphics Control.
8. display systems of Android items lists as claimed in claim 6, it is characterised in that in rule-definition module:
Definition data structure is the nested row of row, and the row of data structure is an advertisement structure unit, and the row of definition data structure are One control combination unit a, array includes multiple rows, and rear end calculates the width height of each advertising unit and transmits front end, front end root Enter line width limitation display high according to result of calculation, spacing field passes to front end by rear end, between spacing field control front end is often gone Spacing, cut-off rule field passes to front end by rear end, and the cut-off rule of cut-off rule field control front end shows, the countdown of rear end Structure broadcasts data to front end, and the countdown of countdown structure control front end shows.
9. display systems of Android items lists as claimed in claim 6, it is characterised in that in drawing display module:
The onDraw methods of View are rewritten, application method drawXXX draws on primary Graphics Control canvas.
10. display systems of Android items lists as claimed in claim 6, it is characterised in that in drawing display module:
The page presentation of items list after being drawn by recyclerview.
CN201710057462.0A 2017-01-26 2017-01-26 The methods of exhibiting and system of a kind of Android items lists Pending CN106919383A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710057462.0A CN106919383A (en) 2017-01-26 2017-01-26 The methods of exhibiting and system of a kind of Android items lists

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710057462.0A CN106919383A (en) 2017-01-26 2017-01-26 The methods of exhibiting and system of a kind of Android items lists

Publications (1)

Publication Number Publication Date
CN106919383A true CN106919383A (en) 2017-07-04

Family

ID=59453344

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710057462.0A Pending CN106919383A (en) 2017-01-26 2017-01-26 The methods of exhibiting and system of a kind of Android items lists

Country Status (1)

Country Link
CN (1) CN106919383A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107908747A (en) * 2017-11-17 2018-04-13 深圳市泉眼网络科技有限公司 A kind of page generation method and device
CN108269120A (en) * 2017-11-29 2018-07-10 广东神马搜索科技有限公司 Advertisement pattern metadata configurations method and device
CN109144505A (en) * 2018-06-25 2019-01-04 阿里巴巴集团控股有限公司 The methods of exhibiting and device of the Android page
CN109324731A (en) * 2017-07-27 2019-02-12 环球智达科技(北京)有限公司 Information display method and device
CN109840115A (en) * 2017-11-27 2019-06-04 中移(杭州)信息技术有限公司 RecyclerView paging loading method and device in a kind of android system
CN109933323A (en) * 2019-03-15 2019-06-25 山东云缦智能科技有限公司 A kind of method and device that user interface is set
CN110188253A (en) * 2019-05-30 2019-08-30 北京字节跳动网络技术有限公司 A kind of information displaying method, device and storage medium
CN110209447A (en) * 2019-04-28 2019-09-06 五八有限公司 A kind of list page data display method and list page data presentation device
CN111126027A (en) * 2019-12-25 2020-05-08 北京锐安科技有限公司 List generation method, device, equipment and medium
CN112418997A (en) * 2020-12-03 2021-02-26 政采云有限公司 User interface display method, device, equipment and medium
CN112506507A (en) * 2020-11-11 2021-03-16 海看网络科技(山东)股份有限公司 Method for displaying timeline by android
CN113268183A (en) * 2021-05-21 2021-08-17 北京自如信息科技有限公司 List page countdown display method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101645006A (en) * 2009-08-25 2010-02-10 山东中创软件商用中间件股份有限公司 Method and device for dynamically generating property page
CN103902634A (en) * 2012-12-30 2014-07-02 航天信息股份有限公司 Method for achieving automatic binding between View assembly and database fields through Adapter
CN106293760A (en) * 2016-08-19 2017-01-04 成都卓影科技股份有限公司 The view dynamic layout system of a kind of EPG and method thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101645006A (en) * 2009-08-25 2010-02-10 山东中创软件商用中间件股份有限公司 Method and device for dynamically generating property page
CN103902634A (en) * 2012-12-30 2014-07-02 航天信息股份有限公司 Method for achieving automatic binding between View assembly and database fields through Adapter
CN106293760A (en) * 2016-08-19 2017-01-04 成都卓影科技股份有限公司 The view dynamic layout system of a kind of EPG and method thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
小_爽: ""Android UI设计——ListView控件和自定义Adapter(四)"", 《HTTPS://BLOG.CSDN.NET/TO_BE_DESIGNER/ARTICLE/DETAILS/47983017》 *

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109324731A (en) * 2017-07-27 2019-02-12 环球智达科技(北京)有限公司 Information display method and device
CN107908747A (en) * 2017-11-17 2018-04-13 深圳市泉眼网络科技有限公司 A kind of page generation method and device
CN109840115A (en) * 2017-11-27 2019-06-04 中移(杭州)信息技术有限公司 RecyclerView paging loading method and device in a kind of android system
CN108269120A (en) * 2017-11-29 2018-07-10 广东神马搜索科技有限公司 Advertisement pattern metadata configurations method and device
CN109144505B (en) * 2018-06-25 2022-03-01 创新先进技术有限公司 Android page display method and device
CN109144505A (en) * 2018-06-25 2019-01-04 阿里巴巴集团控股有限公司 The methods of exhibiting and device of the Android page
CN109933323A (en) * 2019-03-15 2019-06-25 山东云缦智能科技有限公司 A kind of method and device that user interface is set
CN110209447A (en) * 2019-04-28 2019-09-06 五八有限公司 A kind of list page data display method and list page data presentation device
CN110188253A (en) * 2019-05-30 2019-08-30 北京字节跳动网络技术有限公司 A kind of information displaying method, device and storage medium
CN111126027A (en) * 2019-12-25 2020-05-08 北京锐安科技有限公司 List generation method, device, equipment and medium
CN112506507A (en) * 2020-11-11 2021-03-16 海看网络科技(山东)股份有限公司 Method for displaying timeline by android
CN112418997A (en) * 2020-12-03 2021-02-26 政采云有限公司 User interface display method, device, equipment and medium
CN113268183A (en) * 2021-05-21 2021-08-17 北京自如信息科技有限公司 List page countdown display method and device

Similar Documents

Publication Publication Date Title
CN106919383A (en) The methods of exhibiting and system of a kind of Android items lists
CN108509526A (en) The method and apparatus of interface element for Dynamic Distribution's mobile application
US20130073951A1 (en) Display control program, recording medium recording display control program, display control apparatus, and display control method
US11727197B2 (en) System and method for serving interactive advertising content with responsive animations
US10681111B2 (en) Method and system for providing internet application services
WO2008116072A1 (en) Methods and systems for creating interactive advertisements
CN104408137A (en) Preparation method of network statistical map visualized data
CN110647272A (en) Display control method and device
CN106502659A (en) A kind of layout method of mobile device webpage single-page and system
CN110362304A (en) The method and apparatus of web displaying
CN111260752A (en) Flow chart drawing method, device and equipment and storage medium
CN114579223A (en) Interface layout method, electronic equipment and computer readable storage medium
CN108897481A (en) It is a kind of to interact the primary method and system for showing advertising information
CN105631008B (en) Webpage display method and system
CN110543307A (en) application construction method and device
CN113486275A (en) Information display method and device, computer readable storage medium and processor
CN109087139A (en) Advertisement placement method and device for feed stream
JP6813400B2 (en) Information display program, information display method, and terminal device
CN104714802A (en) Method and device for displaying additional information of HTML element
CN112346610A (en) Implementation method of multi-level selectable option selection component, electronic device and storage medium
CN111273984A (en) Extension method of numerical control, storage medium and terminal equipment
CN110457618A (en) Information displaying method and device
CN108304118B (en) Screenshot method and device
CN110209965A (en) Method and apparatus for showing information
CN113297313A (en) Table data display method and device, electronic equipment and storage medium

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: 20170704