CN103885685A - Method and device for processing pages - Google Patents

Method and device for processing pages Download PDF

Info

Publication number
CN103885685A
CN103885685A CN201210566605.8A CN201210566605A CN103885685A CN 103885685 A CN103885685 A CN 103885685A CN 201210566605 A CN201210566605 A CN 201210566605A CN 103885685 A CN103885685 A CN 103885685A
Authority
CN
China
Prior art keywords
gravity sensing
sensing event
displacement
current page
conditioned
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.)
Granted
Application number
CN201210566605.8A
Other languages
Chinese (zh)
Other versions
CN103885685B (en
Inventor
王万新
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201210566605.8A priority Critical patent/CN103885685B/en
Publication of CN103885685A publication Critical patent/CN103885685A/en
Application granted granted Critical
Publication of CN103885685B publication Critical patent/CN103885685B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method and a device for processing pages, and belongs to the field of terminal equipment. The method includes acquiring gravity sensing events when the current pages are displayed; determining processing modes for the current pages according to displacement distances of the gravity sensing events; processing the current pages according to the acquired processing modes. The method and the device have the advantages that the processing modes for the current pages are determined according to the displacement distances of the gravity sensing events, and accordingly page operation can be diversified, can be effectively simplified and is intelligent.

Description

Page processing method and device
Technical field
The present invention relates to terminal device field, particularly a kind of page processing method and device.
Background technology
The terminal devices such as current most smart mobile phone and panel computer all can carry out browsing of the various pages, as webpage, e-book, picture, text document etc.The various pages bring brand-new visual experience to user, have also enriched the corresponding function of terminal device simultaneously.
And most of terminal devices are in the time processing display page, can trigger by user's touch operation, need to switch the page as user time, can on screen, slide by finger, trigger the switching of the page, by the webpage representation after switching to user.
Realizing in process of the present invention, inventor finds that prior art at least exists following problem:
Terminal device carries out the page while processing, can only be by user the upper and lower, left and right on touch-screen slide to realize the switching of the page, method is single, is difficult to realize the variation of page processing.
Summary of the invention
In order to solve the problem of prior art, the embodiment of the present invention provides a kind of page processing method and device.Described technical scheme is as follows:
On the one hand, provide a kind of page processing method, described method comprises:
In the time showing current page, know gravity sensing event;
According to the displacement of described gravity sensing event, determine the processing mode to current page;
According to the processing mode of obtaining, described current page is processed.
According to the displacement of described gravity sensing event, determine the processing mode to current page, comprising:
According to the displacement of described gravity sensing event, judge whether described gravity sensing event is maloperation, in the time that definite described gravity sensing event is not maloperation, according to the displacement of described gravity sensing event, determine the processing mode to current page.
According to the displacement of described gravity sensing event, determine the processing mode to current page, comprising:
It is first pre-conditioned whether the displacement that judges described gravity sensing event meets, described first pre-conditioned when meeting, and determines current page is switched.
Described first pre-conditioned when meeting, determine current page is switched, comprising:
When meeting described first when pre-conditioned, according to the moving direction of described gravity sensing event, determine current page is carried out switching accordingly with described moving direction.
It is first pre-conditioned whether the displacement that judges described gravity sensing event meets, and comprises afterwards:
When the displacement of described gravity sensing event does not meet described first pre-conditionedly, determine and described current page is not processed;
Or it is second pre-conditioned whether the displacement that judges described gravity sensing event meets;
It is second pre-conditioned that the displacement of described gravity sensing event meets, and determines described current page is slided, and it is second pre-conditioned that the displacement of described gravity sensing event does not meet, and determines and described current page is not processed.
It is second pre-conditioned that the displacement of described gravity sensing event meets, and determines described current page is slided, and comprising:
It is second pre-conditioned that the displacement of described gravity sensing event meets, and according to the moving direction of described gravity sensing event and displacement, determines described current page is slided accordingly.
On the other hand, provide a kind of page treating apparatus, described device comprises:
Know module, in the time showing current page, know gravity sensing event;
Determination module, for according to the displacement of described gravity sensing event, determines the processing mode to current page;
Processing module, for processing described current page according to the processing mode of obtaining.
Described device also comprises:
Maloperation judge module, be used for according to the displacement of described gravity sensing event, judge whether described gravity sensing event is maloperation, in the time that definite described gravity sensing event is not maloperation, trigger described determination module according to the displacement of described gravity sensing event, determine the processing mode to current page.
Described determination module comprises: the first judging unit and the first determining unit,
Described the first judging unit, first pre-conditioned for judging that whether the displacement of described gravity sensing event meet;
Described the first determining unit, described first pre-conditioned for determining that when described the first judging unit the displacement of described gravity sensing event meets, determine current page is switched.
Described the first determining unit meets described first when pre-conditioned specifically for determine the displacement of described gravity sensing event when described the first judging unit, according to the moving direction of described gravity sensing event, determine current page is carried out switching accordingly with described moving direction.
Described determination module also comprises: the second determining unit, and described first pre-conditioned for not meeting when the displacement of described gravity sensing event, determine and described current page is not processed;
Or,
Described determination module also comprises: the second judging unit and the second determining unit,
Described the second judging unit, second pre-conditioned for judging that whether the displacement of described gravity sensing event meet;
Described the second determining unit, pre-conditioned for meet second when the displacement of described gravity sensing event, determine described current page is slided, the displacement of described gravity sensing event does not meet second pre-conditioned, determines and described current page is not processed.
Described the second determining unit meets second pre-conditioned specifically for the displacement of described gravity sensing event, according to the moving direction of described gravity sensing event and displacement, determine described current page is slided accordingly.
The invention provides a kind of page processing method and device, by the time showing current page, know gravity sensing event; According to the displacement of described gravity sensing event, determine the processing mode to current page; According to the processing mode of obtaining, described current page is processed.Adopt technical scheme provided by the invention, according to the displacement of gravity sensing event, determine the processing mode of current page, realized the variation of page operation and effectively simplified the operation to the page, make operation more intelligent.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing of required use during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 a is a kind of page processing method process flow diagram providing in the embodiment of the present invention;
Fig. 1 b is the coordinate system schematic diagram of a kind of terminal device of providing in the embodiment of the present invention;
Fig. 2 is a kind of page processing method process flow diagram providing in the embodiment of the present invention;
Fig. 3 is a kind of page processing method process flow diagram providing in the embodiment of the present invention;
Fig. 4 is a kind of page treating apparatus schematic diagram providing in the embodiment of the present invention.
Embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Fig. 1 a is a kind of page processing method process flow diagram providing in the embodiment of the present invention, and referring to Fig. 1 a, the method comprises:
101: in the time showing current page, know gravity sensing event;
Wherein, current page is the current page showing on terminal device, and this page can be the page of the forms such as picture, e-book, webpage, text document, information.
Wherein, gravity sensing event can know by the built-in gravity sensor of terminal device, and gravity sensor is the sensor that motion or gravity is converted to electric signal, is mainly used in pitch angle, inertial force, impact and shakes isoparametric measurement.In addition, this gravity sensor can also be substituted by acceleration transducer, gyroscope or three axle magnetoresistive transducers etc., only need know the displacement of current gravity sensing event.
102: according to the displacement of described gravity sensing event, determine the processing mode to current page;
Processing mode in embodiments of the present invention, includes but not limited to switching, slip etc. to the page.
Wherein, the switching of the page can be to switch forward, or switches backward, and the slip of the page can be page upward sliding, down sliding, slide or slide to the right left.
103: according to the processing mode of obtaining, described current page is processed.
The embodiment of the present invention, by the time showing current page, is known gravity sensing event; According to the displacement of described gravity sensing event, determine the processing mode to current page; According to the processing mode of obtaining, described current page is processed.The technical scheme that adopts the embodiment of the present invention to provide, according to the displacement of gravity sensing event, determines the processing mode of current page, has realized the variation of page operation and has effectively simplified the operation to the page, makes operation more intelligent.
Alternatively, on the basis of the technical scheme of Fig. 1 a illustrated embodiment, step 102 " according to the displacement of described gravity sensing event; determine the processing mode to current page " comprising: according to the displacement of described gravity sensing event, judge whether described gravity sensing event is maloperation, in the time that definite described gravity sensing event is not maloperation, according to the displacement of described gravity sensing event, determine the processing mode to current page.
Because user is in use terminal device process, there will be unavoidably slight rocking, so maloperation of the terminal device bringing for fear of these operations, therefore, need to be according to the displacement of gravity sensing event, whether be that maloperation judges to this gravity sensing event, in the time that definite described gravity sensing event is maloperation, current page is not processed, in the time that definite described gravity sensing event is not maloperation, according to the displacement of described gravity sensing event, determine the processing mode to current page.
In the present embodiment, the electric signal that the displacement of this gravity sensing event can be obtained gravity sense events by terminal device transforms and obtains.In the time of user's double swerve terminal device, gravity sensing event changes into the electric signal of acquisition the displacement of x direction, and in the time that user teetertotters terminal device, gravity sensing event changes into the electric signal of acquisition the displacement of y direction.In the present embodiment, take the center of terminal device as true origin is set up rectangular coordinate system, Fig. 1 b is the coordinate system schematic diagram of a kind of terminal device of providing in the embodiment of the present invention, in the time that user rocks terminal device left, now obtain the displacement in x direction, and moving direction is the negative semiaxis along x; In the time that user rocks terminal device to the right, now obtain the displacement in x direction, and moving direction is the positive axis along x; In the time that user upwards rocks terminal device, now obtain the displacement in y direction, and moving direction is the positive axis along y; In the time that user rocks terminal device downwards, now obtain the displacement in y direction, and moving direction is the negative semiaxis along y.
Particularly, this judgement can be by comparing the displacement of gravity sensing event and the first predetermined threshold value, if the displacement of gravity sensing event is less than the first predetermined threshold value, think that user belongs to maloperation, terminal device will not processed current page; If the displacement of gravity sensing event is more than or equal to the first predetermined threshold value, think that user is not maloperation, terminal device will further judge according to the displacement of gravity sensing event how terminal device processes current page.Preferably, according to current page, the length on moving direction arranges the first predetermined threshold value, as this first predetermined threshold value can be set to 10% of the length of current page on moving direction.
Alternatively, on the basis of the technical scheme of Fig. 1 a illustrated embodiment, step 102 " according to the displacement of described gravity sensing event, is determined the processing mode to current page ", comprises step 102a:
It is first pre-conditioned whether 102a, the displacement that judges described gravity sensing event meet, described first pre-conditioned when meeting, and determines current page is switched.
Wherein, the first pre-conditioned displacement that refers to gravity sensing event is greater than the second predetermined threshold value, preferably, according to current page, the length on moving direction arranges the second predetermined threshold value, as being set to 70% of the length of current page on moving direction.When gravity sensing event meets first when pre-conditioned, now, can determine that terminal device processes current page, when gravity sensing event does not meet first when pre-conditioned, current page is not processed.
Further alternatively, on the basis of the technical scheme of Fig. 1 a illustrated embodiment, " described first pre-conditioned when meeting; to determine current page is switched " in step 102a, comprise: when meeting described first when pre-conditioned, according to the moving direction of described gravity sensing event, determine current page is carried out switching accordingly with described moving direction.
Particularly, when the moving direction of gravity sensing event is during along x direction of principal axis, current page is switched in two kinds of situation: (1) is when meeting described first when pre-conditioned, if now the moving direction of gravity sensing event is the negative semiaxis along x, be that user rocks left in the time using terminal device, terminal device will be switched to lower one page of current page and show; (2) when meeting described first when pre-conditioned, if now the moving direction of gravity sensing event is the positive axis along x, user rocks to the right in the time using terminal device, and terminal device will be switched to the page up of current page and show.
When the moving direction of gravity sensing event is during along y direction of principal axis, current page is switched in two kinds of situation: (1) is when meeting described first when pre-conditioned, if now the moving direction of gravity sensing event is the positive axis along y, be that user upwards rocks in the time using terminal device, terminal device will be switched to lower one page of current page and show; (2) when meeting described first when pre-conditioned, if now the moving direction of gravity sensing event is the negative semiaxis along y, user rocks downwards in the time using terminal device, and terminal device will be switched to the page up of current page and show.
In embodiments of the present invention, be not or not horizontal or longitudinal attribute limits to the display format of the page, for the page, can to its rock direction with and the switching mode of the page preset, as, for the page of horizontal demonstration, can its switching mode be set to switch by double swerve.
Further alternatively, on the basis of the technical scheme of Fig. 1 a illustrated embodiment, whether " displacement that judges described gravity sensing event meet first pre-conditioned " in step 102a afterwards, comprises step () or (two):
(1) when the displacement of described gravity sensing event does not meet described first pre-conditionedly, determine and described current page is not processed;
Because user is in use terminal device process, there will be unavoidably slight rocking, so for fear of the maloperation of the terminal device that these operations are brought, therefore, need to be according to the displacement of gravity sensing event, whether be that maloperation judges to this gravity sensing event, in the time that definite described gravity sensing event is maloperation, current page is not processed, in the time that definite described gravity sensing event is not maloperation, according to the displacement of described gravity sensing event, determine the processing mode to current page.
(2) it is second pre-conditioned whether the displacement that judges described gravity sensing event meets; It is second pre-conditioned that the displacement of described gravity sensing event meets, and determines described current page is slided, and it is second pre-conditioned that the displacement of described gravity sensing event does not meet, and determines and described current page is not processed.
Wherein, the second pre-conditioned displacement that refers to gravity sensing event is greater than the first preset value threshold value, and is less than the second predetermined threshold value.When gravity sensing event meets second when pre-conditioned, can determine the terminal device current page that will slide, when gravity sensing event does not meet second when pre-conditioned, determine and current page is not processed.
Further alternatively, on the basis of the technical scheme of Fig. 1 a illustrated embodiment, " it is second pre-conditioned that the displacement of described gravity sensing event meets; determine described current page is slided " in this step (two), comprise: the displacement of described gravity sensing event meets second pre-conditioned, according to the moving direction of described gravity sensing event and displacement, determine described current page is slided accordingly.
In embodiments of the present invention, corresponding slip refers to this displacement and moving direction slides accordingly, determine the glide direction of current page according to the moving direction of gravity sensing event, and according to the displacement of gravity sensing event, determine the sliding distance of current page, determine current page is carried out to the slip of this sliding distance.
Wherein, determine the glide direction of current page according to the moving direction of gravity sensing event, comprise following situation: if the moving direction of gravity sensing event is along x axle, the current page of browsing is slided in two kinds of situation: (1) is if now the moving direction of gravity sensing event is the positive axis along x, be that user rocks to the right in the time using terminal device, the distance of the slip according to calculating is carried out corresponding right cunning by terminal device, makes user see the content on the current page right side; (2) if now the moving direction of gravity sensing event is the negative semiaxis along x, user rocks left in the time using terminal device, and the distance of the slip according to calculating is carried out corresponding left cunning by terminal device, makes user see the content on the current page left side.
If the moving direction of gravity sensing event is along y axle, the current page of browsing is slided in two kinds of situation: (1) is if now the moving direction of gravity sensing event is the positive axis along y, be that user upwards rocks in the time using terminal device, terminal device carries out the distance of the slip according to calculating corresponding sliding, makes user see the content below current page; (2) if now the moving direction of gravity sensing event is the negative semiaxis along y, user rocks downwards in the time using terminal device, and terminal device glides the distance of the slip according to calculating accordingly, makes user see the content above current page.
Wherein, according to the displacement of gravity sensing event, the sliding distance of determining current page comprises following any situation: (1) carries out ratio computing according to the displacement of gravity sensing event and the 3rd predetermined threshold value, obtain a ratio data, this ratio data is multiplied by current page along the length on the moving direction of gravity sensing event, can obtains the sliding distance of current page.Preferably, the 3rd predetermined threshold value arranges along the length on the moving direction of gravity sensing event according to current page, as being set to current page along 60% of the length on the moving direction of gravity sensing event.(2) sliding distance using predeterminable range as current page.This predeterminable range is a fixing length, and when user rocks terminal device, the displacement of the gravity sensing event of generation does not meet first pre-conditioned, and meets second when pre-conditioned, all take predeterminable range as its sliding distance.
The embodiment of the present invention, by the time showing current page, is known gravity sensing event; According to the displacement of described gravity sensing event, determine the processing mode to current page; According to the processing mode of obtaining, described current page is processed.The technical scheme that adopts the embodiment of the present invention to provide, according to the displacement of gravity sensing event, determines the processing mode of current page, has effectively simplified the operation to the page, makes operation more intelligent.Further, by displacement and first pre-conditioned and second pre-conditioned the comparing of gravity sensing event, can the processing mode of refinement to current page, make operating function more perfect.
Fig. 2 is a kind of page processing method process flow diagram providing in the embodiment of the present invention, in the present embodiment, the built-in gravity sensor of terminal device relating to, describe the respective handling mode of terminal device to gravity sense events as picture as example take the current page of user, referring to Fig. 2, the method comprises:
201: in the time that user carries out browsing pictures, know gravity sensing event;
Particularly, in the time that user rocks terminal device, terminal device is known gravity sensing event by built-in gravity sensor, and gravity sensor changes the pressure being subject to change into electric signal, converts the electrical signal to further displacement.
202: according to described gravity sensing event displacement, judge whether described gravity sensing event is maloperation, if so, execution step 207; If not, execution step 203;
Because user is in use terminal device process, there will be unavoidably slight rocking, so maloperation of the terminal device bringing for fear of these operations, therefore, need to be according to the displacement of gravity sensing event, whether be that maloperation judges to this gravity sensing event, in the time that definite described gravity sensing event is maloperation, current page is not processed, in the time that definite described gravity sensing event is not maloperation, according to the displacement of described gravity sensing event, determine the processing mode to current page.Particularly, the displacement of gravity sensing event and the first predetermined threshold value are compared, preferably, according to current page, the length on moving direction arranges the first predetermined threshold value, as being set to 10% of the length of current page on moving direction.If current moving direction is along x axle, according to current page, the length in x direction arranges the first predetermined threshold value, as being set to 10% of the length of current page in x direction; If current moving direction is along y axle, according to current page, the length in y direction arranges the first predetermined threshold value, as being set to 10% of the length of current page on moving direction.If the displacement of gravity sensing event is less than the first predetermined threshold value, think that user belongs to maloperation, terminal device will not processed described current browsing pictures; If the displacement of gravity sensing event is more than or equal to the first predetermined threshold value, think that user is not maloperation, terminal device will further judge according to the displacement of gravity sensing event how terminal device processes current browsing pictures.
203: whether the displacement that judges described gravity sensing event meets first pre-conditioned, if so, execution step 204; If not, execution step 205;
Wherein, the first pre-conditioned displacement that refers to gravity sensing event is greater than the second predetermined threshold value, preferably, according to current page, the length on moving direction arranges the second predetermined threshold value, as being set to 70% of the length of current page on moving direction.If current moving direction is along x axle, according to current page, the length in x direction arranges the second predetermined threshold value, as being set to 70% of the length of current page in x direction; If current moving direction is along y axle, according to current page, the length in y direction arranges the second predetermined threshold value, as being set to 70% of the length of current page in y direction.When gravity sensing event meets first when pre-conditioned, now, can determine that terminal device processes the current picture of browsing, when gravity sensing event does not meet first when pre-conditioned, the current picture of browsing is not processed.
204: the current picture of browsing is switched, finish;
Particularly, the current picture of browsing is switched in two kinds of situation: (1) is if now the moving direction of gravity sensing event is the positive axis along negative semiaxis or the y axle of x, be that user rocks left or upwards in the time using terminal device, terminal device obtains next pictures, is switched to this next pictures and shows; (2) if now the moving direction of gravity sensing event is along the positive axis of x or the negative semiaxis of y axle, user rocks to the right or downwards using when terminal device, and terminal device obtains a pictures, is switched on this pictures and shows.
Wherein, next pictures described in the embodiment of the present invention and a upper pictures can be to be stored in adjacent next pictures and the upper pictures of picture of being shown with current page in local storage (as photograph album file), can also be in local storage with tactic next pictures of picture name and a upper pictures of described page institute exhibiting pictures.As, photo current is 2.jpg, and photograph album file comprises 1.jpg, 2.jpg, 3.jpg, and in photograph album file, picture is that order is arranged, and its next pictures is 3.jpg, and a upper pictures is 1.jpg.Certainly, if picture is that inverted order is arranged in photograph album file, its next pictures is 1.jpg, and a upper pictures is 3.jpg.
205: whether the displacement that judges described gravity sensing event meets second pre-conditioned, if so, execution step 206, if not, execution step 207;
Wherein, the second pre-conditioned displacement that refers to gravity sensing event is greater than the first preset value threshold value, and is less than the second predetermined threshold value.When gravity sensing event meets second when pre-conditioned, can determine the terminal device current browsing pictures that will slide, when gravity sensing event does not meet second when pre-conditioned, determine and current browsing pictures is not processed.
206: according to the moving direction of described gravity sensing event and displacement, determine the described current picture of browsing is slided accordingly, finish;
In embodiments of the present invention, corresponding slip refers to this displacement and moving direction slides accordingly, determine the glide direction of current page according to the moving direction of gravity sensing event, and according to the displacement of gravity sensing event, determine the sliding distance of current page, determine current page is carried out to the slip of this sliding distance.
Wherein, determine the glide direction of the current picture of browsing according to the moving direction of gravity sensing event, comprise following situation: if the moving direction of gravity sensing event is along x axle, the current picture of browsing is slided in two kinds of situation: (1) is if now the moving direction of gravity sensing event is the positive axis along x, be that user rocks to the right in the time using terminal device, the distance of the slip according to calculating is carried out corresponding right cunning by terminal device, makes user see the content on the current picture right side of browsing; (2) if now the moving direction of gravity sensing event is the negative semiaxis along x, be that user rocks left in the time using terminal device, the distance of the slip according to calculating is carried out corresponding left cunning by terminal device, makes user see the content on the current picture left side of browsing.
If the moving direction of gravity sensing event is along y axle, the current picture of browsing is slided in two kinds of situation: (1) is if now the moving direction of gravity sensing event is the positive axis along y, be that user upwards rocks in the time using terminal device, terminal device carries out the distance of the slip according to calculating corresponding sliding, makes user see the content below the current picture of browsing; (2) if now the moving direction of gravity sensing event is the negative semiaxis along y, be that user rocks downwards in the time using terminal device, terminal device glides the distance of the slip according to calculating accordingly, makes user see the content above the current picture of browsing.
Wherein, according to the displacement of gravity sensing event, the sliding distance of determining current page comprises following any situation: (1) carries out ratio computing according to the displacement of gravity sensing event and the 3rd predetermined threshold value, obtain a ratio data, this ratio data is multiplied by current page along the length on the moving direction of gravity sensing event, can obtains the sliding distance of current page.Preferably, the 3rd predetermined threshold value arranges along the length on the moving direction of gravity sensing event according to current page, as being set to current page along 60% of the length on the moving direction of gravity sensing event.(2) sliding distance using predeterminable range as current page.This predeterminable range is a fixing length, and when user rocks terminal device, the displacement of the gravity sensing event of generation does not meet first pre-conditioned, and meets second when pre-conditioned, all take predeterminable range as its sliding distance.
Wherein, according to the displacement of gravity sensing event, the sliding distance of determining the current picture of browsing comprises following any situation: (1) carries out ratio computing according to the displacement of gravity sensing event and the 3rd predetermined threshold value, obtain a ratio data, this ratio data is multiplied by the current picture of browsing along the length on the moving direction of gravity sensing event, can obtains the sliding distance of the current picture of browsing.Preferably, the 3rd predetermined threshold value arranges along the length on the moving direction of gravity sensing event according to the current picture of browsing, as being set to the current picture of browsing along 60% of the length on the moving direction of gravity sensing event.(2) sliding distance using predeterminable range as the current picture of browsing.This predeterminable range is a fixing length, and when user rocks terminal device, the displacement of the gravity sensing event of generation does not meet first pre-conditioned, and meets second when pre-conditioned, all take predeterminable range as its sliding distance.
Step 205-206 is optional step, and the present embodiment also can not carried out these two steps, and directly performs step 207.
207: terminal device is not processed the current picture of browsing.
By comparing displacement and first predetermined threshold value of gravity sense events, because the displacement of gravity sensing event is less than the first predetermined threshold value, think that user belongs to maloperation, so terminal device is not processed the current picture of browsing.
The embodiment of the present invention, by the time showing current page, is known gravity sensing event; According to the displacement of described gravity sensing event, determine the processing mode to current page; According to the processing mode of obtaining, described current page is processed.The technical scheme that adopts the embodiment of the present invention to provide, according to the displacement of gravity sensing event and moving direction, determines the processing mode of current page, has effectively simplified the operation to the page, makes operation more intelligent.
Fig. 3 is a kind of page processing method process flow diagram providing in the embodiment of the present invention, in the present embodiment, the built-in gravity sensor of terminal device relating to, describe the respective handling mode of terminal device to gravity sense events as e-book as example take the current page of user, referring to Fig. 3, the method comprises:
301: in the time that user browses the e-book page, know gravity sensing event;
Particularly, in the time that user rocks terminal device, terminal device is known gravity sensing event by built-in gravity sensor, and gravity sensor changes the pressure being subject to change into electric signal, converts the electrical signal to further displacement.
302: according to described gravity sensing event displacement, judge whether described gravity sensing event is maloperation, if so, execution step 307; If not, execution step 303;
Because user is in use terminal device process, there will be unavoidably slight rocking, so for fear of the maloperation of the terminal device that these operations are brought, therefore, need to be according to the displacement of gravity sensing event, whether be that maloperation judges to this gravity sensing event, in the time that definite described gravity sensing event is maloperation, current page is not processed, in the time that definite described gravity sensing event is not maloperation, according to the displacement of described gravity sensing event, determine the processing mode to current page.Particularly, the displacement of gravity sensing event and the first predetermined threshold value are compared, preferably, according to current page, the length on moving direction arranges the first predetermined threshold value, as being set to 10% of the length of current page on moving direction.If current moving direction is along x axle, according to current page, the length in x direction arranges the first predetermined threshold value, as being set to 10% of the length of current page in x direction; If current moving direction is along y axle, according to current page, the length in y direction arranges the first predetermined threshold value, as being set to 10% of the length of current page on moving direction.If the displacement of gravity sensing event is less than the first predetermined threshold value, think that user belongs to maloperation, terminal device will not processed the described current e-book page of browsing; If the displacement of gravity sensing event is more than or equal to the first predetermined threshold value, think that user is not maloperation, terminal device will further judge according to the displacement of gravity sensing event how terminal device processes the current e-book page of browsing.
303: whether the displacement that judges described gravity sensing event meets first pre-conditioned, if so, execution step 304; If not, execution step 305;
Wherein, the first pre-conditioned displacement that refers to gravity sensing event is greater than the second predetermined threshold value, preferably, according to current page, the length on moving direction arranges the second predetermined threshold value, as being set to 70% of the length of current page on moving direction.If current moving direction is along x axle, according to current page, the length in x direction arranges the second predetermined threshold value, as being set to 70% of the length of current page in x direction; If current moving direction is along y axle, according to current page, the length in y direction arranges the second predetermined threshold value, as being set to 70% of the length of current page in y direction.When gravity sensing event meets first when pre-conditioned, now, can determine that terminal device processes the current e-book of browsing, when gravity sensing event does not meet first when pre-conditioned, the current e-book of browsing is not processed.
304: the current e-book page of browsing is switched, finish;
Particularly, the current e-book page of browsing is switched in two kinds of situation: (1) is if now the moving direction of gravity sensing event is the positive axis along negative semiaxis or the y axle of x, be that user rocks left or upwards in the time using terminal device, terminal device will be switched to lower one page e-book and show; (2) if now the moving direction of gravity sensing event is along the positive axis of x or the negative semiaxis of y axle, user rocks to the right or downwards in the time using terminal device, and terminal device will be switched to page up e-book and show.
305: whether the displacement that judges described gravity sensing event meets second pre-conditioned, if so, execution step 306, if not, execution step 307;
Wherein, the second pre-conditioned displacement that refers to gravity sensing event is greater than the first preset value threshold value, and is less than the second predetermined threshold value.When gravity sensing event meets second when pre-conditioned, now, can determine the terminal device current e-book page of browsing that will slide, when gravity sensing event does not meet second when pre-conditioned, determine and the current e-book page of browsing is not processed.
306: according to the moving direction of described gravity sensing event and displacement, determine the described current e-book page of browsing is slided accordingly, finish;
In embodiments of the present invention, corresponding slip refers to this displacement and moving direction slides accordingly, determine the glide direction of current page according to the moving direction of gravity sensing event, and according to the displacement of gravity sensing event, determine the sliding distance of current page, determine current page is carried out to the slip of this sliding distance.
Wherein, determine the glide direction of the current e-book page of browsing according to the moving direction of gravity sensing event, comprise following situation: if the moving direction of gravity sensing event is along x axle, the current e-book page of browsing is slided in two kinds of situation: (1) is if now the moving direction of gravity sensing event is the positive axis along x, be that user rocks to the right in the time using terminal device, the distance of the slip according to calculating is carried out corresponding right cunning by terminal device, makes user see the content on the current e-book page right side of browsing; (2) if now the moving direction of gravity sensing event is the negative semiaxis along x, be that user rocks left in the time using terminal device, the distance of the slip according to calculating is carried out corresponding left cunning by terminal device, makes user see the content on the current e-book page left side of browsing.
If the moving direction of gravity sensing event is along y axle, the current e-book page of browsing is slided in two kinds of situation: (1) is if now the moving direction of gravity sensing event is the positive axis along y, be that user upwards rocks in the time using terminal device, terminal device carries out the distance of the slip according to calculating corresponding sliding, makes user see the content below the current e-book page of browsing; (2) if now the moving direction of gravity sensing event is the negative semiaxis along y, be that user rocks downwards in the time using terminal device, terminal device glides the distance of the slip according to calculating accordingly, makes user see the content above the current e-book page of browsing.
Wherein, according to the displacement of gravity sensing event, the sliding distance of determining current page comprises following any situation: (1) carries out ratio computing according to the displacement of gravity sensing event and the 3rd predetermined threshold value, obtain a ratio data, this ratio data is multiplied by current page along the length on the moving direction of gravity sensing event, can obtains the sliding distance of current page.Preferably, the 3rd predetermined threshold value arranges along the length on the moving direction of gravity sensing event according to current page, as being set to current page along 60% of the length on the moving direction of gravity sensing event.(2) sliding distance using predeterminable range as current page.This predeterminable range is a fixing length, and when user rocks terminal device, the displacement of the gravity sensing event of generation does not meet first pre-conditioned, and meets second when pre-conditioned, all take predeterminable range as its sliding distance.
Wherein, according to the displacement of gravity sensing event, the sliding distance of determining the current e-book page of browsing comprises following any situation: (1) carries out ratio computing according to the displacement of gravity sensing event and the 3rd predetermined threshold value, obtain a ratio data, this ratio data is multiplied by the current e-book page of browsing along the length on the moving direction of gravity sensing event, can obtains the sliding distance of the current e-book page of browsing.Preferably, the 3rd predetermined threshold value arranges along the length on the moving direction of gravity sensing event according to the current e-book page of browsing, as being set to the current e-book page of browsing along 60% of the length on the moving direction of gravity sensing event.(2) sliding distance using predeterminable range as the current e-book page of browsing.This predeterminable range is a fixing length, and when user rocks terminal device, the displacement of the gravity sensing event of generation does not meet first pre-conditioned, and meets second when pre-conditioned, all take predeterminable range as its sliding distance.
Step 305-306 is optional step, and the present embodiment also can not carried out these two steps, and directly performs step 307.
307: terminal device is not processed the current e-book page of browsing.
By comparing displacement and first predetermined threshold value of gravity sense events, because the displacement of gravity sensing event is less than the first predetermined threshold value, think that user belongs to maloperation, so terminal device will not processed the current e-book page of browsing.
The embodiment of the present invention, by the time showing current page, is known gravity sensing event; According to the displacement of described gravity sensing event, determine the processing mode to current page; According to the processing mode of obtaining, described current page is processed.The technical scheme that adopts the embodiment of the present invention to provide, according to the displacement of gravity sensing event and moving direction, determines the processing mode of current page, has effectively simplified the operation to the page, makes operation more intelligent.Further, by displacement and first pre-conditioned and second pre-conditioned the comparing of gravity sensing event, can the processing mode of refinement to current page, make operating function more perfect.
It should be noted that, embodiment provided by the present invention only take the current page of browsing as picture and the e-book page describe as example, and for the page of other types as the page of the forms such as webpage, text document, information, also can carry out page processing method in like manner, concrete steps can, with reference to above-mentioned steps 201-207 and 301-307, not repeat them here.
Fig. 4 is a kind of page treating apparatus schematic diagram providing in the embodiment of the present invention, and referring to Fig. 4, this device comprises:
Know module 401, in the time showing current page, know gravity sensing event;
Determination module 402, for according to the displacement of described gravity sensing event, determines the processing mode to current page;
Processing module 403, for processing described current page according to the processing mode of obtaining.
Described device also comprises:
Maloperation judge module 404, be used for according to the displacement of described gravity sensing event, judge whether described gravity sensing event is maloperation, in the time that definite described gravity sensing event is not maloperation, trigger described determination module according to the displacement of described gravity sensing event, determine the processing mode to current page.
Described determination module 402 comprises: the first judging unit and the first determining unit,
Described the first judging unit, first pre-conditioned for judging that whether the displacement of described gravity sensing event meet;
Described the first determining unit, described first pre-conditioned for determining that when described the first judging unit the displacement of described gravity sensing event meets, determine current page is switched.
Described the first determining unit meets described first when pre-conditioned specifically for determine the displacement of described gravity sensing event when described the first judging unit, according to the moving direction of described gravity sensing event, determine current page is carried out switching accordingly with described moving direction.
Described determination module 402 also comprises: the second determining unit, and described first pre-conditioned for not meeting when the displacement of described gravity sensing event, determine and described current page is not processed;
Or,
Described determination module 402 also comprises: the second judging unit and the second determining unit,
Described the second judging unit, second pre-conditioned for judging that whether the displacement of described gravity sensing event meet;
Described the second determining unit, pre-conditioned for meet second when the displacement of described gravity sensing event, determine described current page is slided, the displacement of described gravity sensing event does not meet second pre-conditioned, determines and described current page is not processed.
Described the second determining unit, meets second pre-conditionedly specifically for the displacement of described gravity sensing event, according to the moving direction of described gravity sensing event and displacement, determine described current page is slided accordingly.
The embodiment of the present invention, by the time showing current page, is known gravity sensing event; According to the displacement of described gravity sensing event, determine the processing mode to current page; According to the processing mode of obtaining, described current page is processed.The device that adopts the embodiment of the present invention to provide, according to the displacement of gravity sensing event, determines the processing mode of current page, has realized the variation of page operation and has effectively simplified the operation to the page, makes operation more intelligent.
It should be noted that: the page treating apparatus that above-described embodiment provides is in the time of processing page, only be illustrated with the division of above-mentioned each functional module, in practical application, can above-mentioned functions be distributed and completed by different functional modules as required, be divided into different functional modules by the inner structure of equipment, to complete all or part of function described above.In addition, page treating apparatus and page processing method embodiment that above-described embodiment provides belong to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
One of ordinary skill in the art will appreciate that all or part of step that realizes above-described embodiment can complete by hardware, also can carry out the hardware that instruction is relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be ROM (read-only memory), disk or CD etc.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (12)

1. a page processing method, is characterized in that, described method comprises:
In the time showing current page, know gravity sensing event;
According to the displacement of described gravity sensing event, determine the processing mode to current page;
According to the processing mode of obtaining, described current page is processed.
2. method according to claim 1, is characterized in that, according to the displacement of described gravity sensing event, determines the processing mode to current page, comprising:
According to the displacement of described gravity sensing event, judge whether described gravity sensing event is maloperation, in the time that definite described gravity sensing event is not maloperation, according to the displacement of described gravity sensing event, determine the processing mode to current page.
3. method according to claim 1, is characterized in that, according to the displacement of described gravity sensing event, determines the processing mode to current page, comprising:
It is first pre-conditioned whether the displacement that judges described gravity sensing event meets, described first pre-conditioned when meeting, and determines current page is switched.
4. method according to claim 3, is characterized in that, described first pre-conditioned when meeting, and determines current page is switched, and comprising:
When meeting described first when pre-conditioned, according to the moving direction of described gravity sensing event, determine current page is carried out switching accordingly with described moving direction.
5. method according to claim 3, is characterized in that, it is first pre-conditioned whether the displacement that judges described gravity sensing event meets, and comprises afterwards:
When the displacement of described gravity sensing event does not meet described first pre-conditionedly, determine and described current page is not processed;
Or it is second pre-conditioned whether the displacement that judges described gravity sensing event meets;
It is second pre-conditioned that the displacement of described gravity sensing event meets, and determines described current page is slided, and it is second pre-conditioned that the displacement of described gravity sensing event does not meet, and determines and described current page is not processed.
6. method according to claim 5, is characterized in that, it is second pre-conditioned that the displacement of described gravity sensing event meets, and determines described current page is slided, and comprising:
It is second pre-conditioned that the displacement of described gravity sensing event meets, and according to the moving direction of described gravity sensing event and displacement, determines described current page is slided accordingly.
7. a page treating apparatus, is characterized in that, described device comprises:
Know module, in the time showing current page, know gravity sensing event;
Determination module, for according to the displacement of described gravity sensing event, determines the processing mode to current page;
Processing module, for processing described current page according to the processing mode of obtaining.
8. device according to claim 7, is characterized in that, described device also comprises:
Maloperation judge module, be used for according to the displacement of described gravity sensing event, judge whether described gravity sensing event is maloperation, in the time that definite described gravity sensing event is not maloperation, trigger described determination module according to the displacement of described gravity sensing event, determine the processing mode to current page.
9. device according to claim 7, is characterized in that, described determination module comprises: the first judging unit and the first determining unit,
Described the first judging unit, first pre-conditioned for judging that whether the displacement of described gravity sensing event meet;
Described the first determining unit, described first pre-conditioned for determining that when described the first judging unit the displacement of described gravity sensing event meets, determine current page is switched.
10. device according to claim 9, it is characterized in that, described the first determining unit meets described first when pre-conditioned specifically for determine the displacement of described gravity sensing event when described the first judging unit, according to the moving direction of described gravity sensing event, determine current page is carried out switching accordingly with described moving direction.
11. devices according to claim 9, is characterized in that, described determination module also comprises: the second determining unit, and described first pre-conditioned for not meeting when the displacement of described gravity sensing event, determine and described current page is not processed;
Or,
Described determination module also comprises: the second judging unit and the second determining unit,
Described the second judging unit, second pre-conditioned for judging that whether the displacement of described gravity sensing event meet;
Described the second determining unit, pre-conditioned for meet second when the displacement of described gravity sensing event, determine described current page is slided, the displacement of described gravity sensing event does not meet second pre-conditioned, determines and described current page is not processed.
12. devices according to claim 11, it is characterized in that, described the second determining unit meets second pre-conditioned specifically for the displacement of described gravity sensing event, according to the moving direction of described gravity sensing event and displacement, determine described current page is slided accordingly.
CN201210566605.8A 2012-12-24 2012-12-24 page processing method and device Active CN103885685B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210566605.8A CN103885685B (en) 2012-12-24 2012-12-24 page processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210566605.8A CN103885685B (en) 2012-12-24 2012-12-24 page processing method and device

Publications (2)

Publication Number Publication Date
CN103885685A true CN103885685A (en) 2014-06-25
CN103885685B CN103885685B (en) 2017-12-15

Family

ID=50954610

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210566605.8A Active CN103885685B (en) 2012-12-24 2012-12-24 page processing method and device

Country Status (1)

Country Link
CN (1) CN103885685B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104090944A (en) * 2014-06-30 2014-10-08 北京金山安全软件有限公司 Method and device for switching browser window content
CN105677343A (en) * 2016-01-04 2016-06-15 上海斐讯数据通信技术有限公司 Mobile terminal convenient operation method and mobile terminal
CN106125905A (en) * 2016-06-13 2016-11-16 广东小天才科技有限公司 One listens writing method and equipment, system
CN108156323A (en) * 2017-12-28 2018-06-12 上海传英信息技术有限公司 A kind of page switching method of intelligent terminal and page layout switch system
CN108710305A (en) * 2018-05-24 2018-10-26 广东美的制冷设备有限公司 The control interface methods of exhibiting and device of household appliance
CN109753146A (en) * 2018-05-11 2019-05-14 北京字节跳动网络技术有限公司 A kind of method and mobile terminal of mobile terminal starting application
CN109753199A (en) * 2018-06-21 2019-05-14 北京字节跳动网络技术有限公司 A kind of application page methods of exhibiting and mobile terminal
CN109753209A (en) * 2018-06-21 2019-05-14 北京字节跳动网络技术有限公司 A kind of application program launching method, device and equipment
US11262856B2 (en) 2018-05-11 2022-03-01 Beijing Bytedance Network Technology Co., Ltd. Interaction method, device and equipment for operable object

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113760150B (en) * 2021-09-22 2023-05-30 北京字跳网络技术有限公司 Page processing method, device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2378878B (en) * 2001-06-28 2005-10-05 Ubinetics Ltd A handheld display device
CN1804773A (en) * 2005-01-12 2006-07-19 宏达国际电子股份有限公司 Hand-held device
CN1926496A (en) * 2004-03-01 2007-03-07 苹果电脑有限公司 Methods and apparatuses for operating a portable device based on an accelerometer
US7289102B2 (en) * 2000-07-17 2007-10-30 Microsoft Corporation Method and apparatus using multiple sensors in a device with a display
CN101082837A (en) * 2006-05-30 2007-12-05 三星电子株式会社 Method, medium and apparatus browsing images
CN101494691A (en) * 2009-03-06 2009-07-29 深圳华为通信技术有限公司 Terminal and method for adjusting display content

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7289102B2 (en) * 2000-07-17 2007-10-30 Microsoft Corporation Method and apparatus using multiple sensors in a device with a display
GB2378878B (en) * 2001-06-28 2005-10-05 Ubinetics Ltd A handheld display device
CN1926496A (en) * 2004-03-01 2007-03-07 苹果电脑有限公司 Methods and apparatuses for operating a portable device based on an accelerometer
CN1804773A (en) * 2005-01-12 2006-07-19 宏达国际电子股份有限公司 Hand-held device
CN101082837A (en) * 2006-05-30 2007-12-05 三星电子株式会社 Method, medium and apparatus browsing images
CN101494691A (en) * 2009-03-06 2009-07-29 深圳华为通信技术有限公司 Terminal and method for adjusting display content

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104090944A (en) * 2014-06-30 2014-10-08 北京金山安全软件有限公司 Method and device for switching browser window content
CN104090944B (en) * 2014-06-30 2018-09-11 北京金山安全软件有限公司 Method and device for switching browser window content
CN105677343A (en) * 2016-01-04 2016-06-15 上海斐讯数据通信技术有限公司 Mobile terminal convenient operation method and mobile terminal
CN106125905A (en) * 2016-06-13 2016-11-16 广东小天才科技有限公司 One listens writing method and equipment, system
CN108156323A (en) * 2017-12-28 2018-06-12 上海传英信息技术有限公司 A kind of page switching method of intelligent terminal and page layout switch system
CN109753146A (en) * 2018-05-11 2019-05-14 北京字节跳动网络技术有限公司 A kind of method and mobile terminal of mobile terminal starting application
CN109753146B (en) * 2018-05-11 2020-07-03 北京字节跳动网络技术有限公司 Method for starting application by mobile terminal and mobile terminal
US11262856B2 (en) 2018-05-11 2022-03-01 Beijing Bytedance Network Technology Co., Ltd. Interaction method, device and equipment for operable object
CN108710305A (en) * 2018-05-24 2018-10-26 广东美的制冷设备有限公司 The control interface methods of exhibiting and device of household appliance
CN109753199A (en) * 2018-06-21 2019-05-14 北京字节跳动网络技术有限公司 A kind of application page methods of exhibiting and mobile terminal
CN109753209A (en) * 2018-06-21 2019-05-14 北京字节跳动网络技术有限公司 A kind of application program launching method, device and equipment
WO2019242457A1 (en) * 2018-06-21 2019-12-26 北京字节跳动网络技术有限公司 Application page displaying method and mobile terminal
US11126276B2 (en) 2018-06-21 2021-09-21 Beijing Bytedance Network Technology Co., Ltd. Method, device and equipment for launching an application

Also Published As

Publication number Publication date
CN103885685B (en) 2017-12-15

Similar Documents

Publication Publication Date Title
CN103885685A (en) Method and device for processing pages
CN107077197B (en) 3D visualization map
KR101970208B1 (en) Using clamping to modify scrolling
JP6132644B2 (en) Information processing apparatus, display control method, computer program, and storage medium
CN103941875B (en) A kind of page turning method, device and terminal
US20120176322A1 (en) Systems and methods to present multiple frames on a touch screen
JP5846857B2 (en) Portable information terminal and electronic content display method
EP3696653A1 (en) Method for controlling display of multiple objects depending on input related to operation of mobile terminal, and mobile terminal therefor
KR20170041219A (en) Hover-based interaction with rendered content
CN101751195A (en) Method and device for controlling move event on resistive touch screen
CN110727496B (en) Layout method and device of graphical user interface, electronic equipment and storage medium
JP2015146177A (en) input device
JP5871937B2 (en) Information processing apparatus, display control method, program, and information storage medium
CN103279298A (en) Method for terminal single-hand operation and terminal
CN102117165A (en) Touch input processing method and mobile terminal
CN106527915A (en) Information processing method and electronic equipment
CA2749620A1 (en) Method and apparatus for browsing an electronic book on a touch screen display
CN103853476A (en) Information processing method and electronic equipment
CN104182144A (en) Mobile terminal interface browsing method and system
CN111679767B (en) Window expansion method and associated electronic device
US20120159319A1 (en) Method for simulating a page turn in an electronic document
CN104025007A (en) Detecting a first and a second touch to associate a data file with a graphical data object
CN103399662A (en) Method, system and mobile terminal for reporting coordinate incident of touch screen
US9588603B2 (en) Information processing device
US20120032984A1 (en) Data browsing systems and methods with at least one sensor, and computer program products thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant