How to set the hourly time of the roller-type time control in the display screen panel
By judging the speed and position at the end of the finger sliding, and calling the appropriate inertia function, the scroll wheel control accurately sets the full time in the Android graphical user interface, solving the problem of long time for setting the full time and easy to misoperate in traditional methods, improving the problem of User experience.
Patent Information
- Application Number
- CN202111532564.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-15
- Publication Date
- 2024-11-29
- Estimated Expiration
- 2041-12-15
AI Technical Summary
In traditional Android graphical user interface, the scroll wheel control is prone to misoperation when setting the full time, resulting in poor user experience, especially when adjusting hours and minutes, which easily slides or exceeds 00 minutes, causing alarm setting errors.
By obtaining the speed and position at the end of the finger sliding, determining whether it has passed 00 bits, calling different inertia functions to slide the roller inertia to 00 bits, shortening the setting time of the whole point.
It effectively avoids the situation where the roller crosses 00 bits when setting the hour point, shortens the hour point setting time and improves the user experience.
Smart Images

Figure CN114371830B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of control methods of roller controls in an Android graphical user interface, and relates to a method for setting the hourly time of a roller-type time control in a display screen panel. Background Art
[0002] The alarm setting on mobile phones or devices with time functions is a common function, and the manual dial is more commonly used in the setting interface. However, the dial interface setting method is inconvenient when setting the hour. Take the 7:00 alarm as an example, adjust the hour to 7, and then adjust the minute. Take the minute at 30 minutes as an example, turn the dial in an increasing or decreasing manner to approach 0 minutes. When approaching 0 minutes in a decreasing manner, it is easy to slide to 59 minutes or below; when approaching 0 minutes in an increasing manner, it is easy to exceed 01 minutes. In the former case, a serious misoperation of the alarm will occur, which may cause losses to daily work or life. In the setting of the mobile phone calendar note reminder, some systems use 5 minutes as the interval. Here, taking the setting of 7:00 as an example, when the dial is turned in a decreasing manner, it is easy to slide past 0 minutes to below 55 minutes, but the system hour will automatically decrease to 6, resulting in a poor user experience.
[0003] For the sliding operation used in traditional Android development, the inertial sliding implementation only needs to provide the speed v when the sliding ends (the finger leaves the screen), and the sliding time and distance (fling operation) are calculated by the speed v. The above method has the following shortcomings: it may cause the situation in the time selection wheel control that when you want to set the hour position, the wheel stops but passes the 00 position, entering the second cycle, thereby extending the time for setting the hour, resulting in a poor user experience. Summary of the invention
[0004] The purpose of the present invention is to provide a method for setting the hourly time of a roller-type time control in a display screen panel, thereby solving the problem that the setting time of the hourly time of a clock and a calendar in the prior art is relatively long.
[0005] The technical solution adopted by the present invention is a method for setting the hourly time of a roller-type time control in a display screen panel, comprising the following steps:
[0006] Step 1, obtain the sliding speed v when the finger slides the wheel control, the number of grids the finger slides on the screen is s1, and the grid position selected by the control when the finger leaves the screen is n;
[0007] Step 2: Determine whether the stop position n+s1 is greater than 60, that is, whether the stop position exceeds the 00 position;
[0008] Step 3: If the 00 position is not reached, the machine will slide by inertia and stop at the expected position;
[0009] Step 4, if it exceeds the 00 position, calculate the distance s2 between the grid position n selected by the control when the finger leaves the screen and the 00 position, and calculate the time t required for the stop position to reach the 00 position based on the distance s2 and the sliding speed v; and based on the time t, make the roller control stop at the 00 position when the inertial sliding action ends.
[0010] The beneficial effects of the present invention are:
[0011] The present invention discloses a method for setting the hourly time of a roller-type time control in a display screen panel. After a finger slides the roller and leaves the screen, it is first determined whether the stop position exceeds 00, thereby determining which inertia function to call. Compared with directly calling the inertia function to make the roller stop at a corresponding position through uniform deceleration motion, the setting time of the hourly time is shortened. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 The present invention is a flow chart of a method for setting the hourly time of a roller-type time control in a display screen panel. DETAILED DESCRIPTION
[0013] The present invention is described in detail below with reference to the accompanying drawings and specific embodiments.
[0014] The method for setting the hourly time of a roller-type time control in a display screen panel comprises the following steps:
[0015] Step 1, obtain the sliding speed v at the end of the finger sliding the wheel control (that is, the sliding speed when the finger leaves the screen after sliding), the number of grids the finger slides on the screen is s1, and the grid position selected by the control when the finger leaves the screen is n (inertial sliding position), that is, the distance the control slides after the user's finger slides the screen;
[0016] Step 2: Determine whether the stop position n+s1 is greater than 60, that is, whether the stop position exceeds the 00 position;
[0017] Step 3: If the 00 position has not been reached, the fling operation and scrollBy operation of the wheel control are completed, and the inertial sliding is performed to stop at the expected position;
[0018] Step 4: If the finger exceeds the 00 position, calculate the distance s2 between the grid position n selected by the control and the 00 position when the finger leaves the screen, and calculate the time t required for the stop position to reach the 00 position based on the distance s2 and the sliding speed v.
[0019] Rewrite the fling operation and scrollBy operation of the scroll wheel so that the scroll wheel control stops at the 00 position when the inertial sliding action ends according to the time t.
[0020] Through the above manner, the present invention displays a method for setting the hourly time of a roller-type time control in a screen panel, and designs two sets of different inertia functions. The first set of inertia functions is used to handle the situation that the stop position of the roller will not exceed the 00 position, and the other set of inertia functions is used to handle the situation that the stop position of the roller exceeds the 00 position, thereby ensuring that the roller stops exactly at the 00 position; after the finger slides the roller and leaves the screen, it is first determined whether the stop position exceeds the 00 position, thereby determining which inertia function to call, compared with directly calling the inertia function to make the roller stop to the corresponding position through uniform deceleration motion, the setting time of the hourly time is shortened.
Claims
1. How to set the hourly time of the roller time control in the display screen panel. It is characterized in that The following steps are involved: Step 1: Get the sliding speed v when the finger slides the wheel control and the number of grids the finger slides on the screen is s. 1 , when the finger leaves the screen, the grid position selected by the control is n; Step 2: Determine the stop position n+s 1 Is it greater than 60, that is, whether the stop position exceeds the 00 position; Step 3: If the 00 position is not reached, the machine will slide by inertia and stop at the expected position; Step 4: If it exceeds the 00 position, calculate the distance s between the grid position n selected by the control and the 00 position when the finger leaves the screen 2 , according to the distance s 2 The time t required for the stop position to reach the 00 position is calculated with the sliding speed v; and according to the time t, the roller control stops at the 00 position when the inertial sliding action ends.
Citation Information
Patent Citations
Method and equipment for realizing rapid positioning through swiping
CN102508573A
Method and device for setting alarm clocks
CN104407776A
Design method of pointer type multifunction intelligent clock
CN105022256A
Multi-functional time input method
CN105677212A
Control sliding control method and device thereof
CN105912312A
