WO2015131574A1 - 一种终端的页面移动方法、装置及终端 - Google Patents

一种终端的页面移动方法、装置及终端 Download PDF

Info

Publication number
WO2015131574A1
WO2015131574A1 PCT/CN2014/092399 CN2014092399W WO2015131574A1 WO 2015131574 A1 WO2015131574 A1 WO 2015131574A1 CN 2014092399 W CN2014092399 W CN 2014092399W WO 2015131574 A1 WO2015131574 A1 WO 2015131574A1
Authority
WO
WIPO (PCT)
Prior art keywords
drag
page
trajectory
track
difference
Prior art date
Application number
PCT/CN2014/092399
Other languages
English (en)
French (fr)
Inventor
蒋志峰
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2015131574A1 publication Critical patent/WO2015131574A1/zh

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/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/0486Drag-and-drop
    • 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/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0483Interaction with page-structured environments, e.g. book metaphor
    • 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
    • G06F3/04883Interaction 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 for inputting data by handwriting, e.g. gesture or text

Definitions

  • the present invention relates to, but is not limited to, the field of mobile communication technologies, and in particular, to a page moving method, device and terminal of a terminal.
  • the embodiment of the invention provides a method for loading a page of a terminal, a device and a terminal, which can realize a pull-down hover of a display page of the mobile terminal, and is convenient for the user to operate with one hand.
  • a method for moving a page of a terminal comprising:
  • the page is moved to a corresponding position of the trajectory end position.
  • the determining that the trajectory direction of the drag instruction or the initial direction of the trajectory of the drag command and the horizontal direction is greater than a predetermined angle value includes:
  • the preset position is a position on the track that is spaced apart from the start position by a predetermined pixel in a horizontal or vertical direction.
  • moving the page to a corresponding position of the end position of the track comprises:
  • the method further includes: determining the trajectory when determining that a trajectory direction of the drag instruction or an initial angle of a trajectory of the drag instruction and a horizontal direction is less than or equal to a predetermined angle value Whether the drag horizontal distance is greater than the predetermined position value,
  • the dragged page is rebounded to the display page and display position before the drag.
  • moving the page to the corresponding position of the end position of the track further includes:
  • the page When there is a gap between the corresponding position of the page moving to the end position and the alignment boundary of the icon of the page, the page stays displayed at a position aligned with the icon of the page.
  • a page moving device for a terminal comprising:
  • An instruction module configured to receive a drag instruction
  • a trajectory module configured to acquire a trajectory of the drag command
  • a moving module configured to move the page to the end of the trajectory when determining a trajectory direction of the drag command or an angle between a start direction of the trajectory of the drag command and a horizontal direction is greater than a predetermined angle value The corresponding location of the location.
  • the mobile module includes:
  • a first subtractor configured to respectively calculate a difference between an abscissa of a start position and an end position of the track and a difference between a start position of the track and an ordinate of the end position
  • a first divider configured to obtain an angle between a trajectory direction of the drag command and a horizontal direction according to a ratio of a difference between the ordinate and a difference of the abscissa;
  • a second subtractor configured to separately calculate a difference between a starting position of the track and an abscissa of the preset position and a difference between a starting position of the track and an ordinate of the preset position; a position is a position on the track that is spaced apart from the starting position by a predetermined pixel in a lateral or longitudinal direction;
  • a second divider configured to obtain an angle between a starting direction and a horizontal direction of the drag command according to a ratio of a difference between the ordinate and a difference of the abscissa;
  • the mobile module includes:
  • a calculating unit configured to calculate a drag vertical distance and a drag horizontal distance of the track according to a start position and an end position of the track;
  • a drag unit configured to move the page in the horizontal direction by the drag horizontal distance, and move the page in the vertical direction by the drag vertical distance.
  • the device further includes a form change module and a rebound module,
  • the page changing module is configured to set an angle between a start direction of the track of the drag command or a start direction of the drag command and a horizontal direction to be less than or equal to a predetermined angle value, and a drag level of the track When the distance is greater than the predetermined position value, the next page of the drag direction is displayed; or,
  • Is set to be in a direction of a track of the drag command or an angle between a start direction of the track of the drag command and a horizontal direction is less than or equal to a predetermined angle value, and the drag duration of the track is less than a predetermined time value , showing the next page in the drag direction;
  • the rebound module is configured to set an angle between a start direction of the track of the drag command or a start direction of the drag command and a horizontal direction to be less than or equal to a predetermined angle value, and a drag level of the track When the distance is less than or equal to the predetermined position value, the dragged page is rebounded to the display page and the display position before the drag; or
  • the angle between the start direction of the track of the drag command or the start direction of the drag command and the horizontal direction is less than or equal to a predetermined angle value, and the drag duration of the track is greater than or equal to a predetermined time.
  • the mobile module further includes:
  • An adjustment unit configured to rebound the display content of the page being moved in a horizontal and/or vertical direction
  • the page When there is a gap between the corresponding position of the page moving to the end position and the alignment boundary of the icon of the page, the page stays displayed at a position aligned with the icon of the page.
  • a terminal comprising the page moving device described above.
  • the embodiment of the invention further provides a computer program, comprising program instructions, when the program instruction is executed by the terminal, enabling the terminal to perform the method described above.
  • An embodiment of the invention is a computer readable storage medium carrying the computer program.
  • the page moving method, device and device of the embodiment of the invention are suitable for single-handed operation of a large-screen mobile phone, and can be seamlessly applied to normal operation and one-hand operation, and is very useful. And it can be compatible with rebound animation and other animation effects, and has a good operational interest.
  • FIG. 1 is a flowchart of a method for moving a page of a terminal according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of a page moving apparatus of a terminal according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram showing an original display of a terminal page icon according to Embodiment 1 of the present invention.
  • FIG. 4 is a schematic diagram showing display of a terminal page icon after being dragged according to Embodiment 1 of the present invention
  • FIG. 5 is a schematic diagram showing an original display of a terminal page icon according to Embodiment 2 of the present invention.
  • FIG. 6 is a schematic diagram showing a page turning display of a terminal page icon according to Embodiment 2 of the present invention.
  • FIG. 7 is a schematic diagram showing an original display of a terminal page icon according to Embodiment 3 of the present invention.
  • FIG. 8 is a schematic diagram of a rebound display of a terminal page icon according to Embodiment 3 of the present invention.
  • an embodiment of the present invention provides a method for moving a page of a terminal, including:
  • step C determining whether the trajectory direction of the command or the initial direction of the trajectory of the command and the horizontal direction is greater than a predetermined angle value, and if so, executing step D; if not, executing step E;
  • the page to be dragged is rebounded to the display page and the display position before the drag.
  • step C may include:
  • the preset position is a position on the track that is spaced apart from the start position by a predetermined pixel in a horizontal or vertical direction.
  • Step D can include:
  • step D may further include:
  • the display content of the page to be moved is rebounded horizontally and/or vertically.
  • step D may further include:
  • the page When there is a gap between the corresponding position of the page moving to the end position and the alignment boundary of the icon of the page, the page stays displayed at a position aligned with the icon of the page.
  • an embodiment of the present invention further provides a page moving apparatus for a terminal, including:
  • An instruction module configured to receive a drag instruction
  • a trajectory module configured to acquire a trajectory of the instruction
  • a moving module configured to move the page to a corresponding position of the end position of the trajectory when determining an trajectory direction of the command or an angle between a starting direction of the trajectory of the command and a horizontal direction is greater than a predetermined angle value .
  • a page changing module configured to set an angle between a starting angle of the command or a starting angle of the command and the horizontal direction to be less than or equal to a predetermined angle value, and the dragging horizontal distance of the track is greater than a predetermined position value When the next page of the drag direction is displayed; or,
  • a rebound module configured to set an angle between a starting direction of the command or a starting direction of the command and the horizontal direction to be less than or equal to a predetermined angle value, and the dragging horizontal distance of the track is less than or equal to a predetermined
  • the mobile module includes:
  • a first subtractor configured to respectively calculate a difference between an abscissa of a start position and an end position of the track and a difference between a start position of the track and an ordinate of the end position
  • a first divider configured to obtain an angle between a trajectory direction of the drag command and a horizontal direction according to a ratio of a difference between the ordinate and a difference of the abscissa;
  • a second subtractor configured to separately calculate a difference between a starting position of the track and an abscissa of the preset position and a difference between a starting position of the track and an ordinate of the preset position; a position is a position on the track that is spaced apart from the starting position by a predetermined pixel in a lateral or longitudinal direction;
  • a second divider configured to obtain an angle between a starting direction and a horizontal direction of the drag command according to a ratio of a difference between the ordinate and a difference of the abscissa;
  • a calculating unit configured to calculate a drag vertical distance and a drag horizontal distance of the track according to a start position and an end position of the track;
  • a drag unit configured to move the page in the horizontal direction by the drag horizontal distance, and move the page in the vertical direction by the drag vertical distance.
  • the mobile module further includes:
  • An adjustment unit configured to rebound the display content of the page being moved in a horizontal and/or vertical direction
  • the page When there is a gap between the corresponding position of the page moving to the end position and the alignment boundary of the icon of the page, the page stays displayed at a position aligned with the icon of the page.
  • the embodiments of the present invention may utilize modules already existing in the existing terminal, such as an instruction module, a rebound module, or may be improved on the basis of modules already existing in the existing terminal, such as an adjustment unit.
  • the method and apparatus of the embodiments of the present invention may further set to restore the original display position if the user exceeds a certain set time, such as 10 seconds.
  • the drag track is at an angle greater than 45 degrees from the horizontal line.
  • the icon layout of Figure 3 is the layout before the un-drag. If you drag according to the direction of the arrow in Figure 3, since the angle of the drag track and the horizontal line is greater than 45 degrees, the display effect of Figure 4 after the end of the drag, so that Drag the app D in the upper right corner to the position of the better operation.
  • the speed of the quick slide or drag is relatively large, and the angle between the drag track and the horizontal line is less than 45 degrees.
  • Drag at a short distance or slow speed and the angle between the drag track and the horizontal line is less than 45 degrees.
  • all or part of the steps of the above embodiments may also be implemented using an integrated circuit.
  • the steps may be separately fabricated into individual integrated circuit modules, or a plurality of modules or steps may be fabricated into a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
  • each device/function module/functional unit in the above embodiment When each device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium.
  • the above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
  • the embodiment of the invention can be applied to the normal operation and the one-hand operation seamlessly, and can also be compatible with animation effects such as rebound, and has better operation fun.

Landscapes

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

Abstract

一种终端的页面移动方法、装置及终端,涉及移动通信技术领域,包括:接收拖动指令;获取所述指令的轨迹;在确定所述指令的轨迹方向或者所述指令的轨迹的起始方向与水平方向的夹角大于预定角度值时,将所述页面移动到所述轨迹结束位置的对应位置。

Description

一种终端的页面移动方法、装置及终端 技术领域
本发明涉及但不限于移动通信技术领域,具体涉及一种终端的页面移动方法、装置及终端。
背景技术
目前,手机显示屏幕向越来越大的方向发展,iphone6也推出更大的4.7寸和5.5寸手机。这种大尺寸的手机显示屏幕提升了用户体验。但是,对于采用大尺寸显示屏幕的移动设备来说,用户单手持拿移动设备时无法点击窗口中的所有图标。例如当用户单手持拿这种大尺寸显示屏幕的手机时,用户无法单手触到手机显示屏幕上窗口中的所有图标,例如右手持拿手机时,右手手指往往无法触到手机显示屏幕左上角的图标;或者,左手持拿手机时,左手手指往往无法触到手机显示屏幕右上角的图标,造成使用不方便。
发明内容
本发明实施例提供一种终端的页面移动方法、装及终端置,能实现移动终端显示页面的下拉悬停,方便用户单手操作。
一种终端的页面移动方法,包括:
接收拖动指令;
获取所述拖动指令的轨迹;
在确定所述拖动指令的轨迹方向或者所述拖动指令的轨迹的起始方向与水平方向的夹角大于预定角度值时,将所述页面移动到所述轨迹结束位置的对应位置。
可选地,所述确定所述拖动指令的轨迹方向或者所述拖动指令的轨迹的起始方向与水平方向的夹角大于预定角度值包括:
分别计算所述轨迹的起始位置与结束位置的横坐标的差值和所述轨迹的起始位置与结束位置的纵坐标的差值,根据所述纵坐标的差值与所述横坐标 的差值的比值得到所述拖动指令的轨迹方向与水平方向的夹角;
或者,
分别计算所述轨迹的起始位置与预设位置的横坐标的差值和所述轨迹的起始位置与预设位置的纵坐标的差值,根据所述纵坐标的差值与所述横坐标的差值的比值得到所述拖动指令的起始方向与水平方向的夹角;所述预设位置为所述轨迹上与所述起始位置横向或者纵向间隔预定像素的位置。
可选地,将所述页面移动到所述轨迹结束位置的对应位置包括:
根据所述轨迹的起始位置与结束位置,计算所述轨迹的拖动垂直距离和拖动水平距离,将所述页面沿水平方向移动所述拖动水平距离,将所述页面沿竖直方向移动所述拖动垂直距离。
可选地,所述方法还包括:在确定所述拖动指令的轨迹方向或者所述拖动指令的轨迹的起始方向与水平方向的夹角小于或者等于预定角度值时,判断所述轨迹的拖动水平距离是否大于预定位置值,
如果是,则显示拖动方向的下一个页面;
若否,则将被拖动的页面回弹到拖动前的显示页面及显示位置。
可选地,将所述页面移动到所述轨迹结束位置的对应位置还包括:
将被移动的所述页面的显示内容向水平和/或竖直方向回弹;
和/或,
当所述页面移动到所述结束位置的令对应的位置与所述页面的图标的对齐边界之间存在间隙时,则将所述页面停留显示与所述页面的图标对齐的位置。
一种终端的页面移动装置,包括:
指令模块,其设置为接收拖动指令;
轨迹模块,其设置为获取所述拖动指令的轨迹;以及
移动模块,其设置为在确定所述拖动指令的轨迹方向或者所述拖动指令的轨迹的起始方向与水平方向的夹角大于预定角度值时,将所述页面移动到所述轨迹结束位置的对应位置。
可选地,所述移动模块包括:
第一减法器,其设置为分别计算所述轨迹的起始位置与结束位置的横坐标的差值和所述轨迹的起始位置与结束位置的纵坐标的差值;
第一除法器,其设置为根据所述纵坐标的差值与所述横坐标的差值的比值得到所述拖动指令的轨迹方向与水平方向的夹角;
或者,
第二减法器,其设置为分别计算所述轨迹的起始位置与预设位置的横坐标的差值和所述轨迹的起始位置与预设位置的纵坐标的差值;所述预设位置为所述轨迹上与所述起始位置横向或者纵向间隔预定像素的位置;
第二除法器,其设置为根据所述纵坐标的差值与所述横坐标的差值的比值得到所述拖动指令的起始方向与水平方向的夹角;
可选地,所述移动模块包括:
计算单元,其设置为根据所述轨迹的起始位置与结束位置,计算所述轨迹的拖动垂直距离和拖动水平距离;
拖动单元,其设置为将所述页面沿水平方向移动所述拖动水平距离,将所述页面沿竖直方向移动所述拖动垂直距离。
可选地,所述装置还包括换页模块和回弹模块,
所述换页模块,设置为在所述拖动指令的轨迹方向或者所述拖动指令的轨迹的起始方向与水平方向的夹角小于或者等于预定角度值,并且所述轨迹的拖动水平距离大于预定位置值时,显示拖动方向的下一个页面;或者,
设置为在所述拖动指令的轨迹方向或者所述拖动指令的轨迹的起始方向与水平方向的夹角小于或者等于预定角度值,并且所述轨迹的拖动持续时间小于预定时间值时,显示拖动方向的下一个页面;
所述回弹模块,设置为在所述拖动指令的轨迹方向或者所述拖动指令的轨迹的起始方向与水平方向的夹角小于或者等于预定角度值,并且所述轨迹的拖动水平距离小于或者等于预定位置值时,将被拖动的页面回弹到拖动前的显示页面及显示位置;或者,
设置为在所述拖动指令的轨迹方向或者所述拖动指令的轨迹的起始方向与水平方向的夹角小于或者等于预定角度值,并且所述轨迹的拖动持续时间大于或者等于预定时间值时,将被拖动的页面回弹到拖动前的显示页面及显示位置。
可选地,所述移动模块还包括:
调整单元,其设置为将被移动的所述页面的显示内容向水平和/或竖直方向回弹;
和/或,
当所述页面移动到所述结束位置的令对应的位置与所述页面的图标的对齐边界之间存在间隙时,则将所述页面停留显示与所述页面的图标对齐的位置。
一种终端,包括上面所述的页面移动装置。
本发明实施例还提供一种计算机程序,包括程序指令,当该程序指令被终端执行时,使得该终端可执行上面所述的方法。
本发明实施例一种载有所述计算机程序的计算机可读存储介质。
本发明实施例的页面移动方法、装置及装置,适合单手操作大屏手机,能无缝的适用正常操作和单手操作,很有使用价值。并且可以兼容回弹等动画效果,有较好的操作趣味性。
附图概述
图1是本发明实施例的终端的页面移动方法的流程图;
图2是本发明实施例的终端的页面移动装置的结构示意图;
图3是本发明实施例一的终端页面图标原始显示示意图;
图4是本发明实施例一的终端页面图标拖动后显示示意图;
图5是本发明实施例二的终端页面图标原始显示示意图;
图6是本发明实施例二的终端页面图标翻页显示示意图;
图7是本发明实施例三的终端页面图标原始显示示意图;
图8是本发明实施例三的终端页面图标回弹显示示意图。
本发明的较佳实施方式
下面结合附图对本发明的实施例进行说明,需要说明的是,在不冲突的情况下,本申请中的实施例和实施例中的特征可以相互任意组合。
如图1所示,本发明实施例提供一种终端的页面移动方法,包括:
A、接收拖动指令;
B、获取所述指令的轨迹;
C、判断所述指令的轨迹方向或者所述指令的轨迹的起始方向与水平方向的夹角是否大于预定角度值,如果是,则执行步骤D;如果否,则执行步骤E;
D、将所述页面移动到所述轨迹结束位置的对应位置;
E、判断所述轨迹的拖动水平距离是否大于预定位置值,如果是,则执行步骤F;如果否,则执行步骤G;
F、显示拖动方向的下一个页面。
G、将被拖动的页面回弹到拖动前的显示页面及显示位置。
其中,步骤C可以包括:
分别计算所述轨迹的起始位置与结束位置的横坐标的差值和所述轨迹的起始位置与结束位置的纵坐标的差值,根据所述纵坐标的差值与所述横坐标的差值的比值得到所述拖动指令的轨迹方向与水平方向的夹角;
或者,
分别计算所述轨迹的起始位置与预设位置的横坐标的差值和所述轨迹的起始位置与预设位置的纵坐标的差值,根据所述纵坐标的差值与所述横坐标的差值的比值得到所述拖动指令的起始方向与水平方向的夹角;所述预设位置为所述轨迹上与所述起始位置横向或者纵向间隔预定像素的位置。
步骤D可以包括:
根据所述轨迹的起始位置与结束位置,计算所述轨迹的拖动垂直距离和拖动水平距离,将所述页面沿水平方向移动所述拖动水平距离,将所述页面 沿竖直方向移动所述拖动垂直距离。
可选地,步骤D还可以包括:
将被移动的所述页面的显示内容向水平和/或竖直方向回弹。
可选地,步骤D还可以包括:
当所述页面移动到所述结束位置的令对应的位置与所述页面的图标的对齐边界之间存在间隙时,则将所述页面停留显示与所述页面的图标对齐的位置。
如图2所示,本发明实施例还提供一种终端的页面移动装置,包括:
指令模块,其设置为接收拖动指令;
轨迹模块,其设置为获取所述指令的轨迹;
移动模块,其设置为在确定所述指令的轨迹方向或者所述指令的轨迹的起始方向与水平方向的夹角大于预定角度值时,将所述页面移动到所述轨迹结束位置的对应位置。
还可以包括:
换页模块,其设置为在所述指令的轨迹方向或者所述指令的轨迹的起始角度与水平方向的夹角小于或者等于预定角度值,并且所述轨迹的拖动水平距离大于预定位置值时,显示拖动方向的下一个页面;或者,
在所述指令的轨迹方向或者所述指令的轨迹的起始方向与水平方向的夹角小于或者等于预定角度值,并且所述轨迹的拖动持续时间小于预定时间值时,显示拖动方向的下一个页面;
回弹模块,其设置为在所述指令的轨迹方向或者所述指令的轨迹的起始方向与水平方向的夹角小于或者等于预定角度值,并且所述轨迹的拖动水平距离小于或者等于预定位置值时,将被拖动的页面回弹到拖动前的显示页面及显示位置;或者,
在所述指令的轨迹方向或者所述指令的轨迹的起始方向与水平方向的夹角小于或者等于预定角度值,并且所述轨迹的拖动持续时间大于或者等于预定时间值时,将被拖动的页面回弹到拖动前的显示页面及显示位置。
可选地,所述移动模块包括:
第一减法器,其设置为分别计算所述轨迹的起始位置与结束位置的横坐标的差值和所述轨迹的起始位置与结束位置的纵坐标的差值;
第一除法器,其设置为根据所述纵坐标的差值与所述横坐标的差值的比值得到所述拖动指令的轨迹方向与水平方向的夹角;
或者,
第二减法器,其设置为分别计算所述轨迹的起始位置与预设位置的横坐标的差值和所述轨迹的起始位置与预设位置的纵坐标的差值;所述预设位置为所述轨迹上与所述起始位置横向或者纵向间隔预定像素的位置;
第二除法器,其设置为根据所述纵坐标的差值与所述横坐标的差值的比值得到所述拖动指令的起始方向与水平方向的夹角;
计算单元,其设置为根据所述轨迹的起始位置与结束位置,计算所述轨迹的拖动垂直距离和拖动水平距离;
拖动单元,其设置为将所述页面沿水平方向移动所述拖动水平距离,将所述页面沿竖直方向移动所述拖动垂直距离。
所述移动模块还包括:
调整单元,其设置为将被移动的所述页面的显示内容向水平和/或竖直方向回弹;
和/或,
当所述页面移动到所述结束位置的令对应的位置与所述页面的图标的对齐边界之间存在间隙时,则将所述页面停留显示与所述页面的图标对齐的位置。
本发明实施例可以利用现有终端中已经存在的模块,例如指令模块、回弹模块,也可以在现有终端中已经存在的模块的基础上改进,例如调整单元。
本发明实施例的方法和装置还可以设定如果用户超过某一设定时间,比如10秒,则恢复原始显示位置。
应用示例一
拖动轨迹与水平线夹角大于45度。
如图3的图标布局是未拖动前的布局,如果按图3中箭头方向拖动,由于拖动轨迹与水平线的角度大于45度,则拖动结束后为图4的显示效果,这样原来位于右上角的应用D拖动到比较好操作的位置。
应用示例二
快速滑动或拖动距离比较大,拖动轨迹与水平线夹角小于45度。
如图5中实线箭头方向所示,这样拖动的效果是翻页,显示效果为图6。
由于拖动轨迹有向上的位移,显示的页面随拖动轨迹向上移动,在拖动释放之后,显示的页面向下有一个回弹的动画,回弹的轨迹如图5中虚线箭头,拖动后的效果如图6。
应用示三
短距离或慢速拖动,拖动轨迹与水平线夹角小于45度。
如图7中实现箭头方向所示,如此拖动后再释放,其效果是页面显示回弹,回弹轨迹如图7虚线箭头所示,回弹后的效果如图8。
虽然本发明所揭示的实施方式如上,但其内容只是为了便于理解本发明的技术方案而采用的实施方式,并非用于限定本发明。任何本发明所属技术领域内的技术人员,在不脱离本发明所揭示的核心技术方案的前提下,可以在实施的形式和细节上做任何修改与变化,但本发明所限定的保护范围,仍须以所附的权利要求书限定的范围为准。
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(如***、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这 些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。
上述实施例中的各装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。
上述实施例中的各装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。
任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求所述的保护范围为准。
工业实用性
本发明实施例可以无缝的适用正常操作和单手操作,还可以兼容回弹等动画效果,有较好的操作趣味性。

Claims (13)

  1. 一种终端的页面移动方法,包括:
    接收拖动指令;
    获取所述拖动指令的轨迹;
    在确定所述拖动指令的轨迹方向或者所述拖动指令的轨迹的起始方向与水平方向的夹角大于预定角度值时,将所述页面移动到所述轨迹结束位置的对应位置。
  2. 如权利要求1所述的方法,其中:所述确定所述拖动指令的轨迹方向或者所述拖动指令的轨迹的起始方向与水平方向的夹角大于预定角度值包括:
    分别计算所述轨迹的起始位置与结束位置的横坐标的差值和所述轨迹的起始位置与结束位置的纵坐标的差值,根据所述纵坐标的差值与所述横坐标的差值的比值得到所述拖动指令的轨迹方向与水平方向的夹角;
    或者,
    分别计算所述轨迹的起始位置与预设位置的横坐标的差值和所述轨迹的起始位置与预设位置的纵坐标的差值,根据所述纵坐标的差值与所述横坐标的差值的比值得到所述拖动指令的起始方向与水平方向的夹角;所述预设位置为所述轨迹上与所述起始位置横向或者纵向间隔预定像素的位置。
  3. 如权利要求1所述的方法,其中:将所述页面移动到所述轨迹结束位置的对应位置包括:
    根据所述轨迹的起始位置与结束位置,计算所述轨迹的拖动垂直距离和拖动水平距离,将所述页面沿水平方向移动所述拖动水平距离,将所述页面沿竖直方向移动所述拖动垂直距离。
  4. 如权利要求1所述的方法,所述方法还包括:在确定所述拖动指令的轨迹方向或者所述拖动指令的轨迹的起始方向与水平方向的夹角小于或者等于预定角度值时,判断所述轨迹的拖动水平距离是否大于预定位置值,
    如果是,则显示拖动方向的下一个页面;
    若否,则将被拖动的页面回弹到拖动前的显示页面及显示位置。
  5. 如权利要求3所述的方法,其中:将所述页面移动到所述轨迹结束位置的对应位置还包括:
    将被移动的所述页面的显示内容向水平和/或竖直方向回弹;
    和/或,
    当所述页面移动到所述结束位置的令对应的位置与所述页面的图标的对齐边界之间存在间隙时,则将所述页面停留显示与所述页面的图标对齐的位置。
  6. 一种终端的页面移动装置,包括:
    指令模块,其设置为接收拖动指令;
    轨迹模块,其设置为获取所述拖动指令的轨迹;以及
    移动模块,其设置为在确定所述拖动指令的轨迹方向或者所述拖动指令的轨迹的起始方向与水平方向的夹角大于预定角度值时,将所述页面移动到所述轨迹结束位置的对应位置。
  7. 如权利要求6所述的装置,其中:所述移动模块包括:
    第一减法器,其设置为分别计算所述轨迹的起始位置与结束位置的横坐标的差值和所述轨迹的起始位置与结束位置的纵坐标的差值;
    第一除法器,其设置为根据所述纵坐标的差值与所述横坐标的差值的比值得到所述拖动指令的轨迹方向与水平方向的夹角;
    或者,
    第二减法器,其设置为分别计算所述轨迹的起始位置与预设位置的横坐标的差值和所述轨迹的起始位置与预设位置的纵坐标的差值;所述预设位置为所述轨迹上与所述起始位置横向或者纵向间隔预定像素的位置;
    第二除法器,其设置为根据所述纵坐标的差值与所述横坐标的差值的比值得到所述拖动指令的起始方向与水平方向的夹角;
  8. 如权利要求6所述的装置,其中:所述移动模块包括:
    计算单元,其设置为根据所述轨迹的起始位置与结束位置,计算所述轨 迹的拖动垂直距离和拖动水平距离;
    拖动单元,其设置为将所述页面沿水平方向移动所述拖动水平距离,将所述页面沿竖直方向移动所述拖动垂直距离。
  9. 如权利要求6所述的装置,还包括换页模块和回弹模块,
    所述换页模块,设置为在所述拖动指令的轨迹方向或者所述拖动指令的轨迹的起始方向与水平方向的夹角小于或者等于预定角度值,并且所述轨迹的拖动水平距离大于预定位置值时,显示拖动方向的下一个页面;或者,
    设置为在所述拖动指令的轨迹方向或者所述拖动指令的轨迹的起始方向与水平方向的夹角小于或者等于预定角度值,并且所述轨迹的拖动持续时间小于预定时间值时,显示拖动方向的下一个页面;
    所述回弹模块,设置为在所述拖动指令的轨迹方向或者所述拖动指令的轨迹的起始方向与水平方向的夹角小于或者等于预定角度值,并且所述轨迹的拖动水平距离小于或者等于预定位置值时,将被拖动的页面回弹到拖动前的显示页面及显示位置;或者,
    设置为在所述拖动指令的轨迹方向或者所述拖动指令的轨迹的起始方向与水平方向的夹角小于或者等于预定角度值,并且所述轨迹的拖动持续时间大于或者等于预定时间值时,将被拖动的页面回弹到拖动前的显示页面及显示位置。
  10. 如权利要求8所述的装置,所述移动模块还包括:
    调整单元,其设置为将被移动的所述页面的显示内容向水平和/或竖直方向回弹;和/或,
    当所述页面移动到所述结束位置的令对应的位置与所述页面的图标的对齐边界之间存在间隙时,则将所述页面停留显示与所述页面的图标对齐的位置。
  11. 一种终端,包括权利要求6至10任一所述的页面移动装置。
  12. 一种计算机程序,包括程序指令,当该程序指令被终端执行时,使得该终端可执行权利要求1-5任一项所述的方法。
  13. 一种载有权利要求12所述计算机程序的计算机可读存储介质。
PCT/CN2014/092399 2014-09-24 2014-11-27 一种终端的页面移动方法、装置及终端 WO2015131574A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410495770.8 2014-09-24
CN201410495770.8A CN105511764A (zh) 2014-09-24 2014-09-24 一种终端的页面移动方法、装置及终端

Publications (1)

Publication Number Publication Date
WO2015131574A1 true WO2015131574A1 (zh) 2015-09-11

Family

ID=54054455

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/092399 WO2015131574A1 (zh) 2014-09-24 2014-11-27 一种终端的页面移动方法、装置及终端

Country Status (2)

Country Link
CN (1) CN105511764A (zh)
WO (1) WO2015131574A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111752649A (zh) * 2019-03-29 2020-10-09 珠海金山办公软件有限公司 页面中图形的布局调整方法、装置、电子设备及存储介质

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107885413A (zh) * 2016-09-30 2018-04-06 法乐第(北京)网络科技有限公司 图标对齐方法及装置
CN109388322B (zh) * 2017-08-02 2022-11-04 腾讯科技(深圳)有限公司 显示数据的方法和装置、存储介质及电子介质
CN110099162B (zh) * 2019-03-18 2021-04-30 努比亚技术有限公司 一种页面显示处理方法及穿戴式设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100231525A1 (en) * 2008-03-10 2010-09-16 Stephen Chen Icon/text interface control method
CN102830914A (zh) * 2012-07-31 2012-12-19 北京三星通信技术研究有限公司 操作终端设备的方法及其设备
CN103135929A (zh) * 2013-01-31 2013-06-05 北京小米科技有限责任公司 控制应用界面移动的方法、装置和终端设备
CN103677496A (zh) * 2012-09-07 2014-03-26 腾讯科技(深圳)有限公司 界面控制方法及控制装置
CN103699289A (zh) * 2013-12-13 2014-04-02 广州华多网络科技有限公司 滑动操作响应方法及装置

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI528230B (zh) * 2012-12-24 2016-04-01 富智康(香港)有限公司 可彎曲式面板的操作控制方法及系統
CN103218117B (zh) * 2013-03-18 2016-04-13 惠州Tcl移动通信有限公司 实现屏幕显示界面平移的方法及电子设备
CN103744589B (zh) * 2013-12-12 2018-07-13 华为终端(东莞)有限公司 一种页面内容的移动方法及装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100231525A1 (en) * 2008-03-10 2010-09-16 Stephen Chen Icon/text interface control method
CN102830914A (zh) * 2012-07-31 2012-12-19 北京三星通信技术研究有限公司 操作终端设备的方法及其设备
CN103677496A (zh) * 2012-09-07 2014-03-26 腾讯科技(深圳)有限公司 界面控制方法及控制装置
CN103135929A (zh) * 2013-01-31 2013-06-05 北京小米科技有限责任公司 控制应用界面移动的方法、装置和终端设备
CN103699289A (zh) * 2013-12-13 2014-04-02 广州华多网络科技有限公司 滑动操作响应方法及装置

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111752649A (zh) * 2019-03-29 2020-10-09 珠海金山办公软件有限公司 页面中图形的布局调整方法、装置、电子设备及存储介质
CN111752649B (zh) * 2019-03-29 2023-12-22 珠海金山办公软件有限公司 页面中图形的布局调整方法、装置、电子设备及存储介质

Also Published As

Publication number Publication date
CN105511764A (zh) 2016-04-20

Similar Documents

Publication Publication Date Title
EP2801020B1 (en) Panning animations of a displayed user interface
RU2701988C2 (ru) Параметрическая инерция и интерфейсы прикладного программирования
CA2892143C (en) Using clamping to modify scrolling
KR102137240B1 (ko) 디스플레이 영역을 조절하기 위한 방법 및 그 방법을 처리하는 전자 장치
JP6272502B2 (ja) 携帯型デバイス上のユーザ操作モードを識別する方法及び携帯型デバイス
WO2016082586A1 (zh) 网页更新方法及装置
US20130346924A1 (en) Touch interactions with a drawing application
US20140059501A1 (en) Screen display control method of electronic device and apparatus therefor
WO2016124122A1 (zh) 一种手持式电子设备图片缩放及播放内容切换的方法及装置
US20150067540A1 (en) Display apparatus, portable device and screen display methods thereof
KR20130097499A (ko) 디스플레이 장치의 화면 스크롤 방법 및 그 장치
WO2015131574A1 (zh) 一种终端的页面移动方法、装置及终端
JP2014135053A (ja) 電子装置のスクロール情報の表示方法及びその装置
WO2015023419A1 (en) Context sensitive actions in response to touch input
WO2017032078A1 (zh) 一种界面控制方法及移动终端
CN103412720A (zh) 处理触控式输入信号的方法及其装置
EP2811391A1 (en) Method for transforming an object based on motion, gestures or breath input and electronic device thereof
WO2015131630A1 (zh) 桌面图标的置换方法及装置
US10877565B2 (en) Method and system for controlling play of multimedia content
CN105320260B (zh) 移动终端的控制方法及移动终端
WO2018046000A1 (zh) 触控操作方法和装置
WO2019242457A1 (zh) 一种应用页面展示方法及移动终端
WO2017113713A1 (zh) 显示界面调整方法及装置
CN106325505A (zh) 基于视点跟踪的控制方法和装置
CN105094514A (zh) 一种终端便捷操作的方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14884316

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14884316

Country of ref document: EP

Kind code of ref document: A1