WO2016192547A1 - 一种触摸屏幕拨号键盘实现的方法和智能手表 - Google Patents

一种触摸屏幕拨号键盘实现的方法和智能手表 Download PDF

Info

Publication number
WO2016192547A1
WO2016192547A1 PCT/CN2016/083086 CN2016083086W WO2016192547A1 WO 2016192547 A1 WO2016192547 A1 WO 2016192547A1 CN 2016083086 W CN2016083086 W CN 2016083086W WO 2016192547 A1 WO2016192547 A1 WO 2016192547A1
Authority
WO
WIPO (PCT)
Prior art keywords
touch screen
dialing
control
angle
dial
Prior art date
Application number
PCT/CN2016/083086
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 歌尔声学股份有限公司
Priority to US15/578,168 priority Critical patent/US10592102B2/en
Publication of WO2016192547A1 publication Critical patent/WO2016192547A1/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/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/04886Interaction 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 by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus
    • GPHYSICS
    • G04HOROLOGY
    • G04GELECTRONIC TIME-PIECES
    • G04G21/00Input or output devices integrated in time-pieces
    • G04G21/08Touch switches specially adapted for time-pieces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/60Rotation of whole images or parts thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/22Details of telephonic subscriber devices including a touch pad, a touch sensor or a touch detector

Definitions

  • the present invention relates to the field of computer technologies, and in particular, to a method and a smart watch implemented by a touch screen dial keyboard.
  • a smart watch is an intelligent device that has an intelligent system built in the watch and is connected to the network by a smartphone system.
  • smart watches can be roughly divided into two types, one is without a telephone function, such a smart watch can synchronize resources in the mobile phone, such as synchronizing the phone, text message, mail, photo and music in the mobile phone; It is equipped with a call function and supports a SIM card (Subscriber Identity Module), which is essentially a smart phone in the form of a watch.
  • SIM card Subscriber Identity Module
  • the telephone module is an important function module of the smart watch with a call function. Since the screen of the smart watch is small, for the operation of the finger on the screen, the dial keyboard of the ordinary nine-square grid is prone to false touch during the dialing process, resulting in no Good user experience.
  • the invention provides a method for implementing a touch screen dialing keyboard and a smart watch, so as to solve the problem that the user experience is poor due to the error in the process of dialing using the dial keyboard of the prior art.
  • the present invention provides a method for implementing a touch screen dial pad, the method comprising:
  • the center of the touch screen is the origin, and the preset length is a radius to set the circular display area of the touch screen; wherein the preset length is calculated according to the obtained size information of the touch screen;
  • Configuring the attributes of each dialing control of the dialing keyboard, the attributes of the dialing control include digital information, display information, and angle information of the dialing control;
  • All the dialing controls of the dialing keyboard are evenly distributed on the circumference of the edge of the circular display area according to the obtained size information of the touch screen and the angle information of each dialing control of the dialing keyboard;
  • All dial controls of the dial pad are displayed on the circumference of the edge of the circular display area of the touch screen according to the digital information and display information of each dial control of the dial pad.
  • the method further includes:
  • Configuring a trigger event of the dial pad responding to a user sliding operation on the touch screen, recording The position information of the touch point at each moment during the sliding operation of the user on the touch screen, and converting the position information of the touch point at each moment into an angle with respect to the positive direction of the circumference, and simultaneously calculating the touch point of the current moment
  • the angle between the angle of the positive direction of the circle and the angle between the touch point of the previous moment and the positive direction of the circumference is obtained, and the angle of change of the touch point of the current moment relative to the touch point of the previous moment is obtained;
  • the method further includes:
  • the number displayed at the center of the touch screen is entered into the number entry box.
  • the present invention provides a smart watch comprising a touch screen and a touch screen dial pad implemented device, the device comprising:
  • a obtaining unit configured to obtain size information of the touch screen, with the center of the touch screen as an origin, and the preset length is a circular display area of the touch screen; wherein the preset length is calculated according to the obtained size information of the touch screen;
  • An attribute configuration unit configured to configure an attribute of each dialing control of the dialing keyboard, and the attribute of the dialing control includes digital information, display information, and angle information of the dialing control;
  • a distribution unit configured to uniformly distribute all the dialing controls of the dialing keyboard on the circumference of the edge of the circular display area according to the size information of the touch screen obtained by the obtaining unit and the angle information of each dialing control of the dialing keyboard configured by the attribute configuration unit;
  • a display unit configured to display all the dialing controls of the dialing keyboard on the circumference of the edge of the circular display area of the touch screen according to the digital information and the display information of each dialing control of the dialing keyboard configured by the attribute configuration unit.
  • the device further includes a trigger event configuration unit,
  • a trigger event for configuring a dial pad in response to a user sliding operation on the touch screen, recording position information of the touch point at each moment of the user's touch operation on the touch screen, and touching the point of each moment
  • the position information is converted into an angle with respect to the positive direction of the circumference, and the angle between the touch point of the current moment and the positive direction of the circumference is calculated from the angle between the touch point of the previous moment and the positive direction of the circumference.
  • the angle change value obtains a change angle of the touch point of the current moment relative to the touch point of the previous moment;
  • the number displayed at the center position of the touch screen is popped up into the number input box.
  • the technical solution provided by the embodiment of the present invention is that, according to the technical solution provided by the embodiment of the present invention, when the dialing keyboard of the touch screen is implemented, the size information of the touch screen obtained and each dialing control are obtained according to the obtained dialing keyboard of the touch screen.
  • the angle information uniformly distributes all the dialing controls of the dialing keyboard on the circumference of the edge of the circular display area of the touch screen, fully utilizing the space of the touch screen, and reducing the false touch operation of the finger touching the other dialing controls during the dialing process, thereby improving
  • the success rate of dial-up operations enhances the user experience.
  • the trigger event of the dialing control is also configured, so that the user can input the required number into the number input box by sliding operation on the touch screen to completely cancel the false touch problem in the dialing process.
  • FIG. 1 is a flowchart of a method for implementing a touch screen dial keyboard according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a touch screen dialing keyboard according to an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of an apparatus for implementing a touch screen dialing keyboard according to an embodiment of the present invention
  • Fig. 4 schematically shows a block diagram of a server for performing the method according to the invention.
  • FIG. 1 is a flowchart of a method for implementing a touch screen dialing keyboard according to an embodiment of the present invention.
  • the method for implementing the touch screen dialing keyboard includes:
  • S10 Obtain size information of the touch screen, with the center of the touch screen as an origin, and the preset length is a radius to set a circular display area of the touch screen; wherein the preset length is calculated according to the obtained size information of the touch screen.
  • the circular shape corresponding to the circular display area of the touch screen is preferably the most touch screen.
  • the large inscribed circle, the maximum inscribed circle of the touch screen should be understood as all the controls of the dialing keyboard can be completely displayed on the touch screen when the dialing keyboard is loaded and displayed on the touch screen.
  • the center of the touch screen is centered, and the width/2.5 of the touch screen is the radius to establish the circular display area, so that the user can obtain a better visual experience when the digital button is evenly distributed on the circumference of the circular display area.
  • the long side and the wide side of the touch screen are distinguished by the length, the shorter side is set as the short side of the touch screen, and the longer side is set as the long side of the touch screen.
  • S20 Configuring an attribute of each dialing control of the dialing keyboard, and the attribute of the dialing control includes digital information, display information, and angle information of the dialing control.
  • step S20 a preferred method of configuring the angle information of each dial control of the dial pad is as follows:
  • the above circumference is N-divided according to the number of dialing controls of the dialing keyboard; wherein N is equal to the number of dialing controls of the dialing keyboard; if there are ten dialing controls of "0" to "9", the edge of the circular display area is The circumference is divided into ten equal parts.
  • the digital information in each dialing control attribute refers to a number displayed by the dialing control on the touch screen from “0” to “9”, and the display information includes a display manner of the dialing control on the touch screen, a color setting, and the like.
  • the display effect of the highlight dial control on the touch screen is displayed, the number is displayed in white, and the background is displayed in a relatively dark dark color to achieve the purpose of highlighting the number of each dial control, and the dial control is displayed on the touch.
  • the shape on the screen is set to be the same as the shape of the touch screen to provide a more comfortable visual impression, for example, when the touch screen is circular, each dial control of the dial pad can be displayed as a circle.
  • this embodiment only schematically illustrates the function of the digital information and the display information in the dialing control attribute.
  • the angle information in the dialing control attribute is a change value.
  • the touch screen dialing keyboard is initialized, the angle between each dialing control and the positive direction of the circular display area is configured as the initial value of the angle information of the dialing control, and the dialing keyboard is When the dialing control is distributed on the circular display area of the touch screen, the initial position distribution of the dialing control on the touch screen can be realized according to the initial value of the angle information of each dialing control.
  • All the dialing controls of the dialing keyboard are evenly distributed on the circumference of the edge of the circular display area according to the obtained size information of the touch screen and the angle information of each dialing control of the dialing keyboard.
  • step S30 the preferred method of evenly distributing all the dialing controls of the dialing keyboard in the circular display area is as follows:
  • the dial control is evenly distributed at a corresponding position on the circumference of the edge of the circular display area according to the initial position information of each dial control on the touch screen.
  • step S40 the circumference of the edge of the circular display area refers to a position close to or located on the circumference of the largest inscribed circle of the touch screen.
  • the angle information of the dialing control of the dialing keyboard when the dialing keyboard of the touch screen is implemented, all the dialing controls of the dialing keyboard are evenly distributed on the touch according to the obtained size information of the touch screen and the angle information of each dialing control.
  • the touch screen space is fully utilized to reduce the accidental touch operation of fingers touching other dialing controls during the dialing process.
  • This embodiment is particularly suitable for a touch screen having a small screen area.
  • the dialing control of the dialing keyboard is evenly distributed in the circular display area of the touch screen, the user can select a corresponding number in the corresponding control area of the touch screen by clicking each dialing control.
  • the dial pad of the present invention can be slid by the user in the non-control area of the touch screen, thereby inputting the required number into the number input box.
  • all the dialing controls of the dialing keyboard of the touch screen are rotated by the user's sliding operation by the sliding operation of the user on the touch screen, and the dialing control corresponding to the preset condition is corresponding to the rotation during the rotation.
  • the digital pop-up is displayed at the center of the touch screen.
  • the user can stop the sliding operation according to the number displayed on the touch screen.
  • the pop-up is displayed in the middle of the touch screen.
  • the number corresponding to the dialing control at the position is input to the number input box of the dialing keypad to complete the input of the corresponding number.
  • the touch further includes:
  • the digital display at the center position of the touch screen is popped into the number input box, wherein the number input box of the touch screen dial keyboard can be set on the touch screen
  • the corresponding position makes the user conveniently and comfortably view the number selected in the number input box when using the touch screen dialing keyboard.
  • the dial control belonging to the preset angle range corresponds to The digital pop-up is displayed at the center of the touch screen, and the number input box is placed at a corresponding position relatively far from the center of the touch screen to prevent the user from confusing the pop-up displayed number and the number that needs to be input into the number input box.
  • the initial position information on the touch screen for each dialing control should be understood as: initializing on the touch screen dialing keyboard, uniformly distributing all dialing controls of the number keyboard On the circumference of the edge of the circular display area, according to the initial value of the angle information of each dial control of the dial pad, the center of the touch screen and the radius of the circular display area of the touch screen, the initial of each dial control on the touch screen can be obtained.
  • Location information whenever the user performs a sliding dial on the touch screen, all the dial controls of the touch screen dialing keyboard are rotated according to the user's sliding operation. When the user completes a sliding dialing operation, all the dialing controls do not return to their initialization.
  • Touching the initial position on the screen, but staying at the current position after the rotation, that is, the position information of each dial control on the touch screen is a variable value.
  • the present embodiment distinguishes the initial position information of the dial control on the touch screen at the time of initialization and the current position information rotated in accordance with the sliding operation of the user.
  • the preferred solution controls the dialing dialing control to follow the sliding operation of the user through the sliding operation of the user, and detects the angle of each dialing control in real time during the rotation of the dialing control with the sliding operation of the user, and the dialing control that meets the condition is The corresponding number is entered into the number entry box.
  • the method of the preferred solution can completely solve the problem that the dialing keyboard is prone to false touch operation during the dialing process.
  • the method for implementing the touch screen dial keyboard further includes:
  • Each auxiliary key of the dial pad is separately configured with a dial control.
  • the dial pad includes a hash key (# key), a rice key (* key), and a plus key (+ key)
  • Three auxiliary keys can be used to configure the Tic Tac Toe with the dial control with the number "8".
  • the Mi word key is configured with the dial control of the number "9", and the plus key and the number are "0".
  • the dial controls are configured together.
  • the keyboard implementation method also includes:
  • the long press operation In response to a long press operation of the user on the touch screen, the long press operation is timed, and when the time of the long press operation is less than or equal to the preset time threshold, the number corresponding to the dial control is popped up at the center position of the touch screen; When the time of the long press operation is greater than the preset time threshold, the auxiliary key shared with the dial control is popped up at the center of the touch screen.
  • the preferred solution reduces the number of controls that need to be evenly distributed on the circumference of the edge of the circular display area of the touch screen by configuring the auxiliary keys of the dial pad together with a dial control, so that the dial control has enough controls on the touch screen.
  • the area enables the user to further reduce the false touch operation when the user touches the touch control on the screen, thereby improving the practicability and viewing of the dial keyboard.
  • the number of controls distributed on the circumference of the edge of the circular display area of the touch screen is further reduced by distributing the functional controls inside the circumference of the edge of the circular display area of the touch screen.
  • the method for implementing the touch screen dial pad further includes:
  • the function control attribute of the dial pad is configured, and the function control attribute includes the identification information, the display information, and the location information of the function control.
  • the function control includes a delete control and a phone for playing the phone number and answering and hanging up the phone.
  • the click event of the function control of the dial pad is configured, and in response to the click operation of the user on the touch screen, the operation of the corresponding function control is performed according to the position information clicked by the user on the touch screen.
  • the preferred solution distributes the function control of the dialing keyboard inside the circular display area, so that when the touch screen dialing keyboard responds to the sliding operation of the user on the touch screen, the function control of the dialing keyboard does not follow the sliding operation of the user, which is convenient.
  • the user makes the corresponding function selection.
  • the embodiment of the present invention uses a smart watch based on the Android system to implement the touch screen dialing keyboard as an example, and further illustrates the method for implementing the touch screen dial keyboard of the present invention. And its beneficial effects.
  • the touch screen dialing keyboard of the smart watch in this embodiment includes ten dialing controls, three auxiliary keys and two function controls, wherein ten dialing controls are dialing controls corresponding to numbers “0” to “9”, and three auxiliary keys They are the hex key (# key), the m word key (* key), and the plus key (+ key).
  • the two function controls are the delete control and the phone for broadcasting and answering and hang up the phone number. Control.
  • the size information of the touch screen of the smart watch is obtained, and the center of the touch screen is taken as the origin, and the preset length is a radius to set the circular display area of the touch screen, and the preset length is calculated according to the obtained size information of the touch screen.
  • the dialing controls for "0" are configured together.
  • the angle information of the dialing control when configuring the angle information of the dialing control, set the horizontal direction to the right to the positive direction of the circular display area, the circumference of the edge of the circular display area is equally divided, and the angle between each aliquot and the positive direction of the circumference
  • the angle information of a dialing control corresponds to the initial value of the angle information of a dialing control, assuming that the halved point at an angle of 0° with respect to the positive direction of the circular area corresponds to the dialing control of the number “4”, the angle is 36° with the positive direction of the circular area, etc.
  • the dialing point corresponds to the dialing control of the number "5", and the halving point at an angle of 72° with the positive direction of the circular area corresponds to the dialing control of the number "6", thereby obtaining the dialing control of each dialing control The initial value of the angle information.
  • the position of each control on the touch screen is identified by the distance of the control from the upper edge of the touch screen and the distance from the left edge.
  • the touch screen of the Android system is used as a plane rectangular coordinate system, by default, the coordinate system is based on the upper left corner of the touch screen, the horizontal direction is the positive direction of the X axis, and the vertical direction is the positive direction of the Y axis.
  • the plane rectangular coordinate system of the touch screen of the Android system is recorded as an XOY coordinate system.
  • the embodiment In order to facilitate the even distribution of all the dialing controls of the dialing keyboard to the display area of the touch screen through the angle information of the dialing control of the dialing keyboard and the size information of the touch screen, the embodiment also virtualizes an auxiliary coordinate system, and the auxiliary coordinate system is a touch screen.
  • the center of the center is the origin
  • the lateral direction is the positive direction of the X-axis
  • the vertical direction is the positive direction of the Y-axis.
  • the auxiliary coordinate system is recorded as the X'O'Y' coordinate system.
  • the size information of the touch screen can be obtained through the corresponding interface of the Android system, and the circle of the touch screen is realized by customizing the ViewGroup of the View view of the Android system.
  • Defining the CircleLayout specifically includes: the center position information of the touch screen in the touch screen size information obtained from the corresponding interface of the Android system is the center of the circle, and the width W/K of the touch screen in the size information of the touch screen is a radius, and K is greater than The real number of 2, in this embodiment, K is equal to 2.5, of course, K can also take other values; calculate the position information of the dial control in the auxiliary coordinate system of the touch screen by the initial value of the angle information of each dial control, and the default by touching the screen
  • the mapping relationship between the coordinate system and the auxiliary coordinate system obtains the position information of each dial control in the default coordinate system of the touch screen, and distributes the dial control at the corresponding position of the touch screen according to the position information.
  • the main code of converting the position information of each dial control in the auxiliary coordinate system into the position information corresponding to the dial control in the default coordinate system is:
  • x radius*Math.cos(Math.toRadians(angle);//Calculate the abscissa of the dial control in the XOY coordinate system
  • y radius*Math.sin(Math.toRadians(angle);//Calculate the ordinate of the dial control in the XOY coordinate system
  • Top Math.round((float)(((layoutHeight/2)-childHeight/2)+y)));// Convert the ordinate of XOY into the vertical axis coordinate of X’O’Y’
  • Child.layout (left,top,left+childWidth,top+childHeight);//Set the position of the dial control on the touch screen
  • the radius in the above formula is the radius of the circular display area of the touch screen
  • Math.cos() and Math.sin() are respectively trigonometric functions for solving the cosine and sine values in the Android system
  • the angle is the dial control and
  • Math.toRadians() is a function for converting the angle value to the radians value in the Android system
  • Math.round() is the rounding function in the Android system
  • float() is In the Android system, the cast function, layoutWidth and layoutHeight are the width and height values of the touch screen respectively, childWidth and childHeight are the width and height values of each dial control in the Android system respectively, and child.layout() is in the Android system. Used to distribute dial controls across the touch screen position distribution function.
  • FIG. 2 it is a schematic diagram of the touch screen dialing keyboard implemented by the method of the embodiment of the present invention.
  • the dialing controls of the numbers “0” to “9” are evenly distributed on the circumference of the edge of the circular display area, and the three auxiliary keys are thus arranged together with the numbers “0”, the numbers “8” and the number “9” to be displayed on the touch.
  • the phone control and the delete control are distributed in the circumference of the edge of the circular display area, and the number "2" has been input to the number input box of the touch screen by the user's slide dialing operation.
  • the trigger events for configuring the touch screen screen dialing keyboard mainly include the rotation, click, and long press of the control.
  • the dialing keyboard responds to the user's one sliding operation on the touch screen mainly by an onTouchEvent (a trigger event of the dialing keyboard), the onTouchEvent includes a MotionEvent.ACTION_DOWN (press) event, a MotionEvent.ACTION_MOVE (moving) event, and a MotionEvent.ACTION_UP (lift) the event.
  • This embodiment rewrites the onTouchEvent method in the Android system, and records the position information of the touch point in the auxiliary coordinate system at each moment during the sliding operation of the user on the touch screen by the MotionEvent.ACTION_DOWN event, and each time
  • the position information of the touch point in the auxiliary coordinate system is converted into the angle information of the positive direction of the circumferential direction; the current value angle of the angle information of each dial control is detected, and the angle corresponding to the positive direction of the circumferential direction belongs to the dial control of the preset angle range
  • the digital pop-up is displayed at the center of the touch screen.
  • the preset angle ranges from plus or minus 18° in the positive direction of the circumference;
  • the MotionEvent.ACTION_MOVE event calculates the angle change value of the angle information of the touch point and the positive direction of the current moment relative to the angle information of the touch point and the positive direction of the circle at the current moment, and obtains the touch point of the touch point at the current moment relative to the previous moment.
  • All the dialing controls of the dialing keyboard follow the sliding operation of the user to change the rotation of the angle_move, and according to the current position information of each dialing control on the touch screen after the rotation of the angle_move is changed, Reconfigure the current value of the angle information for each dial control relative to the positive direction of the circle.
  • the MotionEvent.ACTION_UP event responds to the user's operation of stopping the slide and leaving on the touch screen, inputs the number displayed at the center position of the touch screen into the number input box, and cancels the timing of the long press event.
  • the configuration of the button click event of the dialing keyboard is realized by the configuration of the button click event in the Android system, and the click event of the delete control is configured.
  • the click event of the dial control of the dial pad can also be configured to provide the user with a traditional click-to-dial method in response to the user's click operation on the touch screen.
  • the embodiment of the present invention further provides a smart watch, which comprises a touch screen and a touch screen dial keyboard, and FIG. 3 is provided according to an embodiment of the present invention.
  • a schematic diagram of a device structure implemented by a touch screen dialing keyboard, the device comprising:
  • the obtaining unit 30 is configured to obtain size information of the touch screen, with the center of the touch screen as an origin, and the preset length is a circular display area of the touch screen; wherein the preset length is calculated according to the obtained size information of the touch screen. .
  • the attribute configuration unit 31 is configured to configure an attribute of each dial control of the dial pad, and the attributes of the dial control include digital information, display information, and angle information of the dial control.
  • the distribution unit 32 is configured to: according to the size information of the touch screen obtained by the obtaining unit and the angle information of each dial control of the dial keyboard configured by the attribute configuration unit, all the dialing controls of the dialing keyboard are It is evenly distributed on the circumference of the edge of the circular display area.
  • the display unit 33 is configured to display all the dial controls of the dial pad on the circumference of the edge of the circular display area of the touch screen according to the digital information and the display information of each dial control of the dial pad configured by the attribute configuration unit.
  • the attribute configuration unit 31 is specifically configured to N divide the circumference of the edge of the circular display area according to the number of dialing controls of the dialing keyboard; wherein N is equal to the number of dialing controls of the dialing keyboard And setting the positive direction of the circle, according to the angle between each aliquot on the circumference and the positive direction of the circumference, obtaining an initial value of the angle information of the corresponding dialing control, according to the initial value of the angle information for each dial control attribute Angle information is configured.
  • the distribution unit 32 is configured to calculate initial position information of each dial control on the touch screen according to an initial value of an angle information of each dial control of the dial pad, a center position information of the touch screen, and a preset length; and according to each dial control
  • the initial position information on the touch screen distributes the dial control evenly at the corresponding position of the circumference of the edge of the circular display area.
  • the attribute configuration unit 31 reduces the number of controls distributed on the circumference of the edge of the circular display area of the touch screen by arranging the auxiliary keys of the dial pad with a dial control, respectively, to ensure There is enough space between adjacent dialing controls to reduce false touches during dialing.
  • the attribute configuration unit 31 is further configured to separately configure each auxiliary key of the dial pad with a dial control; and modify the display information of the dial control according to the auxiliary key.
  • the auxiliary keys of the dial pad illustratively include three auxiliary keys: a hash key (# key), a rice key (* key), and a plus key (+ key), and the attribute configuration unit 31 can input the well key. Configured with the dial control with the number "8", the meter key is configured with the dial control of the number "9", and the plus key is configured with the dial control of the number "0".
  • the attribute configuration unit 31 further reduces the distribution on the circumference of the edge of the circular display area of the touch screen by distributing the function control inside the circumference of the edge of the circular display area of the touch screen. The number of controls.
  • the attribute configuration unit 31 is further configured to configure a function control attribute of the dial pad, where the function control attribute includes identification information, display information, and location information of the function control; and according to the obtained size information of the touch screen and the position information of the function control. Distributing the function control of the dialing keyboard inside the circle of the edge of the touch screen; and configuring the click event of the function control of the dialing keyboard, responding to the click operation of the user on the touch screen, according to the position information of the user clicking on the touch screen, correspondingly The operation of the function control.
  • the dial pad of the present invention can be slid by the user in the non-control area of the touch screen, thereby inputting the required number into the number input box.
  • the device implemented by the touch screen dial keyboard of the embodiment further includes a trigger event configuration unit,
  • a trigger event for configuring a dial pad in response to a user sliding operation on the touch screen, recording position information of the touch point at each moment of the user's touch operation on the touch screen, and touching the point of each moment
  • the position information is converted into an angle with respect to the positive direction of the circumference, and the angle between the angle of the touch point at the current moment and the positive direction of the circumference is calculated from the angle between the angle of the touch point at the previous moment and the positive direction of the circumference, and the touch at the current moment is obtained.
  • the number displayed at the center of the touch screen is entered into the number entry box.
  • the trigger event configuration unit in this embodiment is further configured to time the long press operation in response to the long press operation of the user on the touch screen, and when the time of the long press operation is less than or equal to the preset time threshold, the touch screen is The number corresponding to the dial control is popped up at the center position; when the time period of the long press operation is greater than the preset time threshold, the auxiliary key shared with the dial control is popped up at the center of the touch screen.
  • the embodiments of the present invention provide a method and an intelligent implementation of a touch screen dial keyboard.
  • the watch by configuring the properties of the dialing control of the dialing keyboard, when implementing the dialing keyboard of the touch screen, uniformly distributes all the dialing controls of the dialing keyboard on the touch screen according to the obtained size information of the touch screen and the angle information of each dialing control.
  • the space of the touch screen is fully utilized, which reduces the accidental touch operation of fingers touching other dialing controls during the dialing process, improves the success rate of the dialing operation, and enhances the user experience.
  • the trigger event of the dialing control is also configured, so that the user can input the required number into the number input box by sliding operation on the touch screen to completely cancel the false touch problem in the dialing process.
  • 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 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 4 illustrates a server, such as an application server, that implements a touch screen dial pad in accordance with the method of the present invention.
  • the server conventionally includes a processor 40 and a computer program product or computer readable medium in the form of a memory 41.
  • the memory 41 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.
  • the memory 41 has a storage space 42 for program code 43 for performing any of the method steps described above.
  • storage space 42 for program code may include various program code 43 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.
  • These computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)
  • Position Input By Displaying (AREA)
  • Telephone Function (AREA)
  • Input From Keyboards Or The Like (AREA)

Abstract

一种触摸屏幕拨号键盘实现的方法和智能手表,该方法包括:获得该触摸屏幕的尺寸信息,以该触摸屏幕的中心为原点,预设长度为半径设置该触摸屏幕的圆形显示区域(S10);配置该拨号键盘的每个拨号控件的属性,该拨号控件的属性包括该拨号控件的数字信息、显示信息和角度信息(S20);根据获得的该触摸屏幕的尺寸信息以及该拨号键盘的每个拨号控件的角度信息将该拨号键盘的所有拨号控件均匀分布在该圆形显示区域边缘的圆周上(S30);根据该拨号键盘的每个拨号控件的数字信息和显示信息将该拨号键盘的所有拨号控件显示在该触摸屏幕的圆形显示区域边缘的圆周上(S40)。该方法能够有效地减少在拨号过程中的误触操作。

Description

一种触摸屏幕拨号键盘实现的方法和智能手表 技术领域
本发明涉及计算机技术领域,特别涉及一种触摸屏幕拨号键盘实现的方法和智能手表。
发明背景
智能手表是在手表中内置智能化系统、搭载智能手机系统而连接于网络,可实现多功能的一种智能化设备。目前,智能手表大致可分为两种,一种是不带电话功能的,此种智能手表能同步手机中的资源,例如同步手机中的电话、短信、邮件、照片以及音乐等;另一种是带通话功能的,支持SIM卡(Subscriber Identity Module,客户识别模块),其本质是手表形态的智能手机。
电话模块是具有通话功能的智能手表的重要功能模块,由于智能手表的屏幕较小,对于手指在屏幕上的操作,普通九宫格排布的拨号键盘在拨号过程中容易出现误触的现象,造成不佳的用户体验。
发明内容
本发明提供了一种触摸屏幕拨号键盘实现的方法和智能手表,以解决使用现有技术的拨号键盘进行拨号的过程中易出现误触而导致用户体验差的问题。
为达到上述目的,本发明的技术方案是这样实现的:
一方面,本发明提供了一种触摸屏幕拨号键盘实现的方法,所述方法包括:
获得触摸屏幕的尺寸信息,以触摸屏幕的中心为原点,预设长度为半径设置触摸屏幕的圆形显示区域;其中,预设长度根据获得的触摸屏幕的尺寸信息计算得到;
配置拨号键盘的每个拨号控件的属性,拨号控件的属性包括该拨号控件的数字信息、显示信息和角度信息;
根据获得的触摸屏幕的尺寸信息以及拨号键盘的每个拨号控件的角度信息将拨号键盘的所有拨号控件均匀分布在圆形显示区域边缘的圆周上;
根据拨号键盘的每个拨号控件的数字信息和显示信息将拨号键盘的所有拨号控件显示在触摸屏幕的圆形显示区域边缘的圆周上。
优选地,所述方法还包括:
配置拨号键盘的触发事件,响应用户在触摸屏幕上的一次滑动操作,记录 用户在所述触摸屏幕上一次滑动操作过程中每一时刻的触摸点的位置信息,并将每一时刻的触摸点的位置信息转换为相对圆周正方向的夹角,同时计算当前时刻的触摸点与圆周正方向的夹角相对前一时刻的触摸点与圆周正方向的夹角的角度变化值,获得当前时刻的触摸点相对前一时刻的触摸点的变化夹角;
控制拨号键盘的所有拨号控件跟随用户的滑动操作进行变化夹角的旋动,同时根据进行变化夹角的旋动后每个拨号控件在触摸屏幕上的当前位置信息,重新配置每个拨号控件相对所述圆周正方向的角度信息。
进一步优选地,在控制拨号键盘的所有拨号控件跟随用户的滑动操作进行所述变化夹角的旋动时,所述方法还包括:
检测任意拨号控件相对所述圆周正方向的夹角,将相对圆周正方向的夹角属于预设夹角范围的拨号控件对应的数字弹出显示在触摸屏幕的中心位置;
响应用户在触摸屏幕上停止该次滑动并离开的操作,将弹出显示在触摸屏幕的中心位置处的数字输入到号码输入框中。
另一方面,本发明提供了一种智能手表,所述智能手表包括触摸屏幕和触摸屏幕拨号键盘实现的装置,所述装置包括:
获取单元,用于获得触摸屏幕的尺寸信息,以触摸屏幕的中心为原点,预设长度为半径设置触摸屏幕的圆形显示区域;其中,预设长度根据获得的触摸屏幕的尺寸信息计算得到;
属性配置单元,用于配置拨号键盘的每个拨号控件的属性,拨号控件的属性包括该拨号控件的数字信息、显示信息和角度信息;
分布单元,用于根据获取单元获得的触摸屏幕的尺寸信息以及属性配置单元配置的拨号键盘的每个拨号控件的角度信息将拨号键盘的所有拨号控件均匀分布在圆形显示区域边缘的圆周上;
显示单元,用于根据属性配置单元配置的拨号键盘的每个拨号控件的数字信息和显示信息将拨号键盘的所有拨号控件显示在触摸屏幕的圆形显示区域边缘的圆周上。
优选地,所述装置还包括触发事件配置单元,
用于配置拨号键盘的触发事件,响应用户在触摸屏幕上的一次滑动操作,记录用户在触摸屏幕上一次滑动操作过程中每一时刻的触摸点的位置信息,并将每一时刻的触摸点的位置信息转换为相对圆周正方向的夹角,同时计算当前时刻的触摸点与圆周正方向的夹角相对前一时刻的触摸点与圆周正方向的夹角 的角度变化值,获得当前时刻的触摸点相对前一时刻的触摸点的变化夹角;
控制拨号键盘的所有拨号控件跟随用户的滑动操作进行变化夹角的旋动,同时根据进行变化夹角的旋动后每个拨号控件在触摸屏幕上的当前位置信息,重新配置每个拨号控件相对圆周正方向的夹角;
检测任意拨号控件相对圆周正方向的夹角,将相对圆周正方向的夹角属于预设夹角范围的拨号控件对应的数字弹出显示在触摸屏幕的中心位置;
响应于用户在触摸屏幕上停止该次滑动并离开的操作,将弹出显示在触摸屏幕的中心位置处的数字输入到号码输入框中。
本发明实施例的有益效果是:本发明实施例提供的技术方案,通过配置拨号键盘的拨号控件的属性,在实现触摸屏幕的拨号键盘时,根据获得的触摸屏幕的尺寸信息和每个拨号控件的角度信息将拨号键盘的所有拨号控件均匀分布在触摸屏幕的圆形显示区域边缘的圆周上,充分利用触摸屏幕的空间,减少在拨号过程中出现手指误触其他拨号控件的误触操作,提高拨号操作的成功率,增强用户体验。在优选方案中,还通过配置拨号控件的触发事件,使用户可以在触摸屏幕上通过滑动操作将需要的数字输入到号码输入框中,以彻底解除拨号过程中的误触问题。
附图简要说明
图1为本发明实施例提供的触摸屏幕拨号键盘实现的方法流程图;
图2为本发明实施例提供的触摸屏幕拨号键盘示意图;
图3为本发明实施例提供的触摸屏幕拨号键盘实现的装置结构示意图;
图4示意性地示出了用于执行根据本发明的方法的服务器的框图。
具体实施方式
为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施方式作进一步地详细描述。
图1为本发明实施例提供的触摸屏幕拨号键盘实现的方法流程图,该触摸屏幕拨号键盘实现的方法包括:
S10,获得触摸屏幕的尺寸信息,以触摸屏幕的中心为原点,预设长度为半径设置触摸屏幕的圆形显示区域;其中,预设长度根据获得的触摸屏幕的尺寸信息计算得到。
在步骤S10中,触摸屏幕的圆形显示区域对应的圆形优选为触摸屏幕的最 大内切圆,该触摸屏幕的最大内切圆应理解为在触摸屏幕上加载并显示拨号键盘时,拨号键盘的所有控件均能在触摸屏幕上完整显示。例如,以触摸屏幕中心为圆心,触摸屏幕的宽度/2.5为半径建立上述圆形显示区域,从而在将数字按钮均匀分布在圆形显示区域的圆周上时,能够让用户获得较佳的视觉体验,其中本实施例以长度区分触摸屏幕长边和宽边,将较短的边设定为触摸屏幕的短边,将较长的边设定为触摸屏幕的长边。
S20,配置拨号键盘的每个拨号控件的属性,拨号控件的属性包括该拨号控件的数字信息、显示信息和角度信息。
在步骤S20中,配置拨号键盘的每个拨号控件的角度信息的优选方法如下:
根据拨号键盘的拨号控件的数量将上述圆周进行N等分;其中,N等于拨号键盘的拨号控件的数量;假如有“0”至“9”十个拨号控件,则将圆形显示区域边缘的圆周进行十等分。
设定圆周的正方向,根据该圆周上每一等分点与该圆周正方向的夹角获得对应的拨号控件的角度信息初始值,根据角度信息初始值对每个拨号控件属性中的角度信息进行配置。
其中,每个拨号控件属性中的数字信息是指拨号控件显示在触摸屏幕上“0”至“9”的数字,显示信息包括拨号控件在触摸屏幕上的显示方式,颜色设置等。本实施例为凸显拨号控件在触摸屏幕上的显示效果,将数字以白色显示,背景以相对较深的深色显示,以达到凸显每个拨号控件的数字的目的,并将拨号控件显示在触摸屏幕上的形状设定为与触摸屏幕形状相同,以便提供较为舒服的视觉观感,例如当触摸屏幕为圆形时,则可将拨号键盘的每个拨号控件均显示为圆形。显然本实施例仅是示意性的说明拨号控件属性中的数字信息和显示信息的作用,在配置每个拨号控件的属性时,可以参照设计要求实现。其中拨号控件属性中的角度信息为一个变化值,在触摸屏幕拨号键盘初始化时,将每个拨号控件与圆形显示区域正方向的夹角配置为拨号控件的角度信息初始值,在将拨号键盘的拨号控件分布在触摸屏幕的圆形显示区域上时,可以根据每个拨号控件的角度信息初始值实现拨号控件在触摸屏幕上的初始位置分布。
S30,根据获得的触摸屏幕的尺寸信息以及拨号键盘的每个拨号控件的角度信息将拨号键盘的所有拨号控件均匀分布在圆形显示区域边缘的圆周上。
在步骤S30中,将拨号键盘的所有拨号控件均匀分布在圆形显示区域的优选方法如下:
根据拨号键盘的每个拨号控件的角度信息初始值、触摸屏幕的中心位置信息以及预设长度计算每个拨号控件在触摸屏幕的初始位置信息;
根据每个拨号控件在触摸屏幕上的初始位置信息将拨号控件均匀分布在圆形显示区域边缘的圆周的相应位置处。
S40,根据拨号键盘的每个拨号控件的数字信息和显示信息将拨号键盘的所有拨号控件显示在触摸屏幕的圆形显示区域边缘的圆周上。
在步骤S40中,圆形显示区域边缘的圆周是指接近或位于触摸屏幕的最大内切圆的圆周上的位置。
本实施例通过配置拨号键盘的拨号控件的角度信息,在实现触摸屏幕的拨号键盘时,根据获得的触摸屏幕的尺寸信息和每个拨号控件的角度信息将拨号键盘的所有拨号控件均匀分布在触摸屏幕的圆形显示区域边缘的圆周上,充分利用触摸屏幕空间,减少在拨号过程中出现手指误触其他拨号控件的误触操作。
本实施例尤其适用于屏幕面积小的触摸屏幕。
在将拨号键盘的拨号控件均匀分布在触摸屏幕的圆形显示区域后,用户可以通过点击每个拨号控件在触摸屏幕的对应控件区域选择相应的数字。考虑当拨号控件在触摸屏幕上对应的控件区域较小时,可能仍然存在拨号过程中会出现误触其他拨号控件的操作。因此,在实现触摸屏幕拨号键盘的过程中,本发明的拨号键盘可以通过用户在触摸屏幕的非控件区域滑动,从而将需要的数字输入到号码输入框中。
在本实施例的一优选方案中,通过用户在触摸屏幕上的滑动操作使触摸屏幕的拨号键盘的所有拨号控件跟随用户的滑动操作旋转,在旋转的过程中将符合预设条件的拨号控件对应的数字弹出显示在触摸屏幕的中心位置处,作为提示数字,用户可以根据弹出显示在触摸屏幕上的数字停止此次的滑动操作,在用户的手指离开触摸屏幕时,将弹出显示在触摸屏幕中间位置处的拨号控件对应的数字输入到拨号键盘的号码输入框中,完成相应数字的输入。
具体的,在本实施例的优选方案中,在根据拨号键盘的每个拨号控件的数字信息和显示信息将拨号键盘的所有拨号控件显示在触摸屏幕的圆形显示区域边缘的圆周之后,上述触摸屏幕拨号键盘实现的方法还包括:
配置拨号键盘的触发事件,响应用户在触摸屏幕上的一次滑动操作,记录用户在触摸屏幕上一次滑动操作过程中每一时刻的触摸点的位置信息,并将每一时刻的触摸点的位置信息转换为相对圆周正方向的夹角,同时计算当前时刻 的触摸点与圆周正方向的夹角相对前一时刻的触摸点与圆周正方向的夹角的角度变化值,获得当前时刻的触摸点相对前一时刻的触摸点的变化夹角;
控制拨号键盘的所有拨号控件跟随用户的滑动操作进行变化夹角的旋动,同时根据进行变化夹角的旋动后每个拨号控件在触摸屏幕上的当前位置信息,重新配置每个拨号控件相对圆周正方向的夹角。
进一步地,在控制拨号键盘的所有拨号控件跟随用户的滑动操作进行变化夹角的旋动时,检测任意拨号控件相对圆周正方向的夹角,将相对圆周正方向的夹角属于预设夹角范围的拨号控件对应的数字弹出显示在触摸屏幕的中心位置;
响应用户在触摸屏幕上停止该次滑动并离开的操作,将弹出显示在所述触摸屏幕的中心位置处的数字输入到号码输入框中,其中触摸屏幕拨号键盘的号码输入框可以设置在触摸屏幕的相应位置处,使得在使用触摸屏幕拨号键盘进行拨号操作时,用户较为方便、舒适地查看已选中输入到号码输入框中的数字,参考图2,将属于预设夹角范围的拨号控件对应的数字弹出显示在触摸屏幕的中心位置,将号码输入框设置在相对远离触摸屏幕中心的相应位置处,避免用户混淆弹出显示的数字和需要输入到号码输入框中的数字。
参考本实施例的步骤S30并结合本实施例的上述优选方案,对于每个拨号控件在触摸屏幕上的初始位置信息应理解为:在触摸屏幕拨号键盘初始化,将号键盘的所有拨号控件均匀分布在圆形显示区域边缘的圆周上时,根据拨号键盘的每个拨号控件的角度信息初始值、触摸屏幕的中心和触摸屏幕圆形显示区域的半径即可得到每个拨号控件在触摸屏幕的初始位置信息,每当用户在触摸屏幕上进行滑动拨号时,触摸屏幕拨号键盘的所有拨号控件都根据用户的滑动操作旋转,当用户完成一次滑动拨号操作时,所有拨号控件并不返回其初始化时在触摸屏幕上的初始位置,而是停留在旋转后的当前位置,也即每个拨号控件在触摸屏幕上的位置信息是一个变动的数值。为了便于理解,本实施例区分了拨号控件在初始化时在触摸屏幕上的初始位置信息以及在跟随用户的滑动操作进行旋转的当前位置信息。
本优选方案通过用户的滑动操作,控制拨号键盘拨号控件跟随用户的滑动操作旋转,在拨号控件随着用户的滑动操作旋转的过程中,实时地检测各拨号控件的角度,将符合条件的拨号控件对应的数字输入到号码输入框。本优选方案的方法能够彻底解决拨号键盘在拨号过程中容易出现误触操作的问题。
在本实施例的另一优选方案中,通过将拨号键盘的辅助键分别与一个拨号控件配置在一起,减少分布在触摸屏幕的圆形显示区域边缘的圆周上的控件数量,保证相邻拨号控件间具有足够的空间,进而减少拨号过程中出现的误触操作。具体的,在本实施例的另一优选方案中,触摸屏幕拨号键盘实现的方法还包括:
将拨号键盘的每个辅助键分别与一个拨号控件配置在一起,例如,参见图2,若拨号键盘包括井字键(#键)、米字键(*键)和加号键(+键)三个辅助键,可以将井字键与数字为“8”的拨号控件配置在一起,将米字键与数字为“9”的拨号控件配置在一起,将加号键与数字为“0”的拨号控件配置在一起。
根据辅助键修改拨号控件的显示信息,使与配置有辅助键的拨号控件显示其对应的辅助键符号,如在数字8的控件显示信息中加入“#”符号的显示信息,并将“#”符号显示在数字8对应的控件的显示界面上。
当拨号键盘的辅助键分别与一拨号控件配置在一起时,在将相对圆周正方向的夹角属于预设夹角范围的拨号控件对应的数字弹出显示在触摸屏幕的中心位置时,触摸屏幕拨号键盘实现的方法还包括:
响应于用户在触摸屏幕上的长按操作,对长按操作计时,当长按操作的计时时间小于或等于预设的时间阈值时,在触摸屏幕中心位置处弹出显示该拨号控件对应的数字;当长按操作的计时时间大于预设的时间阈值时,在触摸屏幕中心位置处弹出显示与该拨号控件共用的辅助键。
需要说明的是,当弹出显示在触摸屏幕的中心位置处的拨号控件单独配置,即未与拨号键盘的辅助键配置在一起时,即使用户在触摸屏幕上进行长按操作,此时,触摸屏幕拨号键盘不会对用户当前的长按操作进行上述响应。
本优选方案通过将拨号键盘的辅助键分别与一个拨号控件配置在一起,减少需要均匀分布在触摸屏幕的圆形显示区域边缘的圆周上的控件数量,使拨号控件在触摸屏幕上具有足够的控件区域,使得当用户通过点击触摸屏幕上的拨号控件时,能够进一步减少误触操作,提高拨号键盘的实用性和观赏性。
在本实施例的又一优选方案中,通过将功能控件分布在触摸屏幕的圆形显示区域边缘的圆周内部,进一步减少分布在触摸屏幕的圆形显示区域边缘的圆周上的控件数量。
具体的,在本实施例的又一优选方案中,触摸屏幕拨号键盘实现的方法还包括:
配置拨号键盘的功能控件属性,功能控件属性包括该功能控件的标识信息、显示信息和位置信息;本实施例中功能控件包括删除控件和用于将电话号码播出以及接听、挂断电话的电话控件;
根据获得的触摸屏幕的尺寸信息以及功能控件的位置信息将拨号键盘的功能控件分布在触摸屏幕边缘的圆周内部;
配置拨号键盘的功能控件的点击事件,响应于用户在触摸屏幕上的点击操作,根据用户在触摸屏幕上点击的位置信息,进行相应的功能控件的操作。
本优选方案通过将拨号键盘的功能控件分布在圆形显示区域内部,使得触摸屏幕拨号键盘在响应用户在触摸屏幕上的滑动操作时,拨号键盘的功能控件不跟随用户的滑动操作进行旋转,方便用户进行相应的功能选择。
由于市面上具有通话功能的智能手表大部分使用Android系统,因此本实施例以一基于Android系统的智能手表实现其触摸屏幕拨号键盘的方法为例,进一步说明本发明的触摸屏幕拨号键盘实现的方法及其有益效果。
本实施例中智能手表的触摸屏幕拨号键盘包括十个拨号控件,三个辅助键和两个功能控件,其中十个拨号控件为数字“0”至“9”对应的拨号控件,三个辅助键分别为井字键(#键)、米字键(*键)和加号键(+键),两个功能控件分别为删除控件和用于将电话号码播出以及接听、挂断电话的电话控件。
本实施例智能手表的触屏屏幕拨号键盘的实现方法如下:
首先,将拨号键盘的拨号控件、辅助键和功能控件设置在触摸屏幕上的相应位置处。
获得智能手表的触摸屏幕的尺寸信息,以触摸屏幕的中心为原点,预设长度为半径设置触摸屏幕的圆形显示区域,预设长度根据获得的触摸屏幕的尺寸信息计算得到。配置拨号控件的数字信息、显示信息和角度信息,并将井字键与数字“9”的拨号控件配置在一起,将米字键与“8”的拨号控件配置在一起,将加号键与“0”的拨号控件配置在一起。其中,在配置拨号控件的角度信息时,设定横向向右为圆形显示区域的正方向,将圆形显示区域边缘的圆周十等分,每一等分点与该圆周正方向的夹角对应一个拨号控件的角度信息初始值,假设与圆形区域正方向成0°夹角的等分点对应为数字“4”的拨号控件,则与圆形区域正方向成36°夹角的等分点对应为数字“5”的拨号控件,与圆形区域正方向成72°夹角的等分点对应为数字“6”的拨号控件,依此获得每个拨号控件的 角度信息初始值。
在获得数字“0”至“9”的拨号控件的角度信息初始值后,根据每个拨号控件的角度信息初始值以及触摸屏幕的中心位置和上述预设长度计算拨号控件在触摸屏幕上的初始位置信息,根据拨号控件的初始位置信息将拨号控件均匀分布在圆形显示区域的圆周的相应位置处。
考虑在安卓Android系统中,触摸屏幕上每个控件的位置是通过该控件与触摸屏幕上边缘的距离和与左边缘的距离进行标识的。如将Android系统的触摸屏幕作为一个平面直角坐标系,则默认状态下,该坐标系是以触摸屏幕的左上角为原点,水平向右为X轴正方向,竖直向下为Y轴正方向,本实施例将Android系统的触摸屏幕的该平面直角坐标系记为XOY坐标系。为了便于通过拨号键盘的拨号控件的角度信息和触摸屏幕的尺寸信息将拨号键盘的所有拨号控件均匀分布在触摸屏幕的显示区域,本实施例还虚拟一个辅助坐标系,该辅助坐标系以触摸屏幕的中心为原点,横向向右为X轴正方向,竖直向上为Y轴正方向,本实施例将该辅助坐标系记为X’O’Y’坐标系。
在Android系统中实现将拨号控件分布在触摸屏幕的相应位置处时,可通过Android系统的相应的接口获得触摸屏幕的尺寸信息,通过自定义Android系统的View视图的子类ViewGroup实现触摸屏幕的圆形显示区域CircleLayout的设定。
定义CircleLayout具体包括,将从Android系统的相应的接口获得的触摸屏幕尺寸信息中的触摸屏幕的中心位置信息为圆心,触摸屏幕的尺寸信息中的触摸屏幕的宽度W/K为半径,K为大于2的实数,本实施例中K等于2.5,当然K也可以取其他数值;通过每个拨号控件角度信息初始值计算拨号控件在触摸屏幕的辅助坐标系中的位置信息,以及通过触摸屏幕的默认坐标系与辅助坐标系的映射关系,获得每个拨号控件在触摸屏幕的默认坐标系中的位置信息,根据该位置信息将拨号控件分布在触摸屏幕的相应位置处。
通过触摸屏幕的默认坐标系与辅助坐标系的映射关系,将辅助坐标系中每个拨号控件的位置信息转换为默认坐标系中该拨号控件对应的位置信息的主要代码为:
通过CircleLayout中的布局onLayout方法获得拨号控件的位置:
x=radius*Math.cos(Math.toRadians(angle);//计算拨号控件在XOY坐标系中横坐标
y=radius*Math.sin(Math.toRadians(angle);//计算拨号控件在XOY坐标系中纵坐标
left=Math.round((float)(((layoutWidth/2)-childWidth/2)+x)));//将XOY中横坐标转化成X’O’Y’中横轴坐标
top=Math.round((float)(((layoutHeight/2)-childHeight/2)+y)));//将XOY中纵坐标转化成X’O’Y’中纵轴坐标
child.layout(left,top,left+childWidth,top+childHeight);//设置拨号控件在触摸屏幕中的位置
上述公式中的radius为触摸屏幕圆形显示区域的半径,Math.cos()和Math.sin()分别为Android系统中用于求解余弦值和正弦值对应的三角函数,angle为该拨号控件与圆形显示区域的正方向的夹角,Math.toRadians()为Android系统中用于将角度值转换为弧度值的函数,Math.round()为Android系统中的取整函数,float()为Android系统中强制转换函数,layoutWidth和layoutHeight分别为触摸屏幕的宽度值和高度值,childWidth和childHeight分别为Android系统中每个拨号控件对应的宽度值和高度值,child.layout()为Android系统中用于将拨号控件分布在触摸屏幕位置分布函数。
在将拨号键盘的拨号控件分布在触摸屏幕的相应位置处后,通过配置拨号键盘的电话控件和删除控件的标识信息、显示信息和位置信息,根据触摸屏幕的尺寸信息以及电话控件和删除控件的位置信息将拨号键盘的电话控件和删除控件分布在触摸屏幕边缘的圆周内部,从而完成拨号键盘所有控件的分布,参照图2,为通过本发明实施例的方法实现的触摸屏幕拨号键盘的示意图,数字“0”至“9”的拨号控件均匀分布在圆形显示区域边缘的圆周上,三个辅助键依此与数字“0”、数字“8”和数字“9”配置在一起显示在触摸屏幕上,电话控件和删除控件分布在圆形显示器区域边缘的圆周内,通过用户的滑动拨号操作已将数字“2”输入到触摸屏幕的号码输入框中。
然后,配置智能手表的触屏屏幕拨号键盘的触发事件。
在Android系统中,配置触屏屏幕拨号键盘的触发事件主要包括控件的旋转、点击、长按等操作。其中,拨号键盘响应用户在触摸屏幕上的一次滑动操作主要通过onTouchEvent(拨号键盘的触发事件)方法实现,该onTouchEvent包括MotionEvent.ACTION_DOWN(按下)事件、MotionEvent.ACTION_MOVE(移动)事件和MotionEvent.ACTION_UP(抬起)事件。
本实施例重写了Android系统中的onTouchEvent方法,通过MotionEvent.ACTION_DOWN事件记录用户在触摸屏幕上一次滑动操作过程中每一时刻的触摸点在辅助坐标系中的位置信息,并将每一时刻的触摸点在辅助坐标系中的位置信息转换为相对圆周正方向的角度信息;检测每个拨号控件角度信息当前值angle,将相对圆周正方向的夹角属于预设夹角范围的拨号控件对应的数字弹出显示在触摸屏幕的中心位置,该预设夹角范围为相对圆周正方向的正负18°范围;准备长按事件计时。
MotionEvent.ACTION_MOVE事件计算当前时刻的触摸点与圆周正方向的角度信息相对前一时刻的触摸点与圆周正方向的角度信息的角度变化值,获得当前时刻的触摸点相对前一时刻的触摸点的变化夹角angle_move,控制拨号键盘的所有拨号控件跟随用户的滑动操作进行变化夹角angle_move的旋动,同时根据进行变化夹角angle_move的旋动后每个拨号控件在触摸屏幕上的当前位置信息,重新配置每个拨号控件相对圆周正方向的角度信息当前值angle。
MotionEvent.ACTION_UP事件响应于用户在触摸屏幕上停止该次滑动并离开的操作,将弹出显示在触摸屏幕的中心位置处的数字输入到号码输入框中,并取消长按事件的计时。
在配置完拨号键盘的拨号控件的触发事件后,通过Android系统中对按钮点击事件的配置,实现拨号键盘的电话控件和删除控件的点击事件的配置。
在本实施例的优选方案中,还可以配置拨号键盘的拨号控件的点击事件,响应用户在触摸屏幕上的点击操作,为用户提供传统点击拨号的方法。
基于与上述触摸屏幕拨号键盘实现的方法相同的技术构思,本发明实施例还提供了一种智能手表,智能手表包括触摸屏幕和触摸屏幕拨号键盘实现的装置,图3为本发明实施例提供的触摸屏幕拨号键盘实现的装置结构示意图,该装置包括:
获取单元30,用于获得触摸屏幕的尺寸信息,以触摸屏幕的中心为原点,预设长度为半径设置触摸屏幕的圆形显示区域;其中,预设长度根据获得的触摸屏幕的尺寸信息计算得到。
属性配置单元31,用于配置拨号键盘的每个拨号控件的属性,拨号控件的属性包括该拨号控件的数字信息、显示信息和角度信息。
分布单元32,用于根据获取单元获得的触摸屏幕的尺寸信息以及属性配置单元配置的拨号键盘的每个拨号控件的角度信息将拨号键盘的所有拨号控件均 匀分布在圆形显示区域边缘的圆周上。
显示单元33,用于根据属性配置单元配置的拨号键盘的每个拨号控件的数字信息和显示信息将拨号键盘的所有拨号控件显示在触摸屏幕的圆形显示区域边缘的圆周上。
在本实施例的一优选方案中,属性配置单元31,具体用于根据拨号键盘的拨号控件的数量将圆形显示区域边缘的圆周进行N等分;其中,N等于拨号键盘的拨号控件的数量;以及设定圆周的正方向,根据该圆周上每一等分点与该圆周正方向的夹角获得对应的拨号控件的角度信息初始值,根据角度信息初始值对每个拨号控件属性中的角度信息进行配置。
分布单元32,具体用于根据拨号键盘的每个拨号控件的角度信息初始值、触摸屏幕的中心位置信息以及预设长度计算每个拨号控件在触摸屏幕的初始位置信息;以及根据每个拨号控件在触摸屏幕上的初始位置信息将拨号控件均匀分布在圆形显示区域边缘的圆周的相应位置处。
在本实施例的另一优选方案中,属性配置单元31通过将拨号键盘的辅助键分别与一个拨号控件配置在一起,减少分布在触摸屏幕的圆形显示区域边缘的圆周上的控件数量,保证相邻拨号控件间具有足够的空间,进而减少拨号过程中出现的误触操作。
具体的,属性配置单元31,进一步用于将拨号键盘的每个辅助键分别与一个拨号控件配置在一起;以及根据辅助键修改拨号控件的显示信息。本优选方案中,拨号键盘的辅助键示例性包括井字键(#键)、米字键(*键)和加号键(+键)三个辅助键,属性配置单元31可以将井字键与数字为“8”的拨号控件配置在一起,将米字键与数字为“9”的拨号控件配置在一起,将加号键与数字为“0”的拨号控件配置在一起。
在本实施例的又一优选方案中,属性配置单元31还通过将功能控件分布在触摸屏幕的圆形显示区域边缘的圆周内部,进一步减少分布在触摸屏幕的圆形显示区域边缘的圆周上的控件数量。
具体的,属性配置单元31,进一步用于配置拨号键盘的功能控件属性,功能控件属性包括该功能控件的标识信息、显示信息和位置信息;根据获得的触摸屏幕的尺寸信息以及功能控件的位置信息将拨号键盘的功能控件分布在触摸屏幕边缘的圆周内部;以及配置拨号键盘的功能控件的点击事件,响应于用户在触摸屏幕上的点击操作,根据用户在触摸屏幕上点击的位置信息,进行相应 的功能控件的操作。
针对当使用通过上述技术方案提供触摸屏幕拨号键盘实现的装置获得的拨号键盘进行传统的点击拨号,在拨号控件在触摸屏幕上对应的控件区域较小时,可能仍然存在拨号过程中会出现误触其他拨号控件的操作。因此,在实现触摸屏幕拨号键盘的过程中,本发明的拨号键盘可以通过用户在触摸屏幕的非控件区域滑动,从而将需要的数字输入到号码输入框中。
具体的,本实施例的触摸屏幕拨号键盘实现的装置还包括触发事件配置单元,
用于配置拨号键盘的触发事件,响应用户在触摸屏幕上的一次滑动操作,记录用户在触摸屏幕上一次滑动操作过程中每一时刻的触摸点的位置信息,并将每一时刻的触摸点的位置信息转换为相对圆周正方向的夹角,同时计算当前时刻的触摸点与圆周正方向的夹角相对前一时刻的触摸点与圆周正方向的夹角的角度变化值,获得当前时刻的触摸点相对前一时刻的触摸点的变化夹角;
控制拨号键盘的所有拨号控件跟随用户的滑动操作进行变化夹角的旋动,同时根据进行变化夹角的旋动后每个拨号控件在触摸屏幕上的当前位置信息,重新配置每个拨号控件相对圆周正方向的夹角;
检测任意拨号控件相对圆周正方向的夹角,将相对圆周正方向的夹角属于预设夹角范围的拨号控件对应的数字弹出显示在触摸屏幕的中心位置;
响应用户在触摸屏幕上停止该次滑动并离开的操作,将弹出显示在触摸屏幕的中心位置处的数字输入到号码输入框中。
当属性配置单元31将拨号键盘的辅助键分别与一个拨号控件配置在一起,以减少分布在触摸屏幕的圆形显示区域边缘的圆周上的控件数量,保证相邻拨号控件间具有足够的空间时,本实施例中的触发事件配置单元还用于响应用户在触摸屏幕上的长按操作,对长按操作计时,当长按操作的计时时间小于或等于预设的时间阈值时,在触摸屏幕中心位置处弹出显示该拨号控件对应的数字;当长按操作的计时时间大于预设的时间阈值时,在触摸屏幕中心位置处弹出显示与该拨号控件共用的辅助键。
本发明智能手表的触摸屏幕拨号键盘实现的装置的各功能模块的具体链连接关系和具体功能,可以参见本发明触摸屏幕拨号键盘实现方法的具体内容,在此不再赘述。
综上所述,本发明实施例提供了一种触摸屏幕拨号键盘实现的方法和智能 手表,通过配置拨号键盘的拨号控件的属性,在实现触摸屏幕的拨号键盘时,根据获得的触摸屏幕的尺寸信息和每个拨号控件的角度信息将拨号键盘的所有拨号控件均匀分布在触摸屏幕的圆形显示区域边缘的圆周上,充分利用触摸屏幕的空间,减少在拨号过程中出现手指误触其他拨号控件的误触操作,提高拨号操作的成功率,增强用户体验。在优选方案中,还通过配置拨号控件的触发事件,使用户可以在触摸屏幕上通过滑动操作将需要的数字输入到号码输入框中,以彻底解除拨号过程中的误触问题。
需要说明的是:
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。
例如,图4示出了根据本发明的方法实现触摸屏拨号键盘的服务器,例如应用服务器。该服务器传统上包括处理器40和以存储器41形式的计算机程序产品或者计算机可读介质。存储器41可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。存储器41具有用于执行上述方法中的任何方法步骤的程序代码43的存储空间42。例如,用于程序代码的存储空间42可以包括分别用于实现上面的方法中的各种步骤的各个程序代码43。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。这些计算机程序产品包括诸如硬盘,紧致盘(CD)、存储卡或者软盘之类的程序代码载体。
应该注意的是上述实施例是对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,单词“包括”不排除存在未列在权利要求中的元件或步骤。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。

Claims (15)

  1. 一种触摸屏幕拨号键盘实现的方法,其中,所述方法包括:
    获得所述触摸屏幕的尺寸信息,以所述触摸屏幕的中心为原点,预设长度为半径设置所述触摸屏幕的圆形显示区域;其中,所述预设长度根据获得的所述触摸屏幕的尺寸信息计算得到;
    配置所述拨号键盘的每个拨号控件的属性,所述拨号控件的属性包括该拨号控件的数字信息、显示信息和角度信息;
    根据获得的所述触摸屏幕的尺寸信息以及所述拨号键盘的每个拨号控件的角度信息将所述拨号键盘的所有拨号控件均匀分布在所述圆形显示区域边缘的圆周上;
    根据所述拨号键盘的每个拨号控件的数字信息和显示信息将所述拨号键盘的所有拨号控件显示在所述触摸屏幕的圆形显示区域边缘的圆周上。
  2. 根据权利要求1所述的方法,其中,所述配置所述拨号键盘的每个拨号控件的属性包括:
    根据所述拨号键盘的拨号控件的数量将所述圆形显示区域边缘的圆周进行N等分;其中,N等于所述拨号键盘的拨号控件的数量;
    设定所述圆周的正方向,根据该圆周上每一等分点与该圆周正方向的夹角获得对应的拨号控件的角度信息初始值,根据所述角度信息初始值对每个拨号控件属性中的角度信息进行配置。
  3. 根据权利要求2所述的方法,其中,所述根据获得的所述触摸屏幕的尺寸信息以及所述拨号键盘的每个拨号控件的角度信息将所述拨号键盘的所有拨号控件均匀分布在所述圆形显示区域边缘的圆周上包括:
    根据所述拨号键盘的每个拨号控件的角度信息初始值、所述触摸屏幕的中心位置信息以及所述预设长度计算每个拨号控件在所述触摸屏幕的初始位置信息;
    根据每个拨号控件在所述触摸屏幕上的初始位置信息将所述拨号控件均匀分布在所述圆形显示区域边缘的圆周的相应位置处。
  4. 根据权利要求1所述的方法,其中,所述方法还包括:
    配置所述拨号键盘的触发事件,响应用户在所述触摸屏幕上的一次滑动操作,记录用户在所述触摸屏幕上一次滑动操作过程中每一时刻的触摸点的位置信息,并将每一时刻的触摸点的位置信息转换为相对所述圆周正方向的夹角, 同时计算当前时刻的触摸点与所述圆周正方向的夹角相对前一时刻的触摸点与所述圆周正方向的夹角的角度变化值,获得当前时刻的触摸点相对前一时刻的触摸点的变化夹角;
    控制所述拨号键盘的所有拨号控件跟随用户的滑动操作进行所述变化夹角的旋动,同时根据进行所述变化夹角的旋动后每个拨号控件在所述触摸屏幕上的当前位置信息,重新配置每个拨号控件相对所述圆周正方向的角度信息。
  5. 根据权利要求4所述的方法,其中,在控制所述拨号键盘的所有拨号控件跟随用户的滑动操作进行所述变化夹角的旋动时,所述方法还包括:
    检测任意拨号控件相对所述圆周正方向的夹角,将相对所述圆周正方向的夹角属于预设夹角范围的拨号控件对应的数字弹出显示在所述触摸屏幕的中心位置;
    响应用户在所述触摸屏幕上停止该次滑动并离开的操作,将弹出显示在所述触摸屏幕的中心位置处的数字输入到号码输入框中。
  6. 根据权利要求5所述的方法,其中,所述配置所述拨号键盘的每个拨号控件的属性还包括:
    将所述拨号键盘的每个辅助键分别与一个拨号控件配置在一起;
    根据所述辅助键修改所述拨号控件的显示信息。
  7. 根据权利要求6所述的方法,其中,在将相对所述圆周正方向的夹角属于预设夹角范围的拨号控件对应的数字弹出显示在所述触摸屏幕的中心位置时,所述方法还包括:
    响应用户在所述触摸屏幕上的长按操作,对所述长按操作计时,当所述长按操作的计时时间小于或等于预设的时间阈值时,在所述触摸屏幕中心位置处弹出显示该拨号控件对应的数字;当所述长按操作的计时时间大于预设的时间阈值时,在所述触摸屏幕中心位置处弹出显示与该拨号控件共用的辅助键。
  8. 根据权利要求1所述的方法,其中,所述方法还包括:
    配置所述拨号键盘的功能控件属性,所述功能控件属性包括该功能控件的标识信息、显示信息和位置信息;
    根据获得的所述触摸屏幕的尺寸信息以及所述功能控件的位置信息将所述拨号键盘的功能控件分布在所述触摸屏幕边缘的圆周内部;
    配置所述拨号键盘的功能控件的点击事件,响应于用户在所述触摸屏幕上的点击操作,根据用户在所述触摸屏幕上点击的位置信息,进行相应的功能控件的操作。
  9. 一种智能手表,其中,所述智能手表包括触摸屏幕和触摸屏幕拨号键盘实现的装置,所述装置包括:
    获取单元,用于获得所述触摸屏幕的尺寸信息,以所述触摸屏幕的中心为原点,预设长度为半径设置所述触摸屏幕的圆形显示区域;其中,所述预设长度根据获得的所述触摸屏幕的尺寸信息计算得到;
    属性配置单元,用于配置所述拨号键盘的每个拨号控件的属性,所述拨号控件的属性包括该拨号控件的数字信息、显示信息和角度信息;
    分布单元,用于根据所述获取单元获得的所述触摸屏幕的尺寸信息以及所述属性配置单元配置的拨号键盘的每个拨号控件的角度信息将所述拨号键盘的所有拨号控件均匀分布在所述圆形显示区域边缘的圆周上;
    显示单元,用于根据所述属性配置单元配置的拨号键盘的每个拨号控件的数字信息和显示信息将所述拨号键盘的所有拨号控件显示在所述触摸屏幕的圆形显示区域边缘的圆周上。
  10. 根据权利要求9所述的智能手表,其中,所述属性配置单元具体用于:
    根据所述拨号键盘的拨号控件的数量将所述圆形显示区域边缘的圆周进行N等分;其中,N等于所述拨号键盘的拨号控件的数量;
    以及设定所述圆周的正方向,根据该圆周上每一等分点与该圆周正方向的夹角获得对应的拨号控件的角度信息初始值,根据所述角度信息初始值对每个拨号控件属性中的角度信息进行配置。
    所述分布单元具体用于:
    根据所述拨号键盘的每个拨号控件的角度信息初始值、所述触摸屏幕的中心位置信息以及所述预设长度计算每个拨号控件在所述触摸屏幕的初始位置信息;
    以及根据每个拨号控件在所述触摸屏幕上的初始位置信息将所述拨号控件均匀分布在所述圆形显示区域边缘的圆周的相应位置处。
  11. 根据权利要求9所述的智能手表,其中,所述装置还包括触发事件配置单元,
    用于配置所述拨号键盘的触发事件,响应用户在所述触摸屏幕上的一次滑动操作,记录用户在所述触摸屏幕上一次滑动操作过程中每一时刻的触摸点的位置信息,并将每一时刻的触摸点的位置信息转换为相对所述圆周正方向的夹角,同时计算当前时刻的触摸点与所述圆周正方向的夹角相对前一时刻的触摸点与所述圆周正方向的夹角的角度变化值,获得当前时刻的触摸点相对前一时 刻的触摸点的变化夹角;
    控制所述拨号键盘的所有拨号控件跟随用户的滑动操作进行所述变化夹角的旋动,同时根据进行所述变化夹角的旋动后每个拨号控件在所述触摸屏幕上的当前位置信息,重新配置每个拨号控件相对所述圆周正方向的夹角;
    检测任意拨号控件相对所述圆周正方向的夹角,将相对所述圆周正方向的夹角属于预设夹角范围的拨号控件对应的数字弹出显示在所述触摸屏幕的中心位置;
    响应于用户在所述触摸屏幕上停止该次滑动并离开的操作,将弹出显示在所述触摸屏幕的中心位置处的数字输入到号码输入框中。
  12. 根据权利要求11所述的智能手表,其中,所述属性配置单元还用于:
    将所述拨号键盘的每个辅助键分别与一个拨号控件配置在一起;
    根据所述辅助键修改所述拨号控件的显示信息。
  13. 根据权利要求12所述的智能手表,其中,在将相对所述圆周正方向的夹角属于预设夹角范围的拨号控件对应的数字弹出显示在所述触摸屏幕的中心位置时,所述触发事件配置单元还用于:
    响应用户在所述触摸屏幕上的长按操作,对所述长按操作计时,当所述长按操作的计时时间小于或等于预设的时间阈值时,在所述触摸屏幕中心位置处弹出显示该拨号控件对应的数字;当所述长按操作的计时时间大于预设的时间阈值时,在所述触摸屏幕中心位置处弹出显示与该拨号控件共用的辅助键。
  14. 根据权利要求9所述的智能手表,其中,所述属性配置单元还用于:配置所述拨号键盘的功能控件属性,所述功能控件属性包括该功能控件的标识信息、显示信息和位置信息;
    根据获得的所述触摸屏幕的尺寸信息以及所述功能控件的位置信息将所述拨号键盘的功能控件分布在所述触摸屏幕边缘的圆周内部;
    以及配置所述拨号键盘的功能控件的点击事件,响应于用户在所述触摸屏幕上的点击操作,根据用户在所述触摸屏幕上点击的位置信息,进行相应的功能控件的操作。
  15. 一种计算机程序,包括计算机可读代码,当所述计算机可读代码在服务器上运行时,导致所述服务器执行根据权利要求1-8中的任一个所述的触摸屏幕拨号键盘实现的方法。
PCT/CN2016/083086 2015-05-29 2016-05-24 一种触摸屏幕拨号键盘实现的方法和智能手表 WO2016192547A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/578,168 US10592102B2 (en) 2015-05-29 2016-05-24 Method for implementing dialing keypad of touch screen and smart watch

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510289826.9 2015-05-29
CN201510289826.9A CN104915142B (zh) 2015-05-29 2015-05-29 一种触摸屏幕拨号键盘实现的方法和智能手表

Publications (1)

Publication Number Publication Date
WO2016192547A1 true WO2016192547A1 (zh) 2016-12-08

Family

ID=54084242

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/083086 WO2016192547A1 (zh) 2015-05-29 2016-05-24 一种触摸屏幕拨号键盘实现的方法和智能手表

Country Status (3)

Country Link
US (1) US10592102B2 (zh)
CN (1) CN104915142B (zh)
WO (1) WO2016192547A1 (zh)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
USD795917S1 (en) 2015-05-17 2017-08-29 Google Inc. Display screen with an animated graphical user interface
CN104915142B (zh) * 2015-05-29 2018-12-25 歌尔股份有限公司 一种触摸屏幕拨号键盘实现的方法和智能手表
CN105516425A (zh) * 2015-11-30 2016-04-20 深圳市鼎芯东方科技有限公司 智能手表输入号码的方法和装置
CN105511793A (zh) * 2015-12-11 2016-04-20 惠州Tcl移动通信有限公司 一种可穿戴设备的字符输入方法及系统
USD804502S1 (en) 2016-06-11 2017-12-05 Apple Inc. Display screen or portion thereof with graphical user interface
CN106453929A (zh) * 2016-10-26 2017-02-22 乐视控股(北京)有限公司 手机拨号方法及装置
CN106843721A (zh) * 2016-12-26 2017-06-13 重庆仁腾科技有限公司 一种企业信息获取展示方法、装置及系统
CN107332979B (zh) * 2017-06-12 2020-10-09 歌尔科技有限公司 时间管理方法及装置
USD841668S1 (en) 2018-01-31 2019-02-26 Salesforce.Com, Inc. Display screen or portion thereof with animated graphical user interface
CN109032472A (zh) * 2018-08-02 2018-12-18 珠海格力电器股份有限公司 一种应用展示方法、装置、终端及可读存储介质
CN110058682A (zh) * 2019-03-15 2019-07-26 努比亚技术有限公司 可穿戴设备控制方法、可穿戴设备及计算机可读存储介质
USD910050S1 (en) 2019-03-22 2021-02-09 Apple Inc. Electronic device with graphical user interface
CN112506376B (zh) * 2020-12-09 2023-01-20 歌尔科技有限公司 圆形屏幕的触摸控制方法、终端设备及存储介质
CN112631501A (zh) * 2020-12-30 2021-04-09 深圳市鸿合创新信息技术有限责任公司 一种触控功能控件的显示方法、显示装置及电子设备
CN113504871A (zh) * 2021-09-10 2021-10-15 展讯通信(天津)有限公司 一种电子设备控制方法、装置、芯片和电子设备

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2726232Y (zh) * 2004-06-23 2005-09-14 陶怀林 环形手机
US20070152979A1 (en) * 2006-01-05 2007-07-05 Jobs Steven P Text Entry Interface for a Portable Communication Device
CN101345784A (zh) * 2008-07-25 2009-01-14 宇龙计算机通信科技(深圳)有限公司 一种模仿转盘电话机拨号的移动终端及实现方法
CN101644970A (zh) * 2008-08-07 2010-02-10 鸿富锦精密工业(深圳)有限公司 通信装置的输入方法
CN103402000A (zh) * 2013-07-17 2013-11-20 深圳市欧珀通信软件有限公司 一种移动通信终端的模拟拨号盘显示控制方法、系统
CN104915142A (zh) * 2015-05-29 2015-09-16 歌尔声学股份有限公司 一种触摸屏幕拨号键盘实现的方法和智能手表

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5621904A (en) * 1995-01-24 1997-04-15 Intel Corporation Method and apparatus for avoiding overlapped windows and a gutter space
CN2501104Y (zh) * 2001-09-07 2002-07-17 段海 移动电话键盘
KR101376894B1 (ko) * 2007-02-28 2014-03-20 엘지전자 주식회사 이동통신단말기의 다이얼링 방법 및 터치스크린을 구비한이동통신단말기
KR101379995B1 (ko) * 2007-04-17 2014-04-02 엘지전자 주식회사 단말기 및 그 표시방법
KR20150050065A (ko) * 2013-10-31 2015-05-08 엘지전자 주식회사 전자 기기 및 그 제어 방법

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2726232Y (zh) * 2004-06-23 2005-09-14 陶怀林 环形手机
US20070152979A1 (en) * 2006-01-05 2007-07-05 Jobs Steven P Text Entry Interface for a Portable Communication Device
CN101345784A (zh) * 2008-07-25 2009-01-14 宇龙计算机通信科技(深圳)有限公司 一种模仿转盘电话机拨号的移动终端及实现方法
CN101644970A (zh) * 2008-08-07 2010-02-10 鸿富锦精密工业(深圳)有限公司 通信装置的输入方法
CN103402000A (zh) * 2013-07-17 2013-11-20 深圳市欧珀通信软件有限公司 一种移动通信终端的模拟拨号盘显示控制方法、系统
CN104915142A (zh) * 2015-05-29 2015-09-16 歌尔声学股份有限公司 一种触摸屏幕拨号键盘实现的方法和智能手表

Also Published As

Publication number Publication date
CN104915142B (zh) 2018-12-25
US10592102B2 (en) 2020-03-17
US20180150215A1 (en) 2018-05-31
CN104915142A (zh) 2015-09-16

Similar Documents

Publication Publication Date Title
WO2016192547A1 (zh) 一种触摸屏幕拨号键盘实现的方法和智能手表
CN110703966B (zh) 文件共享方法、装置、系统、相应设备及存储介质
CN104834436B (zh) 一种实现触摸屏终端功能键的方法
KR102311221B1 (ko) 오브젝트 운용 방법 및 이를 지원하는 전자 장치
WO2021203821A1 (zh) 页面操控方法、装置、存储介质及终端
WO2015169093A1 (zh) 保护膜或保护玻璃与手机通讯连接的方法
CN105893955B (zh) 指纹识别装置及方法
EP2690588A1 (en) Function based on a cloud service
CN106325663B (zh) 移动终端及其截屏方法
US11775244B2 (en) Data processing method and electronic terminal
JP2015521775A (ja) 知能端末テキスト入力表示方法及び装置
CN107168602A (zh) 一种控制应用图标的方法及终端
CN105955587A (zh) 一种隐藏应用图标显示方法及装置
CN109543378B (zh) 指纹解锁方法及相关设备
CN106201178A (zh) 一种调整屏幕显示方向控制方法及终端
CN107870706A (zh) 一种管理图标的方法、终端及计算机可读介质
CN110377220B (zh) 一种指令响应方法、装置、存储介质及电子设备
CN107181858A (zh) 一种显示通知消息的方法及终端
WO2022062743A1 (zh) 应用图标显示方法及相关设备
US20170046044A1 (en) Display control method and electronic device
WO2022041606A1 (zh) 控件的显示位置调整方法及装置
CN106251191A (zh) 一种终端屏幕的显示控制方法及终端
CN106250111A (zh) 一种壁纸获取方法及终端
CN106406938A (zh) 一种应用下载方法和终端
WO2022083195A1 (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: 16802470

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 15578168

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 14.05.2018)

122 Ep: pct application non-entry in european phase

Ref document number: 16802470

Country of ref document: EP

Kind code of ref document: A1