WO2016107337A1 - 一种界面处理方法和装置 - Google Patents

一种界面处理方法和装置 Download PDF

Info

Publication number
WO2016107337A1
WO2016107337A1 PCT/CN2015/095462 CN2015095462W WO2016107337A1 WO 2016107337 A1 WO2016107337 A1 WO 2016107337A1 CN 2015095462 W CN2015095462 W CN 2015095462W WO 2016107337 A1 WO2016107337 A1 WO 2016107337A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
offset
horizontal
current terminal
interface
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.)
Ceased
Application number
PCT/CN2015/095462
Other languages
English (en)
French (fr)
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.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Publication of WO2016107337A1 publication Critical patent/WO2016107337A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0346Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of the device orientation or free movement in a three-dimensional [3D] space, e.g. 3D mice, 6-DOF [six degrees of freedom] pointers using gyroscopes, accelerometers or tilt-sensors
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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

Definitions

  • the present invention relates to the field of device control technologies, and in particular, to an interface processing method and an interface processing device.
  • the right hand is difficult to click. If the user clicks with one hand, it is easy to cause a mistake, so the other hand is often required to help click and operate. Very troublesome, the operation efficiency is very low.
  • the present invention has been made in order to provide an interface processing method and a corresponding interface processing apparatus that overcome the above problems or at least partially solve or alleviate the above problems.
  • an interface processing method comprising the steps of:
  • the interface of the current terminal is moved according to the size difference and/or the offset.
  • an interface processing apparatus comprising:
  • a detecting module configured to detect an offset of the current terminal in a horizontal position when tilted
  • Read module suitable for reading the screen size of the current terminal
  • a calculation module adapted to calculate a size difference between the screen size and a preset standard screen size
  • a moving module configured to move the interface of the current terminal according to the size difference and/or the offset.
  • a computer program comprising computer readable code, when the computer readable code is run on a computing device, causing the computing device to perform an interface processing method as described above .
  • a computer readable medium wherein the computer program described above is stored.
  • the interface of the current terminal when the terminal is tilted, the interface of the current terminal is moved according to the offset of the horizontal position and the size difference with the standard screen size, and the information of the interface is moved to a more close position, so as to facilitate the user to Handling and other situations, reducing the chance of misoperation, avoiding the use of the other hand to assist the operation, improving the ease of operation and improving the operating efficiency.
  • FIG. 1 is a flow chart showing the steps of an embodiment of an interface processing method according to an embodiment of the present invention
  • FIG. 2 schematically shows an example of a one-hand operation terminal according to an embodiment of the present invention.
  • FIG. 3 is a view schematically showing an example of establishing a coordinate system based on a terminal according to an embodiment of the present invention
  • FIG. 4 is a block diagram showing the structure of an embodiment of an interface processing apparatus according to an embodiment of the present invention.
  • Figure 5 shows schematically a block diagram of a computing device for performing the method according to the invention
  • Fig. 6 schematically shows a storage unit for holding or carrying program code implementing the method according to the invention.
  • FIG. 1 is a flow chart showing the steps of an embodiment of an interface processing method according to an embodiment of the present invention. Specifically, the method may include the following steps:
  • Step 101 Detect an offset of the current position when the current terminal is tilted
  • the current terminal may specifically include a mobile device, such as a mobile phone, a PDA (Personal Digital Assistant), a laptop computer, a palmtop computer, etc., and may also include a fixed device, such as a personal computer, a smart TV, or the like. Etc., the present invention does not limit this.
  • a mobile device such as a mobile phone, a PDA (Personal Digital Assistant), a laptop computer, a palmtop computer, etc.
  • a fixed device such as a personal computer, a smart TV, or the like. Etc., the present invention does not limit this.
  • These terminals can support operating systems such as Android (Android), IOS, Windows Phone, or Windows, and can usually be different applications.
  • Android Android
  • IOS IOS
  • Windows Phone Windows Phone
  • Windows Windows
  • the display manner of the interface can be changed by tilting the terminal to facilitate one-hand operation.
  • step 101 may include the following sub-steps:
  • Sub-step S11 detecting an initial relative position of the current terminal for the horizontal position
  • Sub-step S12 detecting a target relative position of the current terminal for the horizontal position when tilting
  • any time may be set as an initial state, and the relative position of the terminal in the horizontal position of the initial state may be an initial relative position.
  • the initial relative position may include an initial horizontal coordinate and/or an initial vertical coordinate, and the initial horizontal coordinate may be a horizontal coordinate of the terminal in an initial state, and the initial vertical coordinate may be a vertical coordinate when the terminal is in an initial state.
  • the relative position of the terminal in the horizontal position generally changes, and any time in the tilting time can be set as the target state, and the relative position of the target can be obtained by detecting the relative position of the terminal in the target state.
  • the target relative position may include a target horizontal coordinate and/or a target vertical coordinate
  • the initial horizontal coordinate may be a horizontal coordinate when the terminal is in the target state
  • the initial vertical coordinate may be a vertical coordinate when the terminal is in the target state
  • the initial relative position and the target relative position of the current terminal in the horizontal position may be acquired by a sensor such as a gyroscope or a direction sensor (such as a three-axis accelerometer).
  • a sensor such as a gyroscope or a direction sensor (such as a three-axis accelerometer).
  • the sensor When the sensor detects that the displacement of the terminal changes, a corresponding sensor event is generated, and the sensor event is an object, and the object can be obtained by the sensor manager in the framework layer of the terminal, and then the object is sent to the related call.
  • An application that can obtain the amount of displacement change (including the target relative position) generated by the terminal at this moment (ie, the target state) from the object.
  • a coordinate system can be established in the space where the terminal is located, and the coordinate axes of the coordinate system are the X-axis, the Y-axis, and the Z-axis, respectively, and the three-dimensional space formed by the three axes can detect what occurs on the terminal.
  • the coordinate axes of the coordinate system are the X-axis, the Y-axis, and the Z-axis, respectively, and the three-dimensional space formed by the three axes can detect what occurs on the terminal.
  • the relative positions of the X-axis, the Y-axis, and the Z-axis of the terminal in the initial state are recorded as positions (X 0 , Y 0 , Z 0 ).
  • the relative positions of the X-axis, the Y-axis, and the Z-axis of the target state when the terminal is tilted are referred to as positions (X 1 , Y 1 , Z 1 ).
  • the interface can be moved for the level where the X axis and the Y axis are located, and the initial relative position of the terminal is A (X 0 , Y 0 ), X 0 is the initial horizontal coordinate, and Y 0 is the initial vertical coordinate.
  • the relative position of the target is B(X 1 , Y 1 ), X 1 is the target horizontal coordinate, and Y 1 is the target vertical coordinate.
  • Sub-step S13 calculating a difference between the initial relative position and the target relative position to obtain an offset.
  • the offset includes a horizontal offset and a vertical offset; wherein the horizontal offset may indicate an offset of the terminal in a horizontal direction of the horizontal position,
  • the vertical offset can represent the offset of the terminal in the vertical direction of the horizontal position.
  • step S13 may include the following sub-steps:
  • Sub-step S131 calculating a difference between the initial horizontal coordinate and the target horizontal coordinate to obtain a horizontal offset
  • Sub-step S132 calculating a difference between the initial vertical coordinate and the target vertical coordinate to obtain a vertical offset.
  • the change of the horizontal direction and the vertical direction of the terminal in the horizontal position can be captured as a reference of the mobile interface.
  • the offset of the terminal at the initial relative position A(X 0 , Y 0 ) to the target relative position B(X 1 , Y 1 ) is C(X 0 -X 1 , Y 0 -Y 1 ), where (X 0 -X 1 ) The horizontal offset, (Y 0 -Y 1 ) is the vertical offset.
  • the offset has a direction attribute and can indicate the tilt direction.
  • Y 0 is smaller than Y 1 , it may indicate that the upper portion of the terminal is inclined upward and the lower portion of the terminal is inclined downward. Conversely, if Y 0 is larger than Y 1 , it may indicate the terminal. The upper portion is inclined downward, and the lower portion of the terminal is inclined upward;
  • X 0 is smaller than X 1 , it can indicate that the left side of the terminal is tilted upward and the right side of the terminal is tilted downward. Conversely, if X 0 is larger than X 1 , it can indicate that the left side of the terminal is tilted downward, and the right side of the terminal Tilt sideways.
  • step 101 may further include the following sub-steps:
  • Sub-step S15 determining whether the offset is valid; if yes, performing sub-step S16;
  • Sub-step S16 obtaining an offset of the offset direction.
  • the user is usually difficult to be in a stable state, and there is more or less jitter, so that the terminal is slightly tilted, and some continuous offsets can be detected, but these consecutive The offset is not intentional by the user.
  • sub-step S15 may comprise the following sub-steps:
  • Sub-step S151 when at least two tilts in the same direction occur within a preset time period, it is determined that the offset is valid.
  • a time period such as 0.3S, is set in advance. If at least two tilts in the same direction occur in the time period (which can be represented by an offset), the offset can be considered as a user intention. Triggering the interface movement operation is a valid offset and needs to trigger the interface movement operation.
  • Sub-step S152 when the tilt time of the current terminal exceeds a predetermined time, it is determined that the offset amount is valid.
  • a time value such as 0.5 S, is set in advance. If the current terminal tilt time exceeds the time value, the offset may be considered to be caused by the user's intention to trigger the interface movement operation, which is an effective bias. To shift, you need to trigger the interface to move.
  • the foregoing effective judging method is only an example.
  • other effective judging methods may be set according to actual conditions. For example, when the offset exceeds a preset offset threshold, the offset is determined to be effective. The embodiment does not limit this.
  • other effective judging methods may be adopted by those skilled in the art according to actual needs, and the embodiment of the present invention does not limit this.
  • Step 102 Read a screen size of the current terminal.
  • the basic information of the terminal can be detected, and the hardware data of the terminal is acquired, so as to adapt to the characteristics of the current terminal, the interface is moved.
  • getSize if you can use the getSize function to read the pixel size (screen size) of the terminal in the Activity, if there is no getSize function, you can use the getWidth and getHeight tools to read the pixel size (screen size) of the terminal, if not in the Activity. You can use the WINDOW_SERVICE function to get the default value of Display and read the screen size of the terminal.
  • the correspondence between the model number of the terminal and the screen size may be set in advance, the current terminal model number is read, and the screen size corresponding to the model is found.
  • the manner of reading the size of the screen is only used as an example.
  • the manner of the screen size of the other terminal can be set according to the actual situation, which is not limited by the embodiment of the present invention.
  • a person skilled in the art can also adopt other ways of reading the screen size of the terminal according to actual needs, which is not limited in the embodiment of the present invention.
  • step 102 may include the following sub-steps:
  • Sub-step S21 reading the length and/or width of the screen of the current terminal.
  • the hardware data mainly refers to related data of the screen size of the terminal, such as the horizontal width of the screen, the longitudinal length of the screen, the resolution of the screen, and the like.
  • Step 103 Calculate a size difference between the screen size and a preset standard screen size
  • a standard screen size can be preset, and the standard screen size can be a suitable size that can be controlled by a general user, such as 4.3 inches, and the screen size of the current terminal is compared with the standard screen size. , thereby adjusting the proportion of the relative position of the interface movement.
  • the standard screen size may comprise a standard length and/or a standard width
  • the standard length may be the length of the screen for reference
  • the standard width may be the width of the screen for reference
  • a standard screen size of 4.3 inches may have a standard length of 93.6 mm and a standard width of 56.1 mm.
  • step 103 may include the following sub-steps:
  • Sub-step S31 calculating a length difference between the length of the screen of the current terminal and the standard length
  • Sub-step S32 calculating a difference in width between the width of the screen of the current terminal and the standard width.
  • the standard screen ruler may include at least one of a length difference and a width difference.
  • the length and the standard width are respectively recorded as L 0 /W 0
  • the length and width of the current terminal screen are respectively recorded as L/W
  • Step 104 Move an interface of the current terminal according to the size difference value and/or the offset amount.
  • the characteristics of the terminal can be used to move the interface of the current terminal to meet the user's needs.
  • step 104 may include the following sub-steps:
  • Sub-step S41 moving the interface of the front terminal according to the first target speed and/or the first target amplitude
  • first target speed and/or the first target amplitude is proportional to the size difference and/or the offset.
  • the difference in size may be The offset calculates a suitable first target speed, a first target amplitude, to move the interface of the current terminal.
  • the first target speed may be a speed of the mobile interface
  • the first target amplitude may be a shift The amplitude of the moving interface
  • the first target speed of the interface movement, the first target amplitude is proportional to the offset of the terminal, and the size difference, that is, the greater the offset of the terminal movement, the larger the screen difference, the first target speed of the interface movement The larger the larger the first target is.
  • the first target speed may include a first target vertical speed and/or a first target horizontal speed
  • the first target amplitude may include a first target vertical amplitude and/or First target level
  • the first target vertical speed may be the speed of moving the interface in the vertical direction
  • the first target horizontal speed may be the speed of moving the interface in the horizontal direction
  • the first target vertical amplitude may be the amplitude of the moving interface in the vertical direction
  • the first target The horizontal amplitude can be the amplitude of the interface moving in the horizontal direction.
  • the sub-step S41 may include the following sub-steps:
  • Sub-step S411 moving the interface of the current terminal in the horizontal direction according to the first target horizontal speed and/or the first target horizontal amplitude; the first target horizontal speed and/or the first target horizontal amplitude, And the width difference and/or the horizontal offset is proportional;
  • Sub-step S412 moving the interface of the current terminal in the vertical direction according to the first target vertical speed and/or the first mesh length scale; the first target vertical speed and/or the first target vertical amplitude, and The length difference and/or the vertical offset are proportional.
  • the horizontal offset (X 0 -X 1 ) of the horizontal direction may be associated with the width difference W′ of the screen of the terminal
  • the vertical direction (such as the Y axis) may be
  • the vertical offset (Y 0 -Y 1 ) is associated with the length difference L' of the terminal screen to perform the movement of the interface.
  • the first target speed and the first target amplitude may also have a directional attribute, and may indicate a direction of movement.
  • the positions of the upper end and the left side of the screen are in the blind zone range, and it is difficult for the user to operate the blind zone range.
  • the user will naturally extend the right thumb to the left and tilt to the terminal, while the terminal will tilt to the right in the horizontal direction (the right side of the terminal) Low, the left side is high), or the vertical direction is downward (the upper part of the terminal is higher and the lower part is lower).
  • the interface can be moved horizontally to the right and vertically downward to move the information within the blind zone to a position that the user can operate with one hand.
  • step 104 may include the following sub-steps:
  • Sub-step S42 moving the interface of the front terminal according to the preset second target speed and/or the preset second target amplitude.
  • the standard screen size is selected to be a suitable size that can be controlled by one hand by a general user, if the screen size of the current terminal is smaller than the standard screen size, there may be less blind spot positions on the interface, and the preset number may be The interface of the terminal before the second target speed and the second target amplitude are moved.
  • the second target speed may be the speed of the mobile interface, and the second target amplitude may be the amplitude of the mobile interface.
  • the second target speed may include a second target vertical speed and/or a second target horizontal speed
  • the second target amplitude may include a second target vertical amplitude and/or Second target level
  • the second target vertical speed may be the speed of moving the interface in the vertical direction
  • the second target horizontal speed may be the speed of moving the interface in the horizontal direction
  • the second target vertical amplitude may be the amplitude of the moving interface in the vertical direction
  • the second target The horizontal amplitude can be the amplitude of the interface moving in the horizontal direction.
  • the sub-step S42 may include the following sub-steps:
  • Sub-step S421 moving the interface of the current terminal in the horizontal direction according to the preset second target horizontal speed and/or the preset second target horizontal amplitude;
  • Sub-step S422 moving the interface of the current terminal in the vertical direction according to the preset second target vertical speed and/or the preset second mesh length scale.
  • an initial offset may be set, that is, when the terminal is tilted, there is an initial horizontal offset X' in the horizontal movement.
  • the vertical offset Y', the moving speed and the moving amplitude corresponding to the horizontal offset X' and the vertical offset Y' may be fixed and may be the smallest.
  • the interface When the terminal is tilted, the interface may be moved according to the moving speed (second target vertical speed and/or second target horizontal speed), the moving range (second target vertical amplitude, and/or second target horizontal amplitude).
  • step 104 may include the following sub-steps:
  • Sub-step S43 the blank position in the current terminal interface is written into the information of moving out of the screen; the blank position is the position where the information before the movement is located.
  • the information in the interface is moved in a plane. Since the information in the interface generally fills the entire screen, after the information starts to move, it will deviate from the original position. After a message is moved, a blank will appear in the original position. The information will move out of the screen and the user will not be visible.
  • the blank position appearing after the information is moved may be complemented by the information moved out of the screen, and the screen may be complemented. Therefore, at this time, the information of the interface is cyclically scrolled, and the user can increase the gravity acceleration of the tilt of the terminal or increase the angle of the tilt, and the information in the interface can be moved in a circular manner.
  • the blank position that occurs after the information is moved can also be kept in a blank state, which is not limited by the embodiment of the present invention.
  • the interface of the current terminal when the terminal is tilted, the interface of the current terminal is moved according to the offset of the horizontal position and the size difference with the standard screen size, and the information of the interface is moved to a more close position, so as to facilitate the user to Handling and other situations, reducing the chance of misoperation, avoiding the use of the other hand to assist the operation, improving the ease of operation and improving the operating efficiency.
  • the method may further include the following steps:
  • Step 105 When the specified operation event is detected, restore the interface of the current terminal to the position before the movement.
  • the user can restore the interface of the current terminal to the position before the movement by triggering the specified operation event.
  • the specified operation event may include a screen click event, that is, after the interface information is moved, the user completes the operation (such as clicking), and the previously offset interface is restored to the normal position again, that is, the content is reset after the click.
  • the specified operation event may also be other operation events, such as a trigger event of a specified control, and the like, which is not limited by the embodiment of the present invention.
  • FIG. 4 a block diagram of an embodiment of an interface processing apparatus according to an embodiment of the present invention is shown, which may specifically include the following modules:
  • the detecting module 401 is adapted to detect an offset of the horizontal position in the current terminal when tilting
  • the reading module 402 is adapted to read the screen size of the current terminal
  • a calculation module 403 configured to calculate a size difference between the screen size and a preset standard screen size
  • the mobile module 404 is adapted to move the interface of the current terminal according to the size difference value and/or the offset amount.
  • the detecting module 401 is further adapted to:
  • a difference between the initial relative position and the target relative position is calculated to obtain an offset.
  • the initial relative position may include an initial horizontal coordinate and/or an initial vertical coordinate
  • the target relative position may include a target horizontal coordinate and/or a target vertical coordinate
  • the offset may include a horizontal offset and/or a vertical offset
  • the detecting module 401 can also be adapted to:
  • a difference between the initial vertical coordinate and the target vertical coordinate is calculated to obtain a vertical offset.
  • the detecting module 401 is further adapted to:
  • the detecting module 401 is further adapted to:
  • the reading module 402 is further adapted to:
  • the standard screen size includes a standard length and/or a standard width; the calculation module 403 may also be adapted to:
  • the mobile module 404 is further adapted to:
  • first target speed and/or the first target amplitude is proportional to the size difference and/or the offset.
  • the first target speed may include a first target vertical speed and/or a first target horizontal speed
  • the first target amplitude may include a first target vertical amplitude and/or The first target horizontal amplitude
  • the mobile module 404 can also be adapted to:
  • the mobile module 404 is further adapted to:
  • the interface of the front terminal is moved according to the preset second target speed and/or the preset second target amplitude.
  • the second target speed may include a second target vertical speed and/or a second target horizontal speed
  • the second target amplitude may include a second target vertical amplitude and/or Second target level
  • the mobile module 404 can also be adapted to:
  • the interface of the current terminal is moved in the vertical direction according to the preset second target vertical speed and/or the preset second target vertical amplitude.
  • the mobile module 404 is further adapted to:
  • the blank location in the current terminal interface is written to the information removed from the screen; wherein the blank location is the location where the information before the movement is located.
  • the device may further comprise the following modules:
  • the recovery module is adapted to restore the interface of the current terminal to the position before the movement when the specified operation event is detected.
  • the specified operational event can include a screen click event.
  • the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
  • the various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof.
  • a microprocessor or digital signal processor may be used in practice to implement some or all of the functionality of some or all of the components of the interface processing device in accordance with embodiments of the present invention.
  • the invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein.
  • a program implementing the invention may be stored on a computer readable medium or may be in the form of one or more signals. Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
  • Figure 5 illustrates an interface processing computing device, such as an application server, that can implement an interface in accordance with the present invention.
  • the computing device conventionally includes a processor 510 and a computer program product or computer readable medium in the form of a memory 520.
  • the memory 520 may be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read Only Memory), an EPROM, a hard disk, or a ROM.
  • Memory 520 has a storage space 530 that stores program code 531 for performing any of the method steps described above.
  • storage space 530 storing program code may include various program code 531 for implementing various steps in the above methods, respectively.
  • the program code can be read from or written to one or more computer program products.
  • Such computer program products include such as hard drives, compact discs (CDs), memory cards or floppy disks.
  • a program code carrier such as that.
  • Such a computer program product is typically a portable or fixed storage unit such as that shown in FIG.
  • the storage unit may have storage segments, storage spaces, and the like that are similarly arranged to memory 520 in the computing device of FIG.
  • the program code can be compressed, for example, in an appropriate form.
  • the storage unit comprises computer readable code 531 ' for performing the steps of the method according to the invention, ie code that can be read by a processor such as 510, which when executed by the computing device causes the calculation The device performs the various steps in the methods described above.

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

一种界面处理方法和装置 技术领域
本发明涉及设备控制技术领域,尤其涉及一种界面处理方法和一种界面处理装置。
背景技术
随着科技的发展,诸如智能手机、平板电脑等电子设备的广泛普及,现在已经发展到几乎人手一部的程度了,而移动设备在人们的工作、学习、日常交流等各方面的使用率也越来越高,可以说,电子设备是人们生活不可或缺的一部分。
现在的电子设备大多是触控式的电子设备,为了方便用户的阅读和查看,而且电子设备的发展趋势是屏幕越来越大。
当电子设备的屏幕比较大时,用户单手操作变得越来越不方便。
例如,用户右手拿着电子设备,需要在屏幕的左上方进行操作时,右手很难点击到,若用户用单手去点击,容易会出现误操作,因此往往需要另一只手帮忙点击,操作十分麻烦,操作效率很低。
发明内容
鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决或减缓上述问题的一种界面处理方法和相应的一种界面处理装置。
根据本发明的一个方面,提供了一种界面处理方法,包括步骤:
检测当前终端在倾斜时,在水平位置的偏移量;
读取当前终端的屏幕尺寸;
计算所述屏幕尺寸与预设的标准屏幕尺寸之间的尺寸差值;以及
根据所述尺寸差值和/或所述偏移量对当前终端的界面进行移动。
根据本发明的另一方面,提供了一种界面处理装置,包括:
检测模块,适于检测当前终端在倾斜时,在水平位置的偏移量;
读取模块,适于读取当前终端的屏幕尺寸
计算模块,适于计算所述屏幕尺寸与预设的标准屏幕尺寸之间的尺寸差值;以及
移动模块,适于根据所述尺寸差值和/或所述偏移量对当前终端的界面进行移动。
根据本发明的又一个方面,提供了一种计算机程序,其包括计算机可读代码,当所述计算机可读代码在计算设备上运行时,导致所述计算设备执行如上文所述的界面处理方法。
根据本发明的再一个方面,提供了一种计算机可读介质,其中存储了上述的计算机程序。
本发明的有益效果为:
本发明实施例在终端倾斜时,按照水平位置的偏移量以及与标准屏幕尺寸的尺寸差值,对当前终端的界面进行移动,将界面的信息移动到更加靠近的位置,以方便用户在单手等情况下进行操作,减少了误操作的几率,避免采用另一只手辅助操作,提高了操作的简便性,提高了操作效率。
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。
附图说明
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:
图1示意性地示出了根据本发明一个实施例的一种界面处理方法实施例的步骤流程图;
图2示意性地示出了根据本发明一个实施例的一种单手操作终端的示例 图;
图3示意性地示出了根据本发明一个实施例的一种基于终端建立坐标系的示例图;
图4示意性地示出了根据本发明一个实施例的一种界面处理装置实施例的结构框图;
图5示意性地示出了用于执行根据本发明的方法的计算设备的框图;以及
图6示意性地示出了用于保持或者携带实现根据本发明的方法的程序代码的存储单元。
具体实施例
下面结合附图和具体的实施方式对本发明作进一步的描述。
参照图1,示出了根据本发明一个实施例的一种界面处理方法实施例的步骤流程图,具体可以包括如下步骤:
步骤101,检测当前终端在倾斜时,在水平位置的偏移量;
在具体实现中,当前终端具体可以包括移动设备,例如手机、PDA(Personal Digital Assistant,个人数字助理)、膝上型计算机、掌上电脑等等,也可以包括固定设备,例如个人计算机、智能电视等等,本发明对此不加以限制。
这些终端可以支持Android(安卓)、IOS、WindowsPhone或者windows等的操作系统,通常可以不同的应用程序。
应用本发明实施例,用户在如图2所示的单手操作大屏幕终端等情况下,可以通过倾斜终端,改变界面的显示方式,以方便单手操作。
在本发明的一种可选实施例中,步骤101可以包括如下子步骤:
子步骤S11,检测当前终端针对水平位置的初始相对位置;
子步骤S12,检测当前终端在倾斜时针对水平位置的目标相对位置;
在本发明实施例中,可以设置任意时刻作为初始状态,终端在该初始状态的水平位置的相对位置可以为初始相对位置。
其中,所述初始相对位置可以包括初始水平坐标和/或初始垂直坐标,初始水平坐标可以为终端在初始状态时的水平坐标,初始垂直坐标可以为终端在初始状态时的垂直坐标。
当终端发生倾斜时,终端在水平位置的相对位置一般会发生变化,可以设置倾斜时中任意时刻作为目标状态,通过检测终端在目标状态中的相对位置,可以获得目标相对位置。
其中,所述目标相对位置可以包括目标水平坐标和/或目标垂直坐标,初始水平坐标可以为终端在目标状态时的水平坐标,初始垂直坐标可以为终端在目标状态时的垂直坐标。
在具体实现中,可以通过陀螺仪或方向感应器(如三轴加速计)等传感器获取当前终端在水平位置的初始相对位置和目标相对位置。
当传感器检测到终端的位移发生变化时,会产生一个相应的传感器事件,而传感器事件是一个对象,在终端的framework层可以通过sensor manager获取到这个对象,再将这个对象发送到调用的相关的应用程序,该应用程序可以从该对象中获取这时刻(即目标状态)终端所产生的位移变化的量(包括目标相对位置)。
如图3所示,可以将终端所在的空间建立坐标系,坐标系的坐标轴分别为X轴、Y轴和Z轴,这三个轴所构成的立体空间可以侦测到终端上发生的的各种动作。
终端在初始状态的X轴、Y轴和Z轴的相对位置记作位置(X0,Y0,Z0)。终端在倾斜时目标状态的X轴、Y轴和Z轴的相对位置记作位置(X1,Y1,Z1)。
本发明实施例中,可以针对X轴和Y轴所在的水平进行界面的移动,则终端的初始相对位置为A(X0,Y0),X0为初始水平坐标,Y0为初始垂直坐标,目标相对位置为B(X1,Y1),X1为目标水平坐标,Y1为目标垂直坐标。
子步骤S13,计算所述初始相对位置与所述目标相对位置之间的差值,获得偏移量。
在本发明实施例的一种可选实施例中,所述偏移量包括水平偏移量、垂直偏移量;其中,水平偏移量可以表示终端在水平位置的水平方向的偏移量,垂直偏移量可以表示终端在水平位置的垂直方向的偏移量。
则在本发明实施例中,步骤S13可以包括如下子步骤:
子步骤S131,计算所述初始水平坐标与所述目标水平坐标之间的差值,获得水平偏移量;
和/或,
子步骤S132,计算所述初始垂直坐标与所述目标垂直坐标之间的差值,获得垂直偏移量。
在本发明实施例中,可以捕捉终端在水平位置的水平方向和垂直方向的变化,作为移动界面的参考。
例如,终端在初始相对位置A(X0,Y0)倾斜至目标相对位置B(X1,Y1)的偏移量为C(X0-X1,Y0-Y1),其中,(X0-X1)水平偏移量,(Y0-Y1)为垂直偏移量。
需要说明的是,偏移量具有方向属性,可以指示倾斜方向。
例如,应用图3所示的坐标系,若Y0比Y1小,则可以表示终端的上部向上倾斜、终端的下部向下倾斜,反之,若Y0比Y1大,则可以表示终端的上部向下倾斜、终端的下部向上倾斜;
若X0比X1小,则可以表示终端的左侧向上倾斜、终端的右侧向下倾斜,反之,若X0比X1大,则可以表示终端的左侧向下倾斜、终端的右侧向上倾斜。
在本发明的一种可选实施例中,步骤101还可以包括如下子步骤:
子步骤S15,判断所述偏移量是否有效;若是,则执行子步骤S16;
子步骤S16,获取所述偏移方向的偏移量。
一般情况下,用户在使用终端过程中(如输入信息)通常难以处于平稳状态,或多或少会存在抖动,使得终端发生轻微的倾斜,可以检测到一些连续的偏移量,但这些连续的偏移量不是用户有意为之的。
因此,为减少不必要的界面移动操作,可以判断检测到的偏移量是否有效,在有效的情况下触发执行界面移动操作,否则,以抛弃该偏移量。
在本发明的一种可选实施例中,子步骤S15可以包括如下子步骤:
子步骤S151,在预设时间段内发生至少两次相同方向的倾斜时,判断所述偏移量有效。
在本发明实施例中,预先设置一个时间段,如0.3S,若在该时间段内发生至少两次相同方向的倾斜(可以由偏移量表征),可以认为该偏移量是由用户意图触发界面移动操作所引起的,是有效的偏移量,需要触发界面移动操作。
和/或
子步骤S152,所述当前终端的倾斜时间超过预定时间时,判断所述偏移量有效。
在本发明实施例中,预先设置一个时间值,如0.5S,若当前终端倾斜的时间超过该时间值,可以认为该偏移量是由用户意图触发界面移动操作所引起的,是有效的偏移量,需要触发界面移动操作。
当然,上述有效判断方法只是作为示例,在实施本发明实施例时,可以根据实际情况设置其他有效判断方法,如偏移量超过预设的偏移量阈值时,判断偏移量有效,本发明实施例对此不加以限制。另外,除了上述有效判断方法外,本领域技术人员还可以根据实际需要采用其它有效判断方法,本发明实施例对此也不加以限制。
步骤102,读取当前终端的屏幕尺寸;
在本发明实施例中,可以检测终端的基本信息,获取终端的硬件数据,以适应当前终端的特性进行界面的移动。
在具体实现中,如果在Activity中可以使用getSize函数读取终端的像素大小(屏幕尺寸),如果没有getSize函数,可以使用getWidth和getHeight工具读取终端的像素大小(屏幕尺寸),如果不在Activity中,可以通过WINDOW_SERVICE函数获取Display的默认值,读取终端的屏幕尺寸。
或者,可以预先设置终端的型号与屏幕尺寸的对应关系,读取当前终端型号,通过查找该型号对应的屏幕尺寸。
当然,上述读取屏幕尺寸的方式只是作为示例,在实施本发明实施例时,可以根据实际情况设置其他读取终端的屏幕尺寸的方式,本发明实施例对此不加以限制。另外,除了上述读取终端的屏幕尺寸的方式外,本领域技术人员还可以根据实际需要采用其它读取终端的屏幕尺寸的方式,本发明实施例对此也不加以限制。
在本发明的一种可选实施例中,步骤102可以包括如下子步骤:
子步骤S21,读取当前终端的屏幕的长度和/或宽度。
在本发明实施例中,硬件数据主要指的是终端屏幕尺寸的相关数据,如屏幕横向宽度、屏幕纵向长度、屏幕的分辨率等等信息。
步骤103,计算所述屏幕尺寸与预设的标准屏幕尺寸之间的尺寸差值;
一方面,对于屏幕尺寸较小(如3.0英寸)的终端,比较少出现因为屏幕过大而出现触屏盲区范围的问题;另一方面,对于屏幕尺寸过大(如6英 寸或以上)的终端,其单手操作时出现的触屏盲区范围更多。
因此,本发明实施例中,可以预设标准屏幕尺寸,该标准屏幕尺寸可以为一般用户所能单手控制的合适的尺寸,如4.3英寸,将当前终端的屏幕尺寸与标准屏幕尺寸做比对,从而调整界面移动的相对位置的比例。
在本发明的一种可选实施例中,所述标准屏幕尺寸可以包括标准长度和/或标准宽度,标准长度可以为用于参考的屏幕的长度,标准宽度可以为用于参考的屏幕的宽度,例如,标准屏幕尺寸为4.3英寸时,其标准长度可以为93.6mm,标准宽度可以为56.1mm。
则在本发明实施例中,步骤103可以包括如下子步骤:
子步骤S31,计算当前终端的屏幕的长度与标准长度之间的长度差值;
和/或,
子步骤S32,计算当前终端的屏幕的宽度与标准宽度之间的宽度差值。
在本发明实施例中,标准屏幕尺可以包括长度差值、宽度差值中的至少一个。
将标识长度、标准宽度分别记作L0/W0,检测当前终端屏幕的长度、宽度分别记作L/W,则长度差值、宽度差值可以分别记作L’/W’,其中,L’=(L0-L),W’=(W0-W)。
步骤104,根据所述尺寸差值和/或所述偏移量对当前终端的界面进行移动。
在具体实现中,可以终端的特性(如尺寸差值)、用户的倾斜操作情况(如偏移量)对当前终端的界面进行移动,以满足用户需求。
在本发明的一种可选实施例中,步骤104可以包括如下子步骤:
子步骤S41,按照第一目标速度和/或第一目标幅度移动前终端的界面;
其中,所述第一目标速度和/或所述第一目标幅度,与,所述尺寸差值和/或所述偏移量成正比。
若标准屏幕尺寸选取为一般用户所能单手控制的合适的尺寸,在当前终端的屏幕尺寸比标准屏幕尺寸大等情况下,界面上可能存在较多的盲区位置,则可以按照尺寸差值、偏移量计算合适的第一目标速度、第一目标幅度,以移动当前终端的界面。
其中,第一目标速度可以为移动界面的速度,第一目标幅度可以为移 动界面的幅度。
界面移动的第一目标速度、第一目标幅度与终端的偏移量、尺寸差值成正比,即,终端移动的偏移量越大,屏幕差值越大,则界面移动的第一目标速度越大、第一目标幅度越大。
在本发明的一种可选实施例中,所述第一目标速度可以包括第一目标垂直速度和/或第一目标水平速度,所述第一目标幅度可以包括第一目标垂直幅度和/或第一目标水平幅度;
其中,第一目标垂直速度可以为在垂直方向移动界面的速度,第一目标水平速度可以为在水平方向移动界面的速度;第一目标垂直幅度可以为在垂直方向移动界面的幅度,第一目标水平幅度可以为在水平方向移动界面的幅度。
则在本发明实施例中,子步骤S41可以包括如下子步骤:
子步骤S411,按照所述第一目标水平速度和/或所述第一目标水平幅度在水平方向上移动当前终端的界面;所述第一目标水平速度和/或所述第一目标水平幅度,与,所述宽度差值和/或所述水平偏移量成正比;
和/或,
子步骤S412,按照所述第一目标垂直速度和/或第一目长度标幅度在垂直方向上移动当前终端的界面;所述第一目标垂直速度和/或所述第一目标垂直幅度,与,所述长度差值和/或所述垂直偏移量成正比。
在本发明实施例中,可以将水平方向(如X轴)的水平偏移量(X0-X1)与终端的屏幕的宽度差值W’相关联,将垂直方向(如Y轴)的垂直偏移量(Y0-Y1)与终端屏幕的长度差值L’相关联,进行界面的移动。
需要说明的是,由于偏移量具有方向属性,因此,第一目标速度、第一目标幅度也可以具有方向属性,可以指示移动的方向。
以图2所示右手单手操作终端为例,屏幕的上端和左侧的位置处于盲区范围,用户较难操作该盲区范围。此时,用户为了能都点击到屏幕盲区上的内容,会很自然的将右手拇指向左侧延伸并倾斜是终端,与此同时终端会以水平方向向右倾斜(此时终端的右侧偏低,左侧偏高),或者,垂直方向向下倾斜(此时终端的上部偏高,下部偏低)。应用本发明实施例,界面可以水平向右移动、垂直向下移动,以让盲区范围内的信息移动到用户可以单手操作的位置。
在本发明的一种可选实施例中,步骤104可以包括如下子步骤:
子步骤S42,按照预设的第二目标速度和/或预设的第二目标幅度移动前终端的界面。
若标准屏幕尺寸选取为一般用户所能单手控制的合适的尺寸,在当前终端的屏幕尺寸比标准屏幕尺寸小等情况下,界面上可能存在较少的盲区位置,则可以以预设的第二目标速度、第二目标幅度移动前终端的界面。
其中,第二目标速度可以为移动界面的速度,第二目标幅度可以为移动界面的幅度。
在本发明的一种可选实施例中,所述第二目标速度可以包括第二目标垂直速度和/或第二目标水平速度,所述第二目标幅度可以包括第二目标垂直幅度和/或第二目标水平幅度;
其中,第二目标垂直速度可以为在垂直方向移动界面的速度,第二目标水平速度可以为在水平方向移动界面的速度;第二目标垂直幅度可以为在垂直方向移动界面的幅度,第二目标水平幅度可以为在水平方向移动界面的幅度。
则在本发明实施例中,子步骤S42可以包括如下子步骤:
子步骤S421,按照预设的第二目标水平速度和/或预设的第二目标水平幅度在水平方向上移动当前终端的界面;
和/或,
子步骤S422,按照预设的第二目标垂直速度和/或预设的第二目长度标幅度在垂直方向上移动当前终端的界面。
在本发明实施例中,若当前终端的屏幕尺寸小于标准屏幕尺寸时,可以设置一个初始的偏移量,也就是说,终端发生倾斜时,在水平移动有一个初始的水平偏移量X’和垂直偏移量Y’,这个水平偏移量X’和垂直偏移量Y’对应的移动速度和移动幅度可以是固定的,且可以是最小的。
在终端倾斜时,可以按照该移动速度(第二目标垂直速度和/或第二目标水平速度)、移动幅度(第二目标垂直幅度和/或第二目标水平幅度)移动界面。
在本发明的一种可选实施例中,步骤104可以包括如下子步骤:
子步骤S43,将当前终端界面中的空白位置写入移出屏幕的信息;所述空白位置为移动之前的信息所在的位置。
界面中的信息进行平面移动,由于在终端中界面中的信息一般会占满整个屏幕,因此,信息开始移动之后,会偏离原有的位置,有一部信息移动后会在原位置出现空白,有一部信息会移出屏幕,用户不可见。
在本发明实施例中,信息移动之后出现的空白位置可以由移动出屏幕的信息补全,可以补全屏幕。故此时,界面的信息循环滚动,用户可以增加终端倾斜的重力加速度或增加倾斜的角度,则界面内的信息可以以循环滚动的方式做平面移动。
当然,信息移动之后出现的空白位置也可以保持空白状态,本发明实施例对此不加以限制。
本发明实施例在终端倾斜时,按照水平位置的偏移量以及与标准屏幕尺寸的尺寸差值,对当前终端的界面进行移动,将界面的信息移动到更加靠近的位置,以方便用户在单手等情况下进行操作,减少了误操作的几率,避免采用另一只手辅助操作,提高了操作的简便性,提高了操作效率。
在本发明的一种可选实施例中,所述方法还可以包括如下步骤:
步骤105,当检测到指定的操作事件时,将当前终端的界面恢复移动之前的位置。
在本发明实施例中,用户可以通过触发指定的操作事件,将当前终端的界面恢复移动之前的位置。
在具体实现中,所述指定的操作事件可以包括屏幕点击事件,即界面信息移动后,用户完成操作(如点击),之前偏移的界面再次恢复到正常的位置,即点击后内容复位。
当然,该指定的操作事件也可以为其他操作事件,如指定控件的触发事件等等,本发明实施例对此不加以限制。
对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明实施例并不受所描述的动作顺序的限制,因为依据本发明实施例,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本发明实施例所必须的。
参照图4,示出了根据本发明一个实施例的一种界面处理装置实施例的结构框图,具体可以包括如下模块:
检测模块401,适于检测当前终端在倾斜时,在水平位置的偏移量;
读取模块402,适于读取当前终端的屏幕尺寸
计算模块403,适于计算所述屏幕尺寸与预设的标准屏幕尺寸之间的尺寸差值;以及
移动模块404,适于根据所述尺寸差值和/或所述偏移量对当前终端的界面进行移动。
在本发明的一种可选实施例中,所述检测模块401还可以适于:
检测当前终端针对水平位置的初始相对位置;
检测当前终端在倾斜时针对水平位置的目标相对位置;以及
计算所述初始相对位置与所述目标相对位置之间的差值,获得偏移量。
在本发明的一种可选实施例中,
所述初始相对位置可以包括初始水平坐标和/或初始垂直坐标;
所述目标相对位置可以包括目标水平坐标和/或目标垂直坐标;
所述偏移量可以包括水平偏移量和/或垂直偏移量;
所述检测模块401还可以适于:
计算所述初始水平坐标与所述目标水平坐标之间的差值,获得水平偏移量;以及
和/或,
计算所述初始垂直坐标与所述目标垂直坐标之间的差值,获得垂直偏移量。
在本发明的一种可选实施例中,所述检测模块401还可以适于:
判断所述偏移量是否有效;以及
若是,则获取所述偏移方向的偏移量。
在本发明的一种可选实施例中,所述检测模块401还可以适于:
在预设时间段内发生至少两次相同方向的倾斜时,判断所述偏移量有效;
和/或
所述当前终端的倾斜时间超过预定时间时,判断所述偏移量有效。
在本发明的一种可选实施例中,所述读取模块402还可以适于:
读取当前终端的屏幕的长度和/或宽度。
在本发明的一种可选实施例中,所述标准屏幕尺寸罗包括标准长度和/或标准宽度;所述计算模块403还可以适于:
计算当前终端的屏幕的长度与标准长度之间的长度差值;以及
和/或,
计算当前终端的屏幕的宽度与标准宽度之间的宽度差值。
在本发明的一种可选实施例中,所述移动模块404还可以适于:
按照第一目标速度和/或第一目标幅度移动前终端的界面;
其中,所述第一目标速度和/或第一目标幅度,与,所述尺寸差值和/或所述偏移量成正比。
在本发明的一种可选实施例中,所述第一目标速度可以包括第一目标垂直速度和/或第一目标水平速度,所述第一目标幅度可以包括第一目标垂直幅度和/或所述第一目标水平幅度;
所述移动模块404还可以适于:
按照所述第一目标水平速度和/或所述第一目标水平幅度在水平方向上移动当前终端的界面;其中,所述第一目标水平速度和/或所述第一目标水平幅度,与,所述宽度差值和/或所述水平偏移量成正比;以及
和/或,
按照所述第一目标垂直速度和/或第一目长度标幅度在垂直方向上移动当前终端的界面;其中,所述第一目标垂直速度和/或所述第一目标垂直幅度,与,所述长度差值和/或所述垂直偏移量成正比。
在本发明的一种可选实施例中,所述移动模块404还可以适于:
按照预设的第二目标速度和/或预设的第二目标幅度移动前终端的界面。
在本发明的一种可选实施例中,所述第二目标速度可以包括第二目标垂直速度和/或第二目标水平速度,所述第二目标幅度可以包括第二目标垂直幅度和/或第二目标水平幅度;
所述移动模块404还可以适于:
按照预设的第二目标水平速度和/或预设的第二目标水平幅度在水平方向上移动当前终端的界面;以及
和/或,
按照预设的第二目标垂直速度和/或预设的第二目标垂直幅度在垂直方向上移动当前终端的界面。
在本发明的一种可选实施例中,所述移动模块404还可以适于:
将当前终端界面中的空白位置写入移出屏幕的信息;其中,所述空白位置为移动之前的信息所在的位置。
在本发明的一种可选实施例中,所述装置还可以包括如下模块:
恢复模块,适于在检测到指定的操作事件时,将当前终端的界面恢复移动之前的位置。
在具体实现中,所述指定的操作事件可以包括屏幕点击事件。
对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的界面处理设备中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。
例如,图5示出了可以实现根据本发明的界面处理计算设备,例如应用服务器。该计算设备传统上包括处理器510和以存储器520形式的计算机程序产品或者计算机可读介质。存储器520可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。存储器520具有存储用于执行上述方法中的任何方法步骤的程序代码531的存储空间530。例如,存储程序代码的存储空间530可以包括分别用于实现上面的方法中的各种步骤的各个程序代码531。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。这些计算机程序产品包括诸如硬盘,紧致盘(CD)、存储卡或者软盘 之类的程序代码载体。这样的计算机程序产品通常为例如图6所示的便携式或者固定存储单元。该存储单元可以具有与图5的计算设备中的存储器520类似布置的存储段、存储空间等。程序代码可以例如以适当形式进行压缩。通常,存储单元包括用于执行根据本发明的方法步骤的计算机可读代码531’,即可以由例如诸如510之类的处理器读取的代码,当这些代码由计算设备运行时,导致该计算设备执行上面所描述的方法中的各个步骤。
本文中所称的“一个实施例”、“实施例”或者“一个或者多个实施例”意味着,结合实施例描述的特定特征、结构或者特性包括在本发明的至少一个实施例中。此外,请注意,这里“在一个实施例中”的词语例子不一定全指同一个实施例。
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下被实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。
此外,还应当注意,本说明书中使用的语言主要是为了可读性和教导的目的而选择的,而不是为了解释或者限定本发明的主题而选择的。因此,在不偏离所附权利要求书的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。对于本发明的范围,对本发明所做的公开是说明性的,而非限制性的,本发明的范围由所附权利要求书限定。

Claims (30)

  1. 一种界面处理方法,包括步骤:
    检测当前终端在倾斜时,在水平位置的偏移量;
    读取当前终端的屏幕尺寸;
    计算所述屏幕尺寸与预设的标准屏幕尺寸之间的尺寸差值;以及
    根据所述尺寸差值和/或所述偏移量对当前终端的界面进行移动。
  2. 如权利要求1所述的方法,其中,所述检测当前终端在倾斜时,在水平位置的偏移量的步骤包括:
    检测当前终端针对水平位置的初始相对位置;
    检测当前终端在倾斜时针对水平位置的目标相对位置;以及
    计算所述初始相对位置与所述目标相对位置之间的差值,获得偏移量。
  3. 如权利要求2所述的方法,其中,
    所述初始相对位置包括初始水平坐标和/或初始垂直坐标;
    所述目标相对位置包括目标水平坐标和/或目标垂直坐标;
    所述偏移量包括水平偏移量和/或垂直偏移量;
    所述计算所述初始相对位置与所述目标相对位置之间的差值,获得偏移量的步骤包括:
    计算所述初始水平坐标与所述目标水平坐标之间的差值,获得水平偏移量;以及
    和/或,
    计算所述初始垂直坐标与所述目标垂直坐标之间的差值,获得垂直偏移量。
  4. 如权利要求2所述的方法,其中,所述检测当前终端在水平位置的偏移量的步骤还包括:
    判断所述偏移量是否有效;以及
    若是,则获取所述偏移方向的偏移量。
  5. 如权利要求4所述的方法,其中,所述判断所述偏移量是否有效的步骤包括:
    在预设时间段内发生至少两次相同方向的倾斜时,判断所述偏移量有效;
    和/或
    所述当前终端的倾斜时间超过预定时间时,判断所述偏移量有效。
  6. 如权利要求1所述的方法,其中,所述读取当前终端的屏幕尺寸的步骤包括:
    读取当前终端的屏幕的长度和/或宽度。
  7. 如权利要求6所述的方法,其中,所述标准屏幕尺寸包括标准长度和/或标准宽度;
    所述计算所述屏幕尺寸与预设的标准屏幕尺寸之间的尺寸差值的步骤包括:
    计算当前终端的屏幕的长度与标准长度之间的长度差值;以及
    和/或,
    计算当前终端的屏幕的宽度与标准宽度之间的宽度差值。
  8. 如权利要求1或2或3或4或5或6或7所述的方法,其中,所述根据所述尺寸差值和/或所述偏移量对当前终端的界面进行移动的步骤包括:
    按照第一目标速度和/或第一目标幅度移动前终端的界面;
    其中,所述第一目标速度和/或第一目标幅度,与,所述尺寸差值和/或所述偏移量成正比。
  9. 如权利要求8所述的方法,其中,所述第一目标速度包括第一目标垂直速度和/或第一目标水平速度,所述第一目标幅度包括第一目标垂直幅度和/或所述第一目标水平幅度;
    所述按照第一目标速度和/或第一目标幅度移动前终端的界面的步骤包括:
    按照所述第一目标水平速度和/或所述第一目标水平幅度在水平方向上移动当前终端的界面;其中,所述第一目标水平速度和/或所述第一目标水平幅度,与,所述宽度差值和/或所述水平偏移量成正比;以及
    和/或,
    按照所述第一目标垂直速度和/或第一目长度标幅度在垂直方向上移动当前终端的界面;其中,所述第一目标垂直速度和/或所述第一目标垂直幅度,与,所述长度差值和/或所述垂直偏移量成正比。
  10. 如权利要求1或2或3或4或5或6或7或9所述的方法,其中, 所述根据所述尺寸差值和/或所述偏移量对当前终端的界面进行移动的步骤包括:
    按照预设的第二目标速度和/或预设的第二目标幅度移动前终端的界面。
  11. 如权利要求10所述的方法,其中,所述第二目标速度包括第二目标垂直速度和/或第二目标水平速度,所述第二目标幅度包括第二目标垂直幅度和/或第二目标水平幅度;
    所述按照预设的第二目标速度和/或预设的第二目标幅度移动前终端的界面的步骤包括:
    按照预设的第二目标水平速度和/或预设的第二目标水平幅度在水平方向上移动当前终端的界面;以及
    和/或,
    按照预设的第二目标垂直速度和/或预设的第二目标垂直幅度在垂直方向上移动当前终端的界面。
  12. 如权利要求1或2或3或4或5或6或7或9或11所述的方法,其中,所述根据所述尺寸差值和/或所述偏移量对当前终端的界面进行移动的步骤包括:
    将当前终端界面中的空白位置写入移出屏幕的信息;其中,所述空白位置为移动之前的信息所在的位置。
  13. 如权利要求1或2或3或4或5或6或7或9或11所述的方法,还包括步骤:
    当检测到指定的操作事件时,将当前终端的界面恢复移动之前的位置。
  14. 如权利要求13所述的方法,其中,所述指定的操作事件包括屏幕点击事件。
  15. 一种界面处理装置,包括:
    检测模块,适于检测当前终端在倾斜时,在水平位置的偏移量;
    读取模块,适于读取当前终端的屏幕尺寸
    计算模块,适于计算所述屏幕尺寸与预设的标准屏幕尺寸之间的尺寸差值;以及
    移动模块,适于根据所述尺寸差值和/或所述偏移量对当前终端的界面进行移动。
  16. 如权利要求15所述的装置,其中,所述检测模块还适于:
    检测当前终端针对水平位置的初始相对位置;
    检测当前终端在倾斜时针对水平位置的目标相对位置;以及
    计算所述初始相对位置与所述目标相对位置之间的差值,获得偏移量。
  17. 如权利要求16所述的装置,其中,
    所述初始相对位置包括初始水平坐标和/或初始垂直坐标;
    所述目标相对位置包括目标水平坐标和/或目标垂直坐标;
    所述偏移量包括水平偏移量和/或垂直偏移量;
    所述检测模块还适于:
    计算所述初始水平坐标与所述目标水平坐标之间的差值,获得水平偏移量;以及
    和/或,
    计算所述初始垂直坐标与所述目标垂直坐标之间的差值,获得垂直偏移量。
  18. 如权利要求16所述的装置,其中,所述检测模块还适于:
    判断所述偏移量是否有效;以及
    若是,则获取所述偏移方向的偏移量。
  19. 如权利要求18所述的装置,其中,所述检测模块还适于:
    在预设时间段内发生至少两次相同方向的倾斜时,判断所述偏移量有效;
    和/或
    所述当前终端的倾斜时间超过预定时间时,判断所述偏移量有效。
  20. 如权利要求15所述的装置,其中,所述读取模块还适于:
    读取当前终端的屏幕的长度和/或宽度。
  21. 如权利要求20所述的装置,其中,所述标准屏幕尺寸包括标准长度和/或标准宽度;所述计算模块还适于:
    计算当前终端的屏幕的长度与标准长度之间的长度差值;以及
    和/或,
    计算当前终端的屏幕的宽度与标准宽度之间的宽度差值。
  22. 如权利要求15或16或17或18或19或20或21所述的装置,其中,所述移动模块还适于:
    按照第一目标速度和/或第一目标幅度移动前终端的界面;
    其中,所述第一目标速度和/或第一目标幅度,与,所述尺寸差值和/或所述偏移量成正比。
  23. 如权利要求22所述的装置,其中,所述第一目标速度包括第一目标垂直速度和/或第一目标水平速度,所述第一目标幅度包括第一目标垂直幅度和/或所述第一目标水平幅度;
    所述移动模块还适于:
    按照所述第一目标水平速度和/或所述第一目标水平幅度在水平方向上移动当前终端的界面;其中,所述第一目标水平速度和/或所述第一目标水平幅度,与,所述宽度差值和/或所述水平偏移量成正比;以及
    和/或,
    按照所述第一目标垂直速度和/或第一目长度标幅度在垂直方向上移动当前终端的界面;其中,所述第一目标垂直速度和/或所述第一目标垂直幅度,与,所述长度差值和/或所述垂直偏移量成正比。
  24. 如权利要求15或16或17或18或19或20或21或23所述的装置,其中,所述移动模块还适于:
    按照预设的第二目标速度和/或预设的第二目标幅度移动前终端的界面。
  25. 如权利要求24所述的装置,其中,所述第二目标速度包括第二目标垂直速度和/或第二目标水平速度,所述第二目标幅度包括第二目标垂直幅度和/或第二目标水平幅度;
    所述移动模块还适于:
    按照预设的第二目标水平速度和/或预设的第二目标水平幅度在水平方向上移动当前终端的界面;以及
    和/或,
    按照预设的第二目标垂直速度和/或预设的第二目标垂直幅度在垂直方向上移动当前终端的界面。
  26. 如权利要求15或16或17或18或19或20或21或23或25所述 的装置,其中,所述移动模块还适于:
    将当前终端界面中的空白位置写入移出屏幕的信息;其中,所述空白位置为移动之前的信息所在的位置。
  27. 如权利要15或16或17或18或19或20或21或23或25所述的装置,还包括:
    恢复模块,适于在检测到指定的操作事件时,将当前终端的界面恢复移动之前的位置。
  28. 如权利要求27所述的装置,其中,所述指定的操作事件包括屏幕点击事件。
  29. 一种计算机程序,包括计算机可读代码,当所述计算机可读代码在计算设备上运行时,导致所述计算设备执行根据权利要求1-14中的任一个所述的界面处理方法。
  30. 一种计算机可读介质,其中存储了如权利要求29所述的计算机程序。
PCT/CN2015/095462 2014-12-30 2015-11-24 一种界面处理方法和装置 Ceased WO2016107337A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410850589.4A CN104571886A (zh) 2014-12-30 2014-12-30 一种界面处理方法和装置
CN201410850589.4 2014-12-30

Publications (1)

Publication Number Publication Date
WO2016107337A1 true WO2016107337A1 (zh) 2016-07-07

Family

ID=53088091

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/095462 Ceased WO2016107337A1 (zh) 2014-12-30 2015-11-24 一种界面处理方法和装置

Country Status (2)

Country Link
CN (1) CN104571886A (zh)
WO (1) WO2016107337A1 (zh)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104571886A (zh) * 2014-12-30 2015-04-29 北京奇虎科技有限公司 一种界面处理方法和装置
CN106557236A (zh) * 2015-09-30 2017-04-05 北京奇虎科技有限公司 一种移动设备的界面处理方法和装置
CN106020686B (zh) * 2016-05-16 2019-06-11 珠海市魅族科技有限公司 一种移动终端及其屏幕显示控制方法
CN106201186A (zh) * 2016-06-29 2016-12-07 北京金山安全软件有限公司 一种终端屏幕内容的显示方法、显示装置以及终端
CN107249056A (zh) * 2017-06-06 2017-10-13 上海传英信息技术有限公司 移动终端和实现单手操作移动终端的方法
CN107562335B (zh) * 2017-07-31 2020-04-17 维沃移动通信有限公司 一种显示区域调整方法及移动终端
CN110022409A (zh) * 2019-04-16 2019-07-16 维沃移动通信有限公司 一种终端控制方法及移动终端
CN113849113A (zh) * 2020-06-28 2021-12-28 华为技术有限公司 触摸操作处理方法、电子设备及计算机可读存储介质
CN117573389B (zh) * 2023-11-16 2025-04-04 宁波宇宁软件技术有限公司 应用程序的调用方法、终端设备及介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102156555A (zh) * 2011-03-08 2011-08-17 惠州Tcl移动通信有限公司 页面浏览方法及使用所述方法的电子设备
CN102750107A (zh) * 2012-08-02 2012-10-24 深圳市经纬科技有限公司 一种大屏幕手持电子设备单手操作的方法及装置
CN103927075A (zh) * 2014-01-16 2014-07-16 华为终端有限公司 一种界面操作的方法及终端
CN104571886A (zh) * 2014-12-30 2015-04-29 北京奇虎科技有限公司 一种界面处理方法和装置

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101880968B1 (ko) * 2011-10-27 2018-08-20 삼성전자주식회사 터치스크린 휴대 기기에서 사용자 인터페이스 개체를 배치하는 방법 및 장치
KR101680059B1 (ko) * 2012-05-02 2016-11-28 삼성전자주식회사 화면을 이동시키기 위한 방법 및 그 전자 장치
CN103984477B (zh) * 2014-04-01 2017-01-25 深圳市云来网络科技有限公司 一种ui界面适配不同屏幕尺寸移动客户端的方法及装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102156555A (zh) * 2011-03-08 2011-08-17 惠州Tcl移动通信有限公司 页面浏览方法及使用所述方法的电子设备
CN102750107A (zh) * 2012-08-02 2012-10-24 深圳市经纬科技有限公司 一种大屏幕手持电子设备单手操作的方法及装置
CN103927075A (zh) * 2014-01-16 2014-07-16 华为终端有限公司 一种界面操作的方法及终端
CN104571886A (zh) * 2014-12-30 2015-04-29 北京奇虎科技有限公司 一种界面处理方法和装置

Also Published As

Publication number Publication date
CN104571886A (zh) 2015-04-29

Similar Documents

Publication Publication Date Title
CN104823125B (zh) 基于用户和设备移动的显示补偿
US10514842B2 (en) Input techniques for virtual reality headset devices with front touch screens
CN104571886A (zh) 一种界面处理方法和装置
EP3042275B1 (en) Tilting to scroll
CN102609114B (zh) 姿势上的重力效应
US10304163B2 (en) Landscape springboard
JP6048898B2 (ja) 情報表示装置、情報表示方法および情報表示プログラム
US8717283B1 (en) Utilizing motion of a device to manipulate a display screen feature
US20090207138A1 (en) Selecting a layout
US20150185833A1 (en) Display device, display method, and program
JP2015501468A (ja) 多次元インターフェース
AU2016304890A1 (en) Devices and methods for processing touch inputs based on their intensities
JP2014529138A (ja) タッチ入力を用いたマルチセル選択
TW201624263A (zh) 調整界面操作圖示分布範圍的裝置、方法及觸控螢幕設備
JP7714581B2 (ja) 電子デバイスの現在位置を表示及び改善するためのユーザインタフェース
CN103116444A (zh) 电子地图控制方法及电子地图装置
WO2017113711A1 (zh) 页面浏览方法及装置
US8842087B2 (en) Method for processing touch signal and electronic device using the same
US10082936B1 (en) Handedness determinations for electronic devices
CN107247556A (zh) 一种对象操作方法及移动终端
WO2018019053A1 (zh) 一种用于模拟触摸屏上的滑动操作的方法及装置
US20160124602A1 (en) Electronic device and mouse simulation method
CN105404464B (zh) 一种控制画面的方法及用户终端
US9658696B2 (en) Electronic device and method for adjusting user interface of the electronic device
CN105094660A (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: 15875016

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: 15875016

Country of ref document: EP

Kind code of ref document: A1