A kind of page control method by sliding, device and terminal deviceTechnical field
The invention belongs to field of computer technology more particularly to a kind of page control method by sliding, device and terminal device.
Background technique
With the continuous development of Internet technology and terminal technology, terminal device is constantly universal, and more and more users are logicalIt crosses terminal device and obtains information, for example, reading news, deliver microblogging, see novel, play game, watch movie, however, in userWhen terminal device obtains various information by browser, how in the useful space of terminal device, for currently showing pageThe massive information in face, which carries out sliding positioning, becomes highly important.
In the prior art, in the biggish page of terminal device browsing information content, page sliding is usually controlled by screen sliding,Realization positions the content of the page, however, user needs constantly to carry out screen sliding, operation frequency during screen sliding browsingIt is numerous, influence the efficiency of page browsing.
Summary of the invention
The embodiment of the present invention is designed to provide a kind of page control method by sliding, it is intended to solve the prior art and pass through endWhen end equipment browses the information content biggish page, user needs constantly to carry out screen sliding, and frequent operation influences the effect of page browsingRate.
To achieve the goals above, the embodiment of the present invention provides the following technical solutions:
First aspect present invention provides a kind of page control method by sliding, which comprises
Detection acts on the touching signals on current page;
If detecting touching signals, show that the page controls sliding block in the current page;
Detection acts on the positioning hand signal on the page control sliding block;
If detecting positioning hand signal, according to the positioning hand signal, the current page sliding is controlled.
Second aspect of the present invention provides a kind of page slide control device, and described device includes:
Detecting signal unit is controlled, for detecting the touching signals acted on current page;
Display unit, if showing that the page controls sliding block in the current page for detecting touching signals;
Hand signal detection unit is positioned, for detecting the positioning hand signal acted on the page control sliding block;
Control unit, if, according to the positioning hand signal, being controlled described current for detecting positioning hand signalPage sliding.
Compared with prior art, beneficial effect is the embodiment of the present invention: detection acts on the letter of the touch-control on current pageNumber, if detecting touching signals, show that the page controls sliding block in the current page, detection acts on the page controlPositioning hand signal on sliding block, according to the positioning hand signal, controls described current if detecting positioning hand signalPage sliding.Due to controlling the sliding that sliding block controls current page by the page, during Information locating, without being repeatedScreen sliding, and only need to control sliding block to the page and operate, efficiency that is easy to operate, improving page browsing.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, required use in being described below to embodimentAttached drawing be briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for thisFor the those of ordinary skill of field, without creative efforts, it can also be obtained according to these attached drawings othersAttached drawing.
Fig. 1 is the flow chart of the realization for the page control method by sliding that the embodiment of the present invention one provides;
Fig. 2 is the flow chart of the realization of page control method by sliding provided by Embodiment 2 of the present invention;
Fig. 3 is the schematic diagram of page sliding control provided by Embodiment 2 of the present invention;
Fig. 4 is the structure chart for the page slide control device that the embodiment of the present invention three provides.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, rightThe present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, andIt is not used in the restriction present invention.
In the present embodiment, detects the touching signals acted on current page and work as if detecting touching signals describedThe display page controls sliding block in the preceding page, and detection acts on the positioning hand signal on the page control sliding block, if detectingHand signal is positioned, then according to the positioning hand signal, controls the current page sliding.
Realization of the invention is described in detail below in conjunction with specific embodiment:
Embodiment one
Fig. 1 shows the flow chart of the realization of the page control method by sliding of the offer of the embodiment of the present invention one, the present embodimentMainly it is applied to include to come in touch display screen or the terminal of Trackpad for example, should with the page control method by slidingTerminal may include smart phone, tablet computer, E-book reader, MP3 player (Moving Picture ExpertsGroup Audio Layer III, dynamic image expert's compression standard audio level 3), MP4(Moving PictureExperts Group Audio Layer IV, dynamic image expert's compression standard audio level 3) it is player, on knee portableComputer and desktop computer etc..Details are as follows for the method:
In S101, detection acts on the touching signals on current page;
In the present embodiment, terminal device can detect the touching signals for acting on current page in touch display screen, shouldTouching signals can be the signal that touch control operation of the user's finger in touch display screen is triggered, and is also possible to user and passes through touchingThe signal that the touch control operation of control pen or other input equipment in touch screen display is triggered, the touching signals can be withIt is the signal that any pair of terminal display screen is operated, for example, click signal, slip signals etc..
In S102, if detecting touching signals, show that the page controls sliding block in the current page;
In the present embodiment, if terminal device detects touching signals, show that the page controls sliding block, institute in current pageShape, color and the position for stating page control sliding block, which can according to need, to be configured, for example, the shape of page control sliding block canThink round, rectangular or cartoon shape etc., the position of the control sliding block can be located on the inside of the edge of screen.
In the present embodiment, page control sliding block can be pre-generated, and can also be generated in real time, and therefore, S102 can be withUsing following implementation:
Optionally, S102 can be in the following ways: if detecting touching signals, drawing and shows in the pageThe default page controls sliding block, and the transparency of the default page control sliding block gradually increases.That is, when detecting touching signals,The real-time rendering page controls sliding block in the current page, and shows that the page control is slided using the increased mode of transparencyBlock.
Optionally, S102 can also be in the following ways: if detecting touching signals, showing in the current pageThe default page controls sliding block, and the transparency of the default page control sliding block gradually increases.That is, if detecting touching signals,It shows that the page that preset transparency is 0 in the page controls sliding block, is not incremented by the saturating of the default page control sliding blockLightness.
In S103, detection acts on the positioning hand signal on the page control sliding block;
In the present embodiment, the positioning hand signal is user's finger, stylus or other touch control devices in the pageThe signal of sliding block input is controlled, the positioning hand signal can be pre-configured with before terminal device factory by terminal device quotient,Of course, it is possible to be pre-configured with this as default setting, when user needs to modify, menu pair can be arranged by positioning gestureDifference positioning gesture is configured.
In S104, if detecting positioning hand signal, according to the positioning hand signal, the current page is controlledSliding.
In the present embodiment, if terminal detects the positioning hand signal acted on the page control sliding block, basisMeaning expressed by the positioning hand signal controls the current page sliding.
In the present embodiment, described according to the positioning hand signal, controlling the current page sliding includes: when identification instituteWhen to state positioning hand signal be the first positioning hand signal, the current page upward F.F. sliding positioning is controlled, and when knowingWhen the not described positioning hand signal is the second positioning hand signal, the downward F.F. sliding positioning of the current page is controlled.So thatSliding block is controlled by the page, F.F. sliding can be carried out to current page, so that required position is quickly navigated to, and nothingThe page need to be slided manually.
In the present embodiment, described according to the positioning hand signal, controlling the current page sliding includes: when identification instituteWhen to state positioning hand signal be that third positions hand signal, the current page automatic upward sliding positioning is controlled, and when knowingWhen the not described positioning hand signal is the 4th positioning hand signal, the automatic slide downward positioning of the current page is controlled.So thatSliding block is controlled by the page, current page is can control and slides automatically, slided without manual or other touch control devicesIt is dynamic, it is easy to operate.
Optionally, in automatic sliding process, the page control sliding block is hidden, when detecting touching signals again,The page control sliding block is shown, so that thering is sufficient control to show content of pages, in addition, when page scroll is set to terminalWhen standby bottom of screen or top, the page stops sliding, shows the page control sliding block.
It is worth noting that in the present embodiment the sliding that sliding block controls the page can be controlled by the page, can also pass throughScreen sliding controls the sliding of the page, for example, if user needs F.F., can be controlled by the page during screen slidingSliding block controls the sliding of the page.
In the present embodiment, detects the touching signals acted on current page and work as if detecting touching signals describedThe display page controls sliding block in the preceding page, and detection acts on the positioning hand signal on the page control sliding block, if detectingHand signal is positioned, then according to the positioning hand signal, controls the current page sliding.Due to controlling sliding block by the pageControl current page sliding, during Information locating, it is not necessary that screen sliding is repeated, and only need to the page control sliding block intoRow operation, efficiency that is easy to operate, improving page browsing.
Embodiment two
Fig. 2 shows the flow charts of the realization of page control method by sliding provided by Embodiment 2 of the present invention, and details are as follows:
In S201, detection acts on the touching signals on current page;
In S202, if detecting touching signals, show that the default page controls sliding block in the current page, it is describedThe transparency of default page control sliding block gradually increases;
In the present embodiment, if the touching signals acted on current page are not detected within a preset time, institute is hiddenPage control sliding block is stated, the transparency of the page control sliding block is gradually reduced, for example, can be after user stops touch action5 seconds, faded out the page control sliding block automatically.
By when detecting touching signals, then showing that the default page controls sliding block in the current page, when pre-If touching signals are not detected in the time, then hidden page controls sliding block, so that when needed, the display page controls sliding block, andWhen not needing, the page control sliding block is hidden, the display space of terminal display screen is effectively utilized.
In S203, detection acts on the positioning hand signal on the page control sliding block;
In S204, if detecting positioning hand signal, the positioning hand signal and page gliding cable structure are being presetIn list, the corresponding page gliding cable structure of the positioning hand signal is searched;
In the present embodiment, the positioning preset the positioning hand signal and store user with the list of page gliding cable structureThe corresponding relationship of hand signal and page gliding cable structure, user can carry out the positioning gesture and/or page gliding cable structureSetting, for example, setting in menu can be arranged with terminal in the positioning hand signal and the list of page gliding cable structure presetOption association is set, when receiving the modification setting options, pop-up setting menu slides the positioning gesture and/or the pageRate is modified.
In S205, according to the corresponding page gliding cable structure of the positioning hand signal, the current page sliding is controlled.
It, can be sliding in the current page in order to make user understand the sliding progress of current page in time in the present embodimentIn dynamic position fixing process, the display page slides progress, the page sliding progress be current display page remove the length of screen withThe ratio of the total length of current display page.
In order to make it easy to understand, a concrete implementation example is given below, but do not asked with being limited the case where this implementation exampleIt is the schematic diagram of the page provided by Embodiment 2 of the present invention sliding control refering to Fig. 3, when detecting touching signals (for example, clickingScreen or slide downward screen) when, the display page controls sliding block, show to be page control sliding block in box A, at this point, ifTouch action stops, if terminal device is not detected touching signals in 5 seconds, function sliding block can fade out automatically it is hiding, if inspectionThe positioning hand signal for controlling sliding block input by the page is measured, and identifies that the positioning hand signal is long-pressing and pulls downwardsThe page control sliding block (the i.e. first positioning hand signal), then current page is slided in upward F.F.;If identifying the positioning handGesture signal is long-pressing and pulls upwards the page control sliding block (the i.e. second positioning hand signal) that then downward F.F. sliding is currentThe page;If identifying, the positioning hand signal is to double-click sliding block (i.e. third positioning hand signal), and automatic slide downward is currentThe page;If identifying, the positioning hand signal hits sliding block (the i.e. the 4th positioning hand signal) for three, and automatic upward sliding is currentThe page, in above-mentioned page sliding process, the display page slides progress.
In the present embodiment, detects the touching signals acted on current page and work as if detecting touching signals describedThe display page controls sliding block in the preceding page, and detection acts on the positioning hand signal on the page control sliding block, if detectingHand signal is positioned, then in presetting the positioning hand signal and the list of page gliding cable structure, searches the positioning gesture letterNumber corresponding page gliding cable structure controls the current page according to the corresponding page gliding cable structure of the positioning hand signalSliding.Due to controlling the sliding that sliding block controls current page by the page, during Information locating, it is not necessary that cunning is repeatedScreen, and only need to control sliding block to the page and operate, efficiency that is easy to operate, improving page browsing.
Embodiment three
Fig. 4 shows the structure chart of the page slide control device of the offer of the embodiment of the present invention three, for ease of description, onlyPart related to the embodiment of the present invention is shown, which can be the software unit being built in terminal device, hardware listFirst or soft or hard combining unit.
Described device includes:
Detecting signal unit 41 is controlled, for detecting the touching signals acted on current page;
Display unit 42, if showing that the page controls sliding block in the current page for detecting touching signals;
Hand signal detection unit 43 is positioned, for detecting the positioning gesture letter acted on the page control sliding blockNumber;
Control unit 44, if, according to the positioning hand signal, working as described in control for detecting positioning hand signalPreceding page sliding.
Optionally, the display unit 42, if drawing and showing pre- in the page for detecting touching signalsIf the page controls sliding block, the transparency of the default page control sliding block is gradually increased.
Optionally, the display unit 42, if being shown in the current page default for detecting touching signalsThe page controls sliding block, and the transparency of the default page control sliding block gradually increases.
Optionally, described control unit 44 act on current page if being also used to be not detected within a preset timeTouching signals, then hide the page control sliding block, and the transparency of the page control sliding block is gradually reduced.
Optionally, described control unit 44, if presetting the positioning gesture letter for detecting positioning hand signalNumber in the list of page gliding cable structure, search the corresponding page gliding cable structure of the positioning hand signal, according to the positioning handThe corresponding page gliding cable structure of gesture signal controls the current page sliding.
Optionally, described control unit 44 are used for when identifying the positioning hand signal is the first positioning hand signal,The upward F.F. sliding positioning of the current page is controlled, and when the identification positioning hand signal is the second positioning hand signalWhen, control the downward F.F. sliding positioning of the current page.
Optionally, described control unit 44 are used for when identifying the positioning hand signal is that third positions hand signal,The automatic upward sliding positioning of the current page is controlled, and when the identification positioning hand signal is the 4th positioning hand signalWhen, control the automatic slide downward positioning of the current page.
Optionally, the display unit 42 is also used to slide in position fixing process in the current page, display page slidingProgress.
Page slide control device provided in an embodiment of the present invention can be used aforementioned corresponding embodiment of the method one toIn three, details are referring to the description of above-described embodiment one to three, and details are not described herein.
It is worth noting that, included each unit is only divided according to the functional logic in above-described embodiment,But it is not limited to the above division, as long as corresponding functions can be realized;In addition, the specific name of each functional unitIt is only for convenience of distinguishing each other, the protection scope being not intended to restrict the invention.
In addition, those of ordinary skill in the art will appreciate that realizing all or part of the steps in the various embodiments described above methodIt is that relevant hardware can be instructed to complete by program, corresponding program can store to be situated between in a computer-readable storageIn matter, the storage medium, such as ROM/RAM, disk or CD.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the inventionMade any modifications, equivalent replacements, and improvements etc., should all be included in the protection scope of the present invention within mind and principle.