CN108108212B - Processing method and device for application program list page and terminal - Google Patents

Processing method and device for application program list page and terminal Download PDF

Info

Publication number
CN108108212B
CN108108212B CN201711214851.6A CN201711214851A CN108108212B CN 108108212 B CN108108212 B CN 108108212B CN 201711214851 A CN201711214851 A CN 201711214851A CN 108108212 B CN108108212 B CN 108108212B
Authority
CN
China
Prior art keywords
list
row
page
sliding
list row
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
Application number
CN201711214851.6A
Other languages
Chinese (zh)
Other versions
CN108108212A (en
Inventor
唐万超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuba Co Ltd
Original Assignee
Wuba Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuba Co Ltd filed Critical Wuba Co Ltd
Priority to CN201711214851.6A priority Critical patent/CN108108212B/en
Publication of CN108108212A publication Critical patent/CN108108212A/en
Application granted granted Critical
Publication of CN108108212B publication Critical patent/CN108108212B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality

Abstract

The invention provides a processing method and device for an application program list page and a terminal. The processing method of the application program list page comprises the following steps: acquiring the number of rows between a current list row selected by a sliding start user and a corresponding target list row at the sliding end according to a list page sliding instruction input by the user; and if the number of rows between the target list row and the current list row is larger than or equal to a preset value M, establishing each first list row between the display page corresponding to the list page at the beginning of sliding and the display page corresponding to the list page at the end of sliding and each second list row of the display page corresponding to the list page at the end of sliding, and loading and drawing the content of each of the N rows and columns in front of the target list row. According to the processing method, device and terminal for the application program list page, the phenomenon of blocking is avoided when the user swiftly browses the list page in a sliding manner, and the use experience of the user is improved.

Description

Processing method and device for application program list page and terminal
Technical Field
The present invention relates to communications engineering technologies, and in particular, to a method, an apparatus, and a terminal for processing an application list page.
Background
With the rapid development of mobile internet, more and more mobile phone Applications (APPs) are found in various mobile phone APP stores, and users can know information around the world through the mobile phone APPs without going out.
Most mobile phone apps present data and information to users in the form of list pages and detail pages. The contents of the list pages are rich and various, and characters, pictures and even videos exist. For some pages of an application program with a list page of complex data volume and huge data volume, when a user slides the list page quickly to browse, the performance problems of unsmooth sliding such as the jamming of the list page can occur, and the use experience of the user is influenced.
Disclosure of Invention
The invention provides a processing method, a device and a terminal for application program list pages, which aim to solve the technical problem of unsmooth sliding of list pages and the like when a user slides the list pages quickly for browsing in the prior art.
The invention provides a processing method of an application program list page, wherein the list page comprises a plurality of row and column list rows, and the method comprises the following steps:
acquiring the number of rows between a current list row selected by a user when sliding starts and a corresponding target list row when sliding ends according to a list page sliding instruction input by the user; when the target list behavior sliding is finished, the last row-column list row of the display page corresponding to the list page;
judging whether the number of rows between the target list row and the current list row is larger than or equal to a preset value M or not;
if so, creating each first list row between the display page corresponding to the list page at the beginning of sliding and the display page corresponding to the list page at the end of sliding and each second list row of the display page corresponding to the list page at the end of sliding, loading and drawing the content of each row and column list row N before the target list row, and obtaining the display page corresponding to the list page at the end of sliding;
wherein N is less than M, and both N and M are positive integers.
The method as described above, if the number of rows between the target list row and the current list row is less than a preset value M,
and creating each first list row between the display page corresponding to the list page at the beginning of the sliding and the display page corresponding to the list page at the end of the sliding and each second list row of the display page corresponding to the list page at the end of the sliding, and loading and drawing the content of each first list row and each second list row to obtain the display page corresponding to the list page at the end of the sliding.
The method as described above, the loading and drawing the content of each row and column table row N before the target list row includes:
for each third list row, adding a picture layer on the view layer of the third list row, wherein the third list row is any one of N list rows before the target list row;
obtaining the content of the third list row from a server;
and loading the content of the third list row, and asynchronously drawing the content of the third list row on the picture layer.
The method for creating each first list row between the display page corresponding to the list page at the beginning of the sliding and the display page corresponding to the list page at the end of the sliding and each second list row of the display page corresponding to the list page at the end of the sliding includes:
for each fourth list row, acquiring the layout of the content of the fourth list row and the row height of the fourth list row stored in the terminal; the fourth list row is any one of the first list rows or the second list rows;
and newly building a list row according to the line height and the layout to obtain the fourth list row.
The method as described above, before creating a new list row according to the row height and the layout to obtain the fourth list row, further includes:
and detecting whether a standby list row with the same layout and row height as the content of the fourth list row exists in the established list row corresponding to the list page, wherein the obtained detection result is negative.
The method for creating each first list row between the display page corresponding to the list page at the beginning of the sliding and the display page corresponding to the list page at the end of the sliding and each second list row of the display page corresponding to the list page at the end of the sliding includes:
for each fourth list row, acquiring the layout of the content of the fourth list row and the row height of the fourth list row stored in the terminal; the fourth list row is any one of the first list rows or the second list rows;
and when detecting that a spare list row with the same layout and row height as the content of the fourth list row exists in the established list row corresponding to the list page, multiplexing the spare list row to obtain the fourth list row.
The present invention further provides a device for processing an application list page, where the list page includes a plurality of rows and columns, and includes:
the acquisition module is used for acquiring the number of rows between a current list row selected by a user when the sliding starts and a corresponding target list row when the sliding ends according to a list page sliding instruction input by the user; when the target list behavior sliding is finished, the last row-column list row of the display page corresponding to the list page;
the judging module is used for judging whether the number of rows between the target list row and the current list row is larger than or equal to a preset value M or not;
a processing module, configured to, if the number of rows between the target list row and the current list row is greater than or equal to a preset value M, create each first list row between a display page corresponding to the list page at the start of sliding and a display page corresponding to the list page at the end of sliding, and each second list row of the display page corresponding to the list page at the end of sliding, load and draw respective contents of N rows and columns before the target list row, and obtain a display page corresponding to the list page at the end of sliding;
wherein N is less than M, and both N and M are positive integers.
The apparatus as described above, the processing module being specifically configured to,
for each third list row, adding a picture layer on the view layer of the third list row, wherein the third list row is any one of N list rows before the target list row;
acquiring the content of the third list row from the server;
and loading the content of the third list row, and asynchronously drawing the content of the third list row on the picture layer.
The apparatus as described above, the processing module being specifically configured to,
for each fourth list row, acquiring the layout of the content of the fourth list row and the row height of the fourth list row stored in the terminal; the fourth list row is any one of the first list rows or the second list rows;
and newly building a list row according to the line height and the layout to obtain the fourth list row.
The present invention also provides a terminal, comprising: apparatus for processing an application list page as described in any one of the preceding.
The processing method of the application program list page comprises the following steps: according to a list page sliding instruction input by a user, acquiring the number of rows between a current list row selected by the user when sliding starts and a target list row corresponding to the sliding ends, and acquiring the last list row of a display page corresponding to the list page when the sliding of the target list row ends; judging whether the number of rows between the target list row and the current list row is larger than or equal to a preset value M or not; and if the line number between the target list line and the current list line is larger than or equal to a preset value M, establishing each first list line between a display page corresponding to the list page at the beginning of sliding and a display page corresponding to the list page at the end of sliding and each second list line of the display page corresponding to the list page at the end of sliding, loading and drawing the content of each row and column list line N before the target list line, and obtaining the display page corresponding to the list page at the end of sliding, wherein N is smaller than M. The processing method of the application program list page enables a user not to be blocked when the user swiftly browses the list page in a sliding manner, and improves the use experience of the user.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a first flowchart of a method for processing an application list page according to the present invention;
FIG. 2 is a schematic diagram of a list page provided by the present invention;
FIG. 3 is a schematic illustration of a detail page provided by the present invention;
FIG. 4 is a flowchart of a second method for processing an application list page according to the present invention;
FIG. 5 is a flowchart III of a processing method for an application list page according to the present invention;
FIG. 6 is a schematic structural diagram illustrating a first exemplary embodiment of a processing apparatus for processing an application list page;
FIG. 7 is a schematic structural diagram illustrating a second embodiment of a processing apparatus for processing an application list page according to the present invention;
fig. 8 is a schematic structural diagram of a terminal provided in the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a first flowchart of a processing method of an application list page provided by the present invention, as shown in fig. 1, the method of this embodiment may include:
step S101, acquiring the number of rows between a current list row selected by a user when sliding starts and a target list row corresponding to the sliding ends according to a list page sliding instruction input by the user; when the target list behavior sliding is finished, the last row-column list row of the display page corresponding to the list page;
step S102, judging whether the number of rows between a target list row and a current list row is larger than or equal to a preset value M, wherein M is a positive integer;
step S103, if the number of rows between the target list row and the current list row is larger than or equal to a preset value M, creating each first list row between a display page corresponding to the list page at the beginning of sliding and a display page corresponding to the list page at the end of sliding and each second list row of the display page corresponding to the list page at the end of sliding, loading and drawing the content of each row and column list row in front of the target list row to obtain the display page corresponding to the list page at the end of sliding, wherein N is smaller than M, and N is a positive integer;
step S104, if the number of rows between the target list row and the current list row is smaller than a preset value M, establishing each first list row between a display page corresponding to the list page at the beginning of sliding and a display page corresponding to the list page at the end of sliding and each second list row of the display page corresponding to the list page at the end of sliding, loading and drawing the content of each first list row and each second list row, and obtaining the display page corresponding to the list page at the end of sliding;
specifically, the execution body of the embodiment may be a terminal, and the terminal may include, but is not limited to, a mobile phone, a tablet computer, and the like.
The display page of the application program comprises a list page and a detail page, wherein the list page comprises a plurality of list rows, each row list row is provided with contents such as pictures and/or characters, and a user enters the detail page of the contents indicated by the list row by clicking the contents of the list row in the list page.
Fig. 2 is a schematic diagram of a list page provided by the present invention, and fig. 3 is a schematic diagram of a detail page provided by the present invention.
Referring to fig. 2 to 3, in fig. 2, a list line 201 and contents 202 of the list line are displayed, and when a user selects a list line, the terminal displays a detail page of the contents indicated by the list line, as shown in fig. 3.
When a user slides a list page, a terminal receives a list page sliding instruction input by the user, and obtains the number of rows between a current list row selected by the user when the sliding starts and a corresponding target list row when the sliding ends according to the received list page sliding instruction; the current list row selected by the user refers to the list row touched by the finger of the user, and the last list row of the displayed page corresponding to the list page is selected when the target list row slides to the end.
As can be understood by those skilled in the art, at the instant when the user inputs the list page sliding instruction, the terminal can immediately know the corresponding target list row at the end of the sliding according to the force of the user sliding the list page (the force of pressing the screen), so as to obtain the number of rows between the current list row and the target list row. That is, the acquisition of the number of rows between the current list row selected by the user at the start of the sliding and the target list row corresponding to the end of the sliding is completed at the instant of acquiring the list page sliding instruction input by the user, and is not completed until the list page stops sliding.
Then, whether the number of rows between the target list row and the current list row is larger than or equal to a preset value M is judged. The preset value M can be determined according to respective row heights of respective list rows in the list page and the row number that the terminal display interface can simultaneously display.
And if the number of rows between the target list row and the current list row is less than a preset value M, establishing each first list row between the display page corresponding to the list page at the beginning of sliding and the display page corresponding to the list page at the end of sliding and each second list row of the display page corresponding to the list page at the end of sliding, and loading and drawing the content of each first list row and each second list row to obtain the display page corresponding to the list page at the end of sliding.
Specifically, if the number of rows between the target list row and the current list row is smaller than the preset value M, it may be considered that the speed of sliding the list page by the user is relatively slow, and a situation of loading many data in a short time may not occur.
If the number of rows between the target list row and the current list row is larger than or equal to a preset value M, establishing each first list row between a display page corresponding to the list page at the beginning of sliding and a display page corresponding to the list page at the end of sliding and each second list row of the display page corresponding to the list page at the end of sliding, loading and drawing the content of each of N rows and columns in front of the target list row, and obtaining the display page corresponding to the list page at the end of sliding; wherein N is less than M and is a positive integer.
Specifically, if the number of rows between the target list row and the current list row is greater than or equal to a preset value M, it can be considered that the user slides the list page quickly, and only loads and draws the respective contents of N rows and columns of list rows before the target list row, so as to obtain a display page corresponding to the list page when the sliding is finished; the N row-column list rows before the target list row comprise the target list row.
Those skilled in the art will appreciate that the N-row list rows preceding the target list row are the list rows in each of the first list rows and each of the second list rows.
The following describes, with reference to an example, a process of creating N rows and columns before a target list row, loading and drawing respective contents of the N rows and columns before the target list row, and obtaining a display page corresponding to a list page at the end of sliding.
For example, if the terminal can simultaneously display 3 list rows, N is not less than 3, and preferably N is 3 or 4. If N is 3, and the user slides the list page downwards, the terminal firstly creates a list row of the 2 nd row before the target list row, acquires the content of the second row before the target list row from the server, loads the content of the 2 nd list row before the target list row (1 row apart from the target list row) and draws the content in the 2 nd list row before the target list row; then creating a 1 st list row before the target list row (adjacent to the target list row), acquiring the content of the 1 st list row before the target list row from the server, loading the content of the 1 st list row before the target list row and drawing the content in the 1 st list row before the target list row; and then, creating a target list row, acquiring the display content of the created target list row from the server, loading the content of the target list row and drawing the content in the target list row to obtain a display page corresponding to the list page at the end of sliding.
For list rows of N row-column list rows in each first list row and each second list row, except for the target list row, whose contents are not loaded and drawn, only the same preset picture may be added to these list rows or a blank list row may be directly displayed.
In this embodiment, if the number of rows between the target list row and the current list row is greater than or equal to the preset value M, that is, the list page is quickly slid, and only the content of the N row list rows before the target list row is loaded and drawn, so that unnecessary data loading is reduced, the response speed of the application program is increased, a user cannot be stuck when quickly sliding and browsing the list page, and the use experience of the user is improved.
The processing method of the application list page of the embodiment comprises the following steps: according to a list page sliding instruction input by a user, acquiring the number of rows between a current list row selected by a sliding start user and a target list row corresponding to the sliding end, and acquiring the last list row of a display page corresponding to the list page when the sliding of the target list row is ended; judging whether the number of rows between the target list row and the current list row is larger than or equal to a preset value M, wherein M is a positive integer; if the number of rows between the target list row and the current list row is larger than or equal to a preset value M, establishing each first list row between a display page corresponding to the list page at the beginning of sliding and a display page corresponding to the list page at the end of sliding and each second list row of the display page corresponding to the list page at the end of sliding, loading and drawing the content of each row and column in front of the target list row to obtain the display page corresponding to the list page at the end of sliding, wherein N is smaller than M, and N is a positive integer; and if the number of rows between the target list row and the current list row is less than a preset value M, establishing each first list row between the display page corresponding to the list page at the beginning of sliding and the display page corresponding to the list page at the end of sliding and each second list row of the display page corresponding to the list page at the end of sliding, and loading and drawing the content of each first list row and each second list row to obtain the display page corresponding to the list page at the end of sliding. The processing method of the application program list page in the embodiment enables a user not to have a phenomenon of blocking the list page when the user swiftly browses the list page in a sliding manner, and improves the use experience of the user.
The technical solution of the embodiment of the method shown in fig. 1 will be described in detail below by using several specific examples.
First, a specific implementation process of creating N rows and columns of the list row before the target list row and loading and drawing the content of each of the N rows and columns of the list row before the target list row in the previous embodiment is described. For the list rows of the first list row and the second list row except the N list rows before the target list row, because the contents are not loaded and drawn, the creation process of the list rows is not described, and the creation process is the same as the creation process of the N list rows before the target list row.
Fig. 4 is a flowchart of a second embodiment of a method for processing an application sequence table page provided by the present invention, and as shown in fig. 4, the method of this embodiment may include:
step S201, for each third list row, obtaining the layout of the content of the third list row and the line height of the third list row stored in the terminal; the third list row is any one of N list rows before the target list row;
step S202, newly building a list row according to the row height of the third list row and the layout of the content of the third list row to obtain a third list row;
step S203, adding a picture layer on the view layer of the third list row;
step S204, acquiring the content of a third list row from the server;
and step S205, loading the content of the third list row, and asynchronously drawing the content of the third list row on the picture layer.
Specifically, the present embodiment is directed to a process of creating a list row and a process of loading and drawing the content thereof, and the targeted list row is any one of N list rows before a target list row, which is referred to herein as a third list row. The creation process of the N row-column table rows before the target list row and the process of loading and drawing the content are the same.
When the application program is operated for the first time to create the list row, the terminal can calculate the row height of the list row according to the program code of the application program, obtain the layout of the content of the list row, create the list row according to the row height and the layout, and cache the calculated row height in the terminal, so that when a user uses the application program next time or slides back a list page, the row height of the corresponding list row does not need to be recalculated, and the influence of the calculation of the row height on the response speed of the application program is avoided.
And when the third list row is created, acquiring the layout of the content of the list row according to the source program code of the application program, and acquiring the row height of the third list row stored in the terminal. A third list row is created based on the layout and the row height. If the contents of the list row include pictures, the width and height of the pictures, the margins of each side of the pictures, and the like are the layout of the contents of the list row.
The new creation of the third list row according to the layout and the line height may be triggered under the condition that "whether a spare list row having the same layout and line height as the content of the third list row exists in the created list row corresponding to the list page is detected, and the obtained detection result is no" or may be performed without the above-mentioned detection, and the new creation of the third list row is performed directly after the layout of the content of the third list row and the line height of the third list row stored in the terminal are acquired.
Adding a picture layer on the viewing layer of the newly-built third list row; and after the content of the third list row is obtained from the server, loading the content of the third list row, and asynchronously drawing the content of the third list row on the picture layer, namely starting another sub-thread to draw the content of the third list row on the picture layer.
It will be appreciated by those skilled in the art that the third list row belongs to a list row in the set of fourth list rows, since the fourth list row is any one of the first list rows or the second list rows, the third list row is any one of the N list rows preceding the target list row, and the N list rows preceding the target list row are the first list rows and the second list rows.
In this embodiment, the content of the third list row is not directly rendered on the view layer of the third list row, but a picture layer is added on the view layer of the third list row, and the content of the third list row is asynchronously rendered on the picture layer, so that the content of the third list row is prevented from being repeatedly rendered when a user slides the list page back and forth, and the response speed of the application program is improved.
In order to further improve the response speed of the application program, the embodiment is improved on the basis of the above embodiment.
Fig. 5 is a flowchart of a third embodiment of a method for processing an application sequence table page provided by the present invention, and as shown in fig. 5, the method of this embodiment may include:
step S301, for each third list row, obtaining the layout of the content of the first list row and the line height of the third list row stored in the terminal; the third list row is any one of N list rows before the target list row;
step S302, when detecting that a spare list row with the same layout and height as the content of the third list row exists in the established list row corresponding to the list page, multiplexing the spare list row to obtain the third list row;
step S303, adding a picture layer on the view layer of the third list row;
step S304, acquiring the content of a third list row from the server;
and S305, loading the content of the third list row, and asynchronously drawing the content of the third list row on the picture layer.
The applicable scenarios of this embodiment are: and detecting whether a standby list row with the same layout and height as the content of the third list row exists in the established list row corresponding to the list page, wherein the obtained detection result is the application scene of yes.
Step S301 is the same as step S201 in the previous embodiment, and details are not described in this embodiment.
For step S302, when it is detected that there is a spare list row having the same layout and row height as the content of the third list row in the created list row corresponding to the list page, the spare list row is multiplexed to obtain the third list row.
And multiplexing the created list rows corresponding to the list pages to obtain a third list row, so that the third list row can be prevented from being reestablished, and the response speed of the application program is further improved.
Step S303 is the same as step S203 in the previous embodiment, and details are not described in this embodiment; step S304 is the same as step S204 in the previous embodiment, and this embodiment is not repeated, and step S305 is the same as step S205 in the previous embodiment, and this embodiment is not repeated.
In this embodiment, the created list rows corresponding to the list pages are multiplexed to obtain the third list row, which avoids re-establishing the third list row, and further improves the response speed of the application program.
Fig. 6 is a schematic structural diagram of a first embodiment of a processing apparatus for processing an application list page provided by the present invention, as shown in fig. 6, the apparatus of the present embodiment may include: the device comprises an acquisition module 11, a judgment module 12 and a processing module 13, wherein the acquisition module 11 is used for acquiring the number of rows between a current list row selected by a sliding start user and a corresponding target list row at the sliding end according to a list page sliding instruction input by the user; when the target list behavior slides to the end, the last list row of the display page corresponding to the list page; the judging module 12 is configured to judge whether a number of rows between the target list row and the current list row is greater than or equal to a preset value M; and the processing module 13 is configured to, if the number of rows between the target list row and the current list row is greater than or equal to the preset value M, create each first list row between the display page corresponding to the list page at the start of sliding and the display page corresponding to the list page at the end of sliding, and each second list row of the display page corresponding to the list page at the end of sliding, and load and draw the content of each of the N row and column list rows before the target list row to obtain the display page corresponding to the list page at the end of sliding. Wherein N is less than M, and both N and M are positive integers.
The processing module 13 is further configured to, if the number of rows between the target list row and the current list row is smaller than the preset value M, create each first list row between the display page corresponding to the list page at the start of sliding and the display page corresponding to the list page at the end of sliding, and each second list row of the display page corresponding to the list page at the end of sliding, load and draw the content of each first list row and each second list row, and obtain the display page corresponding to the list page at the end of sliding.
The processing module 13 is specifically configured to, for each fourth list row, obtain a layout of contents of the fourth list row and a row height of the fourth list row stored in the terminal; the fourth list row is any one of the first list rows or the second list rows; and establishing a new list row according to the row height and the layout to obtain a fourth list row.
The processing module 13 is further specifically configured to, for each third list row, add a picture layer on the view layer of the third list row, where the third list row is any one of N list rows before the target list row; acquiring the content of the third list row from the server; the contents of the third list row are loaded and rendered asynchronously on the picture layer.
The apparatus of this embodiment may be configured to implement the technical solutions of the above method embodiments, and the implementation principles and technical effects are similar, which are not described herein again.
Fig. 7 is a schematic structural diagram of a second embodiment of a processing device for an application list page provided in the present invention, as shown in fig. 7, the device of this embodiment may further include, based on the device structure shown in fig. 6: a detection module 14, where the detection module 14 is configured to detect whether a spare list row having the same layout and row height as the content of the fourth list row exists in the established list row corresponding to the list page.
The processing module 13 is further specifically configured to, for each fourth list row, obtain a layout of contents of the fourth list row and a row height of the fourth list row stored in the terminal; the fourth list row is any one of the first list rows or the second list rows; and when detecting that the spare list row with the same layout and height as the content of the fourth list row exists in the established list row corresponding to the list page, multiplexing the spare list row to obtain the fourth list row.
The apparatus of this embodiment may be configured to implement the technical solutions of the above method embodiments, and the implementation principles and technical effects are similar, which are not described herein again.
Fig. 8 is a schematic structural diagram of a terminal according to the present invention, and as shown in fig. 8, a terminal 31 of this embodiment includes a processing device 32 for processing an application list page shown in fig. 6 or fig. 7, which correspondingly may execute the technical solution of any one of the method embodiments in fig. 1 to fig. 5, and the implementation principle and the technical effect thereof are similar and will not be described herein again.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (7)

1. A method for processing a list page of an application, said list page comprising a plurality of list rows, comprising:
acquiring the number of rows between a current list row selected by a user when sliding starts and a corresponding target list row when sliding ends according to a list page sliding instruction input by the user; when the target list behavior sliding is finished, the last row-column list row of the display page corresponding to the list page;
judging whether the number of rows between the target list row and the current list row is larger than or equal to a preset value M or not;
if so, creating each first list row between the display page corresponding to the list page at the beginning of sliding and the display page corresponding to the list page at the end of sliding and each second list row of the display page corresponding to the list page at the end of sliding, loading and drawing the content of each row and column list row N before the target list row, and obtaining the display page corresponding to the list page at the end of sliding;
wherein N is less than M, and both N and M are positive integers;
wherein, creating each first list row between the display page corresponding to the list page at the start of the sliding and the display page corresponding to the list page at the end of the sliding, and each second list row of the display page of the list page at the end of the sliding includes:
for each fourth list row, acquiring the layout of the content of the fourth list row and the row height of the fourth list row stored in the terminal; the fourth list row is any one of the first list rows or the second list rows;
when detecting that a spare list row with the same layout and row height as the content of the fourth list row exists in the established list row corresponding to the list page, multiplexing the spare list row to obtain a fourth list row;
the loading and drawing of the respective contents of the N row-column table rows before the target list row comprises:
for each third list row, adding a picture layer on the view layer of the third list row, wherein the third list row is any one of N list rows before the target list row;
obtaining the content of the third list row from a server;
the contents of the third list row are loaded and rendered asynchronously on the picture layer.
2. The method of claim 1, wherein if the number of rows between the target list row and the current list row is less than a predetermined value M,
and creating each first list row between the display page corresponding to the list page at the beginning of the sliding and the display page corresponding to the list page at the end of the sliding and each second list row of the display page corresponding to the list page at the end of the sliding, and loading and drawing the content of each first list row and each second list row to obtain the display page corresponding to the list page at the end of the sliding.
3. The method of claim 1, wherein the creating each first list row between the display page corresponding to the list page at the beginning of the swipe and the display page corresponding to the list page at the end of the swipe, and each second list row of the display page of the list page at the end of the swipe comprises:
for each fourth list row, acquiring the layout of the content of the fourth list row and the row height of the fourth list row stored in the terminal; the fourth list row is any one of the first list rows or the second list rows;
and newly building a list row according to the line height and the layout to obtain the fourth list row.
4. The method of claim 3, further comprising, prior to creating the fourth list row based on the row height and the layout, further comprising:
and detecting whether a standby list row with the same layout and row height as the content of the fourth list row exists in the established list row corresponding to the list page, wherein the obtained detection result is negative.
5. An apparatus for processing a list page of an application program, said list page including a plurality of rows and columns, comprising:
the acquisition module is used for acquiring the number of rows between a current list row selected by a user when the sliding starts and a corresponding target list row when the sliding ends according to a list page sliding instruction input by the user; when the target list behavior sliding is finished, the last row-column list row of the display page corresponding to the list page;
the judging module is used for judging whether the number of rows between the target list row and the current list row is larger than or equal to a preset value M or not;
a processing module, configured to, if the number of rows between the target list row and the current list row is greater than or equal to a preset value M, create each first list row between a display page corresponding to the list page at the start of sliding and a display page corresponding to the list page at the end of sliding, and each second list row of the display page corresponding to the list page at the end of sliding, load and draw respective contents of N rows and columns before the target list row, and obtain a display page corresponding to the list page at the end of sliding;
wherein N is less than M, and both N and M are positive integers;
the processing module is specifically configured to,
for each fourth list row, acquiring the layout of the content of the fourth list row and the row height of the fourth list row stored in the terminal; the fourth list row is any one of the first list rows or the second list rows;
when detecting that a spare list row with the same layout and row height as the content of the fourth list row exists in the established list row corresponding to the list page, multiplexing the spare list row to obtain a fourth list row;
the processing module is further specifically configured to,
for each third list row, adding a picture layer on the view layer of the third list row, wherein the third list row is any one of N list rows before the target list row;
acquiring the content of the third list row from the server;
the contents of the third list row are loaded and rendered asynchronously on the picture layer.
6. The apparatus of claim 5, wherein the processing module is specifically configured to,
for each fourth list row, acquiring the layout of the content of the fourth list row and the row height of the fourth list row stored in the terminal; the fourth list row is any one of the first list rows or the second list rows;
and newly building a list row according to the line height and the layout to obtain the fourth list row.
7. A terminal, comprising: processing means of an application list page as claimed in claim 5 or 6.
CN201711214851.6A 2017-11-28 2017-11-28 Processing method and device for application program list page and terminal Active CN108108212B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711214851.6A CN108108212B (en) 2017-11-28 2017-11-28 Processing method and device for application program list page and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711214851.6A CN108108212B (en) 2017-11-28 2017-11-28 Processing method and device for application program list page and terminal

Publications (2)

Publication Number Publication Date
CN108108212A CN108108212A (en) 2018-06-01
CN108108212B true CN108108212B (en) 2021-02-19

Family

ID=62208510

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711214851.6A Active CN108108212B (en) 2017-11-28 2017-11-28 Processing method and device for application program list page and terminal

Country Status (1)

Country Link
CN (1) CN108108212B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110865810A (en) * 2019-11-14 2020-03-06 北京无限光场科技有限公司 Resource multiplexing method and device, electronic equipment and computer readable storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102487361B (en) * 2010-12-03 2014-08-20 腾讯科技(深圳)有限公司 Method for multiplexing list page and apparatus thereof
CN104035668A (en) * 2014-06-24 2014-09-10 广州金山网络科技有限公司 Method and system for optimization of sliding performance of asynchronously loaded data and mobile terminal
CN105426073A (en) * 2015-10-27 2016-03-23 努比亚技术有限公司 List display control apparatus and method

Also Published As

Publication number Publication date
CN108108212A (en) 2018-06-01

Similar Documents

Publication Publication Date Title
CN106156066B (en) Page switching method, device and client
US10237622B2 (en) Page turning method, page turning apparatus and terminal as well as computer readable medium
CN109508213B (en) View rendering method, device, medium and intelligent terminal
US9335921B2 (en) Providing subpages in a touch panel user interface
CN106021421B (en) method and device for accelerating webpage rendering
CN107783714B (en) Page display method and device, electronic equipment and storage medium
CN106802758B (en) Processing method and device for screen capture
US20140189516A1 (en) Video preview display method and terminal device
US10620821B2 (en) Page sliding method and apparatus
US10331327B2 (en) Message display method, apparatus and terminal
CN108206959B (en) Method and device for displaying bullet screen message
WO2020000971A1 (en) Method and apparatus for switching global special effects, terminal device, and storage medium
EP3197176A1 (en) Android platform-based multimedia recommendation method and terminal device
CN107045546B (en) Webpage processing method and device and intelligent terminal
CN104965914A (en) Page display method and apparatus
CN105808307B (en) Page display method and device
CN103870197A (en) Method and device for processing picture
CN111694499A (en) Carousel picture display method and carousel picture display device
CN103336787A (en) Method and device for zooming webpage
CN113342230A (en) Control display method, device, equipment and medium
CN107122104B (en) Data display method and device
CN109388737B (en) Method and device for sending exposure data of content item and storage medium
CN107390982B (en) Screenshot method, screenshot equipment and terminal equipment
US20150169168A1 (en) Methods and systems for managing displayed content items on touch-based computer devices
CN108108212B (en) Processing method and device for application program list page and terminal

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