CN112306349A - Method and device for processing view page - Google Patents

Method and device for processing view page Download PDF

Info

Publication number
CN112306349A
CN112306349A CN202011225350.XA CN202011225350A CN112306349A CN 112306349 A CN112306349 A CN 112306349A CN 202011225350 A CN202011225350 A CN 202011225350A CN 112306349 A CN112306349 A CN 112306349A
Authority
CN
China
Prior art keywords
page
view page
sliding
view
preset threshold
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011225350.XA
Other languages
Chinese (zh)
Inventor
禹慧军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhixiang Zhonglian Technology Co Ltd
Original Assignee
Zhixiang Zhonglian Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhixiang Zhonglian Technology Co Ltd filed Critical Zhixiang Zhonglian Technology Co Ltd
Priority to CN202011225350.XA priority Critical patent/CN112306349A/en
Publication of CN112306349A publication Critical patent/CN112306349A/en
Pending legal-status Critical Current

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/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
    • 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/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • 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/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0485Scrolling or panning
    • 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method and a device for processing a view page. The method comprises the following steps: obtaining a sliding request of a view page in a user-defined page, wherein the area of the user-defined page is larger than that of the view page, and the user-defined page at least comprises one view page; monitoring the sliding distance of the view page in a preset direction according to the sliding request; if the sliding distance meets a first preset threshold, adding the candidate view page to the user-defined page along a preset direction, and executing sliding operation on the candidate view page; if the sliding distance meets a second preset threshold value, removing the view page from the user-defined page, and displaying the candidate view page; wherein the second preset threshold is greater than the first preset threshold. Therefore, by monitoring the sliding distance of the view page, the candidate view page is added to the user-defined page or the view page is removed from the user-defined page at a proper time, so that the candidate view page or the view page can be prevented from occupying a system memory when not required to be displayed, and the system memory is further saved.

Description

Method and device for processing view page
Technical Field
The present invention relates to the field of mobile communications technologies, and in particular, to a method and an apparatus for processing a view page.
Background
During browsing a certain screen by a user, the author information of the screen or other videos may need to be viewed, and for this reason, the user needs to slide from a current view page to another view page. At present, there are two solutions, the first solution is to set a page container on another view page, the page container is used for setting an animation gesture for opening a page, and the system triggers the page container of another view page by monitoring a user sliding gesture, so as to realize jumping from the current view page to another view page. The second solution is to change multiple related view pages into view, then to display multiple views on one page at the same time, and to set a sliding animation gesture on the page.
However, the first solution has the following problems: because the view page cannot synchronously slide with the user sliding gesture, the threshold value of the user sliding gesture is difficult to monitor, for example, when the threshold value of the user sliding gesture is too small, false triggering is easy to occur, and when the threshold value of the user sliding gesture is too large, a phenomenon that sliding is difficult to occur occurs, so that the problem that the user sliding gesture is difficult to trigger is caused. Although the second solution can realize synchronous sliding of the view page and the sliding gesture of the user, the problem of high transformation cost is firstly existed when a plurality of view pages are transformed into views and then different views are displayed in a segmented manner on the same page, and secondly, because two views are always presented on one page, system memory resources are occupied and resource waste is caused.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for processing a view page, which can achieve sliding between a view and a gesture and save memory.
To achieve the above object, according to a first aspect of the embodiments of the present invention, there is provided a method for processing a view page, the method including: obtaining a sliding request of a view page in a user-defined page, wherein the area of the user-defined page is larger than that of the view page, and the user-defined page at least comprises one view page; monitoring the sliding distance of the view page in a preset direction according to the sliding request; if the sliding distance meets a first preset threshold, adding a candidate view page to the self-defined page along the preset direction, and executing sliding operation on the candidate view page; if the sliding distance meets a second preset threshold value, removing the view page from the self-defined page, and displaying the candidate view page; wherein the second preset threshold is greater than the first preset threshold.
Optionally, the processing method further includes: if the sliding distance is larger than the first preset threshold and smaller than the second preset threshold, calculating the display proportion 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 according to the display scale on the current page.
Optionally, the monitoring, according to the sliding request, a sliding distance of the view page in a preset direction 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; and if the sliding direction of the view page meets a preset direction, monitoring the sliding distance of the view page in the preset direction.
Optionally, the processing method further includes: acquiring a request for adding a view page; creating a self-defined page according to the request; and adding the view page to the custom page.
Optionally, 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 sliding distances of the view page in a first direction and a second direction; calculating the difference value of the sliding distance 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 value.
To achieve the above object, according to a second aspect of the embodiments of the present invention, there is also provided a processing apparatus for a view page, the apparatus including: the system comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring a sliding request of a view page in a user-defined page, and the user-defined page at least comprises one view page; the monitoring module is used for monitoring the sliding distance of the view page in a preset direction according to the sliding request; the adding module is used for adding a candidate view page to the self-defined page along the preset direction and executing sliding operation on the candidate view page if the sliding distance meets a first preset threshold; a removing module, configured to remove the view page from the user-defined page and display the candidate view page if the sliding distance satisfies a second preset threshold; wherein the second preset threshold is greater than the first preset threshold.
Optionally, the apparatus further comprises: the calculation module is used for calculating the display proportion 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 smaller than the second preset threshold; and the display module is used for displaying the view page and the candidate view page on the current page according to the display scale.
Optionally, the monitoring module includes: the determining unit is used for 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; and the monitoring unit is used for monitoring the sliding distance of the view page in the preset direction if the sliding direction of the view page meets the preset direction.
Optionally, the apparatus further comprises: the acquisition module is used for acquiring a request for adding a view page; the creation module is used for creating a self-defined page according to the request; and the adding module is used for adding the view page to the self-defined page.
Optionally, the determining unit includes: the detection subunit is used for detecting the sliding distance of the view page in the first direction and the second direction; the calculating subunit is used for calculating a difference value of sliding distances of the view page in the first direction and the second direction; and the determining subunit is used for determining the sliding direction of the view page based on the difference value.
To achieve the above object, according to a third aspect of the embodiments of the present invention, there is also provided a computer-readable medium on which a computer program is stored, wherein the program is configured to implement the processing method according to the first aspect when executed by a processor.
The embodiment of the invention aims at a method and a device for processing a view page, and the method and the device are characterized in that firstly, a sliding request of the view page in a user-defined 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, adding the candidate view page to the user-defined page along a preset direction, and executing sliding operation on the candidate view page; therefore, the view page and the candidate view page are arranged on the same self-defined page according to the preset direction, and the purpose that the view slides along with the gesture can be achieved. If the sliding distance meets a second preset threshold value, removing the view page from the user-defined page, and displaying the candidate view page; wherein the second preset threshold is greater than the first preset threshold; therefore, by monitoring the sliding distance of the view page, the candidate view page is added to the user-defined page or the view page is removed from the user-defined page at a proper time, so that the candidate view page or the view page can be prevented from occupying a system memory when not required to be displayed, and the system memory is further saved.
Further effects of the above-described non-conventional alternatives will be described below in connection with specific embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein like or corresponding reference numerals designate like or corresponding parts throughout the several views.
FIG. 1 is a flowchart of a method for processing a view page according to an embodiment of the present invention;
FIG. 2 is a flowchart of a method for processing a view page according to yet another embodiment of the present invention;
FIG. 3 is a diagram of a device for processing a view page according to an embodiment of the present invention;
FIG. 4 is an exemplary system architecture diagram in which embodiments of the present invention may be employed;
fig. 5 is a schematic block diagram of a computer system suitable for use in implementing a terminal device or server of an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
The application scene is switched from the information flow page to the personal details page. In the prior art, there are two implementation schemes, one scheme is that a page container is set on a personal detail page, the page container is used for setting an animation gesture for opening an information stream page, a system triggers the page container of the personal detail page by monitoring a user sliding gesture, and the information stream page jumps to the personal detail page through the page container. The disadvantages of this solution are: the system is difficult to monitor the sliding distance threshold of the user gesture, so that the system is difficult to trigger aiming at the switching operation from the information flow page to the personal detail page; in addition, the page container needs to call a system function to realize the switching of the personal detail page, and the process of calling the system function is time-consuming, so that a user feels unsmooth in experience; and the sliding process is irreversible after being triggered once, namely the personal detail page can not be switched to the information flow page. The second solution is to modify the flow page and the personal details page into small-sized views, which are then placed on the display page and displayed simultaneously. Although the scheme can meet the requirement that the view page slides along with the gesture, the information flow page and the personal detail page are reformed into the views, the reforming cost is higher, and the two views are always presented on one page, so that system memory resources are occupied, and resource waste is caused.
Fig. 1 is a flowchart of a method for processing a view page according to an embodiment of the present invention, where the method at least includes the following operation flows:
s101, obtaining a sliding request of a view page in a user-defined page, wherein the area of the user-defined page is larger than that of the view page, and the user-defined page at least comprises one view page.
The custom page is pre-created. The types of the view pages and the candidate view pages are designed according to specific application scenes; for example, the view page may be an information flow page and the candidate view page may be a personal details page.
Specifically, the custom page includes one information flow page or a plurality of information flow pages. When the user-defined page comprises an information flow page, the system acquires a sliding request of the information flow page in the user-defined page; when the user-defined page comprises two or more information flow pages, the system starts to monitor the sliding distance of the view page in the preset direction only by acquiring the sliding request of the last information flow page arranged in the user-defined page. The swipe request may be triggered based on a finger swiping an information flow page of the display screen.
It should be noted that, in the custom page, the multiple information flow pages are arranged along the preset direction according to the adding sequence.
And S102, monitoring the sliding distance of the view page in the preset direction according to the sliding request.
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 preset sliding direction of the user-defined page, the sliding direction of the user-defined page is also the gesture sliding direction, and the user-defined page can slide along the gesture sliding direction. Multiple gesture sliding directions can be set for the customized page, for example, sliding in the positive X-axis direction and the negative X-axis direction of the display screen can be set simultaneously.
S103, if the sliding distance meets a first preset threshold value, adding the candidate view page to the user-defined page along a preset direction, and executing sliding operation on the candidate view page.
Specifically, if the sliding distance of the information flow page on the X axis is equal to a first preset threshold value, adding a personal detail page on the self-defined page along the X axis direction, so that the personal detail page and the information flow page are arranged in parallel along the X axis direction; the first preset threshold here is an empirical value, within an error range allowed by the naked eye, for example 1 mm. Thus, the information flow page and the user personal detail page are added to the user-defined page as child containers; and based on the preset direction of the user-defined page, the change effect of switching between the pages is realized.
S104, if the sliding distance meets a second preset threshold value, removing the view page from the user-defined page, and displaying the candidate view page; wherein the second preset threshold is greater than the first preset threshold.
Specifically, the information flow page continues to slide along the X-axis direction, and if the sliding distance of the information flow page is equal to a second preset threshold, the information flow page is removed from the custom page, and the personal detail page is completely displayed on the current display page, at this time, the custom page only has the personal detail page. Here, the second threshold value is a width value of the display screen.
If the sliding distance of the information flow page is larger than 1mm and smaller than the width value of the display screen, the display proportion of the information flow page and the personal detail page on the current page can be calculated based on the sliding distance of the information flow page; for example, the display scale of the information flow page and the personal detail page on the current page is determined by taking the sliding distance along the X-axis direction as a reference; in the current page, the width of the information flow page in the X axis is the width value of the display screen minus the sliding distance of the information flow page, the width of the personal detail page in the X axis is the sliding distance of the information flow page, and then the ratio of the width of the information flow page in the X axis to the width of the display screen is made to obtain the display proportion of the information flow page in the current page; and (4) making a ratio of the width of the personal detail page on the X axis to the width of the display screen to obtain the display proportion of the personal detail page in the current page.
The information flow page and the personal detail page are both stored in the memory, and each time different personal detail pages are switched, only the data of the personal detail page needs to be replaced, a new candidate view page does not need to be created again, and the loading speed is high.
According to the embodiment of the invention, the sliding gesture of the user is not monitored, and the switching between the view page and the candidate view page is triggered by monitoring the sliding distance of the view page, namely the sliding distance of the user-defined page, so that the problem of difficult triggering caused by difficult monitoring of the sliding gesture threshold in the prior art is solved. By setting different sliding gestures for the user-defined page, animation effects such as translation animation, coverage, 3D (three-dimensional) turning and the like during switching of different view pages can be realized, so that the expansibility is strong.
According to the embodiment of the invention, the sliding distance of the view page is monitored, the candidate view page is added to the self-defined page along the preset direction when the sliding distance is equal to the first preset threshold value, and the view page is removed from the self-defined page when the sliding distance is equal to the second preset threshold value, so that the adding time of the candidate view page and the removing time of the personal detail page can be determined by monitoring the sliding distance of the view page, the candidate view page is added and removed during sliding, and the system memory occupied by the candidate view page or the view page when not required to be displayed is saved.
FIG. 2 is a flowchart of a method for processing a view page according to another embodiment of the present invention; the embodiment is further optimized and obtained on the basis of the previous embodiment, and the method comprises the following steps:
s201, acquiring a request for adding a view page.
And S202, creating a custom page according to the request.
And S203, adding the view page to the custom page.
S204, a sliding request of a view page in the user-defined page is obtained, the area of the user-defined page is larger than that of the view page, and the user-defined page at least comprises one view page.
S205, 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.
Illustratively, the sliding distance of the view page in a first direction and a second direction is detected; calculating the difference value of the sliding distance of the view page in the first direction and the second direction; and if the difference value meets the preset condition, determining the first direction as the sliding direction of the view page.
For example, the sliding distance of the detection information flow page in the X-axis direction is a, and the sliding distance of the detection information flow page in the Y-axis direction is b. And d, making a difference value between a and b, and if the difference value is greater than 0, determining the X-axis direction as the sliding direction of the information flow page. And if the difference is less than 0, determining the Y-axis direction as the sliding direction of the information flow page.
And S206, if the sliding direction of the view page meets the preset direction, monitoring the sliding distance of the view page in the preset direction.
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 does not slide and the monitoring function is not started; and if the sliding direction of the information flow page is the X-axis direction, the information flow page slides in the X-axis direction, and a monitoring function is started to monitor the sliding distance of the information flow page in the X-axis direction.
And S207, if the sliding distance meets a first preset threshold, adding the candidate view page to the user-defined page along a preset direction, and executing sliding operation on the candidate view page.
S208, if the sliding distance meets a second preset threshold, removing the view page from the user-defined page, and displaying the candidate view page; wherein the second preset threshold is greater than the first preset threshold.
According to the embodiment of the invention, the sliding direction of the view page is detected, and the sliding distance of the view page in the preset direction is monitored when the sliding direction of the view page is determined to meet the preset direction, so that the sliding distance of the view page can be effectively monitored, false triggering is prevented, and the user experience is improved.
It should be understood that, in various embodiments of the present invention, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and the inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Fig. 3 is a schematic diagram of a processing apparatus for viewing a page according to an embodiment of the present invention. The processing device 300 comprises: an obtaining module 301, configured to obtain a sliding request of a view page in a custom page, where the custom page includes at least one view page; the monitoring module 302 is configured to monitor a sliding distance of the view page in a preset direction according to the sliding request; the adding module 303 is configured to add the candidate view page to the user-defined page along the preset direction and perform a sliding operation on the candidate view page if the sliding distance meets a first preset threshold; a removing module 304, configured to remove the view page from the custom page and display a candidate view page if the sliding distance meets a second preset threshold; wherein the second preset threshold is greater than the first preset threshold.
In an alternative embodiment, the processing apparatus 300 further comprises: the calculation module is used for calculating the display proportion 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 a first preset threshold and less than a second preset threshold; and the display module is used for displaying the view page and the candidate view page on the current page according to the display scale.
In an alternative embodiment, the monitoring module 302 includes: the determining unit is used for 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; and the monitoring unit is used for monitoring the sliding distance of the view page in the preset direction if the sliding direction of the view page meets the preset direction.
In an alternative embodiment, the processing apparatus 300 further comprises: the acquisition module is used for acquiring a request for adding a view page; the creation module is used for creating a self-defined page according to the request; and the adding module is used for adding the view page to the self-defined page.
In an alternative embodiment, the determining unit comprises: the detection subunit is used for detecting the sliding distance of the view page in the first direction and the second direction; the calculating subunit is used for calculating the difference value of the sliding distances of the view page in the first direction and the second direction; and the determining subunit is used for determining the sliding direction of the view page based on the difference value.
The device can execute the processing method of the view page provided by the embodiment of the invention, and has the corresponding functional modules and beneficial effects of the processing method of the view page. For details of the technology that are not described in detail in this embodiment, reference may be made to the method for processing the view page provided in the embodiment of the present invention.
As shown in fig. 4, the system architecture 400 may include terminal devices 401, 402, 403, a network 404, and a server 405 as an exemplary system architecture diagram to which embodiments of the present invention may be applied. The network 404 serves as a medium for providing communication links between the terminal devices 401, 402, 403 and the server 405. Network 404 may include various types of connections, such as wire, wireless communication links, or fiber optic cables, to name a few.
A user may use terminal devices 401, 402, 403 to interact with a server 405 over a network 404 to receive or send messages or the like. The terminal devices 401, 402, 403 may have installed thereon various communication client applications, such as shopping-like applications, web browser applications, search-like applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only).
The terminal devices 401, 402, 403 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 405 may be a server providing various services, such as a background management server (for example only) providing support for click events generated by users using the terminal devices 401, 402, 403. The background management server may analyze and perform other processing on the received click data, text content, and other data, and feed back a processing result (for example, target push information, product information — just an example) to the terminal device.
It should be noted that the processing method of the view page provided in the embodiment of the present application is generally executed by the server 405, and accordingly, the processing device is generally disposed in the server 405.
It should be understood that the number of terminal devices, networks, and servers in fig. 4 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 5, shown is a block diagram of a computer system suitable for use in implementing a terminal device or server of an embodiment. The terminal device shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 5, the computer system 500 includes a Central Processing Unit (CPU)501 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)502 or a program loaded from a storage section 508 into a Random Access Memory (RAM) 503. In the RAM503, various programs and data necessary for the operation of the system 500 are also stored. The CPU501, ROM502, and RAM503 are connected to each other via a bus 504. An input/output (I/O) interface 505 is also connected to bus 504. The following components are connected to the I/O interface 505: an input portion 506 including a keyboard, a mouse, and the like; an output portion 507 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 508 including a hard disk and the like; and a communication section 509 including a network interface card such as a LAN card, a modem, or the like. The communication section 509 performs communication processing via a network such as the internet. The driver 510 is also connected to the I/O interface 505 as necessary. 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 necessary, so that a computer program read out therefrom is mounted into the storage section 508 as necessary.
In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 509, and/or installed from the removable medium 511. The computer program performs the above-described functions defined in the system of the present invention when executed by the Central Processing Unit (CPU) 501.
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 two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present invention may be implemented by software or hardware. The described modules may also be provided in a processor, which may be described as: a processor includes a sending module, an obtaining module, a determining module, and a first processing module. The names of these modules do not in some cases constitute a limitation on the unit itself, and for example, the sending module may also be described as a "module that sends a picture acquisition request to a connected server".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to comprise: s101, obtaining a sliding request of a view page in a user-defined page, wherein the area of the user-defined page is larger than that of the view page, and the user-defined page at least comprises one view page; s102, monitoring the sliding distance of the view page in a preset direction according to the sliding request; s103, if the sliding distance meets a first preset threshold value, adding the candidate view page to a user-defined page along a preset direction, and executing sliding operation on the candidate view page; s104, if the sliding distance meets a second preset threshold value, removing the view page from the user-defined page, and displaying the candidate view page; wherein the second preset threshold is greater than the first preset threshold.
According to the embodiment of the invention, the sliding distance of the view page is monitored, the candidate view page is added to the self-defined page along the preset direction when the sliding distance is equal to the first preset threshold value, and the view page is removed from the self-defined page when the sliding distance is equal to the second preset threshold value, so that the adding time of the candidate view page and the removing time of the personal detail page can be determined by monitoring the sliding distance of the view page, the candidate view page is added and removed during sliding, and the system memory occupied by the candidate view page or the view page when not required to be displayed is saved.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (10)

1. A method for processing a view page, comprising:
obtaining a sliding request of a view page in a user-defined page, wherein the area of the user-defined page is larger than that of the view page, and the user-defined page at least comprises one view page;
monitoring the sliding distance of the view page in a preset direction according to the sliding request;
if the sliding distance meets a first preset threshold, adding a candidate view page to the self-defined page along the preset direction, and executing sliding operation on the candidate view page;
if the sliding distance meets a second preset threshold value, removing the view page from the self-defined page, and displaying the candidate view page; wherein the second preset threshold is greater than the first preset threshold.
2. The processing method of claim 1, further comprising:
if the sliding distance is larger than the first preset threshold and smaller than the second preset threshold, calculating the display proportion 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 according to the display scale on the current page.
3. The processing method according to claim 1, wherein the monitoring a sliding distance of the view page in a preset direction according to the sliding request comprises:
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;
and if the sliding direction of the view page meets a preset direction, monitoring the sliding distance of the view page in the preset direction.
4. The processing method of claim 1, further comprising:
acquiring a request for adding a view page;
creating a self-defined page according to the request;
and adding the view page to the custom page.
5. The processing method according to claim 2, wherein the detecting the sliding process of the view page and determining the sliding direction of the view page according to the detection result comprises:
detecting sliding distances of the view page in a first direction and a second direction;
calculating the difference value of the sliding distance 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 value.
6. An apparatus for processing a view page, comprising:
the system comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring a sliding request of a view page in a user-defined page, and the user-defined page at least comprises one view page;
the monitoring module is used for monitoring the sliding distance of the view page in a preset direction according to the sliding request;
the adding module is used for adding a candidate view page to the self-defined page along the preset direction and executing sliding operation on the candidate view page if the sliding distance meets a first preset threshold;
a removing module, configured to remove the view page from the user-defined page and display the candidate view page if the sliding distance satisfies a second preset threshold; wherein the second preset threshold is greater than the first preset threshold.
7. The apparatus of claim 6, further comprising:
the calculation module is used for calculating the display proportion 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 smaller than the second preset threshold;
and the display module is used for displaying the view page and the candidate view page on the current page according to the display scale.
8. The apparatus of claim 6, wherein the monitoring module comprises:
the determining unit is used for 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;
and the monitoring unit is used for monitoring the sliding distance of the view page in the preset direction if the sliding direction of the view page meets the preset direction.
9. The apparatus of claim 6, further comprising:
the acquisition module is used for acquiring a request for adding a view page;
the creation module is used for creating a self-defined page according to the request;
and the adding module is used for adding the view page to the self-defined page.
10. The apparatus of claim 7, wherein the determining unit comprises:
the detection subunit is used for detecting the sliding distance of the view page in the first direction and the second direction;
the calculating subunit is used for calculating a difference value of sliding distances of the view page in the first direction and the second direction;
and the determining subunit is used for determining the sliding direction of the view page based on the difference value.
CN202011225350.XA 2020-11-05 2020-11-05 Method and device for processing view page Pending CN112306349A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011225350.XA CN112306349A (en) 2020-11-05 2020-11-05 Method and device for processing view page

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011225350.XA CN112306349A (en) 2020-11-05 2020-11-05 Method and device for processing view page

Publications (1)

Publication Number Publication Date
CN112306349A true CN112306349A (en) 2021-02-02

Family

ID=74326344

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011225350.XA Pending CN112306349A (en) 2020-11-05 2020-11-05 Method and device for processing view page

Country Status (1)

Country Link
CN (1) CN112306349A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102298501A (en) * 2011-09-22 2011-12-28 奇智软件(北京)有限公司 Desktop display method
CN102981755A (en) * 2012-10-24 2013-03-20 深圳市深信服电子科技有限公司 Gesture control method and gesture control system based on remote application
US20130141430A1 (en) * 2011-12-02 2013-06-06 Jinhwa Joung Mobile terminal and control method thereof
US20130290887A1 (en) * 2012-04-26 2013-10-31 Samsung Electronics Co. Ltd. Method and terminal for displaying a plurality of pages,method and terminal for displaying a plurality of applications being executed on terminal, and method of executing a plurality of applications
US20150019962A1 (en) * 2013-07-15 2015-01-15 Samsung Electronics Co., Ltd. Method and apparatus for providing electronic document
CN106293473A (en) * 2016-08-15 2017-01-04 珠海市魅族科技有限公司 Page display method and device
CN109358909A (en) * 2018-08-28 2019-02-19 努比亚技术有限公司 Show page control method, terminal and computer readable storage medium
CN109492178A (en) * 2018-11-05 2019-03-19 腾讯科技(深圳)有限公司 A kind of method and device of switch view

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102298501A (en) * 2011-09-22 2011-12-28 奇智软件(北京)有限公司 Desktop display method
US20130141430A1 (en) * 2011-12-02 2013-06-06 Jinhwa Joung Mobile terminal and control method thereof
US20130290887A1 (en) * 2012-04-26 2013-10-31 Samsung Electronics Co. Ltd. Method and terminal for displaying a plurality of pages,method and terminal for displaying a plurality of applications being executed on terminal, and method of executing a plurality of applications
CN102981755A (en) * 2012-10-24 2013-03-20 深圳市深信服电子科技有限公司 Gesture control method and gesture control system based on remote application
US20150019962A1 (en) * 2013-07-15 2015-01-15 Samsung Electronics Co., Ltd. Method and apparatus for providing electronic document
CN106293473A (en) * 2016-08-15 2017-01-04 珠海市魅族科技有限公司 Page display method and device
CN109358909A (en) * 2018-08-28 2019-02-19 努比亚技术有限公司 Show page control method, terminal and computer readable storage medium
CN109492178A (en) * 2018-11-05 2019-03-19 腾讯科技(深圳)有限公司 A kind of method and device of switch view

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
徐亚萍: "运动图像的操作化:对触屏视频流装置及其姿势现象的考古", 《国际新闻界》, vol. 42, no. 6, pages 55 - 75 *

Similar Documents

Publication Publication Date Title
CN112035202B (en) Method and device for displaying friend activity information, electronic equipment and storage medium
CN111597467A (en) Display method and device and electronic equipment
WO2023024835A1 (en) Context-based consolidation of communications across different communication platforms
CN110287146B (en) Method, device and computer storage medium for downloading application
CN112379982B (en) Task processing method, device, electronic equipment and computer readable storage medium
CN110658960A (en) Message processing method and device and electronic equipment
CN110658961A (en) Information display method and device and electronic equipment
CN109547335B (en) Session message processing method and device
CN115470432A (en) Page rendering method and device, electronic equipment and computer readable medium
CN105376719A (en) Information pushing method and device
CN111596991A (en) Interactive operation execution method and device and electronic equipment
CN114363686B (en) Method, device, equipment and medium for publishing multimedia content
CN111694629A (en) Information display method and device and electronic equipment
CN111258800A (en) Page processing method and device and electronic equipment
CN112380819B (en) Document editing method and device and electronic equipment
CN114417782A (en) Display method and device and electronic equipment
CN112256370A (en) Information display method and device and electronic equipment
CN109947528B (en) Information processing method and device
CN112306224A (en) Man-machine interaction method and device and electronic equipment
CN115113787B (en) Message processing method, device, equipment and medium
CN113364664A (en) Instant messaging method and device
CN112306349A (en) Method and device for processing view page
CN110221746B (en) Information interaction method, device, medium and computing equipment
CN114997115A (en) Document processing method, device, equipment and medium
CN111950663A (en) Display picture generation method and device and electronic equipment

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