CN106708478B - Scroll view display method and apparatus - Google Patents

Scroll view display method and apparatus Download PDF

Info

Publication number
CN106708478B
CN106708478B CN201510432228.2A CN201510432228A CN106708478B CN 106708478 B CN106708478 B CN 106708478B CN 201510432228 A CN201510432228 A CN 201510432228A CN 106708478 B CN106708478 B CN 106708478B
Authority
CN
China
Prior art keywords
view
scroll
sub
template
placeholder
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
CN201510432228.2A
Other languages
Chinese (zh)
Other versions
CN106708478A (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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201510432228.2A priority Critical patent/CN106708478B/en
Priority to PCT/CN2016/089729 priority patent/WO2017012488A1/en
Publication of CN106708478A publication Critical patent/CN106708478A/en
Application granted granted Critical
Publication of CN106708478B publication Critical patent/CN106708478B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Controls And Circuits For Display Device (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application provides a scroll view display method and device, which are used for solving the problem of high memory consumption in the existing scroll view display. The method comprises the following steps: creating a scroll view frame and a view template, wherein pictures contained in the view template are placeholder pictures; copying at least one scroll view frame and at least one view template by using the created scroll view frame and view template; determining at least one first non-placeholder picture required to be displayed by a current screen; for each first non-placeholder picture, replacing the placeholder picture in one view template with the first non-placeholder picture to form a first sub-view; adding the first sub-view into a copied scroll view frame to form a first scroll view aiming at each formed first sub-view, wherein one first scroll view comprises one first sub-view; displaying the formed at least one first scroll view in the screen.

Description

Scroll view display method and apparatus
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for displaying a scroll view.
Background
With the increasing screen size of the terminal device, a plurality of information display areas can be presented in a screen range, and with the appearance of the multi-touch technology and the successful application on the terminal device, it is possible for a user to perform operations such as sliding and clicking on the plurality of information display areas at the same time.
The object specifically displayed in the information display area may be a scroll view. The scroll view may support a slide left or right or up and down operation. One scroll view comprises at least two sub-views, and the sub-views can display pictures and text information. If a sliding operation to the left or right is performed on the sub-view currently displayed in the scroll view, the sub-views included in the scroll view may be alternately played.
When a sliding operation is performed on a scroll view, a sub-view is loaded once per sliding, which causes large memory consumption of the device, and in order to reduce the memory consumption, a view multiplexing technique is adopted, that is, the sub-view moved out of the screen due to the sliding operation is stored, and when the sub-view is needed again, the sub-view is directly taken out from the stored sub-view and used.
The view multiplexing technology reduces the consumption of the memory to a certain extent. However, the multi-touch technology enables multiple scroll views to be displayed in one screen, and multiple scroll views displayed in one screen can be simultaneously and rapidly slid up and down to display a new scroll view in the current screen, all sub-views included in each displayed scroll view are loaded and saved, even if the above view multiplexing technology is adopted, the memory of the device is quickly consumed under so many scroll views, and then the display of the scroll views is stuck until the scrolling is returned.
Disclosure of Invention
The embodiment of the application provides a scroll view display method and device, which are used for solving the problem of high memory consumption in the existing scroll view display.
A scroll view display method comprising:
creating a scroll view frame and a view template, wherein pictures contained in the view template are placeholder pictures;
copying at least one scroll view frame and at least one view template by using the created scroll view frame and view template;
determining at least one first non-placeholder picture required to be displayed by a current screen;
for each first non-placeholder picture, replacing the placeholder picture in one view template with the first non-placeholder picture to form a first sub-view;
adding the first sub-view into a copied scroll view frame to form a first scroll view aiming at each formed first sub-view, wherein one first scroll view comprises one first sub-view;
displaying the formed at least one first scroll view in the screen.
A scrolling view display device, comprising:
the device comprises a creating unit, a display unit and a display unit, wherein the creating unit is used for creating a scroll view frame and a view template, and pictures contained in the view template are placeholder pictures;
a copying unit for copying at least one scroll view frame and at least one view template by using the created scroll view frame and view template;
the determining unit is used for determining at least one first non-placeholder picture which needs to be displayed on the current screen;
the sub-view forming unit is used for replacing the placeholder pictures in one view template by the first non-placeholder pictures to form a first sub-view aiming at each first non-placeholder picture;
a scroll view forming unit, configured to add, for each formed first sub-view, the first sub-view to a copied scroll view frame to form a first scroll view, where one first scroll view includes one first sub-view;
and a display unit for displaying the formed at least one first scroll view in the screen.
In the scheme of the embodiment of the application, a scroll view frame and a view template are created in advance, the view template includes a placeholder picture, and a first sub-view is formed by using the view template, so that the memory occupation is reduced.
Drawings
Fig. 1 is a flowchart of a scroll view display method according to an embodiment of the present application;
FIG. 2 is a schematic view of a scrolling view provided in accordance with an embodiment of the present application;
FIG. 3 is a flowchart of a scroll view display method according to a second embodiment of the present application;
fig. 4 is a schematic structural diagram of a scroll view display device according to a third embodiment of the present application.
Detailed Description
The embodiment of the application provides a scroll view display method and device, which are used for solving the problem of high memory consumption in the existing scroll view display.
The preferred embodiments of the present application will be described in conjunction with the drawings of the specification, it being understood that the preferred embodiments described herein are merely for purposes of illustration and explanation and are not intended to limit the present application. And the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
Example one
As shown in fig. 1, which is a flowchart of a scroll view display method according to a first embodiment of the present application, the method includes the following steps:
step 101: creating a scroll view frame and a view template, wherein pictures contained in the view template are placeholder pictures;
the scroll view frame provides automatic scrolling and zooming functions and can support the scrolling operation of the sub-views. The scroll view framework and view templates are used to construct a scroll view. Typically, adding a child view to a scroll view frame may constitute a scroll view.
The size of the scroll view frame is determined according to the width and the height of the current screen and the number of scroll views required to be displayed in one screen;
the placeholder pictures are pictures used when the view template is laid out under the condition that no real picture exists, and the data volume of the pictures is small.
In addition, when the scroll view contains characters, the view template also comprises a character frame and character size and style information;
step 102: putting the scroll view frame and the view template into a cache;
since the processor can quickly access data from the cache, the scroll view frame and the view template are frequently used for constructing the scroll view displayed on the screen, and therefore, the scroll view frame and the view template are loaded into the cache, so that the processor can conveniently and quickly take out the scroll view frame and the view template from the cache, and further, a first scroll view is quickly formed and displayed in the following steps;
it should be noted that this step 102 is a preferred step in the embodiment of the present application, and is intended to accelerate the forming speed of the scroll view;
step 103: copying at least one scroll view frame and at least one view template by using the created scroll view frame and view template;
the number of the scroll view frames and scroll view templates formed therein may be the same as the number of the first scroll views displayed in one screen;
the purpose of copying the view template is to generate a first sub-view for subsequent utilization of the copied view template; the purpose of the replicated view template is to generate a first scrolled view using the replicated scrolled view frame and the generated first sub-view.
If, in step 102, the created scroll view frame and view template are placed in the cache, then this step 103 specifically includes:
searching the scroll view frame and the view template from the cache, copying at least one scroll view frame by using the searched scroll view frame, and copying at least one view template;
step 104: determining at least one first non-placeholder picture required to be displayed by a current screen;
the first non-placeholder picture determined here is the picture that constitutes the first sub-view to be displayed by the current screen.
The purpose of determining the first non-placeholder picture here is to form a first sub-view to be displayed by the current screen.
Specifically, the picture link of at least one non-placeholder picture to be displayed on the current screen may be determined first, and then the corresponding picture may be obtained according to the picture link.
Generally, a non-placeholder picture has a picture link, so that the non-placeholder picture can be downloaded from the network when the picture link of the non-placeholder picture to be displayed is known.
Step 105: for each determined first non-placeholder picture, replacing the placeholder picture in one view template with the first non-placeholder picture to generate a first sub-view;
here, a first sub-view can be obtained by replacing the placeholder picture of a view template with a non-placeholder picture. If there are 4 view templates copied in step 103 and 4 non-placeholder pictures are determined in step 104, in this step 105, 4 first sub-views may be generated;
if the view template further includes a text box, text size and style information in step 101, in step 104, text information corresponding to at least one non-placeholder picture that needs to be displayed on the current screen needs to be determined; in this case, step 105 specifically includes:
and for each determined first non-placeholder picture and corresponding text information, replacing the placeholder picture in the view template with the first non-placeholder picture, and filling the corresponding text information in the text box according to the text size and style information to generate a first sub-view. At this time, the generated first sub-view has both the first non-placeholder picture and text.
Step 106: adding the first sub-view into a copied scroll view frame to form a first scroll view for each formed first sub-view;
here, if the number of the formed first sub-views is 4 and the number of the copied scroll view frames is N, 4 first scroll views may be formed in step 106.
Step 107: displaying the formed at least one first scroll view in the screen.
The first scroll view formed in step 107 above is explained below by way of example:
a schematic diagram of a screen comprising four scrolling views is given in fig. 2. Wherein, each of the second sub-views indicated by dotted lines refers to a sub-view that can be slid out and displayed on the screen by a left-right sliding operation. Assuming that the full scroll view A includes a first sub-view A1, a second sub-view A2, a second sub-view A3, and a second sub-view A4; the full scroll view B includes sub-views first B1, second sub-view B2, second sub-view B3, and second sub-view B4; when the full scroll view C includes the first sub-view C1, the second sub-view C2, the second sub-view C3 and the second sub-view C4, and the full scroll view D includes the sub-views first D1, sub-view D2, second sub-view D3 and second sub-view D4, the prior art view display technology generates and loads all the sub-views included in the full scroll view a, the full scroll view B, the full scroll view C and the full scroll view D directly using non-placeholder pictures, but displays on the screen the first sub-view a1, the first sub-view B1, the first sub-view C1 and the first sub-view D1, whereas the first scroll view a generated and loaded in this application includes only the first sub-view a1, the first scroll view B includes only the first sub-view B1, the first scroll view C includes only the first sub-view C1, and the first scroll view D1 includes only the first sub-view D1, that is, only the first sub-view of the scroll view is loaded, because it is not determined whether the user needs to browse the second sub-views of the scroll view, the loading is not needed, and the browsing of the user is not affected.
Generally, a user only needs to roughly browse a first sub-view of a scroll view, and then performs a sliding operation on the first sub-view after the first sub-view is interested, so as to implement continuous browsing of second sub-views of the scroll view.
Preferably, the method further comprises:
and when the first scroll view slides out of the visual area of the screen, releasing the memory occupied by the first scroll view.
When the first scroll view slides out of the visual area of the screen, the memory occupied by the first scroll view is released, so that the memory is recycled, and the memory resource is saved to the greatest extent.
Considering that the user may be interested in the first scroll view of the current screen display, the method preferably further comprises the following steps:
step a: monitoring a sliding operation of a user for a currently displayed first scroll view;
here, a timer may be set after detecting a finger touch event of the user with respect to a certain first scroll view, and if a finger movement event occurs before the timer reaches a set value, it may be determined that the user has performed a sliding operation with respect to the first scroll view.
Step b: when it is monitored that the user slides left and right in relation to a certain first scroll view, determining at least one second non-placeholder picture;
after sliding the first sub-view in the first scroll view, the first sub-view should be switched to the second sub-view, where the second non-placeholder picture is the picture used to form the second sub-view.
Assuming that it is monitored in step b that the user slides left and right with respect to the first sub-view in the first scroll view a, the second non-occupancy pictures determined at this time may be the picture a2 constituting the second sub-view a2, the picture A3 constituting the second sub-view A3, and the picture a4 constituting the second sub-view a 4.
Step c: copying at least one view template by using the created view template;
here, when the user slides the first scroll view, the sub-view of the first scroll view needs to be switched to the second sub-view, however, the second sub-view is not added to the first scroll view, so that the view template needs to be copied here, and then the copied view template and the second non-placeholder picture determined in step b are used to generate the second sub-view.
Step d: for each determined second non-placeholder picture, replacing the placeholder picture in the view template with the second non-placeholder picture to generate a second sub-view;
following the example in step b, the second sub-views formed here are the second sub-view a2, the second sub-view A3 and the second sub-view a 4.
Step e: adding the generated second sub-views into the first scroll view to form a second scroll view;
following the example in step d, the second scroll view formed here is a complete scroll view including sub-view a1, sub-view a2, sub-view A3, and sub-view a 4.
Step f: displaying the formed second scroll view.
In the above steps a to e, what is embodied is that when the user is really interested in a certain first scroll view (the user performs a left-right sliding operation on the first scroll view, which indicates that the user is interested in the first scroll view), each second sub-view of the first scroll view is loaded, and each generated second sub-view is used to form a second scroll view.
In step b, determining at least one second non-placeholder picture specifically includes:
the first step is as follows: determining a picture link of at least one second non-placeholder picture;
the second step is that: and downloading at least one second non-placeholder picture from the network by using the picture link.
Because the second non-occupancy pictures for each second sub-view constituting the first scroll view are downloaded from the network when the user starts to slide the first scroll view, network traffic and battery power are saved compared to the prior art in which at least one second non-occupancy picture is downloaded from the network regardless of whether the user starts to slide the scroll view or not.
Still continuing to use the scroll view shown in fig. 2, 4 scroll views are displayed in one screen, each complete scroll view includes 4 sub-views, 16 pictures need to be downloaded from the network when displaying the scroll view in one screen, N screen scroll views are generated when sliding up and down, 16N pictures need to be downloaded from the network, which consumes more network traffic and battery power; by adopting the scheme of the embodiment of the application, the second non-placeholder pictures of the second sub-views of the first scroll view which forms the first scroll view for the user to perform the sliding operation, that is, the first scroll view which the user is interested in, are downloaded, and the user usually only generates interest in the first scroll view of a part (for example, M first scroll views, where M is usually much smaller than 4N) of the first scroll view displayed in the screen and performs the sliding operation from left to right, so that only 4M pictures need to be downloaded, compared with the downloading of 16N pictures in the prior art, the consumed network traffic and the battery power are relatively small, and the user experience is improved.
In addition, in the solution of the application embodiment, memory consumption and network traffic can be further optimized by monitoring the speed of sliding the screen up and down, which is described below with reference to the solution of the second embodiment.
Example two
As shown in fig. 3, it is a flowchart of a scroll view display method in the second embodiment of the present application, and includes the following steps:
step 301: creating a scroll view frame and a view template, wherein pictures contained in the view template are placeholder pictures;
step 302: loading the scroll view frame and view template into a cache;
step 303: copying at least one scroll view frame and at least one view template by using the created scroll view frame and view template;
the details of steps 301 to 303 are the same as those of steps 101 to 103 in the first embodiment, and are not described herein again.
Step 304: monitoring the speed of the user for sliding up and down the screen;
step 305: judging whether the monitored speed is greater than a set value; if not, go to step 306; if yes, go to step 307;
the set value can be obtained by learning the up-and-down sliding speed of the user and the interest of the first scroll view;
step 306: determining at least one first non-placeholder picture required to be displayed by a current screen; then step 308 is executed;
considering that the smaller the speed of the user sliding the screen up and down, the greater the degree of interest of the user in the first scroll view that needs to be displayed in the current screen is, therefore, in this step 306, the first non-placeholder picture that constitutes the first sub-view that needs to be displayed in the current screen needs to be determined, and then the first scroll view is formed in the subsequent steps, so as to meet the requirements of the user.
Step 307: adding a view template to each copied scroll view frame to form a third scroll view; then step 309 is performed;
considering that the larger the speed of the user sliding the screen up and down, the smaller the user is interested in the first scroll view displayed in the current screen, therefore, in this step 307, the first non-placeholder picture constituting the first sub-view that needs to be displayed in the current screen is not determined, but only the view template containing the placeholder picture is added to the scroll view frame to form the third scroll view; because the first non-placeholder picture is not determined, namely, the corresponding picture does not need to be downloaded from the network, the network flow is saved, the consumption of the memory is reduced, the response speed of the up-and-down sliding gesture of the user is improved, and the display of the third scroll view is smooth.
Step 308: for each determined first non-placeholder picture, replacing the placeholder picture in one view template with the first non-placeholder picture to generate a first sub-view; then step 310 is executed;
step 309: and displaying the formed third scroll views in the screen.
What is seen on the screen in this step 309 is a third scroll view containing placeholder pictures;
step 310: adding a first sub-view to each copied scroll view frame to form a first scroll view; then step 311 is executed;
step 311: displaying the formed at least one first scroll view in the screen.
In general terms, the scheme of the second embodiment of the present application is also: when the user slides up and down quickly, a third scroll view is formed by directly utilizing the view template and the scroll view frame, and a first sub view and a second sub view are not created; when the user slides up and down slowly, a first sub-view is created by using the copied view template and is added into the scroll view frame, and a first scroll view is formed and displayed.
By the scheme of the second embodiment of the application, the view display of the user during the up-and-down sliding operation on the screen is optimized, whether the first scroll view needs to be created or not is determined according to the up-and-down sliding speed, the browsing of the user on the interested first scroll view is not influenced, the response speed of the user to the up-and-down sliding gesture is improved while the network flow is saved, the display of the first scroll view and the third scroll view is smooth, and the user experience is improved.
The embodiment of the application is particularly suitable for multi-scroll view display of the intelligent terminal. Wherein, the intelligent terminal may include but is not limited to: a feature phone, a smart phone, a palm top computer, a Personal Computer (PC), a car computer, a tablet computer, or a Personal Digital Assistant (PDA), etc.
EXAMPLE III
Based on the same inventive concept as the first embodiment and the second embodiment, a third embodiment of the present application provides a scrolling view display device, a schematic structural diagram of which is shown in fig. 4, and the scrolling view display device includes:
a creating unit 41, configured to create a scroll view frame and a view template, where pictures included in the view template are placeholder pictures;
a copying unit 42 for copying at least one scroll view frame and at least one view template using the created scroll view frame and view template;
a determining unit 43, which determines at least one first non-placeholder picture that needs to be displayed on the current screen;
a sub-view forming unit 44, configured to, for each first non-placeholder picture, replace a placeholder picture in a view template with the first non-placeholder picture to form a first sub-view;
a scroll view forming unit 45, configured to add, for each formed first sub-view, the first sub-view to a copied scroll view frame to form a first scroll view, where a first scroll view includes a first sub-view;
and a display unit 46 for displaying the formed at least one first scroll view in the screen.
Preferably, the apparatus further comprises:
a monitoring unit 47, configured to monitor a sliding operation of the user for a first sub-view in a currently displayed first scroll view;
the determining unit 43 is further configured to determine at least one second non-placeholder picture when it is monitored that the user performs a sliding operation on a certain first sub-view;
the copying unit 42 is further configured to copy at least one view template by using the created view template;
the sub-view forming unit 44 is further configured to, for each determined second non-placeholder picture, replace the placeholder picture in one copied view template with the second non-placeholder picture, and generate a second sub-view;
the scroll view forming unit 45 is further configured to add each generated second sub-view to the first scroll view in which the first sub-view is located, so as to form a second scroll view;
the display unit 46 is further configured to display a second sub-view of the formed second scroll view in the screen.
Preferably, the apparatus further comprises:
a monitoring unit 47 for monitoring the speed of the user sliding up and down with respect to the screen;
a judging unit 48 for judging whether the monitored speed is greater than a set value;
the determining unit 43 is specifically configured to determine at least one first non-occupancy picture that needs to be displayed on the current screen when the monitoring unit monitors that the speed of sliding up and down is not greater than the set value.
Preferably, the scroll view forming unit 45 is further configured to add a view template to each copied scroll view frame to form a third scroll view when the monitored speed is greater than the set value;
the display unit 46 is further configured to display each of the third scroll views formed in the screen.
Preferably, the apparatus further comprises:
and the releasing unit 49 is used for releasing the memory occupied by the first scroll view when the first scroll view slides out of the visible area of the screen.
Through the above description of the embodiments, it is clear to those skilled in the art that the embodiments of the present application may be implemented by hardware, or by software plus a necessary general hardware platform. Based on such understanding, the technical solutions of the embodiments of the present application may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.), and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments of the present application.
Those skilled in the art will appreciate that the drawings are merely schematic representations of one preferred embodiment and that the blocks or flow diagrams in the drawings are not necessarily required to practice the present application.
Those skilled in the art can understand that the modules in the terminal in the embodiment can be distributed in the terminal in the embodiment according to the description of the embodiment, and can also be located in one or more terminals different from the embodiment with corresponding changes. The modules of the above embodiments may be combined into one module, or further split into multiple sub-modules.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (10)

1. A scroll view display method, comprising:
creating a scroll view frame and a view template, wherein pictures contained in the view template are placeholder pictures;
copying at least one scroll view frame and at least one view template by using the created scroll view frame and view template;
determining at least one first non-placeholder picture required to be displayed by a current screen;
for each first non-placeholder picture, replacing the placeholder picture in one view template with the first non-placeholder picture to form a first sub-view;
adding the first sub-view into a copied scroll view frame to form a first scroll view aiming at each formed first sub-view, wherein one first scroll view comprises one first sub-view;
displaying the formed at least one first scroll view in the screen.
2. The method of claim 1, wherein the method further comprises:
monitoring a sliding operation of a user for a first sub-view in a currently displayed first scroll view;
when it is monitored that the user performs sliding operation on a certain first sub-view, determining at least one second non-placeholder picture;
copying at least one view template by using the created view template;
for each determined second non-placeholder picture, replacing the placeholder picture in one view template copied by using the created view template with the second non-placeholder picture to generate a second sub-view;
adding each generated second sub-view into a first scroll view in which the first sub-view is positioned to form a second scroll view;
and displaying a second sub-view in the formed second scroll view in the screen.
3. The method of claim 1, wherein the method further comprises:
monitoring the speed of the user for sliding up and down the screen;
judging whether the monitored speed is greater than a set value;
determining at least one first non-placeholder picture that needs to be displayed by the current screen, including:
and when the speed of up-and-down sliding is monitored to be not more than a set value, determining at least one first non-occupancy picture needing to be displayed on the current screen.
4. The method of claim 3, wherein the method further comprises:
when the monitored speed is larger than a set value, adding a view template to each copied scroll view frame to form a third scroll view;
and displaying the formed third scroll views in the screen.
5. The method of claim 1, wherein the method further comprises:
and when the first scroll view slides out of the visual area of the screen, releasing the memory occupied by the first scroll view.
6. A scrolling view display device, comprising:
the device comprises a creating unit, a display unit and a display unit, wherein the creating unit is used for creating a scroll view frame and a view template, and pictures contained in the view template are placeholder pictures;
a copying unit for copying at least one scroll view frame and at least one view template by using the created scroll view frame and view template;
the determining unit is used for determining at least one first non-placeholder picture which needs to be displayed on the current screen;
the sub-view forming unit is used for replacing the placeholder pictures in one view template by the first non-placeholder pictures to form a first sub-view aiming at each first non-placeholder picture;
a scroll view forming unit, configured to add, for each formed first sub-view, the first sub-view to a copied scroll view frame to form a first scroll view, where one first scroll view includes one first sub-view;
and a display unit for displaying the formed at least one first scroll view in the screen.
7. The apparatus of claim 6, wherein the apparatus further comprises:
the monitoring unit is used for monitoring the sliding operation of a user for a first sub-view in a first scrolling view which is displayed currently;
the determining unit is further configured to determine at least one second non-placeholder picture when it is monitored that the user performs a sliding operation on a certain first sub-view;
the copying unit is further used for copying at least one view template by using the created view template;
the sub-view forming unit is further configured to, for each determined second non-placeholder picture, replace the placeholder picture in one view template copied by using the created view template with the second non-placeholder picture, and generate a second sub-view;
the scroll view forming unit is further configured to add each generated second sub-view to a first scroll view in which the first sub-view is located, so as to form a second scroll view;
the display unit is further used for displaying a second sub-view in the formed second scroll view in the screen.
8. The apparatus of claim 6, wherein the apparatus further comprises:
the monitoring unit is used for monitoring the speed of the user for sliding the screen up and down;
the judging unit is used for judging whether the monitored speed is greater than a set value or not;
the determining unit is specifically configured to determine at least one first non-occupancy picture that needs to be displayed on the current screen when the monitoring unit monitors that the speed of sliding up and down is not greater than a set value.
9. The apparatus of claim 8, wherein the scroll view forming unit is further configured to add a view template to each copied scroll view frame to form a third scroll view when the monitored speed is greater than the set value;
and the display unit is also used for displaying each formed third scroll view in the screen.
10. The apparatus of claim 6, wherein the apparatus further comprises:
and the release unit is used for releasing the memory occupied by the first scroll view when the first scroll view slides out of the visual area of the screen.
CN201510432228.2A 2015-07-21 2015-07-21 Scroll view display method and apparatus Active CN106708478B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510432228.2A CN106708478B (en) 2015-07-21 2015-07-21 Scroll view display method and apparatus
PCT/CN2016/089729 WO2017012488A1 (en) 2015-07-21 2016-07-12 Scrolling view display method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510432228.2A CN106708478B (en) 2015-07-21 2015-07-21 Scroll view display method and apparatus

Publications (2)

Publication Number Publication Date
CN106708478A CN106708478A (en) 2017-05-24
CN106708478B true CN106708478B (en) 2020-06-05

Family

ID=57833597

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510432228.2A Active CN106708478B (en) 2015-07-21 2015-07-21 Scroll view display method and apparatus

Country Status (2)

Country Link
CN (1) CN106708478B (en)
WO (1) WO2017012488A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109445883A (en) * 2017-08-31 2019-03-08 北京嘀嘀无限科技发展有限公司 Interface display system and method
CN109684573B (en) * 2017-10-18 2021-10-15 北京京东尚科信息技术有限公司 Target picture display method and device, storage medium and electronic equipment
CN107977150A (en) * 2017-10-31 2018-05-01 阿里巴巴集团控股有限公司 A kind of view scrolling method, device and electronic equipment
CN112445566B (en) * 2020-11-30 2024-03-05 北京达佳互联信息技术有限公司 Page display method and device, electronic equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102968312A (en) * 2011-12-20 2013-03-13 微软公司 User interface placeholder used for application extension program

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101531164B1 (en) * 2008-08-12 2015-06-25 삼성전자주식회사 Method and apparatus for providing/receiving user interface using user interface directory
US9733819B2 (en) * 2011-12-14 2017-08-15 Facebook, Inc. Smooth scrolling of a structured document presented in a graphical user interface with bounded memory consumption
CN103914450B (en) * 2012-12-31 2017-05-17 北京新媒传信科技有限公司 Method and device for presenting web graphics in mobile terminal platform
CN104346386B (en) * 2013-07-31 2018-01-02 株式会社理光 Cloud server and image display system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102968312A (en) * 2011-12-20 2013-03-13 微软公司 User interface placeholder used for application extension program

Also Published As

Publication number Publication date
CN106708478A (en) 2017-05-24
WO2017012488A1 (en) 2017-01-26

Similar Documents

Publication Publication Date Title
US11573693B2 (en) Display controlling method, terminal, information processing apparatus, and storage medium
KR101903922B1 (en) Progressively indicating new content in an application-selectable user interface
KR101725887B1 (en) Method and apparatus for searching contents in touch screen device
US9329777B2 (en) Method and system for providing background contents of virtual key input device
US9569083B2 (en) Predictive directional content queue
CN111597006A (en) Application split screen method and device, storage medium and electronic equipment
CN106708478B (en) Scroll view display method and apparatus
CN106325687B (en) Method and terminal for calling program
KR20160141838A (en) Expandable application representation
EP2771808A1 (en) Creating and maintaining images of browsed documents
US20120110499A1 (en) Virtualized layouts
EP3408752B1 (en) Object management and visualization using a computing device
CN112148405A (en) Desktop layout method and device and electronic equipment
US20140289248A1 (en) Display apparatus and method for displaying information regarding activities thereof
CN109753612B (en) Questionnaire display control method and device, storage medium and electronic equipment
CN107317860A (en) Preloading method and device for theme detail page and electronic equipment
CN103034468B (en) A kind of method and device showing text
CN107479960B (en) Method and device for displaying unit view
CN108401455B (en) Multi-system control method, control device and mobile terminal
WO2016065043A1 (en) Apparatus, system, and method for organizing and embedding applications
CN112905072B (en) Application processing method and device and electronic equipment
CN110727387B (en) Method, device and computer storage medium for determining user behavior data
KR101901603B1 (en) Method and apparatus for web browsingof a handheld device
WO2014040490A1 (en) Method and apparatus for displaying content
CN106775222B (en) Dimension information display method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1237083

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant