CN110020267B - List display method and device - Google Patents
List display method and device Download PDFInfo
- Publication number
- CN110020267B CN110020267B CN201710626122.5A CN201710626122A CN110020267B CN 110020267 B CN110020267 B CN 110020267B CN 201710626122 A CN201710626122 A CN 201710626122A CN 110020267 B CN110020267 B CN 110020267B
- Authority
- CN
- China
- Prior art keywords
- column
- width
- merged
- items
- target list
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
- G06F16/9577—Optimising the visualization of content, e.g. distillation of HTML documents
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
本发明公开了一种列表显示方法及装置,属于信息处理技术领域。该方法包括:获取待显示的目标列表的最小宽度和目标列表中多个列项分别对应的属性信息,最小宽度为目标列表完整显示时所需要占用的最小宽度;确定当前显示区域的宽度;当最小宽度大于当前显示区域的宽度时,基于获取得到的多个属性信息,对多个列项中的至少两个列项进行合并,并显示列项合并之后的目标列表。本发明实施例通过将多个列项中的至少两个列项进行合并,保证了该目标列表能够完整的显示在当前显示区域中,相较于相关技术中列表的布局方式更加灵活,即使对于不同的终端,该目标列表也可以保证完整的进行显示。
The invention discloses a list display method and device, belonging to the technical field of information processing. The method includes: obtaining the minimum width of the target list to be displayed and attribute information corresponding to multiple column items in the target list respectively, where the minimum width is the minimum width that needs to be occupied when the target list is completely displayed; determining the width of the current display area; When the minimum width is greater than the width of the current display area, at least two column items among the multiple column items are merged based on the obtained multiple attribute information, and the target list after the merged column items is displayed. The embodiment of the present invention ensures that the target list can be completely displayed in the current display area by merging at least two of the multiple column items, which is more flexible than the layout of the list in the related art, even for Different terminals, the target list can also be guaranteed to be displayed completely.
Description
技术领域technical field
本发明涉及信息处理技术领域,特别涉及一种列表显示方法及装置。The present invention relates to the technical field of information processing, and in particular, to a list display method and device.
背景技术Background technique
通常,用户通过终端浏览网页时,终端不仅可以显示网页中的图片、文本等内容,还可以显示列表。其中,当在网页中显示列表时,终端当前显示区域的宽度可能大于列表宽度,也可能小于列表宽度。当终端当前显示区域的宽度小于列表宽度时,为了用户能够查看完整的列表内容,可以通过不同的方法显示该列表。Usually, when a user browses a web page through a terminal, the terminal can not only display content such as pictures and texts in the web page, but also display a list. Wherein, when the list is displayed on the web page, the width of the current display area of the terminal may be larger than the width of the list, or may be smaller than the width of the list. When the width of the current display area of the terminal is smaller than the width of the list, in order for the user to view the complete list content, the list can be displayed in different ways.
相关技术中,当当前显示区域的宽度小于列表宽度时,终端可以保持列表宽度不变,固定列表首列,并在当前显示区域显示列表的部分内容以及横向滚动条,当检测到用户针对该滚动条的拖动操作时,列表横向滚动,从而显示剩余部分。In the related art, when the width of the current display area is smaller than the width of the list, the terminal can keep the width of the list unchanged, fix the first column of the list, and display part of the content of the list and a horizontal scroll bar in the current display area. When the bar is dragged, the list scrolls horizontally, revealing the remainder.
然而,如果列表的列项太多,列表宽度太大,而终端当前的显示区域又较小,那么,采用上述方法进行列表显示,用户需要多次反复的拖动滚动条来查看列表中的信息,操作繁琐且极不方便。However, if there are too many column items in the list, the width of the list is too large, and the current display area of the terminal is small, then, using the above method to display the list, the user needs to repeatedly drag the scroll bar to view the information in the list. , the operation is cumbersome and extremely inconvenient.
发明内容SUMMARY OF THE INVENTION
为了解决相关技术中用户查看列表中的信息时操作繁琐且极不方便的问题,本发明实施例提供了一种列表显示方法及装置。所述技术方案如下:In order to solve the problem of complicated and extremely inconvenient operation when a user views information in a list in the related art, embodiments of the present invention provide a method and device for displaying a list. The technical solution is as follows:
第一方面,提供了一种列表显示方法,所述方法包括:In a first aspect, a method for displaying a list is provided, and the method includes:
获取待显示的目标列表的最小宽度和所述目标列表中多个列项分别对应的属性信息,所述最小宽度为所述目标列表完整显示时所需要占用的最小宽度;Obtain the minimum width of the target list to be displayed and attribute information corresponding to multiple column items in the target list, where the minimum width is the minimum width that needs to be occupied when the target list is completely displayed;
确定当前显示区域的宽度;Determine the width of the current display area;
当所述最小宽度大于所述当前显示区域的宽度时,基于获取得到的多个属性信息,对所述多个列项中的至少两个列项进行合并,并显示列项合并之后的目标列表,所述列项合并之后的目标列表中的合并列包括所述至少两个列项的内容,且所述合并列的列名与所述至少两个列项的列名不相同。When the minimum width is greater than the width of the current display area, combine at least two column items among the plurality of column items based on the obtained plurality of attribute information, and display the target list after the column items are merged , the merged column in the target list after the column items are merged includes the content of the at least two column items, and the column name of the merged column is different from the column name of the at least two column items.
可选地,所述基于获取得到的多个属性信息,对所述多个列项中的至少两个列项进行合并,包括:Optionally, combining at least two column items in the plurality of column items based on the obtained plurality of attribute information, including:
如果所述多个属性信息中存在包括合并组序号的属性信息,则将合并组序号相同的属性信息对应的列项组成一个合并组,以得到M个合并组,所述M为大于或等于1的正整数;If there is attribute information including the merge group serial number in the plurality of attribute information, the column items corresponding to the attribute information with the same merge group serial number are formed into a merge group to obtain M merge groups, where M is greater than or equal to 1 positive integer of ;
确定所述目标列表的第一实际宽度,所述第一实际宽度是指将所述M个合并组中的列项全部合并之后所述目标列表的实际宽度;determining the first actual width of the target list, where the first actual width refers to the actual width of the target list after all the column items in the M merged groups are merged;
如果所述目标列表的第一实际宽度小于所述当前显示区域的宽度,则对所述M个合并组中的至少一个合并组中的列项进行合并;If the first actual width of the target list is smaller than the width of the current display area, merging the column items in at least one merging group in the M merging groups;
如果所述目标列表的第一实际宽度大于所述当前显示区域的宽度,则从所述多个列项中除了所述M个合并组之外剩余的列项中选择至少两个列项,并将所述M个合并组中的列项以及选择的至少两个列项分别进行合并。If the first actual width of the target list is greater than the width of the current display area, selecting at least two column items from the column items remaining except the M merged groups among the plurality of column items, and The column items in the M merged groups and the at least two selected column items are merged respectively.
可选地,所述对所述M个合并组中的至少一个合并组中的列项进行合并,包括:Optionally, the merging of column items in at least one merging group in the M merging groups includes:
按照所述M个合并组分别对应的合并组序号对所述M个合并组进行排序,得到第一排序结果;Sort the M merge groups according to the merge group serial numbers corresponding to the M merge groups respectively, to obtain a first sorting result;
令i=1,对所述第一排序结果中的第i个合并组中的列项进行合并,并确定所述目标列表的第二实际宽度,所述第二实际宽度是指将所述第一排序结果中前i个合并组中的列项进行合并之后所述目标列表的实际宽度,所述i为大于或等于1且小于或等于所述M的正整数;Let i=1, merge the column items in the ith merge group in the first sorting result, and determine the second actual width of the target list, where the second actual width refers to the The actual width of the target list after the column items in the first i merged groups in the sorting result are merged, where i is a positive integer greater than or equal to 1 and less than or equal to the M;
当所述目标列表的第二实际宽度大于所述当前显示区域的宽度时,令所述i=i+1,返回对所述第一排序结果中的第i个合并组中的列项进行合并的步骤,直至所述目标列表的第二实际宽度小于或等于所述当前显示区域的宽度为止。When the second actual width of the target list is greater than the width of the current display area, set i=i+1, and return to merge the column items in the i-th merged group in the first sorting result until the second actual width of the target list is less than or equal to the width of the current display area.
可选地,所述确定所述目标列表的第二实际宽度,包括:Optionally, the determining the second actual width of the target list includes:
获取所述第i个合并组中每个列项对应的列项宽度比例以及所述第i个合并组对应的合并列宽度比例;Obtain the column item width ratio corresponding to each column item in the ith merged group and the merged column width ratio corresponding to the ith merged group;
确定第一宽度和第二宽度,所述第一宽度是指所述第i个合并组中每个列项对应的列项宽度比例与所述最小宽度之间的乘积之和,所述第二宽度是指所述第i个合并组对应的合并列宽度比例与所述最小宽度之间的乘积;Determine a first width and a second width, where the first width refers to the sum of the product of the ratio of the width of each column item corresponding to each column item in the i-th merged group and the product of the minimum width, and the second width The width refers to the product between the width ratio of the merged column corresponding to the ith merged group and the minimum width;
确定所述第一宽度与所述第二宽度之间的第一宽度差值,并将所述最小宽度减去所述第一宽度差值以及所述第i个合并组之前的i-1个合并组分别对应的宽度差值,得到所述目标列表的第二实际宽度。determining a first width difference between the first width and the second width, and subtracting the first width difference and i-1 before the ith merged group from the minimum width The respective width differences corresponding to the groups are merged to obtain the second actual width of the target list.
可选地,所述从所述多个列项中除了所述M个合并组之外剩余的列项中选择至少两个列项,包括:Optionally, selecting at least two column items from the remaining column items in the plurality of column items except the M merged groups includes:
令k=2,确定所述目标列表的第三实际宽度,所述第三实际宽度是指将所述M个合并组中的列项全部合并以及将所述剩余的列项中倒数k个列项进行合并之后所述目标列表的实际宽度,所述k为大于或等于2的正整数;Let k=2, determine the third actual width of the target list, where the third actual width refers to merging all the column items in the M merge groups and merging the reciprocal k columns of the remaining column items the actual width of the target list after the items are merged, and the k is a positive integer greater than or equal to 2;
如果所述目标列表的第三实际宽度大于所述当前显示区域的宽度,则令所述k=k+1,返回确定所述目标列表的第三实际宽度的步骤,直至所述目标列表的第三实际宽度小于或等于所述当前显示区域的宽度为止时,将所述剩余的列项中倒数k个列项确定为选择的至少两个列项。If the third actual width of the target list is greater than the width of the current display area, set k=k+1, and return to the step of determining the third actual width of the target list until the third actual width of the target list is reached. 3. When the actual width is less than or equal to the width of the current display area, the last k column items in the remaining column items are determined as the at least two selected column items.
可选地,所述将所述M个合并组中的列项以及选择的至少两个列项分别进行合并,包括:Optionally, the merging of the column items in the M merged groups and the selected at least two column items respectively includes:
将所述M个合并组中的列项分别进行合并,得到M个合并列;Merging the column items in the M merged groups respectively to obtain M merged columns;
按照所述选择的至少两个列项的顺序,将每N个列项合并成一个合并列。According to the sequence of the selected at least two column items, every N column items are merged into a merged column.
可选地,所述显示列项合并之后的目标列表,包括:Optionally, the displayed target list after the column items are merged includes:
当合并为一个合并列的至少两个列项对应的至少两个属性信息中包括合并列列名时,将所述合并列列名作为由所述至少两个列项合并得到的合并列的列名进行显示;或者,When at least two attribute information corresponding to at least two column items merged into one merged column includes a merged column column name, the merged column column name is used as a column of the merged column obtained by merging the at least two column items name is displayed; or,
当合并为一个合并列的至少两个列项对应的至少两个属性信息中不包括合并列列名时,将由所述至少两个列项合并得到的合并列的列名设置为预设列名,并按照所述预设列名显示所述合并列;When the at least two attribute information corresponding to the at least two column items merged into one merged column does not include the merged column column name, the column name of the merged column obtained by merging the at least two column items is set as the preset column name , and display the merged column according to the preset column name;
在所述合并列中显示所述至少两个列项的内容。The contents of the at least two column items are displayed in the merged column.
可选地,所述确定当前显示区域的宽度之后,还包括:Optionally, after the determining the width of the current display area, the method further includes:
当所述最小宽度小于所述当前显示区域的宽度时,获取所述多个列项中每个列项的列项宽度比例;When the minimum width is smaller than the width of the current display area, obtain the column item width ratio of each column item in the plurality of column items;
将所述多个列项中每个列项的列项宽度比例与所述当前显示区域的宽度相乘,得到每个列项的列宽;multiplying the column item width ratio of each column item in the plurality of column items by the width of the current display area to obtain the column width of each column item;
基于每个列项的列宽显示所述目标列表。The target list is displayed based on the column width of each column item.
可选地,所述显示列项合并之后的目标列表之后,还包括:Optionally, after the display of the target list after the column items are merged, it further includes:
对于所述目标列表包括的R个合并列中的每个合并列,基于所述合并列生成合并列属性信息,所述合并列属性信息包括拆分属性、所述合并列对应的合并组序号、合并列宽度比例和所述合并列中每个列项对应的列项宽度比例,所述R为大于或等于1的正整数;For each merged column in the R merged columns included in the target list, generate merged column attribute information based on the merged column, where the merged column attribute information includes a split attribute, a merged group sequence number corresponding to the merged column, The combined column width ratio and the column item width ratio corresponding to each column item in the combined column, the R is a positive integer greater than or equal to 1;
确定所述合并之后的目标列表的第四实际宽度,所述第四实际宽度是列项合并之后进行显示时所述目标列表的实际宽度;determining the fourth actual width of the merged target list, where the fourth actual width is the actual width of the target list when the column items are merged and displayed;
当检测到所述当前显示区域的宽度大于所述第四实际宽度时,基于所述当前显示区域的宽度和所述第四实际宽度,对所述R个合并列中的至少一个合并列进行拆分。When it is detected that the width of the current display area is greater than the fourth actual width, split at least one merged column among the R merged columns based on the width of the current display area and the fourth actual width point.
可选地,所述基于所述当前显示区域的宽度和所述第四实际宽度,对所述R个合并列中的至少一个合并列进行拆分,包括:Optionally, splitting at least one merged column in the R merged columns based on the width of the current display area and the fourth actual width includes:
按照所述R个合并列对应的合并组序号对所述R个合并列进行排序,得到第二排序结果;Sort the R merged columns according to the merge group serial numbers corresponding to the R merged columns to obtain a second sorting result;
令j=1,确定第三宽度和所述目标列表的第五实际宽度,所述第三宽度是指所述第二排序结果中倒数第j个合并列的每个列项对应的列项宽度比例与所述第五实际宽度的乘积之和,所述第五实际宽度是指将所述第二排序结果中倒数j个合并列进行拆分之后所述目标列表的实际宽度,且在所述j=1时,所述第五实际宽度与所述第四实际宽度相等;Let j=1, determine the third width and the fifth actual width of the target list, where the third width refers to the column item width corresponding to each column item of the jth last merged column in the second sorting result The sum of the product of the ratio and the fifth actual width, where the fifth actual width refers to the actual width of the target list after splitting the last j merged columns in the second sorting result, and When j=1, the fifth actual width is equal to the fourth actual width;
当所述当前显示区域的宽度与所述第五实际宽度之间的差值大于所述第三宽度时,基于所述倒数第j个合并列中每个列项对应的列项宽度比例,将所述倒数第j个合并列进行拆分,令所述j=j+1,返回确定第三宽度的步骤,直至所述当前显示区域的宽度小于或等于所述目标列表的第五实际宽度,或直至所述当前显示区域的宽度与所述目标列表的第五实际宽度之间的差值小于所述第三宽度为止。When the difference between the width of the current display area and the fifth actual width is greater than the third width, based on the column item width ratio corresponding to each column item in the last jth merged column, set the The last jth merged column is split, and the j=j+1 is set, and the step of determining the third width is returned, until the width of the current display area is less than or equal to the fifth actual width of the target list, Or until the difference between the width of the current display area and the fifth actual width of the target list is smaller than the third width.
第二方面,提供了一种列表显示装置,所述装置包括:In a second aspect, a list display device is provided, the device comprising:
第一获取模块,用于获取待显示的目标列表的最小宽度和所述目标列表中多个列项分别对应的属性信息,所述最小宽度为所述目标列表完整显示时所需要占用的最小宽度;The first obtaining module is used to obtain the minimum width of the target list to be displayed and attribute information corresponding to multiple column items in the target list respectively, and the minimum width is the minimum width that needs to be occupied when the target list is completely displayed ;
确定模块,用于确定当前显示区域的宽度;A determination module, used to determine the width of the current display area;
合并模块,用于当所述最小宽度大于所述当前显示区域的宽度时,基于获取得到的多个属性信息,对所述多个列项中的至少两个列项进行合并;a merging module, configured to merge at least two column items of the plurality of column items based on the obtained plurality of attribute information when the minimum width is greater than the width of the current display area;
第一显示模块,用于显示列项合并之后的目标列表,所述列项合并之后的目标列表中的合并列包括所述至少两个列项的内容,且所述合并列的列名与所述至少两个列项的列名不相同。The first display module is configured to display the target list after the column items are merged, the merged column in the target list after the column items is merged includes the content of the at least two column items, and the column name of the merged column is the same as that of the merged column. The column names for at least two column items are not the same.
可选地,所述合并模块包括:Optionally, the merging module includes:
第一确定单元,用于如果所述多个属性信息中存在包括合并组序号的属性信息,则将合并组序号相同的属性信息对应的列项组成一个合并组,以得到M个合并组,所述M为大于或等于1的正整数;The first determination unit is configured to, if there is attribute information including the merge group serial number in the plurality of attribute information, form a merge group with the column items corresponding to the attribute information with the same merge group serial number, so as to obtain M merge groups, The above M is a positive integer greater than or equal to 1;
第二确定单元,用于确定所述目标列表的第一实际宽度,所述第一实际宽度是指将所述M个合并组中的列项全部合并之后所述目标列表的实际宽度;a second determining unit, configured to determine a first actual width of the target list, where the first actual width refers to the actual width of the target list after all the column items in the M merged groups are merged;
第一合并单元,用于如果所述目标列表的第一实际宽度小于所述当前显示区域的宽度,则对所述M个合并组中的至少一个合并组中的列项进行合并;a first merging unit, configured to merge column items in at least one merge group in the M merge groups if the first actual width of the target list is smaller than the width of the current display area;
第二合并单元,用于如果所述目标列表的第一实际宽度大于所述当前显示区域的宽度,则从所述多个列项中除了所述M个合并组之外剩余的列项中选择至少两个列项,并将所述M个合并组中的列项以及选择的至少两个列项分别进行合并。a second merging unit, configured to select, if the first actual width of the target list is greater than the width of the current display area, selecting from the remaining column items in the plurality of column items except the M merging groups at least two column items, and the column items in the M merged groups and the selected at least two column items are merged respectively.
可选地,所述第一合并单元包括:Optionally, the first merging unit includes:
排序子单元,用于按照所述M个合并组分别对应的合并组序号对所述M个合并组进行排序,得到第一排序结果;a sorting subunit, configured to sort the M merged groups according to the merged group serial numbers corresponding to the M merged groups respectively, to obtain a first sorting result;
第一合并子单元,用于令i=1,对所述第一排序结果中的第i个合并组中的列项进行合并,并确定所述目标列表的第二实际宽度,所述第二实际宽度是指将所述第i个合并组中的列项进行合并之后所述目标列表的实际宽度,所述i为大于或等于1且小于或等于所述M的正整数;The first merging subunit is configured to set i=1, merge the column items in the i-th merged group in the first sorting result, and determine the second actual width of the target list, the second The actual width refers to the actual width of the target list after merging the column items in the ith merge group, where i is a positive integer greater than or equal to 1 and less than or equal to the M;
所述第一合并子单元还用于当所述目标列表的第二实际宽度大于所述当前显示区域的宽度时,令所述i=i+1,返回对所述第一排序结果中的第i个合并组中的列项进行合并的步骤,直至所述目标列表的第二实际宽度小于或等于所述当前显示区域的宽度为止。The first merging subunit is further configured to set the i=i+1 when the second actual width of the target list is greater than the width of the current display area, and return the first sorting result of the first sorting result. The step of merging the column items in the i merging groups until the second actual width of the target list is less than or equal to the width of the current display area.
可选地,所述确定第一合并子单元用于:Optionally, the determining the first merging subunit is used for:
获取所述第i个合并组中每个列项对应的列项宽度比例以及所述第i个合并组对应的合并列宽度比例;Obtain the column item width ratio corresponding to each column item in the ith merged group and the merged column width ratio corresponding to the ith merged group;
确定第一宽度和第二宽度,所述第一宽度是指所述第i个合并组中每个列项对应的列项宽度比例与所述最小宽度之间的乘积之和,所述第二宽度是指所述第i个合并组对应的合并列宽度比例与所述最小宽度之间的乘积,;Determine a first width and a second width, where the first width refers to the sum of the product of the ratio of the width of each column item corresponding to each column item in the i-th merged group and the product of the minimum width, and the second width The width refers to the product between the width ratio of the merged column corresponding to the ith merged group and the minimum width,;
确定所述第一宽度与所述第二宽度之间的第一宽度差值,并将所述最小宽度减去所述第一宽度差值以及所述第i个合并组之前的(i-1)个合并组分别对应的宽度差值,得到所述目标列表的第二实际宽度。determining a first width difference between the first width and the second width, and subtracting the first width difference and (i-1 before the ith merged group from the minimum width ) respectively corresponding width difference values of the merged groups to obtain the second actual width of the target list.
可选地,所述第二合并单元包括:Optionally, the second merging unit includes:
确定子单元,用于令k=2,确定所述目标列表的第三实际宽度,所述第三实际宽度是指将所述M个合并组中的列项全部合并以及将所述剩余的列项中倒数k个列项进行合并之后所述目标列表的实际宽度,所述k为大于或等于2的正整数;Determining subunit, for setting k=2, and determining the third actual width of the target list, where the third actual width refers to merging all column items in the M merging groups and merging the remaining columns The actual width of the target list after the reciprocal k column items in the item are merged, where k is a positive integer greater than or equal to 2;
所述确定子单元还用于如果所述目标列表的第三实际宽度大于所述当前显示区域的宽度,则令所述k=k+1,返回确定所述目标列表的第三实际宽度的步骤,直至所述目标列表的第三实际宽度小于或等于所述当前显示区域的宽度为止时,将所述剩余的列项中倒数k个列项确定为选择的至少两个列项。The determining subunit is further configured to set k=k+1 if the third actual width of the target list is greater than the width of the current display area, and return to the step of determining the third actual width of the target list , until the third actual width of the target list is less than or equal to the width of the current display area, determine the last k column items in the remaining column items as the selected at least two column items.
可选地,所述将第二合并单元包括:Optionally, the second merging unit includes:
第二合并子单元,用于将所述M个合并组中的列项分别进行合并,得到M个合并列;The second merging subunit is used for merging the column items in the M merging groups respectively to obtain M merging columns;
第三合并子单元,用于按照所述选择的至少两个列项的顺序,将每N个列项合并成一个合并列。The third merging subunit is configured to merge every N column items into a merged column according to the sequence of the selected at least two column items.
可选地,所述第一显示模块包括:Optionally, the first display module includes:
第一显示单元,用于当合并为一个合并列的至少两个列项对应的至少两个属性信息中包括合并列列名时,将所述合并列列名作为由所述至少两个列项合并得到的合并列的列名进行显示;The first display unit is configured to, when at least two attribute information corresponding to at least two column items merged into one merged column includes a merged column column name, use the merged column column name as a combination of the at least two column items. The column names of the merged columns obtained by the merge are displayed;
第二显示单元,用于当合并为一个合并列的至少两个列项对应的至少两个属性信息中不包括合并列列名时,将由所述至少两个列项合并得到的合并列的列名设置为预设列名,并按照所述预设列名显示所述合并列;The second display unit is configured to combine the columns of the merged column obtained by merging the at least two column items when the at least two attribute information corresponding to the at least two column items merged into one merged column does not include the merged column column name The name is set to the preset column name, and the merged column is displayed according to the preset column name;
第三显示单元,用于在所述合并列中显示所述至少两个列项的内容。A third display unit, configured to display the content of the at least two column items in the merged column.
可选地,所述装置还包括:Optionally, the device further includes:
第二获取模块,用于当所述最小宽度小于所述当前显示区域的宽度时,获取所述多个列项中每个列项的列项宽度比例;a second obtaining module, configured to obtain the column item width ratio of each column item in the plurality of column items when the minimum width is smaller than the width of the current display area;
计算模块,用于将所述多个列项中每个列项的列项宽度比例与所述当前显示区域的宽度相乘,得到每个列项的列宽;a calculation module, configured to multiply the column item width ratio of each column item in the plurality of column items by the width of the current display area to obtain the column width of each column item;
第二显示模块,用于基于每个列项的列宽显示所述目标列表。The second display module is configured to display the target list based on the column width of each column item.
可选地,所述装置还包括:Optionally, the device further includes:
生成模块,用于对于所述目标列表包括的R个合并列中的每个合并列,基于所述合并列生成合并列属性信息,所述合并列属性信息包括拆分属性、所述合并列对应的合并组序号、合并列宽度比例和所述合并列中每个列项对应的列项宽度比例,所述R为大于或等于1的正整数;The generating module is configured to, for each merged column in the R merged columns included in the target list, generate merged column attribute information based on the merged column, where the merged column attribute information includes a split attribute, and the merged column corresponds to The merged group serial number, the merged column width ratio and the column item width ratio corresponding to each column item in the merged column, the R is a positive integer greater than or equal to 1;
第二确定模块,用于确定所述合并之后的目标列表的第四实际宽度,所述第四实际宽度是列项合并之后进行显示时所述目标列表的实际宽度;a second determining module, configured to determine the fourth actual width of the merged target list, where the fourth actual width is the actual width of the target list when the column items are merged and displayed;
拆分模块,用于当检测到所述当前显示区域的宽度大于所述第四实际宽度时,基于所述当前显示区域的宽度和所述第四实际宽度,对所述R个合并列中的至少一个合并列进行拆分。A splitting module, configured to, when it is detected that the width of the current display area is greater than the fourth actual width, perform a splitting of the R merged columns based on the width of the current display area and the fourth actual width. At least one merged column is split.
可选地,所述拆分模块包括:Optionally, the splitting module includes:
排序单元,用于按照所述R个合并列对应的合并组序号对所述R个合并列进行排序,得到第二排序结果;a sorting unit, configured to sort the R merged columns according to the merge group serial numbers corresponding to the R merged columns to obtain a second sorting result;
第二确定单元,用于令j=1,确定第三宽度和所述目标列表的第五实际宽度,所述第三宽度是指所述第二排序结果中倒数第j个合并列的每个列项对应的列项宽度比例与所述第五实际宽度的乘积之和,所述第五实际宽度是指将所述第二排序结果中倒数j-1个合并列进行拆分之后所述目标列表的实际宽度,且在所述j=1时,所述第五实际宽度与所述第四实际宽度相等;The second determining unit is configured to set j=1 to determine a third width and a fifth actual width of the target list, where the third width refers to each of the jth last merged column in the second sorting result The sum of the product of the column item width ratio corresponding to the column item and the fifth actual width, where the fifth actual width refers to the target after splitting the reciprocal j-1 merged columns in the second sorting result the actual width of the list, and when the j=1, the fifth actual width is equal to the fourth actual width;
拆分单元,用于当所述当前显示区域的宽度与所述第五实际宽度之间的差值大于所述第三宽度时,基于所述倒数第j个合并列中每个列项对应的列项宽度比例,将所述倒数第j个合并列进行拆分,令所述j=j+1,返回确定第三宽度的步骤,直至所述当前显示区域的宽度小于或等于所述目标列表的第五实际宽度,或直至所述当前显示区域的宽度与所述目标列表的第五实际宽度之间的差值小于所述第三宽度为止。A splitting unit, configured to, when the difference between the width of the current display area and the fifth actual width is greater than the third width, based on the value corresponding to each column item in the jth last merged column Column item width ratio, split the last jth merged column, let the j=j+1, return to the step of determining the third width, until the width of the current display area is less than or equal to the target list , or until the difference between the width of the current display area and the fifth actual width of the target list is smaller than the third width.
第三方面,提供一种列表显示装置,所述列表显示装置包括处理器、通信接口、存储器和通信总线;In a third aspect, a list display device is provided, the list display device includes a processor, a communication interface, a memory, and a communication bus;
所述处理器,所述通信接口和所述存储器通过所述通信总线完成相互间的通信;the processor, the communication interface and the memory communicate with each other through the communication bus;
所述存储器用于存放计算机程序;The memory is used to store computer programs;
所述处理器用于执行存储器上所存放的程序,以实现上述第一方面所述的数据查询方法。The processor is configured to execute the program stored in the memory to implement the data query method described in the first aspect.
第四方面,提供一种计算机可读存储介质,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现上述第一方面所述的列表显示方法。In a fourth aspect, a computer-readable storage medium is provided, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the method for displaying a list described in the first aspect above is implemented.
本发明实施例提供的技术方案带来的有益效果是:将获取到的待显示的目标列表的最小宽度和确定的当前显示区域的宽度进行比较,如果该最小宽度大于当前显示区域的宽度时,则根据该目标列表中多个列项对应的属性信息对该多个列项中的至少两个列项进行合并,由于对列项进行了合并,合并之后的目标列表的实际宽度减小,此时,在当前显示区域中显示该目标列表时,就可以更完整的显示该目标列表中的信息,避免了用户在查看列表信息时多次反复的拖动滚动条的问题,简化了操作,改善了用户体验。The beneficial effect brought by the technical solution provided by the embodiment of the present invention is: the obtained minimum width of the target list to be displayed is compared with the determined width of the current display area, and if the minimum width is greater than the width of the current display area, Then at least two column items in the multiple column items are merged according to the attribute information corresponding to the multiple column items in the target list. Because the column items are merged, the actual width of the merged target list is reduced. When the target list is displayed in the current display area, the information in the target list can be displayed more completely, which avoids the problem that the user repeatedly drags the scroll bar when viewing the list information, simplifies the operation, and improves the user experience.
附图说明Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings used in the description of the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative effort.
图1是本发明实施例提供的一种列表显示方法的流程图;1 is a flowchart of a method for displaying a list provided by an embodiment of the present invention;
图2是本发明实施例提供的一种对目标列表进行合并的方法的流程图;2 is a flowchart of a method for merging target lists provided by an embodiment of the present invention;
图3是本发明实施例提供的一种对目标列表进行合并的方法的流程图;3 is a flowchart of a method for merging target lists provided by an embodiment of the present invention;
图4是本发明实施例提供的一种对目标列表进行合并的方法的流程图;4 is a flowchart of a method for merging target lists provided by an embodiment of the present invention;
图5是本发明实施例提供的一种对合并之后的目标列表进行拆分的方法的流程图;5 is a flowchart of a method for splitting a merged target list provided by an embodiment of the present invention;
图6A是本发明实施例提供的一种列表显示装置的结构示意图;6A is a schematic structural diagram of a list display device according to an embodiment of the present invention;
图6B是本发明实施例提供的一种合并模块的结构示意图;6B is a schematic structural diagram of a merging module provided by an embodiment of the present invention;
图6C是本发明实施例提供的一种列表显示装置的结构示意图;6C is a schematic structural diagram of a list display device according to an embodiment of the present invention;
图6D是本发明实施例提供的一种列表显示装置的结构示意图;6D is a schematic structural diagram of a list display device according to an embodiment of the present invention;
图7是本发明实施例提供的一种列表显示装置框图。FIG. 7 is a block diagram of a list display apparatus provided by an embodiment of the present invention.
具体实施方式Detailed ways
为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施方式作进一步地详细描述。In order to make the objectives, technical solutions and advantages of the present invention clearer, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.
在对本发明实施例进行详细的解释说明之前,先对本发明实施例的应用场景予以介绍。随着互联网技术的发展,设计人员在设计网站时不必再为多个不同的终端分别设计不同的版本,而是只需要设计一个网站即可以同时兼容多个不同的终端,当该网站的界面在不同的终端上进行显示时,可以根据终端当前显示区域的宽度来调整界面的布局方式,从而为不同终端的用户提供舒适的界面。其中,在网站的界面中可以显示有文本、图片、列表等一系列内容,当该界面中包括列表时,可能会由于列表的列项太多而导致列表宽度大于当前显示区域的宽度,以致终端在当前显示区域中无法完整显示该列表,在这种情况下,即可以根据当前显示区域的宽度对该列表的布局方式进行调整,从而使该列表可以完整的显示在当前显示区域中。本发明实施例提供的列表显示方法即可以用于上述场景中,以实现对界面中的列表的布局方式的调整和显示。Before explaining the embodiments of the present invention in detail, an application scenario of the embodiments of the present invention is introduced. With the development of Internet technology, designers no longer need to design different versions for multiple different terminals when designing websites, but only need to design one website to be compatible with multiple different terminals at the same time. When displaying on different terminals, the layout of the interface can be adjusted according to the width of the current display area of the terminal, so as to provide users of different terminals with a comfortable interface. Among them, a series of content such as text, pictures, lists, etc. can be displayed in the interface of the website. When the interface includes a list, the width of the list may be larger than the width of the current display area due to too many column items in the list, so that the terminal The list cannot be completely displayed in the current display area. In this case, the layout of the list can be adjusted according to the width of the current display area, so that the list can be completely displayed in the current display area. The list display method provided by the embodiment of the present invention can be used in the above-mentioned scenario, so as to realize the adjustment and display of the layout of the list in the interface.
在对本发明实施例的应用场景进行了详细的解释说明之后,接下来,将通过以下实施例,同时结合附图对该列表显示方法进行详细的解释说明。After the detailed explanation of the application scenarios of the embodiments of the present invention, the following embodiments will be used to explain the list display method in detail at the same time with reference to the accompanying drawings.
图1是本发明实施例提供的一种列表显示方法,如图1所示,该方法可以应用于终端中,包括以下步骤:FIG. 1 is a list display method provided by an embodiment of the present invention. As shown in FIG. 1 , the method can be applied to a terminal and includes the following steps:
步骤101:获取待显示的目标列表的最小宽度和该目标列表中多个列项分别对应的属性信息,最小宽度为该目标列表完整显示时所需要占用的最小宽度。Step 101: Obtain the minimum width of the target list to be displayed and attribute information corresponding to multiple column items in the target list, where the minimum width is the minimum width required for the complete display of the target list.
通常,当网站的界面中包括有列表时,在该网站的界面数据中会包含有列表代码,该列表代码中包括该列表中的每个列项对应的属性信息,该属性信息用于指示对应的列项的具体配置。Usually, when the interface of a website includes a list, the interface data of the website will include a list code, and the list code includes attribute information corresponding to each column item in the list, and the attribute information is used to indicate the corresponding The specific configuration of the column item.
当终端显示包含有列表的某网站的界面时,终端可以获取该待显示的目标列表的最小宽度,该最小宽度是在该目标列表的代码中预先设置的能够保证该目标列表完整显示所需要占用的最小宽度。其中,该目标列表完整显示是指该目标列表的所有列项中的数据信息均能显示完整。When the terminal displays the interface of a website containing a list, the terminal can obtain the minimum width of the target list to be displayed, and the minimum width is preset in the code of the target list and required to ensure the complete display of the target list. minimum width. The complete display of the target list means that the data information in all column items of the target list can be displayed completely.
另外,终端还可以从该目标列表的代码中获取该目标列表中多个列项分别对应的属性信息。对于该多个列项中的每个列项的属性信息,该属性信息中可以包括该列项的内容、列项宽度比例等基本信息,也可以包括用于指示该列项为需要合并的列项的合并属性信息以及该列项对应的合并组以及合并组序号、该列项在合并后的合并列中的显示排序以及该列项对应的合并列的列名等合并信息。当然,该属性信息也可以只包括列项的内容、列项宽度比例等基本信息,而不包括合并信息。或者,对于不参与合并的列项,在该列项的属性信息中不仅包括基本信息,还可以包括用于指示该列项不参与合并的信息。In addition, the terminal may also acquire attribute information corresponding to a plurality of column items in the target list from the code of the target list. For the attribute information of each column item in the plurality of column items, the attribute information may include basic information such as the content of the column item, the width ratio of the column item, etc., or may include a column used to indicate that the column item is a column that needs to be merged The merge attribute information of the item, the merge group corresponding to the column item and the merge group serial number, the display order of the column item in the merged merge column, and the column name of the merge column corresponding to the column item are merged information. Of course, the attribute information may also only include basic information such as the content of the column item, the width ratio of the column item, etc., without including the merge information. Or, for a column item that does not participate in the merging, the attribute information of the column item includes not only basic information, but also information indicating that the column item does not participate in the merging.
其中,列项宽度比例是指该列项的宽度占该目标列表的最小宽度的比例。属于同一个合并组的列项的合并组序号是相同的,也就是说,具有相同合并组序号的列项将被合并为一个合并列。另外,相较于只包括基本信息的属性信息对应的列项,在进行合并时,优先合并既包括基本信息,又包括合并属性信息和合并信息的列项,而对于包括用于指示该列项不参与合并的信息的列项而言,在进行合并时,该列项可以不参与合并。The column item width ratio refers to the ratio of the width of the column item to the minimum width of the target list. Column items belonging to the same merge group have the same merge group sequence number, that is, column items with the same merge group sequence number will be merged into one merge column. In addition, compared with column items corresponding to attribute information that only includes basic information, when merging, priority is given to merging column items that include not only basic information, but also merged attribute information and merged information. For a column item of information that does not participate in the merger, when the merger is performed, the column item may not participate in the merger.
需要说明的是,该属性信息中包括的合并信息以及用于指示该列项不参与合并的信息可以是由设计该目标列表的设计人员在生成该目标列表代码时,根据该目标列表的内容自行设置的。例如,对于该目标列表中内容分类属于同一类的某几个列项,设计人员可以在这几个列项分别对应的属性信息中设置合并信息,并将这几个列项的合并信息中的合并组和合并组序号设置为相同的,也即是,在进行合并时,终端可以将这几个列项一起合并组成一个合并列。再例如,当在该目标列表的多个属性信息中设置了多个合并组时,技术人员可以根据组成合并组的列项的重要程度,为各个合并组设置不同的合并组序号,该合并组序号不仅可以用于区分不同的合并组,还可以用于指示合并时该合并组的优先级。例如,该目标列表中包括三个合并组,三个合并组的合并组序号分别为1、2、3,在这种情况下,当进行合并时,即可以按照该合并组序号,优先将合并组序号为1的合并组对应的列项进行合并。It should be noted that the merging information included in the attribute information and the information used to indicate that the column item does not participate in the merging may be designed by the designer of the target list when generating the target list code according to the content of the target list. set. For example, for certain column items in the target list whose content categories belong to the same category, the designer can set merge information in the attribute information corresponding to these column items respectively, and combine the merge information of these column items with the merge information. The merge group and the merge group serial number are set to be the same, that is, when merging is performed, the terminal can combine these several column items together to form a merge column. For another example, when multiple merging groups are set in the multiple attribute information of the target list, the technician can set different merging group serial numbers for each merging group according to the importance of the column items constituting the merging group. The sequence number can not only be used to distinguish different merge groups, but also can be used to indicate the priority of the merge group when merging. For example, the target list includes three merge groups, and the merge group numbers of the three merge groups are 1, 2, and 3 respectively. In this case, when merging is performed, the merge group can be prioritized according to the merge group sequence number. The column items corresponding to the merged group whose group serial number is 1 are merged.
步骤102:确定当前显示区域的宽度。Step 102: Determine the width of the current display area.
当获取到待显示的目标列表的最小宽度和多个属性信息之后,终端可以确定当前显示区域的宽度,该当前显示区域的宽度可以是该终端的屏幕的宽度,也可以是该终端中用于显示该目标列表的区域。After obtaining the minimum width and multiple attribute information of the target list to be displayed, the terminal may determine the width of the current display area, and the width of the current display area may be the width of the screen of the terminal, or the width of the current display area in the terminal. The area where this target list is displayed.
步骤103:当最小宽度大于当前显示区域的宽度时,基于获取得到的多个属性信息,对该多个列项中的至少两个列项进行合并,并显示列项合并之后的目标列表。Step 103 : when the minimum width is greater than the width of the current display area, combine at least two column items of the plurality of column items based on the acquired plurality of attribute information, and display the target list after the column items are merged.
当确定当前显示区域的宽度之后,终端可以将该当前显示区域的宽度和目标列表的最小宽度进行比较,如果当前显示区域的宽度大于或等于该目标列表的最小宽度,则可以确定该目标列表可以在终端的当前显示区域中完整显示,此时,终端可以直接在当前显示区域显示该目标列表。如果当前显示区域的宽度小于该目标列表的最小宽度,则可以确定在当前显示区域中无法完整显示该目标列表,此时,终端可以根据获取到的多个属性信息,对该多个列项中的至少两个列项进行合并,并显示列项合并之后的目标列表。After determining the width of the current display area, the terminal can compare the width of the current display area with the minimum width of the target list, and if the width of the current display area is greater than or equal to the minimum width of the target list, it can be determined that the target list can It is completely displayed in the current display area of the terminal. At this time, the terminal can directly display the target list in the current display area. If the width of the current display area is smaller than the minimum width of the target list, it can be determined that the target list cannot be completely displayed in the current display area. to merge at least two column items, and display the target list after the column items are merged.
其中,当最小宽度大于当前显示区域的宽度时,终端可以基于获取到的多个属性信息,通过对该多个列项中的至少两个列项进行一次性合并来使合并之后的目标列表的实际宽度满足当前显示区域的宽度,也可以通过多次合并得到合并之后的目标列表,以使多次合并之后的目标列表的实际宽度满足当前显示区域的宽度,当然,终端还可以将上述两种方法进行结合,以对该多个列项中的至少两个列项进行合并。具体的,上述对该多个列项中的至少两个列项进行合并的实现方式将通过后续实施例进行详细的解释说明。Wherein, when the minimum width is greater than the width of the current display area, the terminal may merge at least two of the multiple column items at one time based on the acquired attribute information to make the merged target list The actual width satisfies the width of the current display area, and the merged target list can also be obtained through multiple merging, so that the actual width of the target list after multiple merging meets the width of the current display area. Of course, the terminal can also combine the above two The method combines to combine at least two of the plurality of column items. Specifically, the above-mentioned implementation manner of merging at least two column items in the plurality of column items will be explained in detail through subsequent embodiments.
当对该多个列项中的至少两个列项进行合并之后,如果该至少两个列项合并为一个合并列,且该至少两个列项对应的至少两个属性信息中包括合并列列名时,那么,终端可以将该合并列列名作为由该至少两个列项合并后得到的合并列的列名进行显示;当然,如果该至少两个列项对应的至少两个属性信息中不包括合并列列名时,则将该至少两个列项合并之后得到的合并列的列名设置为预设列名,并按照该预设列名显示该合并列。After merging at least two column items in the multiple column items, if the at least two column items are merged into one merged column, and the at least two attribute information corresponding to the at least two column items includes the merged column column name, the terminal can display the combined column name as the combined column name obtained by combining the at least two column items; of course, if the at least two attribute information corresponding to the at least two column items When the combined column name is not included, the combined column name obtained after combining the at least two column items is set as the preset column name, and the combined column is displayed according to the preset column name.
还需要说明的是,当对该合并列进行显示时,该合并列包括该至少两个列项的内容。具体的,对于该至少两个列项中每个列项对应的内容,终端可以在该合并列中显示合并前的每个列项的列名,并且在该列名之后显示对应的列项内容。It should also be noted that when the combined column is displayed, the combined column includes the contents of the at least two column items. Specifically, for the content corresponding to each column item in the at least two column items, the terminal may display the column name of each column item before merging in the merged column, and display the content of the corresponding column item after the column name .
当对该多个列项中的至少两个列项进行合并之后,如果该至少两个列项对应的属性信息中包括该列项在合并后的合并列中的显示排序,那么,终端可以按照该显示排序将该至少两个列项显示在该目标列表的对应的合并列中。After merging at least two column items in the multiple column items, if the attribute information corresponding to the at least two column items includes the display order of the column items in the merged merged column, the terminal can follow the The display ordering displays the at least two column items in corresponding merged columns of the target list.
可选地,当最小宽度小于当前显示区域的宽度时,终端也可以将获取到的多个属性信息中每个属性信息包括的列项宽度比例乘以当前显示区域的宽度,从而得到该目标列表的多个列项中的每个列项的宽度,之后,终端可以按照确定的列项宽度将该目标列表铺满显示在当前显示区域中。Optionally, when the minimum width is smaller than the width of the current display area, the terminal may also multiply the width ratio of the column item included in each attribute information in the obtained plurality of attribute information by the width of the current display area, thereby obtaining the target list. The width of each column item in the plurality of column items, after that, the terminal can display the target list in the current display area in full according to the determined column item width.
在本发明实施例中,终端将获取到的待显示的目标列表的最小宽度和确定的当前显示区域的宽度进行比较,如果该最小宽度大于当前显示区域的宽度时,则根据该目标列表中多个列项对应的属性信息对该多个列项中的至少两个列项进行合并,由于对列项进行了合并,合并之后的目标列表的实际宽度减小,此时,在当前显示区域中显示该目标列表时,就可以更完整的显示该目标列表中的信息,避免了用户在查看列表信息时多次反复的拖动滚动条的问题,简化了操作,改善了用户体验。In this embodiment of the present invention, the terminal compares the acquired minimum width of the target list to be displayed with the determined width of the current display area, and if the minimum width is greater than the width of the current display area, the The attribute information corresponding to each column item is merged with at least two column items among the multiple column items. Since the column items are merged, the actual width of the merged target list is reduced. At this time, in the current display area When the target list is displayed, the information in the target list can be displayed more completely, which avoids the problem that the user repeatedly drags the scroll bar when viewing the list information, simplifies the operation, and improves the user experience.
基于上述实施例中步骤103的描述,当最小宽度大于当前显示区域的宽度时,终端可以采用不同的方法对该目标列表的多个列项中的至少两个列项进行合并。图2是本发明实施例提供的一种对多个列项中的至少两个列项进行合并的方法的流程图,如图2所示,该方法包括以下步骤:Based on the description of
步骤201:如果多个属性信息中存在包括合并组序号的属性信息,则将合并组序号相同的属性信息对应的列项组成一个合并组,以得到M个合并组,M为大于或等于1的正整数。Step 201: If there is attribute information including the merge group serial number in the plurality of attribute information, the column items corresponding to the attribute information with the same merge group serial number are formed into a merge group to obtain M merge groups, where M is greater than or equal to 1. positive integer.
基于前述实施例中的描述可知,对于目标列表的多个属性信息中的每个属性信息,该属性信息中可以包括用于指示该列项可以进行合并的合并属性信息以及该列项对应的合并组以及合并组序号、该列项在合并后的合并列中的显示排序以及该列项对应的合并列的列名等合并信息,也可以不包括。也即是说,在该目标列表的多个属性信息中,可能存在包括有合并组序号的属性信息,也可能不存在包括有合并组序号的属性信息。而且,由于在合并时要优先合并具有合并属性的列项,而如果属性信息包括合并组序号,则该属性信息对应的列项一定是具有合并属性的列项,因此,当最小宽度大于当前显示区域的宽度时,终端首先可以从该目标列表的多个属性信息中查找是否存在包括合并组序号的属性信息。Based on the description in the foregoing embodiments, it can be known that, for each attribute information in the multiple attribute information of the target list, the attribute information may include merged attribute information indicating that the column item can be merged and the merged corresponding to the column item. The group and the merged group serial number, the display order of the column item in the merged merged column, and the column name of the merged column corresponding to the column item may not be included. That is to say, in the plurality of attribute information in the target list, there may be attribute information including the merge group serial number, or there may be no attribute information including the merge group serial number. Moreover, because the column item with merged attribute should be merged first when merging, and if the attribute information includes the merge group serial number, the column item corresponding to the attribute information must be the column item with merged attribute. Therefore, when the minimum width is larger than the current display When the width of the area is set, the terminal can firstly search whether there is attribute information including the serial number of the merged group from a plurality of attribute information in the target list.
如果该多个属性信息中存在包括合并组序号的属性信息,那么,由于属于同一个合并组的列项对应的合并组序号是相同的,因此,终端可以将合并组序号相同的属性信息对应的列项组成一个合并组,从而得到该目标列表包括的M个合并组。If there is attribute information including the merge group serial number in the plurality of attribute information, then, since the merge group serial numbers corresponding to the column items belonging to the same merge group are the same, the terminal can The column items form a merged group, thereby obtaining M merged groups included in the target list.
进一步地,如果该多个属性信息中不存在包括合并组序号的属性信息,也即是,该目标列表中的多个列项不存在合并的优先级,此时,终端可以参考步骤204中相关的实现方式对该目标列表的多个列项中的至少两个列项进行合并。Further, if there is no attribute information including the merging group serial number in the plurality of attribute information, that is, the multiple items in the target list do not have the priority of merging, at this time, the terminal can refer to the relevant information in
例如,表1是本发明实施例提供的一种目标列表,表2为该目标列表的多个列项对应的属性信息,如表2中所示,该目标列表的第1-3个列项分别对应的属性信息中均只包括该列项的列名和列项固定比例等基本信息。第4-6个列项分别对应的属性信息中均包括合并组序号“group1”,因此,第4、5、6个列项属于同一合并组,第7、8个列项分别对应的属性信息中均包括合并组序号“group2”,也即是,第7、8个列项属于同一个合并组,第9个列项的属性信息中除了包括基本信息之外,还包括用于指示该列项不参与合并的信息“fix:true”,也即是,第9个列项在任何情况下均不参与合并。在这种情况下,终端可以根据该多个属性信息将第4-6个列项组成一个合并组,将第7、8个列项组成一个合并组,从而得到该目标列表的2个合并组。For example, Table 1 is a target list provided by an embodiment of the present invention, and Table 2 is attribute information corresponding to multiple column items of the target list. As shown in Table 2, the first to third column items of the target list The corresponding attribute information only includes basic information such as the column name of the column item and the fixed ratio of the column item. The attribute information corresponding to the 4th to 6th column items respectively includes the merge group serial number "group1". Therefore, the 4th, 5th, and 6th column items belong to the same merge group, and the attribute information corresponding to the 7th and 8th column items respectively Include the merge group serial number "group2", that is, the 7th and 8th column items belong to the same merge group, and the attribute information of the 9th column item not only includes the basic information, but also includes the information used to indicate the column The information "fix: true" that the item does not participate in the merging, that is, the 9th column item does not participate in the merging under any circumstances. In this case, the terminal can form a merged group of the 4th to 6th column items according to the plurality of attribute information, and form a merged group of the 7th and 8th column items, so as to obtain two merged groups of the target list .
表1目标列表Table 1 Target list
表2目标列表的多个列项对应的属性信息Table 2 Attribute information corresponding to multiple column items of the target list
步骤202:确定目标列表的第一实际宽度,该第一实际宽度是指将M个合并组中的列项全部合并之后该目标列表的实际宽度。Step 202: Determine the first actual width of the target list, where the first actual width refers to the actual width of the target list after all the column items in the M merge groups are merged.
当得到M个合并组之后,终端可以首先根据该M个合并组中的列项分别对应的属性信息以及合并列宽度比例,计算如果将该M个合并组全部进行合并之后该目标列表的实际宽度,即该目标列表的第一实际宽度。其中,合并列宽度比例是预先设置的固定比例,且该合并列宽度比例是指合并后的合并列的宽度占最小宽度的比例。After obtaining M merged groups, the terminal may first calculate the actual width of the target list if all the M merged groups are merged according to the attribute information corresponding to the column items in the M merged groups and the merged column width ratio respectively , which is the first actual width of the target list. The combined column width ratio is a preset fixed ratio, and the combined column width ratio refers to the ratio of the width of the combined combined column to the minimum width.
当确定第一实际宽度之后,终端可以将该第一实际宽度与当前显示区域的宽度进行比较。如果该第一实际宽度小于当前显示区域的宽度,则说明终端只需将该M个合并组进行合并或者只需将该M个合并组中的至少一个合并组进行合并,就能保证该目标列表完整显示在当前显示区域中。此时,终端可以执行步骤203,来对该M个合并组中的至少一个合并组进行合并。After determining the first actual width, the terminal may compare the first actual width with the width of the current display area. If the first actual width is smaller than the width of the current display area, it means that the terminal only needs to merge the M merging groups or only needs to merge at least one merging group among the M merging groups, and the target list can be guaranteed. Completely displayed in the current display area. At this time, the terminal may execute
如果该第一实际宽度大于当前显示区域的宽度,则说明终端即使将M个合并组全部进行合并,合并之后的目标列表也依然不能完整的显示在当前显示区域中,此时,终端即需要执行步骤204,从除了所述M个合并组以及不参与合并的列项之外剩余的列项中选择至少两个列项来进行合并。If the first actual width is greater than the width of the current display area, it means that even if the terminal merges all M merged groups, the merged target list still cannot be completely displayed in the current display area. At this time, the terminal needs to execute Step 204: Select at least two column items for merging from the remaining column items except the M merging groups and the column items that do not participate in the merging.
需要说明的是,当得到M个合并组之后,对于该M个合并组中的每个合并组,终端可以根据该合并组中的列项对应的属性信息中的列项宽度比例,计算该合并组中每个列项的宽度,从而得到该合并组中所有列项的宽度之和。按照上述方法,终端可以得到M个合并组中所有列项的宽度之和。之后,终端可以将合并列宽度比例乘以最小宽度,得到一个合并列的宽度,由于M个合并组合并之后会得到M个合并列,因此,合并之后M个合并列的宽度之和为M乘以一个合并列的宽度。之后,终端可以将M个合并组中所有列项的宽度之和减去M个合并列的宽度之和,得到该目标列表的第一实际宽度。It should be noted that, after obtaining M merging groups, for each merging group in the M merging groups, the terminal may calculate the merging group according to the column item width ratio in the attribute information corresponding to the column items in the merging group. The width of each column item in the group, resulting in the sum of the widths of all column items in the merged group. According to the above method, the terminal can obtain the sum of the widths of all column items in the M merged groups. After that, the terminal can multiply the width ratio of the merged column by the minimum width to obtain the width of one merged column. Since M merged combinations will obtain M merged columns, the sum of the widths of the M merged columns after merging is M times the sum of the widths. Take the width of one merged column. After that, the terminal may subtract the sum of the widths of the M merged columns from the sum of the widths of all the column items in the M merged groups to obtain the first actual width of the target list.
步骤203:如果该第一实际宽度大于当前显示区域的宽度,对M个合并组中的至少一个合并组中的列项进行合并。Step 203: If the first actual width is greater than the width of the current display area, merge the column items in at least one merged group among the M merged groups.
基于步骤202中的描述,当终端确定第一实际宽度小于当前显示区域的宽度时,此时,终端可以对M个合并组中的至少一个合并组中的列项进行合并。Based on the description in
其中,终端对M个合并组中的至少一个合并组中的列项进行合并的操作可以分为以下三个步骤:Wherein, the operation of the terminal merging the column items in at least one merging group in the M merging groups can be divided into the following three steps:
2031:按照M个合并组分别对应的合并组序号对M个合并组进行排序,得到第一排序结果。2031: Sort the M merge groups according to the merge group serial numbers corresponding to the M merge groups respectively, to obtain a first sorting result.
终端可以将M个合并组按照合并组序号从小到大的顺序进行排序,也可以按照合并组序号从大到小的顺序进行排序。当按照合并组序号从小到大的顺序进行排序时,合并组序号越小,该合并组中的列项的合并优先级越高。当按照合并组序号从大到小的顺序进行排序时,合并组序号越大,该合并组中的列项的合并优先级越高。本发明实施例中以按照合并组序号从小到大的顺序进行排序为例进行解释说明。The terminal may sort the M merging groups in descending order of merging group serial numbers, or may sort them in descending order of merging group serial numbers. When sorting in ascending order of the merge group sequence number, the smaller the merge group sequence number, the higher the merge priority of the column items in the merge group. When sorting in descending order of the merge group sequence number, the larger the merge group sequence number, the higher the merge priority of the column items in the merge group. In the embodiment of the present invention, the sorting according to the sequence number of the merged group from small to large is used as an example for explanation.
2032:令i=1,对第一排序结果中的第i个合并组中的列项进行合并,并确定目标列表的第二实际宽度,第二实际宽度是指将第一排序结果中前i个合并组中的列项进行合并之后目标列表的实际宽度,i为大于或等于1且小于或等于M的正整数。2032: Set i=1, merge the column items in the i-th merge group in the first sorting result, and determine the second actual width of the target list, where the second actual width refers to combining the first i in the first sorting result. The actual width of the target list after the column items in the merged groups are merged, i is a positive integer greater than or equal to 1 and less than or equal to M.
当得到第一排序结果之后,首先令i=1,终端可以将该第一排序结果中的第1个合并组中的列项进行合并,并确定第1个合并组合并之后该目标列表的实际宽度,也即第二实际宽度。After obtaining the first sorting result, first set i=1, the terminal can merge the column items in the first merged group in the first sorting result, and determine the actual value of the target list after the first merged group is merged Width, that is, the second actual width.
需要说明的是,终端确定第二实际宽度的操作可以为:获取第i个合并组中每个列项对应的列项宽度比例以及第i个合并组对应的合并列宽度比例;确定第一宽度和第二宽度,第一宽度是指第i个合并组中每个列项对应的列项宽度比例与最小宽度之间的乘积之和,第二宽度是指第i个合并组对应的合并列宽度比例与最小宽度之间的乘积;确定第一宽度与第二宽度之间的第一宽度差值,并将最小宽度减去第一宽度差值以及第i个合并组之前的i-1个合并组分别对应的宽度差值,得到目标列表的第二实际宽度。It should be noted that, the operation of determining the second actual width by the terminal may be: obtaining the column item width ratio corresponding to each column item in the ith merged group and the merged column width ratio corresponding to the ith merged group; determining the first width and the second width, the first width refers to the sum of the products between the ratio of the column item width corresponding to each column item in the ith merged group and the minimum width, and the second width refers to the merged column corresponding to the ith merged group The product between the width ratio and the minimum width; determines the first width difference between the first width and the second width, and subtracts the first width difference from the minimum width and i-1 before the ith merged group The width differences corresponding to the respective groups are merged to obtain the second actual width of the target list.
其中,当i=1时,终端可以将第1个合并组中每个列项对应的宽度比例与最小宽度相乘,得到每个列项的宽度,将每个列项的宽度相加,得到第1个合并组中的所有列项在合并之前所占用的总宽度,也即第一宽度。之后,终端可以将合并列宽度比例与最小宽度相乘,得到将第1个合并组中的列项进行合并之后得到的合并列的宽度,也即第二宽度。将该第一宽度与第二宽度相减,得到的第一宽度差值,该第一宽度差值即为将第1个合并组中的列项进行合并之后该目标列表减小的宽度。将最小宽度减去该第一宽度差值,即为将第1个合并组中的列项进行合并之后该目标列表的实际宽度。Among them, when i=1, the terminal can multiply the width ratio corresponding to each column item in the first merged group by the minimum width to obtain the width of each column item, and add the width of each column item to obtain The total width occupied by all column items in the first merge group before merging, that is, the first width. Afterwards, the terminal may multiply the width ratio of the merged column by the minimum width to obtain the width of the merged column obtained after merging the column items in the first merged group, that is, the second width. The first width difference is obtained by subtracting the first width from the second width, and the first width difference is the reduced width of the target list after the column items in the first merge group are merged. The minimum width minus the first width difference is the actual width of the target list after the column items in the first merge group are merged.
当i=2时,终端在计算得到第2个合并组合并之后对应的第一宽度差值之后,需要将最小宽度减去该第2个合并组合并之后对应的第一宽度差值和第1个合组列合并之后对应的第一宽度差值,以得到第二实际宽度。When i=2, after the terminal calculates and obtains the first width difference corresponding to the second merging group, it needs to subtract the first width difference and the first width difference corresponding to the second merging group after the merging from the minimum width. The first width difference corresponding to the combination of the combined columns is obtained to obtain the second actual width.
以此类推,终端在计算得到第i个合并组合并之后对应的第一宽度差值之后,则需要将最小宽度减去第i个合并组合并之后对应的第一宽度差值以及第i个合并组之前的i-1个合并组分别对应的宽度差值,以得到该目标列表的第二实际宽度。By analogy, after the terminal calculates and obtains the first width difference corresponding to the i-th merged combination, it needs to subtract the minimum width from the i-th merged combination and the corresponding first width difference and the i-th combination. The width difference corresponding to the i-1 merged groups before the group is obtained to obtain the second actual width of the target list.
2033:当目标列表的第二实际宽度大于当前显示区域的宽度时,令i=i+1,返回对第一排序结果中的第i个合并组中的列项进行合并的步骤,直至目标列表的第二实际宽度小于或等于当前显示区域的宽度为止。2033: When the second actual width of the target list is greater than the width of the current display area, set i=i+1, and return the step of merging the column items in the i-th merged group in the first sorting result, until the target list is reached. The second actual width is less than or equal to the width of the current display area.
当确定了合并第1个合并组中的列项之后的目标列表的第二实际宽度之后,终端可以将该第二实际宽度与当前显示区域的宽度进行比较,如果目标列表的第二实际宽度大于当前显示区域的宽度,即说明该目标列表还不能完整的显示在当前显示区域中,需要对第2个合并组继续进行合并,也即是,终端需要令i=i+1,返回2032继续进行合并,并在合并之后再次计算目标列表的第二实际宽度,以及继续比较第二实际宽度与当前显示区域的宽度的大小。After determining the second actual width of the target list after merging the column items in the first merged group, the terminal may compare the second actual width with the width of the current display area, and if the second actual width of the target list is greater than The width of the current display area means that the target list cannot be completely displayed in the current display area, and the second merge group needs to continue to be merged, that is, the terminal needs to set i=i+1, and return to 2032 to continue. Merge, and calculate the second actual width of the target list again after the merging, and continue to compare the size of the second actual width with the width of the current display area.
通过上述i次循环计算,直至第二实际宽度小于当前显示区域的宽度时,说明该目标列表可以完整的显示在当前显示区域中,此时,终端可以停止循环,并将合并了第i个组之后的目标列表显示在当前显示区域中。Through the above i cycles of calculation, until the second actual width is smaller than the width of the current display area, it means that the target list can be completely displayed in the current display area. At this time, the terminal can stop the cycle and merge the i-th group The target list after that is displayed in the current display area.
如果在合并了第1个合并组之后,该目标列表的第二实际宽度就小于当前显示区域的宽度,此时,终端则可以直接将合并了第1个合并组之后的目标列表完整显示在当前显示区域中。If after merging the first merging group, the second actual width of the target list is smaller than the width of the current display area, at this time, the terminal can directly display the complete target list after merging the first merging group in the current display area. in the display area.
步骤204:如果该第一实际宽度小于当前显示区域的宽度,从多个列项中除了M个合并组之外剩余的列项中选择至少两个列项,并将M个合并组中的列项以及选择的至少两个列项分别进行合并。Step 204: If the first actual width is smaller than the width of the current display area, select at least two column items from the remaining column items in the multiple column items except the M merged groups, and compare the columns in the M merged groups. item and at least two selected column items are merged separately.
基于步骤202中的描述,如果该目标列表的第一实际宽度大于当前显示区域的宽度,那么,说明即使将该M个合并组中的全部列项进行合并,合并之后的目标列表依然不能完整的显示在当前显示区域中。在这种情况下,终端可以从该目标列表的多个列项中除了M个合并组之外剩余的列项中选择至少两个列项,并将选择的至少两个列项和M个合并组分别进行合并。Based on the description in
需要说明的是,终端从该目标列表的多个列项中除了M个合并组之外剩余的列项中选择至少两个列项的操作可以为:令k=2,确定目标列表的第三实际宽度,该第三实际宽度是指将M个合并组中的列项全部合并以及将剩余的列项中倒数k个列项进行合并之后目标列表的实际宽度,k为大于或等于2的正整数;如果目标列表的第三实际宽度大于当前显示区域的宽度,则令k=k+1,返回确定目标列表的第三实际宽度的步骤,直至目标列表的第三实际宽度小于或等于当前显示区域的宽度为止时,将剩余的列项中倒数k个列项确定为选择的至少两个列项。It should be noted that the operation of the terminal selecting at least two column items from the remaining column items except the M merged groups in the multiple column items of the target list may be: set k=2, determine the third column item in the target list The actual width, the third actual width refers to the actual width of the target list after merging all the column items in the M merge groups and merging the last k column items in the remaining column items, where k is a positive value greater than or equal to 2. Integer; if the third actual width of the target list is greater than the width of the current display area, then let k=k+1, return to the step of determining the third actual width of the target list, until the third actual width of the target list is less than or equal to the current display area When the width of the area is reached, the last k column items in the remaining column items are determined as the at least two selected column items.
其中,终端首先可以令k=2,确定k=2时该目标列表的实际宽度。也即是,终端可以计算当选择倒数2个列项,并对M个合并组全部进行合并时,合并之后的目标列表的实际宽度,也即第三实际宽度。将该第三实际宽度与当前显示区域的宽度进行比较,如果该第三实际宽度小于或等于当前显示区域的宽度,则说明只需要将M个合并组中的列项以及该倒数2个列项进行合并,即可以保证合并之后的目标列表能够在当前显示区域中完整显示。如果该第三实际宽度大于当前显示区域的宽度,则说明即使将M个合并组中的列项以及该倒数2个列项进行合并,也依然不能完整显示该目标列表。此时,终端可以令k=k+1,返回确定目标列表的第三实际宽度的步骤,选择更多的列项,直至选择的列项的个数k能够使第三实际宽度小于或等于当前显示区域的宽度为止,此时,即可以将该k确定为选择的至少两个列项。The terminal may first set k=2, and determine the actual width of the target list when k=2. That is, the terminal can calculate the actual width of the merged target list, that is, the third actual width, when the last two column items are selected and all M merged groups are merged. Compare the third actual width with the width of the current display area. If the third actual width is less than or equal to the width of the current display area, it means that only the column items in the M merged groups and the last two column items are needed By merging, it can be ensured that the merged target list can be completely displayed in the current display area. If the third actual width is greater than the width of the current display area, it means that even if the column items in the M merged groups and the last two column items are merged, the target list cannot be completely displayed. At this time, the terminal can set k=k+1, return to the step of determining the third actual width of the target list, and select more column items until the number k of the selected column items can make the third actual width less than or equal to the current until the width of the display area, at this time, the k can be determined as at least two selected column items.
可选地,对于选择的k个列项,终端可以按照选择该k个列项的顺序,将每N个列项合并成一个合并列,也即是,终端可以将k个列项分成至少一个合并组进行合并。例如,终端可以将每相邻的两个列项作为一个合并组进行合并,当然,终端也可以直接将该k个列项作为一个合并组进行合并,从而得到一个合并列。Optionally, for the selected k column items, the terminal may merge every N column items into a merged column according to the sequence of selecting the k column items, that is, the terminal may divide the k column items into at least one Merge groups to merge. For example, the terminal may combine every two adjacent column items as a combined group. Of course, the terminal may also directly combine the k column items as a combined group to obtain a combined column.
需要说明的是,如果终端是直接将该k个列项作为一个合并组进行合并,那么,在确定第三实际宽度时,终端可以计算该k个列项的宽度之和,并计算一个合并列的宽度,之后,终端可以计算k个列项的宽度之和与一个合并列的宽度之间的宽度差,并用最小宽度减去第一实际宽度和该宽度差,从而得到该目标列表的第三实际宽度。It should be noted that, if the terminal directly merges the k column items as a merged group, then, when determining the third actual width, the terminal can calculate the sum of the widths of the k column items, and calculate a merged column After that, the terminal can calculate the width difference between the sum of the widths of the k column items and the width of one merged column, and subtract the first actual width and the width difference from the minimum width, thereby obtaining the third target list. actual width.
如果终端是按照选择k个列项的顺序,将该k个列项中每N个列项作为一个合并组进行合并,那么,在确定第三实际宽度时,终端可以根据N,确定该k个列项合并之后能够得到的合并列的个数,并计算该k个列项的宽度之和与所有合并列的宽度之和的宽度差,之后,终端可以将最小宽度减去第一实际宽度和该宽度差,得到该目标列表的第三实际宽度。If the terminal merges every N column items of the k column items as a merged group in the order of selecting the k column items, then, when determining the third actual width, the terminal can determine the k column items according to N The number of merged columns that can be obtained after the column items are merged, and the width difference between the sum of the widths of the k column items and the sum of the widths of all merged columns is calculated. After that, the terminal can subtract the first actual width from the minimum width. The width difference results in the third actual width of the target list.
例如,假设N=2,当k=2时,终端可以计算倒数两个列项的宽度之和与一个合并列的宽度之间的宽度差,并将最小宽度减去第一实际宽度和该宽度差,得到该目标列表的第三实际宽度。当k=4时,终端可以计算倒数四个列项的宽度之和与两个合并列的宽度之和的宽度差,并将最小宽度减去第一实际宽度和该宽度差,得到该目标列表的第三实际宽度。For example, assuming N=2, when k=2, the terminal may calculate the width difference between the sum of the widths of the last two column items and the width of one merged column, and subtract the first actual width and the width from the minimum width difference, the third actual width of the target list is obtained. When k=4, the terminal can calculate the width difference between the sum of the widths of the last four column items and the sum of the widths of the two merged columns, and subtract the first actual width and the width difference from the minimum width to obtain the target The third actual width of the list.
在本发明实施例中,当最小宽度大于当前显示区域的宽度时,终端可以从该目标列表的多个属性信息中确定包括的M个合并组,之后,终端可以确定当对该M个合并组全部进行合并之后该目标列表的第一实际宽度,如果将第一实际宽度小于当前显示区域的宽度,则可以确定只对该M个合并组中的至少一个合并组进行合并即可,如果第一实际宽度大于当前显示区域的宽度,则可以直接确定M个合并组将全部被合并,此时,只需要从除了M个合并组的列项之外的剩余列项中选至少两个列项,并将选择的至少两个列项和M个合并组分别合并,即可以保证该目标列表能够完整的显示在当前显示区域中,相较于相关技术中列表的布局方式更加灵活,即使对于不同的终端,该目标列表也可以保证完整的进行显示。In this embodiment of the present invention, when the minimum width is greater than the width of the current display area, the terminal may determine the M merging groups included in the multiple attribute information of the target list, and then the terminal may determine when the M merging groups should be The first actual width of the target list after all merges are performed. If the first actual width is smaller than the width of the current display area, it can be determined that only at least one merged group among the M merged groups can be merged. If the actual width is greater than the width of the current display area, it can be directly determined that all M merged groups will be merged. By merging the selected at least two column items and the M merged groups respectively, it can be ensured that the target list can be completely displayed in the current display area, which is more flexible than the layout of the list in the related art, even for different terminals. , the target list can also be guaranteed to be displayed completely.
下面将通过一个具体的例子来对上述图2所示的方法中的步骤进行说明。在这里,以表1和表2中提供的目标列表和该目标列表的多个属性信息为例进行说明。The steps in the method shown in FIG. 2 will be described below through a specific example. Here, the target list provided in Table 1 and Table 2 and a plurality of attribute information of the target list are used as examples for description.
假设该目标列表的最小宽度为w1,当前显示区域的宽度为w2,当w1>w2时,终端根据该目标列表的9个属性信息得到2个合并组,并且确定得到当将这2个合并组合并之后,该目标列表的第一实际宽度为w3。Assuming that the minimum width of the target list is w 1 , and the width of the current display area is w 2 , when w 1 >w 2 , the terminal obtains 2 merged groups according to the 9 attribute information of the target list, and determines to obtain when this After the 2 merge groups are merged, the first actual width of the target list is w 3 .
假设该w3<w2,此时,终端首先可以将group1中的列项进行合并,也即是,将第4-6个列项合并为一个合并列。之后,终端可以计算合并之后的目标列表的实际宽度w4,并将该w4与w2比较,如果w4<w2,那么,终端可以直接将该合并之后的目标列表显示在当前显示区域中。显示时,终端可以按照该合并组中的列项对应的属性信息中的显示排序,将该几个列项显示在一个合并列中,例如,表2中所示的第4-6个列项对应的显示排序分为col1、col2和col3,那么,在显示时,即按照该顺序将第4-6个列项显示在合并列中。如果合并组中的列项对应的属性信息中不包括显示排序,则按照对这几个列项的合并顺序进行显示,当然也可以随机显示。另外,如果该合并组中的列项对应的属性信息中还包括合并列的列名,那么,终端还可以根据该合并列的列名显示该合并列。例如,第4-6个列项对应的合并列的列名为“服务器信息”,那么,在合并之后,该合并列的列名则为“服务器信息”。按照表2中所示的属性信息合并group1之后得到的目标列表如表3所示。Assuming that w 3 <w 2 , at this time, the terminal can first merge the column items in group1, that is, merge the 4th to 6th column items into a merged column. After that, the terminal can calculate the actual width w 4 of the merged target list, and compare the w 4 with w 2 , if w 4 <w 2 , then the terminal can directly display the merged target list in the current display area middle. When displaying, the terminal can display the several column items in one merged column according to the display order of the attribute information corresponding to the column items in the merged group, for example, the 4th to 6th column items shown in Table 2 The corresponding display sorting is divided into col1, col2 and col3, then, when displaying, the 4th to 6th column items are displayed in the merged column according to this order. If the attribute information corresponding to the column items in the merged group does not include the display order, the display order is displayed according to the merge order of these column items, and of course, the display order can also be randomly displayed. In addition, if the attribute information corresponding to the column item in the merged group also includes the column name of the merged column, the terminal may also display the merged column according to the column name of the merged column. For example, the column name of the merged column corresponding to the 4th to 6th column items is "server information", then, after the merge, the column name of the merged column is "server information". The target list obtained after merging group1 according to the attribute information shown in Table 2 is shown in Table 3.
表3合并group1之后的目标列表Table 3 Target list after merging group1
假设w4>w2,此时,说明终端只合并group1,合并后的目标列表依然不能完整显示在当前显示区域中,还需要合并group2,也即是,需要将第7、8个列项进行合并之后,才能使该目标列表完整显示在当前显示区域中。按照表2中所示的属性信息合并group2之后得到的目标列表如表4所示。Assuming w 4 >w 2 , at this time, it means that the terminal only merges group1, and the merged target list still cannot be completely displayed in the current display area, and group2 needs to be merged, that is, the seventh and eighth column items need to be merged After merging, the target list can be completely displayed in the current display area. The target list obtained after merging group2 according to the attribute information shown in Table 2 is shown in Table 4.
表4合并group2之后的目标列表Table 4. Target list after merging group2
假设w3>w2,此时,说明即使终端将group1和group2中的列项全部进行合并,合并之后的目标列表也依然无法完整显示在当前显示区域中,此时,终端需要从剩余的选项中选择至少两个列项进行合并。其中,由于最后一个列项的属性信息中包括用于指示该列项不参与合并的信息,因此,将从除最后一列以及合并组中的列项之外的其他三列中选择至少两列进行合并。终端首先可以计算如果将倒数2个列项和group1和group2进行合并,合并之后该目标的第三实际宽度w5,并将w5与w2比较,如果w5<w2,那么,终端可以将倒数两个列项和group1和group2分别进行合并,得到合并后的目标列表如表5所示。在这种情况下,由于倒数2个列项对应的属性信息中并不包括合并信息,因此,终端可以按照合并这两个列项的合并顺序在合并列中显示这两个列项,并且,合并列的列名可以设置为该group3。Assuming w 3 >w 2 , at this time, it means that even if the terminal merges all the column items in group1 and group2, the merged target list still cannot be completely displayed in the current display area. At this time, the terminal needs to select from the remaining options. Select at least two column items to merge. Among them, since the attribute information of the last column item includes information indicating that the column item does not participate in the merge, at least two columns will be selected from the other three columns except the last column and the column items in the merge group. merge. The terminal can first calculate the third actual width w 5 of the target after merging the last two column items with group1 and group2, and compare w 5 with w 2 , if w 5 <w 2 , then the terminal can Merge the last two column items with group1 and group2 respectively, and get the merged target list as shown in Table 5. In this case, since the attribute information corresponding to the last two column items does not include merge information, the terminal can display the two column items in the merged column according to the merge order of merging the two column items, and, The column name of the merged column can be set to this group3.
上述实施例中介绍了终端先根据目标列表的多个属性信息确定M个合并组,之后,确定当将该M个合并组全部合并时该目标列表的第一实际宽度,并根据该第一实际宽度来进行合并的方法,在实际应用中,终端也可以不确定第一实际宽度,而是每合并得到一个合并列,确定一次该目标列表的实际宽度,并比较一次目标列表的实际宽度与当前显示区域的宽度的大小,从而决定是否继续进行合并,下面将结合附图3对该种合并方法进行解释说明,如图3所示,该方法包括以下步骤:In the above-mentioned embodiment, it is introduced that the terminal first determines M merging groups according to multiple attribute information of the target list, and then determines the first actual width of the target list when all the M merging groups are merged, and determines the first actual width of the target list according to the first actual width. In practical applications, the terminal can also determine the first actual width, but obtain a merged column for each merge, determine the actual width of the target list once, and compare the actual width of the target list with the current The size of the width of the display area is used to determine whether to continue merging. This merging method will be explained below in conjunction with FIG. 3. As shown in FIG. 3, the method includes the following steps:
步骤301:如果多个属性信息中存在包括合并组序号的属性信息,则将合并组序号相同的属性信息对应的列项组成一个合并组,以得到M个合并组,M为大于或等于1的正整数。Step 301: If there is attribute information including the merge group serial number in the plurality of attribute information, the column items corresponding to the attribute information with the same merge group serial number are formed into a merge group to obtain M merge groups, where M is greater than or equal to 1. positive integer.
本步骤的具体实现方式可以参考前述实施例中步骤201的相关解释说明,本发明实施例在这里不再赘述。For a specific implementation manner of this step, reference may be made to the relevant explanation of
步骤302:按照M个合并组分别对应的合并组序号对M个合并组进行排序,得到第一排序结果。Step 302: Sort the M merge groups according to the merge group serial numbers corresponding to the M merge groups respectively, to obtain a first sorting result.
本步骤的具体实现方式可以参考前述实施例中有关2031的相关解释说明,本发明实施例在这里不再赘述。For a specific implementation manner of this step, reference may be made to the relevant explanation about 2031 in the foregoing embodiment, which is not repeated here in this embodiment of the present invention.
步骤303:令i=1,对第一排序结果中的第i个合并组中的列项进行合并,并确定目标列表的第二实际宽度,第二实际宽度是指将第一排序结果中前i个合并组中的列项进行合并之后目标列表的实际宽度,i为大于或等于1且小于或等于M的正整数。Step 303: Set i=1, merge the column items in the i-th merged group in the first sorting result, and determine the second actual width of the target list. The actual width of the target list after the column items in the i merge groups are merged, where i is a positive integer greater than or equal to 1 and less than or equal to M.
本步骤的具体实现方式可以参考前述实施例中2032的相关解释说明,本发明实施例在这里不再赘述。For the specific implementation manner of this step, reference may be made to the relevant explanation of 2032 in the foregoing embodiment, which is not repeated here in this embodiment of the present invention.
步骤304:当目标列表的第二实际宽度大于当前显示区域的宽度时,令i=i+1,返回对第一排序结果中的第i个合并组中的列项进行合并的步骤,直至目标列表的第二实际宽度小于或等于当前显示区域的宽度为止,或者直至目标列表的第二实际宽度大于当前显示区域的宽度且i=M为止。Step 304: when the second actual width of the target list is greater than the width of the current display area, let i=i+1, and return to the step of merging the column items in the i-th merged group in the first sorting result, until the target Until the second actual width of the list is less than or equal to the width of the current display area, or until the second actual width of the target list is greater than the width of the current display area and i=M.
本步骤的具体实现方式可以参考前述实施例中2033的相关解释说明,本发明实施例在这里不再赘述。For the specific implementation of this step, reference may be made to the relevant explanation of 2033 in the foregoing embodiment, which is not repeated here in this embodiment of the present invention.
另外,如果通过步骤303和步骤304的多次循环,将该目标列表的M个合并组均进行合并之后,该目标列表的实际宽度依然大于当前显示区域的宽度,此时,终端可以通过步骤305中的方法对该目标列表的多个列项中剩余的列项继续进行合并。In addition, if the actual width of the target list is still larger than the width of the current display area after the M merged groups of the target list are merged through multiple cycles of
步骤305:如果i=M且该目标列表的第二实际宽度大于当前显示区域的宽度,从多个列项中除了M个合并组之外剩余的列项中选择至少两个列项进行合并。Step 305: If i=M and the second actual width of the target list is greater than the width of the current display area, select at least two column items to merge from the remaining column items except the M merge groups.
其中,当终端从该多个列项中除M个合并组之外剩余的列项中选择至少两个列项时,终端可以通过步骤204中所述的方法,通过多次循环计算能够使合并之后的目标列表的实际宽度小于当前显示区域的宽度的列项的个数k。当然,终端也可以一次选择N个列项,并将该N个列项合并成一个合并列,计算合并之后的目标列表的实际宽度,如果依然大于当前显示区域的宽度,则再选择N个列项进行合并,并确定合并之后的目标列表的实际宽度,直至该目标列表的实际宽度小于当前显示区域的宽度时,停止合并。Wherein, when the terminal selects at least two list items from the remaining list items in the multiple list items except the M merged groups, the terminal can use the method described in
在本发明实施例中,终端可以每合并得到一个合并列,即将该合并之后的目标列表的实际宽度与当前显示区域的宽度进行比较,直到该目标列表的实际宽度小于或等于当前显示区域的宽度时,才停止对该目标列表中的列项进行合并,这样,终端可以保证使合并后的目标列表完整的显示在当前显示区域中,保证了列表中数据信息的完整性,为用户查看该目标列表中的数据带来了方便,改善了用户体验。In this embodiment of the present invention, the terminal may obtain a merged column for each merge, that is, compare the actual width of the merged target list with the width of the current display area until the actual width of the target list is less than or equal to the width of the current display area When the target list is displayed, the terminal will stop merging the column items in the target list. In this way, the terminal can ensure that the merged target list is completely displayed in the current display area, which ensures the integrity of the data information in the list and enables users to view the target list The data in the list brings convenience and improves the user experience.
在上述实施例中介绍了终端每合并得到一个合并列,并将合并之后的目标列表的实际宽度与当前显示区域的宽度进行比较,以决定是否继续进行对目标列表进行合并的方法。当然,终端还可以通过下述实施例中介绍的方法确定多个需要合并的合并组和列项,从而一次性的合并该确定的合并组和列项,以使合并之后的目标列表能够完整的显示在当前显示区域。下面将结合图4对该种合并方法进行介绍。如图4所示,该方法包括以下步骤:In the above-mentioned embodiments, the terminal obtains a merged column each time it is merged, and compares the actual width of the merged target list with the width of the current display area to determine whether to continue merging the target list. Of course, the terminal can also determine a plurality of merged groups and column items to be merged by the method described in the following embodiments, so as to merge the determined merged groups and column items at one time, so that the merged target list can be complete displayed in the current display area. The merging method will be described below with reference to FIG. 4 . As shown in Figure 4, the method includes the following steps:
步骤401:如果多个属性信息中存在包括合并组序号的属性信息,则将合并组序号相同的属性信息对应的列项组成一个合并组,以得到M个合并组,M为大于或等于1的正整数。Step 401: If there is attribute information including the merge group serial number in the plurality of attribute information, the column items corresponding to the attribute information with the same merge group serial number are formed into a merge group to obtain M merge groups, where M is greater than or equal to 1. positive integer.
本步骤的具体实现方式可以参考前述实施例中步骤201的相关解释说明,本发明实施例在这里不再赘述。For a specific implementation manner of this step, reference may be made to the relevant explanation of
步骤402:从该M个合并组选择至少一个合并组或从该多个列项中除M个合并组之外剩余的列项中选择至少两个列项,并将选择的合并组中的列项以及至少两个列项分别进行合并。Step 402: Select at least one merge group from the M merge groups or select at least two column items from the column items remaining in the multiple column items except the M merge groups, and compare the columns in the selected merge groups. item and at least two column items are merged separately.
其中,终端可以根据当前显示区域的宽度来选择需要合并的合并组,并且,如果选择所有合并组依然不能使合并之后的目标列表的实际宽度小于当前显示区域的宽度,那么,终端还可以从多个列项中除了M个合并组之外剩余的列项中选择至少两个列项。当选择的合并组和列项能够使合并之后的目标列表的实际宽度小于当前显示区域的宽度时,终端可以将选择的合并组和至少两个列项一次性进行合并。这样,合并之后的目标列表就可以直接完整的显示在当前显示区域中。Among them, the terminal can select the merged group to be merged according to the width of the current display area, and if selecting all the merged groups still cannot make the actual width of the merged target list smaller than the width of the current display area, the terminal can also choose from multiple At least two column items are selected from the remaining column items except the M merged groups among the column items. When the selected merge group and column item can make the actual width of the merged target list smaller than the width of the current display area, the terminal may merge the selected merge group and at least two column items at one time. In this way, the merged target list can be directly and completely displayed in the current display area.
具体的,终端从从该M个合并组选择至少一个合并组或从该多个列项中除M个合并组之外剩余的列项中选择至少两个列项的操作可以为:按照M个合并组分别对应的合并组序号对M个合并组进行排序,得到第一排序结果。令i=1,确定目标列表的第二实际宽度,第二实际宽度是指当将第一排序结果中前i个合并组中的列项进行合并时目标列表的实际宽度,i为大于或等于1且小于或等于M的正整数。当目标列表的第二实际宽度大于当前显示区域的宽度时,令i=i+1,返回对确定目标列表的第二实际宽度的步骤,直至目标列表的第二实际宽度小于或等于当前显示区域的宽度为止,或者直至目标列表的第二实际宽度大于当前显示区域的宽度且i=M为止时,将第一排序结果中前i个合并组确定为选择的至少一个合并组。如果直至i=M时,目标列表的第二实际宽度仍大于当前显示区域的宽度,那么,从多个列项中除了M个合并组之外剩余的列项中选择至少两个列项。Specifically, the operation of the terminal selecting at least one merging group from the M merging groups or selecting at least two column items from the remaining column items except the M merging groups among the plurality of column items may be: according to the M The M merged groups are sorted according to the merged group serial numbers corresponding to the merged groups respectively, and a first sorting result is obtained. Let i=1, determine the second actual width of the target list, the second actual width refers to the actual width of the target list when the column items in the first i merged groups in the first sorting result are merged, and i is greater than or equal to 1 and a positive integer less than or equal to M. When the second actual width of the target list is greater than the width of the current display area, let i=i+1, return to the step of determining the second actual width of the target list, until the second actual width of the target list is less than or equal to the current display area , or until the second actual width of the target list is greater than the width of the current display area and i=M, the first i merged group in the first sorting result is determined as the selected at least one merged group. If the second actual width of the target list is still larger than the width of the current display area until i=M, then at least two column items are selected from the remaining column items except the M merged groups among the plurality of column items.
需要说明的是,终端确定目标列表的第二实际宽度的具体实现方式可以参考前述实施例中2032的相关实现方式,终端从多个列项中除了M个合并组之外剩余的列项中选择至少两个列项的具体实现方式则可以参考前述实施例中步骤204和步骤305中的相关实现方式,本发明实施例在这里不再赘述。It should be noted that, for the specific implementation manner of determining the second actual width of the target list by the terminal, reference may be made to the related implementation manner of 2032 in the foregoing embodiment, and the terminal selects the remaining column items from the multiple column items except the M merged groups. For the specific implementation manner of the at least two column items, reference may be made to the related implementation manners in
在本发明实施例中,终端可以根据当前显示区域的宽度来选择需要合并的合并组,并且,如果选择所有合并组依然不能使合并之后的目标列表的实际宽度小于当前显示区域的宽度,终端可以从多个列项中除了M个合并组之外剩余的列项中选择至少两个列项。当选择的合并组和列项能够使合并之后的目标列表的实际宽度小于当前显示区域的宽度时,终端可以将选择的合并组和至少两个列项一次性进行合并,这样,终端可以通过一次性合并使合并之后的目标列表的宽度适应当前显示区域的宽度,不必再每合并一次,比较一次目标列表的宽度和当前显示区域的宽度,减少了合并的操作次数。In this embodiment of the present invention, the terminal may select a merge group to be merged according to the width of the current display area, and if selecting all merge groups still cannot make the actual width of the merged target list smaller than the width of the current display area, the terminal may At least two column items are selected from the remaining column items except the M merged groups among the plurality of column items. When the selected merging group and column item can make the actual width of the merged target list smaller than the width of the current display area, the terminal can merge the selected merging group and at least two column items at one time. Sexual merging makes the width of the merged target list adapt to the width of the current display area, and it is no longer necessary to compare the width of the target list with the width of the current display area every time the merge is performed, which reduces the number of merge operations.
上面通过附图1-4介绍了当最小宽度大于当前显示区域的宽度时,根据该目标列表的多个属性信息对该目标列表的多个列项中的至少两个列项进行合并,并显示该合并之后的目标列表的具体实现方式。当对合并之后的目标列表进行显示之后,在显示的过程中,由于用户的操作,可能会导致当前显示区域的宽度发生变化,例如,用户可能会对当前显示区域的宽度进行调整,缩小或者是放大当前显示区域,或者,用户可能会将显示与当前终端上的目标列表切换到其他终端上进行显示,导致显示区域的宽度发生变化。其中,当变化后的当前显示区域的宽度大于目标列表当前的实际宽度时,终端可以将合并之后的目标列表进行拆分,以使目标列表的宽度适应当前显示区域的宽度,从而为用户提供更加舒适的显示界面。图5是本发明实施例提供的一种对合并之后的目标列表进行拆分的方法的流程图,如图5所示,该方法包括以下步骤:It is described above through Figures 1-4 that when the minimum width is greater than the width of the current display area, at least two column items in the multiple column items of the target list are merged according to multiple attribute information of the target list, and displayed. A specific implementation manner of the merged target list. After the merged target list is displayed, the width of the current display area may change due to the user's operation during the display process. For example, the user may adjust the width of the current display area, reduce or The current display area is enlarged, or the user may switch the display and the target list on the current terminal to display on another terminal, resulting in a change in the width of the display area. Wherein, when the changed width of the current display area is larger than the current actual width of the target list, the terminal may split the merged target list to make the width of the target list adapt to the width of the current display area, thereby providing users with more Comfortable display interface. 5 is a flowchart of a method for splitting a merged target list provided by an embodiment of the present invention. As shown in FIG. 5 , the method includes the following steps:
步骤501:对于目标列表包括的R个合并列中的每个合并列,基于合并列生成合并列属性信息,合并列属性信息包括拆分属性、合并列对应的合并组序号、合并列宽度比例和合并列中每个列项对应的列项宽度比例,R为大于或等于1的正整数。Step 501: For each merged column in the R merged columns included in the target list, generate merged column attribute information based on the merged column, where the merged column attribute information includes the split attribute, the merged group serial number corresponding to the merged column, the merged column width ratio and The ratio of the column item width corresponding to each column item in the merged column, where R is a positive integer greater than or equal to 1.
当对目标列表的多个列项中的至少两个列项进行合并之后,如果合并时对R个合并组进行了合并,或者,如果合并组的个数和选择的至少两个列项一共组成了R个合并组,那么,合并之后的目标列表中将包括R个合并列。对于该R个合并列中的每个合并列,根据合并列以及组成该合并列的列项,可以生成该合并列的合并列属性信息。其中,组成该合并列的列项即为该合并列对应的合并组中包括的列项。After merging at least two of the multiple column items in the target list, if the R merged groups are merged during the merging, or if the number of merged groups and the selected at least two column items are combined If there are R merged groups, then the merged target list will include R merged columns. For each of the R merged columns, merged column attribute information of the merged column may be generated according to the merged column and the column items composing the merged column. The column items that form the merged column are the column items included in the merged group corresponding to the merged column.
例如,以表3所示的合并之后的目标列表为例,合并列为“服务器信息”,根据该合并列,终端可以生成该合并列对应的合并列属性信息为“Field:‘cpu’,title:‘服务器信息’,percent:0.1,merge:true,group:‘group1’,mergefiled:‘cpu/memory/wa’”。其中,percent:0.1为该合并列的合并列宽度比例,merge:true为该合并列的拆分属性,用于指示该合并列可以进行拆分,group1为该合并列对应的合并组以及合并组序号,cpu/memory/wa为组成该合并列的列项在该合并列中的显示顺序。For example, taking the merged target list shown in Table 3 as an example, the merged column is "server information", and according to the merged column, the terminal can generate the merged column attribute information corresponding to the merged column as "Field:'cpu',title :'Server information', percent: 0.1, merge: true, group: 'group1', mergefiled: 'cpu/memory/wa'". Among them, percent:0.1 is the merged column width ratio of the merged column, merge:true is the split attribute of the merged column, which is used to indicate that the merged column can be split, and group1 is the merged group and merged group corresponding to the merged column Serial number, cpu/memory/wa is the display order of the column items that make up the merged column in the merged column.
进一步地,在该合并列属性信息中还可以包括该合并列中每个列项对应的列项宽度比例,例如,在上述例子中,当包括每个列项对应的列项宽度比例时,该合并列的合并列属性信息可以为“Field:‘cpu’,title:‘服务器信息’,percent:0.1,merge:true,group:‘group1’,mergefiled:‘cpu/memory/wa’,perRec:0.06/0.06/0.15”。Further, the merged column attribute information may also include the column item width ratio corresponding to each column item in the merged column. For example, in the above example, when the column item width ratio corresponding to each column item is included, the The merge column attribute information of the merge column can be "Field: 'cpu', title: 'server information', percent: 0.1, merge: true, group: 'group1', mergefiled: 'cpu/memory/wa', perRec: 0.06 /0.06/0.15”.
步骤502:确定合并之后的目标列表的第四实际宽度,第四实际宽度是列项合并之后进行显示时目标列表的实际宽度。Step 502: Determine the fourth actual width of the merged target list, where the fourth actual width is the actual width of the target list when the column items are merged and displayed.
当对目标列表进行合并之后,终端还可以确定合并并且显示在当前显示区域中的目标列表的第四实际宽度。其中,对于未进行合并的列项,终端可以根据该列项对应的列项宽度比例计算该列项的宽度,对于合并列,终端可以根据该合并列的合并列宽度比例来计算该合并列的宽度,之后,将未进行合并的列项的宽度和合并列的宽度相加,即为该目标列表的第四实际宽度。After the target list is merged, the terminal may also determine a fourth actual width of the target list merged and displayed in the current display area. Wherein, for a column item that has not been merged, the terminal may calculate the width of the column item according to the width ratio of the column item corresponding to the column item, and for a merged column, the terminal may calculate the width ratio of the merged column according to the width ratio of the merged column. After that, add the width of the unmerged column item to the width of the merged column, which is the fourth actual width of the target list.
步骤503:当检测到当前显示区域的宽度大于第四实际宽度时,基于当前显示区域的宽度和第四实际宽度,对R个合并列中的至少一个合并列进行拆分。Step 503: When it is detected that the width of the current display area is greater than the fourth actual width, split at least one merged column among the R merged columns based on the width of the current display area and the fourth actual width.
由于在对合并之后的目标列项进行显示的过程中,由于用户的操作,可能会导致当前显示区域的宽度发生变化。如果终端确定变化后的当前显示区域的宽度小于第四实际宽度,那么,终端可以通过前述实施例中介绍的方法对该目标列表中除合并列之外剩余的列项继续进行合并。如果终端确定当前显示区域的宽度大于第四实际宽度,那么,终端可以将目标列表中的合并列进行拆分,以使该目标列表的宽度适应当前显示区域的宽度。In the process of displaying the merged target column item, the width of the current display area may change due to the user's operation. If the terminal determines that the changed width of the current display area is smaller than the fourth actual width, the terminal may continue to merge the remaining column items in the target list except the merged column by the method described in the foregoing embodiment. If the terminal determines that the width of the current display area is greater than the fourth actual width, the terminal may split the merged column in the target list, so that the width of the target list is adapted to the width of the current display area.
其中,终端将目标列表中的合并列进行拆分的步骤可以为:The steps for the terminal to split the merged column in the target list may be:
5031:按照R个合并列对应的合并组序号对R个合并列进行排序,得到第二排序结果。5031: Sort the R merged columns according to the merge group serial numbers corresponding to the R merged columns to obtain a second sorting result.
终端首先可以按照目标列表的R个合并列对应的合并组序号对R个合并列进行排序,得到第二排序结果。其中,排序的具体方式与前述实施例中得到第一排序结果的方式相同,本发明实施例不再赘述。在本实施接下来的步骤中以按照合并组序号从小到大的顺序进行排序为例进行解释说明。The terminal may first sort the R merged columns according to the merge group serial numbers corresponding to the R merged columns of the target list to obtain a second sorting result. The specific manner of sorting is the same as the manner of obtaining the first sorting result in the foregoing embodiment, which is not repeated in this embodiment of the present invention. In the next steps of the present implementation, the sorting is performed according to the order of the merged group serial numbers from small to large as an example for explanation.
5032:令j=1,确定第三宽度和目标列表的第五实际宽度,第三宽度是指第二排序结果中倒数第j个合并列的每个列项对应的列项宽度比例与第五实际宽度的乘积之和,第五实际宽度是指将第二排序结果中倒数j-1个合并列进行拆分之后目标列表的实际宽度,且在j=1时,第五实际宽度与第四实际宽度相等。5032: Let j=1, determine the third width and the fifth actual width of the target list, and the third width refers to the ratio of the column item width corresponding to each column item of the jth last merged column in the second sorting result to the fifth actual width. The sum of the products of the actual widths, the fifth actual width refers to the actual width of the target list after splitting the last j-1 merged columns in the second sorting result, and when j=1, the fifth actual width is the same as the fourth actual width. The actual width is equal.
当得到第二排序结果之后,首先令j=1,终端可以确定当将第二排序结果中倒数j-1个合并列进行拆分之后的目标列表的实际宽度,也即第五实际宽度,当j=1时,第五实际宽度即为第四实际宽度。之后,终端可以将倒数第j个合并列的每个列项对应的列项宽度比例与第五实际宽度相乘,得到如果将倒数第j个合并列进行拆分,拆分之后该第j个合并列中的每个列项所占用的宽度。之后,终端可以将该第j个合并列中每个列项占用的宽度相加,得到第三宽度。After obtaining the second sorting result, first set j=1, the terminal can determine the actual width of the target list after splitting the last j-1 merged columns in the second sorting result, that is, the fifth actual width, when When j=1, the fifth actual width is the fourth actual width. After that, the terminal can multiply the column item width ratio corresponding to each column item of the last jth merged column by the fifth actual width to obtain that if the last jth merged column is split, the jth The width occupied by each column item in the merged column. After that, the terminal may add up the widths occupied by each column item in the jth merged column to obtain a third width.
5033:当当前显示区域的宽度与第五实际宽度之间的差值大于第三宽度时,基于倒数第j个合并列中每个列项对应的列项宽度比例,将倒数第j个合并列进行拆分,令j=j+1,返回确定第三宽度的步骤,直至当前显示区域的宽度小于或等于目标列表的第五实际宽度,或直至当前显示区域的宽度与目标列表的第五实际宽度之间的差值小于第三宽度为止。5033: When the difference between the width of the current display area and the fifth actual width is greater than the third width, based on the column item width ratio corresponding to each column item in the last jth merged column, the jth merged column from the last Perform splitting, let j=j+1, and return to the step of determining the third width, until the width of the current display area is less than or equal to the fifth actual width of the target list, or until the width of the current display area is equal to the fifth actual width of the target list. The difference between the widths is less than the third width.
当确定第三宽度之后,为了避免由于拆分之后的目标列表的实际宽度又大于当前显示区域的实际宽度而造成的死循环,终端可以计算当前显示区域的宽度与第五实际宽度之间的差,并将当前显示区域的宽度与第五实际宽度之间的差与第三宽度进行比较,如果当前显示区域的宽度与第五实际宽度之间的差大于第三宽度,则说明将该合并列拆分之后不会造成目标列表的实际宽度大于当前显示区域的宽度。此时,终端可以基于倒数第j个合并列的合并列属性信息对该合并列进行拆分。After the third width is determined, in order to avoid an infinite loop caused by the fact that the actual width of the split target list is greater than the actual width of the current display area, the terminal may calculate the difference between the width of the current display area and the fifth actual width , and compare the difference between the width of the current display area and the fifth actual width with the third width. If the difference between the width of the current display area and the fifth actual width is greater than the third width, it means that the merged column After splitting, the actual width of the target list will not be larger than the width of the current display area. At this time, the terminal may split the merged column based on the merged column attribute information of the jth last merged column.
当对倒数第j个合并列进行拆分之后,终端可以令j=j+1,再次确定第三宽度以及第五实际宽度,并将当前显示区域的宽度和第五实际宽度之间的差与第三宽度进行比较,直至当前显示区域的宽度小于或等于目标列表的第五实际宽度,或直至当前显示区域的宽度与目标列表的第五实际宽度之间的差值小于第三宽度时,说明目标列表的实际宽度已经适应当前显示区域的宽度或者说明目标列表已经不适宜继续拆分,如果继续拆分将造成目标列表的实际宽度大于当前显示区域的宽度。After splitting the jth last merged column, the terminal may set j=j+1, determine the third width and the fifth actual width again, and compare the difference between the width of the current display area and the fifth actual width with the The third width is compared until the width of the current display area is less than or equal to the fifth actual width of the target list, or until the difference between the width of the current display area and the fifth actual width of the target list is less than the third width, indicating The actual width of the target list has already adapted to the width of the current display area, or it means that the target list is no longer suitable for further splitting. If the target list continues to be split, the actual width of the target list will be larger than the width of the current display area.
需要说明的是,当对目标列表的倒数第j个合并列进行拆分时,终端可以根据该合并列对应的合并列属性信息中包括的该合并列的列项的显示顺序逐个进行拆分,拆分之后的列项的宽度为该列项的列项宽度比例与第五实际宽度的乘积。It should be noted that, when splitting the jth last merged column of the target list, the terminal may split one by one according to the display order of the column items of the merged column included in the merged column attribute information corresponding to the merged column. The width of the column item after splitting is the product of the column item width ratio of the column item and the fifth actual width.
在本发明实施例中,当终端检测到当前显示区域的宽度大于合并之后的目标列表的实际宽度之后,终端可以对该目标列表中包括的合并列进行拆分,以使目标列表适应当前显示区域的宽度,从而为用户提供更加舒适的显示界面。In this embodiment of the present invention, after the terminal detects that the width of the current display area is greater than the actual width of the merged target list, the terminal may split the merged column included in the target list to make the target list fit into the current display area , so as to provide users with a more comfortable display interface.
上面结合附图1-5介绍了对目标列表进行合并和显示,并对合并之后的目标列表进行拆分和显示的方法,接下来将对执行该上述方法的装置进行详细的解释说明。The method for merging and displaying the target list, and splitting and displaying the merged target list is described above with reference to FIGS. 1-5 . Next, the apparatus for executing the above method will be explained in detail.
图6A本发明实施例提供的一种列表显示装置的框图,如图6A所示,该装置包括第一获取模块601、确定模块602、合并模块603和第一显示模块604。FIG. 6A is a block diagram of a list display apparatus provided by an embodiment of the present invention. As shown in FIG. 6A , the apparatus includes a
第一获取模块601,用于获取待显示的目标列表的最小宽度和目标列表中多个列项分别对应的属性信息,最小宽度为目标列表完整显示时所需要占用的最小宽度;The first obtaining
确定模块602,用于确定当前显示区域的宽度;a determining
合并模块603,用于当最小宽度大于当前显示区域的宽度时,基于获取得到的多个属性信息,对多个列项中的至少两个列项进行合并;The merging
第一显示模块604,用于显示列项合并之后的目标列表,列项合并之后的目标列表中的合并列包括至少两个列项的内容,且合并列的列名与至少两个列项的列名不相同。The
可选地,参见图6B,合并模块603包括:Optionally, referring to FIG. 6B, the merging
第一确定单元6031,用于如果多个属性信息中存在包括合并组序号的属性信息,则将合并组序号相同的属性信息对应的列项组成一个合并组,以得到M个合并组,M为大于或等于1的正整数;The first determining
第二确定单元6032,用于确定目标列表的第一实际宽度,第一实际宽度是指将M个合并组中的列项全部合并之后目标列表的实际宽度;The second determining
第一合并单元6033,用于如果目标列表的第一实际宽度小于当前显示区域的宽度,则对M个合并组中的至少一个合并组中的列项进行合并;a
第二合并单元6034,用于如果目标列表的第一实际宽度大于当前显示区域的宽度,则从多个列项中除了M个合并组之外剩余的列项中选择至少两个列项,并将M个合并组中的列项以及选择的至少两个列项分别进行合并。The
可选地,第一合并单元6033包括:Optionally, the
排序子单元,用于按照M个合并组分别对应的合并组序号对M个合并组进行排序,得到第一排序结果;a sorting subunit, configured to sort the M merged groups according to the merged group serial numbers corresponding to the M merged groups respectively, to obtain a first sorting result;
第一合并子单元,用于令i=1,对第一排序结果中的第i个合并组中的列项进行合并,并确定目标列表的第二实际宽度,第二实际宽度是指将第i个合并组中的列项进行合并之后目标列表的实际宽度,i为大于或等于1且小于或等于M的正整数;The first merging subunit is used to set i=1, merge the column items in the ith merged group in the first sorting result, and determine the second actual width of the target list, where the second actual width refers to the The actual width of the target list after the column items in the i merged groups are merged, i is a positive integer greater than or equal to 1 and less than or equal to M;
第一合并子单元还用于当目标列表的第二实际宽度大于当前显示区域的宽度时,令i=i+1,返回对第一排序结果中的第i个合并组中的列项进行合并的步骤,直至目标列表的第二实际宽度小于或等于当前显示区域的宽度为止。The first merging subunit is also used to set i=i+1 when the second actual width of the target list is greater than the width of the current display area, and return to merge the column items in the i-th merged group in the first sorting result. until the second actual width of the target list is less than or equal to the width of the current display area.
可选地,确定第一合并子单元用于:Optionally, it is determined that the first merging subunit is used for:
获取第i个合并组中每个列项对应的列项宽度比例以及第i个合并组对应的合并列宽度比例;Obtain the column item width ratio corresponding to each column item in the ith merged group and the merged column width ratio corresponding to the ith merged group;
确定第一宽度和第二宽度,第一宽度是指第i个合并组中每个列项对应的列项宽度比例与最小宽度之间的乘积之和,第二宽度是指第i个合并组对应的合并列宽度比例与最小宽度之间的乘积,;Determine the first width and the second width. The first width refers to the sum of the products between the ratio of the column item width corresponding to each column item in the ith merged group and the minimum width, and the second width refers to the ith merged group. The product between the corresponding merged column width ratio and the minimum width,;
确定第一宽度与第二宽度之间的第一宽度差值,并将最小宽度减去第一宽度差值以及第i个合并组之前的(i-1)个合并组分别对应的宽度差值,得到目标列表的第二实际宽度。Determine the first width difference between the first width and the second width, and subtract the first width difference from the minimum width and the width difference corresponding to the (i-1) merged groups before the i-th merged group , to get the second actual width of the target list.
可选地,第二合并单元6034包括:Optionally, the
确定子单元,用于令k=2,确定目标列表的第三实际宽度,第三实际宽度是指将M个合并组中的列项全部合并以及将剩余的列项中倒数k个列项进行合并之后目标列表的实际宽度,k为大于或等于2的正整数;The determination subunit is used to set k=2 to determine the third actual width of the target list. The third actual width refers to merging all the column items in the M merge groups and merging the reciprocal k column items in the remaining column items. The actual width of the target list after merging, k is a positive integer greater than or equal to 2;
确定子单元还用于如果目标列表的第三实际宽度大于当前显示区域的宽度,则令k=k+1,返回确定目标列表的第三实际宽度的步骤,直至目标列表的第三实际宽度小于或等于当前显示区域的宽度为止时,将剩余的列项中倒数k个列项确定为选择的至少两个列项。The determining subunit is also used for if the third actual width of the target list is greater than the width of the current display area, then let k=k+1, and return to the step of determining the third actual width of the target list, until the third actual width of the target list is less than or equal to the width of the current display area, determine the last k column items in the remaining column items as the at least two selected column items.
可选地,将第二合并单元6034包括:Optionally, the
第二合并子单元,用于将M个合并组中的列项分别进行合并,得到M个合并列;The second merging subunit is used for merging the column items in the M merging groups respectively to obtain M merging columns;
第三合并子单元,用于按照选择的至少两个列项的顺序,将每N个列项合并成一个合并列。The third merging subunit is configured to merge every N column items into a merged column according to the sequence of the selected at least two column items.
可选地,第一显示模块604包括:Optionally, the
第一显示单元,用于当合并为一个合并列的至少两个列项对应的至少两个属性信息中包括合并列列名时,将合并列列名作为由至少两个列项合并得到的合并列的列名进行显示;The first display unit is configured to use the merged column column name as the merged result obtained by merging the at least two column items when the at least two attribute information corresponding to the at least two column items merged into one merged column includes the merged column column name The column name of the column is displayed;
第二显示单元,用于当合并为一个合并列的至少两个列项对应的至少两个属性信息中不包括合并列列名时,将由至少两个列项合并得到的合并列的列名设置为预设列名,并按照预设列名显示合并列;The second display unit is configured to set the column name of the merged column obtained by merging the at least two column items when the at least two attribute information corresponding to the at least two column items merged into one merged column does not include the merged column column name is the default column name, and the merged column is displayed according to the preset column name;
第三显示单元,用于在合并列中显示至少两个列项的内容。The third display unit is used for displaying the content of at least two column items in the merged column.
可选地,参见图6C,该装置600还包括:Optionally, referring to FIG. 6C, the apparatus 600 further includes:
第二获取模块605,用于当最小宽度小于当前显示区域的宽度时,获取多个列项中每个列项的列项宽度比例;The second obtaining
计算模块606,用于将多个列项中每个列项的列项宽度比例与当前显示区域的宽度相乘,得到每个列项的列宽;The
第二显示模块607,用于基于每个列项的列宽显示目标列表。The
可选地,参见图6D,该装置600还包括:Optionally, referring to FIG. 6D, the apparatus 600 further includes:
生成模块608,用于对于目标列表包括的R个合并列中的每个合并列,基于合并列生成合并列属性信息,合并列属性信息包括拆分属性、合并列对应的合并组序号、合并列宽度比例和合并列中每个列项对应的列项宽度比例,R为大于或等于1的正整数;The
第二确定模块609,用于确定合并之后的目标列表的第四实际宽度,第四实际宽度是列项合并之后进行显示时目标列表的实际宽度;The
拆分模块610,用于当检测到当前显示区域的宽度大于第四实际宽度时,基于当前显示区域的宽度和第四实际宽度,对R个合并列中的至少一个合并列进行拆分。The
可选地,拆分模块610包括:Optionally, the
排序单元,用于按照R个合并列对应的合并组序号对R个合并列进行排序,得到第二排序结果;a sorting unit, configured to sort the R merged columns according to the merge group serial numbers corresponding to the R merged columns to obtain a second sorting result;
第二确定单元,用于令j=1,确定第三宽度和目标列表的第五实际宽度,第三宽度是指第二排序结果中倒数第j个合并列的每个列项对应的列项宽度比例与第五实际宽度的乘积之和,第五实际宽度是指将第二排序结果中倒数j-1个合并列进行拆分之后目标列表的实际宽度,且在j=1时,第五实际宽度与第四实际宽度相等;The second determination unit is used to set j=1 to determine the third width and the fifth actual width of the target list, where the third width refers to the column item corresponding to each column item of the jth last merged column in the second sorting result The sum of the product of the width ratio and the fifth actual width, the fifth actual width refers to the actual width of the target list after splitting the reciprocal j-1 merged columns in the second sorting result, and when j=1, the fifth actual width is The actual width is equal to the fourth actual width;
拆分单元,用于当当前显示区域的宽度与第五实际宽度之间的差值大于第三宽度时,基于倒数第j个合并列中每个列项对应的列项宽度比例,将倒数第j个合并列进行拆分,令j=j+1,返回确定第三宽度的步骤,直至当前显示区域的宽度小于或等于目标列表的第五实际宽度,或直至当前显示区域的宽度与目标列表的第五实际宽度之间的差值小于第三宽度为止。The splitting unit is used to divide the penultimate jth merged column according to the column item width ratio corresponding to each column item in the penultimate jth merged Split the j merged columns, let j=j+1, return to the step of determining the third width, until the width of the current display area is less than or equal to the fifth actual width of the target list, or until the width of the current display area is equal to the width of the target list The difference between the fifth actual widths is less than the third width.
综上所述,在本发明实施例中,当最小宽度大于当前显示区域的宽度时,终端可以从该目标列表的多个属性信息中确定包括的M个合并组,之后,终端可以确定当对该M个合并组全部进行合并之后该目标列表的第一实际宽度,如果将第一实际宽度小于当前显示区域的宽度,则可以确定只对该M个合并组中的至少一个合并组进行合并即可,如果第一实际宽度大于当前显示区域的宽度,则可以直接确定M个合并组将全部被合并,此时,只需要从除了M个合并组的列项之外的剩余列项中选至少两个列项,并将选择的至少两个列项和M个合并组分别合并,即可以保证该目标列表能够完整的显示在当前显示区域中,相较于相关技术中列表的布局方式更加灵活,即使对于不同的终端,该目标列表也可以保证完整的进行显示。To sum up, in this embodiment of the present invention, when the minimum width is greater than the width of the current display area, the terminal may determine the M merged groups included in the multiple attribute information of the target list, and then the terminal may determine when If the first actual width of the target list after all the M merging groups are merged, if the first actual width is smaller than the width of the current display area, it can be determined that only at least one merging group in the M merging groups is merged, that is, Yes, if the first actual width is greater than the width of the current display area, it can be directly determined that all the M merged groups will be merged. It can ensure that the target list can be completely displayed in the current display area, which is more flexible than the layout of the list in the related art. Even for different terminals, the target list can be guaranteed to be displayed completely.
需要说明的是:上述实施例提供的列表显示装置在进行列表显示时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的列表显示装置与列表显示方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that: when the list display device provided by the above-mentioned embodiment performs list display, only the division of the above-mentioned functional modules is used as an example for illustration. That is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the list display device and the list display method embodiments provided by the above embodiments belong to the same concept, and the specific implementation process thereof is detailed in the method embodiments, which will not be repeated here.
图7是本发明实施例提供的另一种列表显示装置700的框图。例如,装置700可以被提供为一服务器或一终端。参照图7,装置700包括处理器701、通信接口702、存储器703和通信总线704。FIG. 7 is a block diagram of another list display apparatus 700 provided by an embodiment of the present invention. For example, the apparatus 700 may be provided as a server or a terminal. 7 , the apparatus 700 includes a
如图7所示,处理器701,通信接口702和存储器703通过通信总线704完成相互间的通信。As shown in FIG. 7 , the
处理器701可以是一个CPU(Central Processing Unit,中央处理器),微处理器,ASIC(application-specific integrated circuit,特定应用集成电路),或一个或多个用于控制本申请方案程序执行的集成电路。The
通信总线704可包括一通路,在上述组件之间传送信息。
存储器703可以是ROM(read-only memory,只读存储器)或可存储静态信息和指令的其它类型的静态存储设备,RAM(random access memory,随机存取存储器)或者可存储信息和指令的其它类型的动态存储设备,也可以是EEPROM(Electrically ErasableProgrammable Read-Only Memory,电可擦可编程只读存储器)、CD-ROM(Compact DiscRead-Only Memory,只读光盘)或其它光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其它磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其它介质,但不限于此。存储器703可以是独立存在,通过通信总线704与处理器701相连接。存储器703也可以和处理器701集成在一起。The
通信接口702,使用任何收发器一类的装置,用于与其它设备或通信网络通信,如以太网,无线接入网,WLAN(Wireless Local Area Networks,无线局域网)等。The
其中,存储器703用于存储执行本申请方案的计算机程序,并由处理器701来控制执行。也即,处理器701用于执行存储器上所存放的程序,以实现图1-5所示实施例提供的列表显示方法。The
在示例性实施例中,还提供了一种计算机可读存储介质,该计算机可读存储介质内存储有计算机程序,当该计算机可读存储介质中存储的计算机程序由服务器的处理器执行时,使得服务器能够执行图1-5所示实施例提供的列表显示方法。In an exemplary embodiment, a computer-readable storage medium is also provided, a computer program is stored in the computer-readable storage medium, and when the computer program stored in the computer-readable storage medium is executed by a processor of a server, The server is enabled to execute the list display method provided by the embodiments shown in FIGS. 1-5 .
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps of implementing the above embodiments can be completed by hardware, or can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable storage medium. The storage medium mentioned may be a read-only memory, a magnetic disk or an optical disk, etc.
以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the protection of the present invention. within the range.
Claims (21)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710626122.5A CN110020267B (en) | 2017-07-27 | 2017-07-27 | List display method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710626122.5A CN110020267B (en) | 2017-07-27 | 2017-07-27 | List display method and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN110020267A CN110020267A (en) | 2019-07-16 |
| CN110020267B true CN110020267B (en) | 2021-03-26 |
Family
ID=67185994
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710626122.5A Active CN110020267B (en) | 2017-07-27 | 2017-07-27 | List display method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN110020267B (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113721875B (en) * | 2021-08-30 | 2025-03-18 | 康键信息技术(深圳)有限公司 | List display method, device and storage medium |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007172295A (en) * | 2005-12-22 | 2007-07-05 | Mitsubishi Electric Corp | Shared data information display device, shared data information display system, and shared data information display method |
| CN103235822A (en) * | 2013-05-03 | 2013-08-07 | 富景天策(北京)气象科技有限公司 | Database generating and querying method |
| CN105488073A (en) * | 2014-09-26 | 2016-04-13 | 北京神州泰岳软件股份有限公司 | Method and device for generating report header |
| CN105808110A (en) * | 2014-12-30 | 2016-07-27 | 腾讯科技(北京)有限公司 | Table display method and display device |
| CN106682046A (en) * | 2015-11-11 | 2017-05-17 | 北京国双科技有限公司 | Method and device used for processing multiple Tab pages |
| CN106855851A (en) * | 2015-12-08 | 2017-06-16 | 中国移动通信集团公司 | Knowledge extraction method and device |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7725815B2 (en) * | 2005-12-12 | 2010-05-25 | Sap Ag | Method and system for ordered resizing columns in a table |
| US20070136655A1 (en) * | 2005-12-12 | 2007-06-14 | Peters Johan C | Method and system for linearly resizing columns in a table |
-
2017
- 2017-07-27 CN CN201710626122.5A patent/CN110020267B/en active Active
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007172295A (en) * | 2005-12-22 | 2007-07-05 | Mitsubishi Electric Corp | Shared data information display device, shared data information display system, and shared data information display method |
| CN103235822A (en) * | 2013-05-03 | 2013-08-07 | 富景天策(北京)气象科技有限公司 | Database generating and querying method |
| CN105488073A (en) * | 2014-09-26 | 2016-04-13 | 北京神州泰岳软件股份有限公司 | Method and device for generating report header |
| CN105808110A (en) * | 2014-12-30 | 2016-07-27 | 腾讯科技(北京)有限公司 | Table display method and display device |
| CN106682046A (en) * | 2015-11-11 | 2017-05-17 | 北京国双科技有限公司 | Method and device used for processing multiple Tab pages |
| CN106855851A (en) * | 2015-12-08 | 2017-06-16 | 中国移动通信集团公司 | Knowledge extraction method and device |
Also Published As
| Publication number | Publication date |
|---|---|
| CN110020267A (en) | 2019-07-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US20150278359A1 (en) | Method and apparatus for generating a recommendation page | |
| TW201535231A (en) | Method for adjusting desktop icons and system using the method | |
| CN108958857A (en) | A kind of interface creating method and device | |
| US20160350839A1 (en) | Interactive ordering of multivariate objects | |
| CN105956148A (en) | Resource information recommendation method and apparatus | |
| US20140156860A1 (en) | Incrementally Changing the Availability of a Feature | |
| US20090187561A1 (en) | Content search method and system | |
| CN108958612B (en) | Method for controlling page sliding, method and system for controlling page, terminal device and medium | |
| CN110968314A (en) | Page generation method and device | |
| CN110688578A (en) | Screen locking wallpaper recommendation method and device and electronic equipment | |
| CN110020267B (en) | List display method and device | |
| CN105354225B (en) | A kind of web search results recommended method and electronic equipment | |
| JP6198866B2 (en) | Patent search method | |
| WO2012101700A1 (en) | Ui (user interface) creation support device, ui creation support method, and program | |
| JP5905433B2 (en) | Information processing apparatus, expenditure situation visualization method, and expenditure situation visualization program | |
| US20160300292A1 (en) | Product navigation tool | |
| CN108073594B (en) | Method and device for generating thermodynamic diagram | |
| JP2020115285A (en) | Calculation device, calculation method, and calculation program | |
| CN113760154B (en) | Page element display method and device | |
| WO2016033155A2 (en) | Query-breadth selected search result sorting mechanism | |
| CN104850312A (en) | Electronic equipment and method for processing information thereof | |
| US20190155866A1 (en) | Data processing method and apparatus | |
| CN105988976A (en) | Document review annotation display method and apparatus | |
| US10614104B2 (en) | Processing of data relating to entities | |
| CN113377380B (en) | User interface component deployment method and device |
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 | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20250729 Address after: Rooms 602 and 605, No. 85 Xiangxue Avenue Middle, Huangpu District, Guangzhou City, Guangdong Province 510000 Patentee after: Guangzhou Gaohang Technology Transfer Co.,Ltd. Country or region after: China Address before: Hangzhou City, Zhejiang province 310051 Binjiang District Qianmo Road No. 555 Patentee before: Hangzhou Hikvision Digital Technology Co.,Ltd. Country or region before: China |
|
| TR01 | Transfer of patent right |