A method and device for processing a view page
By monitoring the sliding distance of the view page and adding or removing candidate view pages at preset thresholds, the problem of difficulty in triggering sliding gestures and resource waste is solved, and the flexible switching of view pages and the effect of saving memory are achieved.
Patent Information
- Application Number
- CN202011225350.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-05
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2040-11-05
AI Technical Summary
The existing technology has problems with triggering sliding gestures on the view page and wasting resources. The first solution is difficult to monitor the user's sliding gesture threshold, and the second solution has high modification costs and takes up system memory.
By obtaining the sliding request of the view page in the custom page, monitoring the sliding distance, and adding or removing candidate view pages at the preset threshold, the view page and gesture sliding are synchronized to save memory.
It improves the user experience, avoids candidate view pages from occupying system memory when they are not displayed, enables flexible switching and animation effects of view pages, and reduces resource waste.
Smart Images

Figure CN112306349B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of mobile communication technology, and in particular to a method and device for processing a view page. Background Art
[0002] When a user is browsing a video, he or she may need to view the author information of the video or watch other videos. To do this, he or she needs to slide from the current view page to another view page. There are currently two solutions. The first solution is to set a page container on another view page. The page container is used to set the animation gesture for opening the page. The system triggers the page container of another view page by listening to the user's sliding gesture, thereby realizing the jump from the current view page to another view page. The second solution is to transform multiple related view pages into views, and then display multiple views on one page at the same time, and set the sliding animation gesture on the page.
[0003] However, the first solution has the following problems: since the view page cannot synchronize with the user's sliding gesture, the threshold of the user's sliding gesture is difficult to monitor. For example, when the threshold of the user's sliding gesture is set too small, it is easy to trigger by mistake. When the threshold of the user's sliding gesture is set too large, it will be difficult to slide, which makes it difficult to trigger the user's sliding gesture. Although the second solution can synchronize the sliding of the view page with the user's sliding gesture, it converts multiple view pages into views and then displays different views in segments on the same page. First, there is a problem of high conversion cost. Second, since the two views are always presented on the same page, they will occupy system memory resources, resulting in resource waste. Summary of the invention
[0004] In view of this, an embodiment of the present invention provides a method and device for processing a view page, which can save memory while realizing view and gesture sliding.
[0005] To achieve the above-mentioned purpose, according to a first aspect of an embodiment of the present invention, a method for processing a view page is provided, the method comprising: obtaining a sliding request for a view page in a custom page, the area of the custom page being larger than the view page, and the custom page comprising at least one view page; according to the sliding request, monitoring the sliding distance of the view page in a preset direction; if the sliding distance satisfies a first preset threshold, adding a candidate view page to the custom page along the preset direction, and performing a sliding operation on the candidate view page; if the sliding distance satisfies a second preset threshold, removing the view page from the custom page, and displaying the candidate view page; wherein the second preset threshold is greater than the first preset threshold.
[0006] Optionally, the processing method also includes: if the sliding distance is greater than the first preset threshold and less than the second preset threshold, calculating the display ratio of the view page and the candidate view page on the current page according to the sliding distance; and displaying the view page and the candidate view page on the current page according to the display ratio.
[0007] Optionally, monitoring the sliding distance of the view page in a preset direction according to the sliding request includes: detecting the sliding process of the view page according to the sliding request, and determining the sliding direction of the view page according to the detection result; if the sliding direction of the view page meets the preset direction, monitoring the sliding distance of the view page in the preset direction.
[0008] Optionally, the processing method further includes: obtaining a request for adding a view page; creating a custom page according to the request; and adding the view page to the custom page.
[0009] Optionally, the sliding process of the view page is detected, and the sliding direction of the view page is determined according to the detection result, including: detecting the sliding distance of the view page in a first direction and a second direction; calculating the difference between the sliding distances of the view page in the first direction and the second direction; and determining the sliding direction of the view page based on the difference.
[0010] To achieve the above-mentioned purpose, according to the second aspect of an embodiment of the present invention, a view page processing device is also provided, which includes: an acquisition module, used to obtain a sliding request for a view page in a custom page, and the custom page includes at least one view page; a monitoring module, used to monitor the sliding distance of the view page in a preset direction according to the sliding request; an adding module, used to add a candidate view page to the custom page along the preset direction if the sliding distance meets a first preset threshold, and perform a sliding operation on the candidate view page; a removing module, used to remove the view page from the custom page if the sliding distance meets a second preset threshold, and display the candidate view page; wherein the second preset threshold is greater than the first preset threshold.
[0011] Optionally, the device also includes: a calculation module, used to calculate the display ratio of the view page and the candidate view page on the current page according to the sliding distance if the sliding distance is greater than the first preset threshold and less than the second preset threshold; a display module, used to display the view page and the candidate view page on the current page according to the display ratio.
[0012] Optionally, the monitoring module includes: a determination unit, used to detect the sliding process of the view page according to the sliding request, and determine the sliding direction of the view page according to the detection result; and a monitoring unit, used to monitor the sliding distance of the view page in the preset direction if the sliding direction of the view page meets the preset direction.
[0013] Optionally, the device further includes: an acquisition module for acquiring a request for adding a view page; a creation module for creating a custom page according to the request; and an addition module for adding the view page to the custom page.
[0014] Optionally, the determination unit includes: a detection subunit, used to detect the sliding distance of the view page in the first direction and the second direction; a calculation subunit, used to calculate the difference between the sliding distances of the view page in the first direction and the second direction; and a determination subunit, used to determine the sliding direction of the view page based on the difference.
[0015] To achieve the above-mentioned purpose, according to a third aspect of an embodiment of the present invention, there is further provided a computer-readable medium on which a computer program is stored, wherein when the program is executed by a processor, the processing method described in the first aspect is implemented.
[0016] The embodiment of the present invention is directed to a method and device for processing a view page. First, a sliding request of a view page in a custom page is obtained, and then the sliding distance of the view page in a preset direction is monitored according to the sliding request; if the sliding distance meets a first preset threshold, a candidate view page is added to the custom page along the preset direction, and a sliding operation is performed on the candidate view page; thereby, the view page and the candidate view page are arranged on the same custom page according to the preset direction, so that the view can slide with the gesture. If the sliding distance meets a second preset threshold, the view page is removed from the custom page, and the candidate view page is displayed; wherein the second preset threshold is greater than the first preset threshold; thereby, by monitoring the sliding distance of the view page, a suitable time is selected to add the candidate view page to the custom page or remove the view page from the custom page, so that the candidate view page or the view page can be prevented from occupying system memory when not needed to be displayed, thereby saving system memory.
[0017] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention. In the accompanying drawings, the same or corresponding reference numerals represent the same or corresponding parts.
[0019] Figure 1A flowchart of a method for processing a view page according to an embodiment of the present invention;
[0020] Figure 2 A flowchart of a method for processing a view page according to another embodiment of the present invention;
[0021] Figure 3 A schematic diagram of a view page processing device according to an embodiment of the present invention;
[0022] Figure 4 is an exemplary system architecture diagram to which the embodiments of the present invention can be applied;
[0023] Figure 5 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION
[0024] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0025] The application scenario is switching from the information flow page to the personal details page. There are two implementation schemes in the prior art. One scheme is to set a page container on the personal details page. The page container is used to set the animated gesture for opening the information flow page. The system triggers the page container of the personal details page by monitoring the user's sliding gesture, and the page container is used to realize the jump from the information flow page to the personal details page. The disadvantages of this scheme are: it is difficult for the system to monitor the sliding distance threshold of the user's gesture, so it is difficult to trigger the switching operation from the information flow page to the personal details page; in addition, the page container needs to call the system function to realize the switching of the personal details page. Since the process of calling the system function is time-consuming, the user has a sense of lag in the experience; and the sliding process is irreversible after one trigger, that is, it is impossible to switch from the personal details page to the information flow page. The second scheme is to transform the information flow page and the personal details page into a small-sized view, and then place it on the display page for simultaneous display. Although this scheme can meet the needs of view page sliding with gestures, transforming the information flow page and the personal details page into views not only has a relatively high transformation cost, but also occupies system memory resources because the two views are always presented on one page, resulting in resource waste.
[0026] like Figure 1 FIG. 1 is a flowchart of a method for processing a view page according to an embodiment of the present invention. The method at least includes the following operation flow:
[0027] S101, obtaining a sliding request of a view page in a custom page, the area of the custom page is larger than the view page, and the custom page includes at least one view page.
[0028] Custom pages are pre-created. The types of view pages and candidate view pages are designed according to specific application scenarios; for example, a view page can be an information flow page, and a candidate view page can be a personal details page.
[0029] Specifically, the custom page includes one information flow page or multiple information flow pages. When the custom page includes one information flow page, the system obtains a sliding request for the information flow page in the custom page; when the custom page includes two or more information flow pages, the system starts monitoring the sliding distance of the view page in the preset direction only after obtaining the sliding request for the last information flow page arranged in the custom page. The sliding request can be triggered based on sliding the finger on the information flow page of the display screen.
[0030] It should be noted that on a custom page, multiple information flow pages are arranged along the preset direction in the order in which they are added.
[0031] S102: According to the sliding request, monitor the sliding distance of the view page in a preset direction.
[0032] Specifically, according to the sliding request, the sliding distance of the information flow page in the preset direction is monitored. The preset direction is the sliding direction of the custom page set in advance. The sliding direction of the custom page is also the gesture sliding direction. The custom page can slide along the gesture sliding direction. Multiple gesture sliding directions can be set for the custom page, for example, sliding along the positive direction and negative direction of the X-axis of the display screen can be set at the same time.
[0033] S103: If the sliding distance meets a first preset threshold, the candidate view page is added to the custom page along a preset direction, and a sliding operation is performed on the candidate view page.
[0034] Specifically, if the sliding distance of the information flow page on the X-axis is equal to the first preset threshold, the personal details page is added to the custom page along the X-axis direction, so that the personal details page and the information flow page are arranged side by side along the X-axis direction; the first preset threshold here is an empirical value, within the error range allowed by the naked eye, such as 1mm. Thus, the information flow page and the user's personal details page are added to the custom page as sub-containers; and based on the preset direction of the custom page, the change effect of switching between pages is achieved.
[0035] S104: If the sliding distance meets a second preset threshold, the view page is removed from the custom page, and a candidate view page is displayed; wherein the second preset threshold is greater than the first preset threshold.
[0036] Specifically, the information flow page is continuously slid along the X-axis direction. If the sliding distance of the information flow page is equal to the second preset threshold, the information flow page is removed from the custom page, and the personal details page is fully displayed on the current display page. At this time, the custom page only has the personal details page. Here, the second threshold is the width value of the display screen.
[0037] If the sliding distance of the information flow page is greater than 1mm and less than the width of the display screen, the display ratio of the information flow page and the personal details page on the current page can be calculated based on the sliding distance of the information flow page; for example, taking the sliding distance along the X-axis direction as a reference, determine the display ratio of the information flow page and the personal details page on the current page; on the current page, the X-axis width of the information flow page is the width of the display screen minus the sliding distance of the information flow page, and the X-axis width of the personal details page is the sliding distance of the information flow page, and then the X-axis width of the information flow page is ratioed to the width of the display screen to obtain the display ratio of the information flow page in the current page; the X-axis width of the personal details page is ratioed to the width of the display screen to obtain the display ratio of the personal details page in the current page.
[0038] Both the information flow page and the personal details page are stored in the memory. Each time you switch to a different personal details page, you only need to replace the data of the personal details page, and there is no need to recreate a new candidate view page, so the loading speed is relatively fast.
[0039] The embodiment of the present invention does not need to monitor the user's sliding gestures, but triggers the switching of the view page and the candidate view page by monitoring the sliding distance of the view page, that is, the sliding distance of the custom page, thereby overcoming the triggering difficulty problem caused by the difficulty in monitoring the sliding gesture threshold in the prior art. By setting different sliding gestures for the custom page, animation effects can be achieved when switching between different view pages, such as panning animation, overlay and 3D flipping animation effects, so the scalability is strong.
[0040] The embodiment of the present invention monitors the sliding distance of the view page, and when the sliding distance is equal to a first preset threshold, adds a candidate view page to the custom page along a preset direction, and when the sliding distance is equal to a second preset threshold, removes the view page from the custom page. By monitoring the sliding distance of the view page, the addition time of the candidate view page and the removal time of the personal details page can be determined, thereby realizing the addition of candidate view pages and removal of view pages during sliding, thereby saving system memory occupied by candidate view pages or view pages when they are not needed to be displayed.
[0041] like Figure 2 FIG. 1 is a flowchart of a method for processing a view page according to another embodiment of the present invention; this embodiment is further optimized on the basis of the above-mentioned embodiment, and the method comprises the following steps:
[0042] S201, obtaining a request for adding a view page.
[0043] S202: Create a custom page based on the request.
[0044] S203, adding a view page to the custom page.
[0045] S204, obtaining a sliding request of a view page in a custom page, the area of the custom page is larger than the view page, and the custom page includes at least one view page.
[0046] S205: Detect the sliding process of the view page according to the sliding request, and determine the sliding direction of the view page according to the detection result.
[0047] Exemplarily, the sliding distance of the view page in the first direction and the second direction is detected; the difference between the sliding distances of the view page in the first direction and the second direction is calculated; if the difference meets a preset condition, the first direction is determined as the sliding direction of the view page.
[0048] For example, the sliding distance of the information flow page in the X-axis direction is detected as a, and the sliding distance of the information flow page in the Y-axis direction is detected as b. The difference between a and b is taken. If the difference is greater than 0, the X-axis direction is determined as the sliding direction of the information flow page. If the difference is less than 0, the Y-axis direction is determined as the sliding direction of the information flow page.
[0049] S206: If the sliding direction of the view page satisfies the preset direction, monitor the sliding distance of the view page in the preset direction.
[0050] For example, if the preset direction is the X-axis direction, but the sliding direction of the information flow page is the Y-axis direction, the information flow page will not slide and the monitoring function will not be started; if the sliding direction of the information flow page is the X-axis direction, the information flow page will slide in the X-axis direction, and the monitoring function will be started to monitor the sliding distance of the information flow page in the X-axis direction.
[0051] S207: If the sliding distance meets the first preset threshold, the candidate view page is added to the custom page along the preset direction, and a sliding operation is performed on the candidate view page.
[0052] S208, if the sliding distance meets a second preset threshold, the view page is removed from the custom page, and the candidate view page is displayed; wherein the second preset threshold is greater than the first preset threshold.
[0053] The embodiment of the present invention detects the sliding direction of the view page, and when it is determined that the sliding direction of the view page meets the preset direction, monitors the sliding distance of the view page in the preset direction, thereby being able to effectively monitor the sliding distance of the view page and prevent false triggering, thereby improving the user experience.
[0054] It should be understood that in various embodiments of the present invention, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0055] like Figure 3 As shown, it is a schematic diagram of a processing device for a view page according to an embodiment of the present invention. The processing device 300 includes: an acquisition module 301, used to acquire a sliding request of a view page in a custom page, and the custom page includes at least one view page; a monitoring module 302, used to monitor the sliding distance of the view page in a preset direction according to the sliding request; an adding module 303, used to add a candidate view page to the custom page along the preset direction if the sliding distance meets a first preset threshold, and perform a sliding operation on the candidate view page; a removing module 304, used to remove the view page from the custom page if the sliding distance meets a second preset threshold, and display the candidate view page; wherein the second preset threshold is greater than the first preset threshold.
[0056] In an optional embodiment, the processing device 300 also includes: a calculation module, which is used to calculate the display ratio of the view page and the candidate view page on the current page according to the sliding distance if the sliding distance is greater than the first preset threshold and less than the second preset threshold; and a display module, which is used to display the view page and the candidate view page according to the display ratio on the current page.
[0057] In an optional embodiment, the monitoring module 302 includes: a determination unit, used to detect the sliding process of the view page according to the sliding request, and determine the sliding direction of the view page according to the detection result; a monitoring unit, used to monitor the sliding distance of the view page in the preset direction if the sliding direction of the view page meets the preset direction.
[0058] In an optional embodiment, the processing device 300 further includes: an acquisition module for acquiring a request for adding a view page; a creation module for creating a custom page according to the request; and an addition module for adding the view page to the custom page.
[0059] In an optional embodiment, the determination unit includes: a detection subunit, used to detect the sliding distance of the view page in the first direction and the second direction; a calculation subunit, used to calculate the difference between the sliding distances of the view page in the first direction and the second direction; and a determination subunit, used to determine the sliding direction of the view page based on the difference.
[0060] The above device can execute the view page processing method provided by the embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing the view page processing method. For technical details not fully described in this embodiment, please refer to the view page processing method provided by the embodiment of the present invention.
[0061] like Figure 4 4 is an exemplary system architecture diagram to which the embodiment of the present invention can be applied, and the system architecture 400 may include terminal devices 401, 402, 403, a network 404, and a server 405. The network 404 is used to provide a medium for a communication link between the terminal devices 401, 402, 403 and the server 405. The network 404 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0062] Users can use terminal devices 401, 402, 403 to interact with server 405 through network 404 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 401, 402, 403, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only as examples).
[0063] The terminal devices 401 , 402 , and 403 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.
[0064] The server 405 may be a server that provides various services, such as a background management server (only an example) that provides support for click events generated by users using the terminal devices 401, 402, and 403. The background management server may analyze and process the received click data, text content, and other data, and feed back the processing results (such as target push information, product information - only an example) to the terminal device.
[0065] It should be noted that the view page processing method provided in the embodiment of the present application is generally executed by the server 405 , and accordingly, the processing device is generally set in the server 405 .
[0066] It should be understood that Figure 4 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0067] Reference below Figure 5 , which shows a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing the embodiment. Figure 5The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0068] like Figure 5 As shown, the computer system 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 502 or the program loaded from the storage part 508 to the random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the system 500 are also stored. The CPU 501, the ROM 502 and the RAM 503 are connected to each other through the bus 504. The input / output (I / O) interface 505 is also connected to the bus 504. The following components are connected to the I / O interface 505: an input part 506 including a keyboard, a mouse, etc.; an output part 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc. and a speaker, etc.; a storage part 508 including a hard disk, etc.; and a communication part 509 including a network interface card such as a LAN card, a modem, etc. The communication part 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like, is mounted on the drive 510 as needed, so that a computer program read therefrom is installed into the storage section 508 as needed.
[0069] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 509, and / or installed from the removable medium 511. When the computer program is executed by the central processing unit (CPU) 501, the above-mentioned functions defined in the system of the present invention are executed.
[0070] It should be noted that the computer-readable medium shown in the present invention can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, system or device, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. In the present invention, a computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal can take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media that can send, propagate or transmit a program for use by or in conjunction with an instruction execution system, system or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0071] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a certain function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0072] The modules involved in the embodiments of the present invention may be implemented in software or hardware. The modules described may also be set in a processor. For example, they may be described as: a processor includes a sending module, an acquisition module, a determination module, and a first processing module. The names of these modules do not, in some cases, constitute a limitation on the unit itself. For example, the sending module may also be described as a "module for sending a picture acquisition request to the connected server."
[0073] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs. When the above one or more programs are executed by a device, the device includes: S101, obtaining a sliding request for a view page in a custom page, the area of the custom page is larger than the view page, and the custom page includes at least one view page; S102, according to the sliding request, monitoring the sliding distance of the view page in a preset direction; S103, if the sliding distance meets the first preset threshold, adding a candidate view page to the custom page along the preset direction, and performing a sliding operation on the candidate view page; S104, if the sliding distance meets the second preset threshold, removing the view page from the custom page, and displaying the candidate view page; wherein the second preset threshold is greater than the first preset threshold.
[0074] The embodiment of the present invention monitors the sliding distance of the view page, and when the sliding distance is equal to a first preset threshold, adds a candidate view page to the custom page along a preset direction, and when the sliding distance is equal to a second preset threshold, removes the view page from the custom page. By monitoring the sliding distance of the view page, the addition time of the candidate view page and the removal time of the personal details page can be determined, thereby realizing the addition of candidate view pages and removal of view pages during sliding, thereby saving system memory occupied by candidate view pages or view pages when they are not needed to be displayed.
[0075] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine different embodiments or examples described in this specification and the features of different embodiments or examples, unless they are contradictory.
[0076] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0077] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A method for processing a view page, characterized in that: include: Obtaining a sliding request for a view page in a custom page, the custom page having an area larger than the view page, and the custom page including at least one view page; when the custom page includes multiple view pages, obtaining a sliding request for the last view page among the multiple view pages; According to the sliding request, monitoring the sliding distance of the view page in a preset direction; If the sliding distance satisfies a first preset threshold, adding a candidate view page to the custom page along the preset direction, and performing a sliding operation on the candidate view page; If the sliding distance meets a second preset threshold, removing the view page from the custom page and displaying the candidate view page; Wherein the second preset threshold is greater than the first preset threshold; Before obtaining the sliding request of the view page in the custom page, the method further includes: Get the request to add the view page; Creating a custom page based on the request; Add the view page to the custom page; The step of monitoring the sliding distance of the view page in a preset direction according to the sliding request includes: According to the sliding request, detecting the sliding process of the view page, and determining the sliding direction of the view page according to the detection result; If the sliding direction of the view page meets the preset direction, the sliding distance of the view page in the preset direction is monitored.
2. The processing method according to claim 1, characterized in that: Also includes: If the sliding distance is greater than the first preset threshold and less than the second preset threshold, calculating the display ratio of the view page and the candidate view page on the current page according to the sliding distance; The view page and the candidate view pages are displayed on the current page according to the display ratio.
3. The processing method according to claim 2, characterized in that: The detecting the sliding process of the view page and determining the sliding direction of the view page according to the detection result includes: Detecting a sliding distance of the view page in a first direction and a second direction; Calculating a difference between a sliding distance of the view page in the first direction and a sliding distance of the view page in the second direction; The sliding direction of the view page is determined based on the difference.
4. A view page processing device, characterized in that: include: an acquisition module, configured to acquire a sliding request of a view page in a custom page, wherein the custom page includes at least one view page; when the custom page includes multiple view pages, acquire a sliding request of the last view page in the multiple view pages; A monitoring module, configured to monitor a sliding distance of the view page in a preset direction according to the sliding request; an adding module, configured to add a candidate view page to the custom page along the preset direction if the sliding distance meets a first preset threshold, and perform a sliding operation on the candidate view page; a removal module, configured to remove the view page from the custom page and display the candidate view page if the sliding distance meets a second preset threshold; The second preset threshold is greater than the first preset threshold; The acquisition module is also used to acquire a request for adding a view page; The device also includes: A creation module, used to create a custom page according to the request; An adding module, used for adding the view page to the custom page; a determining unit, configured to detect a sliding process of the view page according to the sliding request, and determine a sliding direction of the view page according to a detection result; The monitoring unit is used to monitor the sliding distance of the view page in the preset direction if the sliding direction of the view page meets the preset direction.
5. The device according to claim 4, characterized in that Also includes: a calculation module, configured to calculate a display ratio of the view page and the candidate view page on the current page according to the sliding distance if the sliding distance is greater than the first preset threshold and less than the second preset threshold; A display module is used to display the view page and the candidate view page on the current page according to the display ratio.
6. The device according to claim 5, characterized in that The determining unit comprises: A detection subunit, used to detect the sliding distance of the view page in the first direction and the second direction; A calculation subunit, used for calculating the difference between the sliding distance of the view page in the first direction and the sliding distance of the second direction; A determination subunit is used to determine the sliding direction of the view page based on the difference.
