This application claims the priority benefit of Taiwan application serial No. 110109212, filed on Mar. 15, 2021. The entirety of the above-mentioned patent application is hereby incorporated by reference herein and made a part of specification.
The disclosure relates to an electronic device and a method thereof, and in particular, to an electronic device and a control method.
The existing method for a one-handed operation is to activate the one-handed operation mode by quickly tapping the home screen key (such as a HOME key) of the mobile device. However, such a method causes the wrong activation of the one-handed mode by mistakenly touching the home screen key, resulting in a considerably inconvenient use.
According to the first aspect of the disclosure, a control method applied to an electronic device is provided, the control method including: detecting a sliding operation from a first position to a second position on a touch screen of the electronic device, where the first position is an edge area of the touch screen and the second position is a position in which the sliding operation stops; calculating an angle of the sliding operation based on the first position and the second position; and comparing the angle with a threshold to determine whether to activate a one-handed operation mode of the electronic device.
According to the second aspect of the disclosure, an electronic device is provided. The electronic device includes a touch screen and a processor. The touch screen is configured to detect a sliding operation from a first position to a second position, where the first position is an edge area of the touch screen and the second position is a position in which the sliding operation stops. The processor is electrically coupled to the touch screen, where the processor is configured to: calculate the angle of the sliding operation based on the first position and the second position; and compare the angle with a threshold to determine whether to activate a one-handed operation mode of the electronic device.
When the following detailed description is read with reference to the accompanying drawings, the aspect of the disclosure is better understood. It should be noted that, in accordance with the practical requirements of the description, each feature in the drawings is not necessarily drawn to scale. In fact, for the purpose of clarity, the size of the each feature may be increased or decreased arbitrarily.
Referring to
For ease of illustrating the activation of the one-handed operation mode on the electronic device 100, reference is made to
In step S310, the touch screen 110 detects a sliding operation from the first position PSN1 to the second position PSN2 on the touch screen 110, and transmits the corresponding sliding operation signal to the processor 120. The first position PSN1 is in an edge area W of the touch screen 110 and the second position PSN2 is a position in which the sliding operation stops. In an embodiment, the edge area W extends from a border 102 to a center 104 of the touch screen 110 by a screen width of about 20 pixels to 60 pixels.
Referring to
Referring to
In an embodiment, from a first position PSN1 to a second position PSN2, there is an operation vector V. In detail, the processor 120 obtains the pixel coordinates of the first position PSN1 and the pixel coordinates of the second position PSN2, and then calculates the operation vector V for the sliding operation based on the two sets of pixel coordinates. Then, the processor 120 calculates the angle θ between the operation vector V and the reference line H.
In step S330, the processor 120 determines whether the angle θ is greater than a threshold.
In some embodiments, the threshold is 60°. It is worth mentioning that
In step S330, when it is determined that the angle θ between the operation vector V and the reference line H is greater than the threshold, step S340 is performed. In step S340, the one-handed operation mode of the electronic device 100 is activated. In step S330, when it is determined that the angle θ between the operation vector V and the reference line H is less than the threshold, step S350 is performed without activating the one-handed operation mode.
Referring to
In some embodiments, the sliding operation triggering the one-handed operation mode is to slide upward or downward from the edge area W of the touch screen 110 and stay for a preset period of time.
In an embodiment, the processor 120 determines the range of the interface display area 115 on the touch screen 110 according to the first position PSN1.
In some other embodiments, when a user slides upward from a first position PSN1 (not shown in
In some embodiments, the electronic device 100 is implemented as, but is not limited to, a portable device, a mobile device, a tablet computer, a personal digital assistant (PDA), a wearable device, or a notebook computer. Any electronic device with a touch screen falls within the scope of the disclosure.
In some embodiments, the touch screen 110 is implemented as, but is not limited to, a capacitive device, an infrared device, a resistive device, or a surface acoustic wave (SAW) device, and is any type of touch screen that is currently known or is to be developed in future.
In some embodiments, the processor 120 is implemented as, but is not limited to, a central processing unit (CPU), a System on Chip (SoC), an application processor, an audio processor, a digital signal processor (DSP), or a processing chip or controller with a specific function.
In some embodiments, the storage medium 130 is implemented as, but is not limited to, a random access memory (RAM) or a non-volatile memory (such as a flash memory or a read only memory (ROM)), a hard disk drive (HDD), a solid state drive (SSD), or an optical storage.
In some embodiments, the control method in the disclosure alternatively stores a non-transitory computer-readable recording medium in the form of instructions. The non-transitory computer-readable recording medium stores a plurality of program codes. After the program codes are loaded into the processor 120 shown in
In conclusion, the disclosure provides an electronic device and a control method thereof to provide an activation procedure for a one-handed operation mode of the electronic device, which allows the one-handed operation mode to be used considerably conveniently without a navigation key. In addition, the control method provided in the disclosure quickly activates the one-handed mode, is applicable to touch screens of various sizes, and further determines whether to activate the one-handed operation mode when detecting a touch signal of the user, which improves the accuracy of the activation of the one-handed operation mode, and avoids the problem of touching the screen or key by mistake.
The foregoing content summarizes the features of several embodiments, so that a person familiar with the art can better understand the aspect of the disclosure. Without departing from the spirit and scope of the disclosure, a person skilled in the art should know that the foregoing content may be readily used as a basis for designing or modifying into other variations in order to implement the same purpose of the embodiments described in the disclosure and/or achieve the same advantage. The foregoing content shall be construed as examples of the disclosure, and the scope of protection thereof shall be subject to the claims.
Number | Date | Country | Kind |
---|---|---|---|
110109212 | Mar 2021 | TW | national |