A smart watch, comprising a touch screen and an apparatus for implementing a dialing keypad of the touch screen, wherein the apparatus comprises:
- an obtaining unit, which is configured to obtain size information of the touch screen, and set a circular display area of the touch screen with the center of the touch screen as an origin and a preset length as a radius such that a circle corresponding to the circular display area of the touch screen is a maximum inscribed circle of the touch screen, wherein the preset length is calculated according to the obtained size information of the touch screen;
- an attribute configuration unit, which is configured to configure attributes of each dialing control of the dialing keypad, wherein attributes of a dialing control include numerical information, display information, and angle information of the dialing control, wherein the numerical information in the attributes of the dialing control refers to numbers “0” to “9” displayed on the touch screen by the dialing control, and wherein auxiliary keys of the dialing keypad are respectively configured to be together with one dialing control;
- an arrangement unit, which is configured to arrange all the dialing controls of the dialing keypad evenly distributed on the circumference of an 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 keypad configured by the attribute configuration unit;
- a display unit, which is configured to display all the dialing controls of the dialing keypad on the circumference of the edge of the circular display area of the touch screen, according to the numerical information and the display information of each dialing control of the dialing keypad configured by the attribute configuration unit, wherein the circumference of the edge of the circular display area refers to a position on the circumference adjacent to or positioned on the maximum inscribed circle of the touch screen;
- and
- a trigger event configuration unit, which is configured to:
- configure a trigger event of the dialing keypad, to respond to a sliding operation of a user on the touch screen, to record position information of a touch point at each time point during the last sliding operation of the user on the touch screen, and to convert the position information of the touch point at each time point into an included angle relative to a positive direction of the circumference, meanwhile to calculate a variation value of an included angle between a touch point at the current time point and the positive direction of the circumference relative to an included angle between a touch point at the previous time point and the positive direction of the circumference, and to obtain a changed included angle of the touch point at the current time point relative to the touch point at the previous time point;
- and
- control all the dialing controls of the dialing keypad to rotate the changed included angle along with the sliding operation of the user, detect an included angle of any dialing control relative to the positive direction of the circumference, and display a number corresponding to the dialing control of the included angle relative to the positive direction of the circumference of which belongs to a preset included angle range, at the center position of the touch screen in a manner of pop-up;
- respond to an operation that the user stops sliding and leaves the touch screen, and input the number displayed at the center position of the touch screen in a manner of pop-up into a number entry box;
- meanwhile according to current position information of each dialing control on the touch screen after the rotation of the changed included angle, and reconfigure the angle information of each dialing control relative to the positive direction of the circumference.