WO2021063098A1 - 一种触摸屏的响应方法及电子设备 - Google Patents

一种触摸屏的响应方法及电子设备 Download PDF

Info

Publication number
WO2021063098A1
WO2021063098A1 PCT/CN2020/105489 CN2020105489W WO2021063098A1 WO 2021063098 A1 WO2021063098 A1 WO 2021063098A1 CN 2020105489 W CN2020105489 W CN 2020105489W WO 2021063098 A1 WO2021063098 A1 WO 2021063098A1
Authority
WO
WIPO (PCT)
Prior art keywords
sliding
cursor
user
electronic device
touch screen
Prior art date
Application number
PCT/CN2020/105489
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 华为技术有限公司
Publication of WO2021063098A1 publication Critical patent/WO2021063098A1/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/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
    • 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/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0485Scrolling or panning
    • 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/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0486Drag-and-drop

Definitions

  • the present invention relates to the technical field of terminals, in particular to a response method of a touch screen and an electronic device.
  • the embodiments of the present application provide a touch screen response method and an electronic device, which are used to implement operations on any position on the display screen of a mobile phone with a finger held by one hand without changing the size and position of the user interface.
  • an embodiment of the present application provides a touch screen response method, which is applied to an electronic device with a touch screen.
  • the method includes: the electronic device receives a first operation of a user's finger on a preset area on a first side of the touch screen, wherein , The first side is one of the left and right sides of the touch screen.
  • the electronic device determines that the first operation meets the first response threshold, in response to the first operation, the cursor is displayed at the end position of the first operation, and the electronic device The second operation of the user’s finger on the cursor is detected and the user’s finger leaves the touch screen at the end of the second operation.
  • the click operation is triggered at the cursor position corresponding to the position where the user’s finger leaves the touch screen.
  • the movement distance is proportional to the movement distance of the user's finger corresponding to the second operation, and the ratio is greater than 1.
  • the user's finger can operate on the preset area on the first side of the touch screen, and the cursor can be displayed by touching it, and then the cursor can be operated to make the cursor move with the movement of the finger, and the movement distance of the cursor is the same as the second operation
  • the corresponding user's finger movement distance is proportional, and the ratio is greater than 1, that is to say, the user's finger moves a smaller distance, can make the cursor move a larger distance, so that it can be used without changing the window position and size of the user interface
  • the thumb of the hand holding the mobile phone performs one-handed operation on the touch screen, and can tap anywhere on the screen.
  • the first operation includes a first sliding operation from the preset area on the first side into the screen and a second sliding operation continuing upward or downward from the end position of the first sliding operation.
  • a response threshold is a first sliding distance corresponding to the first sliding operation and a second sliding distance in the vertical direction corresponding to the second sliding operation.
  • the electronic device when the electronic device receives the first sliding operation from the preset area on the first side into the screen, it determines whether the sliding distance corresponding to the first sliding operation reaches the first sliding distance, and if it reaches the first sliding distance , When receiving a second sliding operation that continues upward or downward from the end position of the first sliding operation, it is determined whether the sliding distance in the vertical direction corresponding to the second sliding operation is greater than the second sliding distance, and if it is greater than the second sliding distance, For the sliding distance, the cursor is displayed at the end position of the first operation, that is, the cursor is displayed at the end position of the second sliding operation.
  • the first operation includes a first sliding operation from the preset area of the first side into the screen and a first pressing operation at the end position of the first sliding operation, and the first response threshold is the first sliding operation.
  • the electronic device when the electronic device receives the first sliding operation from the preset area on the first side into the screen, it can determine whether the sliding distance corresponding to the first sliding operation reaches the first sliding distance, and if it reaches the first sliding distance , When the first pressing operation at the end position of the first sliding operation is received, it is determined whether the pressing duration corresponding to the first pressing operation is greater than the first pressing duration, and if it is greater than the first pressing duration, then at the end of the first operation The cursor is displayed at the position, that is, the cursor is displayed at the end position of the first sliding operation.
  • the method further includes: the electronic device displays an arc-shaped area on the first side in response to the first sliding operation.
  • the electronic device displays an arc-shaped area on the first side in response to the first sliding operation.
  • the method further includes: the electronic device determines that the sliding distance corresponding to the first sliding operation reaches the first sliding distance, displaying a return mark in the arc area on the first side, and the cursor is displayed after the return mark .
  • the return mark is displayed to prompt the user to return to the previous level of function.
  • the method further includes: after determining that the sliding distance corresponding to the first sliding operation reaches the first sliding distance, the electronic device determines the sliding distance of the second sliding operation in the vertical direction If the second sliding distance is not satisfied, or the pressing duration corresponding to the first pressing operation does not satisfy the first pressing duration, a return to the previous level function is executed in response to the first operation.
  • the first operation is a third sliding operation up or down in the preset area of the first side
  • the first response threshold is the third sliding distance in the vertical direction. That is, when the electronic device receives the third sliding operation upward or downward in the preset area of the first side, it can determine whether the sliding distance of the third sliding operation in the vertical direction reaches the third sliding distance, and if it reaches For the third sliding distance, the cursor is displayed at the end position of the first operation, that is, the cursor is displayed at the end position of the third sliding operation.
  • the first operation is a second pressing operation
  • the first response threshold is the second pressing duration and the first pressing area. That is, when the electronic device receives the second pressing operation on the preset area on the first side, it can determine whether the pressing duration corresponding to the second pressing operation is longer than the second pressing duration, and the pressing corresponding to the second pressing operation Whether the area is greater than the first pressing area, if the judgment result is all yes, the cursor is displayed at the end position of the first operation, that is, the cursor is displayed at the position of the second pressing operation.
  • the second operation is a sliding operation.
  • the shape of the cursor is any one of the following: circle, arrow, I-shape, diamond, rectangle, vertical line.
  • the preset area is the entire side area of the first side, or a part of the side area of the first side.
  • an embodiment of the present application provides a touch screen response method, which is applied to an electronic device with a touch screen.
  • the method includes: the electronic device detects a third operation of a user's finger on a floating button displayed on the touch screen, and the electronic device determines the first When the three operations meet the second response threshold, in response to the third operation, the cursor is displayed at the end position of the third operation, the electronic device detects the fourth operation of the user's finger on the cursor, and the user's finger leaves the touch screen at the end of the second operation , In response to the fourth operation, a click operation is triggered at the cursor position corresponding to the position where the user's finger leaves the touch screen, wherein the movement distance of the cursor is proportional to the movement distance of the user's finger corresponding to the fourth operation, and the ratio is greater than 1, and it is detected When the operation is clicked, it responds to the click operation.
  • the user's finger can operate the floating button, the cursor can be displayed by touching it, and then the cursor can be operated to make the cursor move with the movement of the finger, and the movement distance of the cursor is proportional to the movement distance of the user's finger corresponding to the second operation , And the ratio is greater than 1, that is to say, the user's fingers can move a smaller distance to make the cursor move a larger distance, so that you can use the thumb of the hand holding the phone without changing the position and size of the user interface window.
  • the touch screen can be operated with one hand and can be tapped anywhere on the screen.
  • the third operation is left or right in the horizontal direction, or the fourth sliding operation up or down in the vertical direction
  • the second response threshold is the fourth sliding distance.
  • the electronic device detects that the user's finger on the floating button displayed on the touch screen moves to the left or right in the horizontal direction, or the fourth sliding operation up or down in the vertical direction, and the electronic device determines the fourth sliding operation.
  • the sliding distance corresponding to the sliding operation is greater than the fourth sliding operation
  • a cursor is displayed at the end position of the fourth sliding operation.
  • the third operation includes a third pressing operation and a fifth sliding operation
  • the second response threshold is the third pressing duration corresponding to the third pressing operation and the fifth sliding distance corresponding to the fifth sliding operation. That is, the electronic device detects the third pressing operation of the user's finger on the floating button displayed on the touch screen, and when the electronic device determines that the pressing duration corresponding to the third pressing operation is greater than the third pressing duration, it detects the fifth sliding of the floating button Operation, when it is determined that the sliding distance corresponding to the fifth sliding operation is greater than the fifth sliding distance, in response to the fifth sliding operation, a cursor is displayed at the end position of the fifth sliding operation.
  • the method further includes: when the pressing duration of the third pressing operation reaches the third pressing duration, the electronic device performs a vibration prompt.
  • the user can determine that the pressing duration of the third pressing operation reaches the third pressing duration by sensing vibration without looking at the screen.
  • the shape of the cursor is any one of the following: arrow, I-shape, circle, diamond, rectangle, vertical line.
  • the fourth operation is a sliding operation.
  • an embodiment of the present application provides an electronic device, including a processor, a memory, and a touch screen; the touch screen is used to receive user operations; the memory is used to store one or more computer programs, the computer programs When executed by the processor, the electronic device is caused to execute: receiving a first operation of the user's finger on the preset area on the first side of the touch screen, where the first side is the left side of the touch screen.
  • a cursor is displayed at the end position of the first operation in response to the first operation; it is detected that the user's finger is facing the The second operation of the cursor, and the user's finger leaves the touch screen when the second operation ends, in response to the second operation, the cursor corresponding to the position where the user's finger leaves the touch screen
  • the position triggers a click operation, wherein the movement distance of the cursor is proportional to the movement distance of the user's finger corresponding to the second operation, and the ratio is greater than 1.
  • the first operation includes a first sliding operation from the preset area of the first side into the screen and a second sliding operation continuing upward or downward from the end position of the first sliding operation.
  • the first response threshold is a first sliding distance corresponding to the first sliding operation and a second sliding distance in the vertical direction corresponding to the second sliding operation.
  • the first operation includes a first sliding operation from the preset area of the first side into the screen and a first pressing operation at the end position of the first sliding operation
  • the The first response threshold is a first sliding distance corresponding to the first sliding operation and a first pressing duration corresponding to the first pressing operation.
  • the processor is further configured to display an arc-shaped area on the first side in response to the first sliding operation.
  • the processor is further configured to: determine that the sliding distance corresponding to the first sliding operation reaches the first sliding distance, and display return in the arc-shaped area of the first side Mark, the cursor is displayed after the return mark.
  • the processor is further configured to: after determining that the sliding distance corresponding to the first sliding operation reaches the first sliding distance, determine the vertical direction of the second sliding operation If the sliding distance does not satisfy the second sliding distance, or if the pressing duration corresponding to the first pressing operation does not satisfy the first pressing duration, the return to the previous level function is executed in response to the first operation.
  • the first operation is a third sliding operation up or down in the preset area of the first side
  • the first response threshold is a third sliding operation in the vertical direction. distance.
  • the first operation is a second pressing operation
  • the first response threshold is the second pressing duration and the first pressing area
  • the second operation is a sliding operation.
  • the shape of the cursor is any one of the following: a circle, an arrow, an I-shape, a diamond, a rectangle, and a vertical line.
  • the preset area is the entire side area of the first side, or a part of the side area of the first side.
  • an embodiment of the present application provides an electronic device, including a processor, a memory, and a touch screen; the touch screen is used to receive user operations; the memory is used to store one or more computer programs, the computer programs When executed by the processor, the electronic device is caused to perform: detecting a third operation of the user's finger on the floating button displayed on the touch screen; and when it is determined that the third operation meets the second response threshold, responding to all In the third operation, a cursor is displayed at the end position of the third operation; a fourth operation on the cursor by the user's finger is detected, and the user's finger leaves the touch screen at the end of the second operation, In response to the fourth operation, a click operation is triggered at the cursor position corresponding to the position where the user's finger leaves the touch screen, wherein the movement distance of the cursor corresponds to the movement of the user's finger corresponding to the fourth operation The distance is proportional and the ratio is greater than 1. When the click operation is detected, the click operation is responded to.
  • the third operation is left or right in a horizontal direction, or a fourth sliding operation up or down in a vertical direction, and the second response threshold is a fourth sliding operation. Sliding distance.
  • the third operation includes a third pressing operation and a fifth sliding operation
  • the second response threshold is the length of the third pressing time corresponding to the third pressing operation and the fifth sliding operation corresponding to the third pressing operation. The fifth sliding distance.
  • the processor is further configured to: when the pressing duration of the third pressing operation reaches the third pressing duration, the electronic device performs a vibration prompt.
  • the shape of the cursor may be any one of the following: arrow, I-shape, circle, diamond, rectangle, vertical line.
  • the fourth operation is a sliding operation.
  • an embodiment of the present application further provides a device, which includes a module/unit that executes any one of the possible design methods in any of the foregoing aspects.
  • These modules/units can be realized by hardware, or by hardware executing corresponding software.
  • an embodiment of the present application also provides a computer-readable storage medium.
  • the computer-readable storage medium includes a computer program.
  • the computer program runs on an electronic device, the electronic device executes any of the above aspects. Any one of the possible design methods.
  • the embodiments of the present application also provide a method that includes a computer program product, which when the computer program product runs on a terminal, causes the electronic device to execute any one of the possible designs in any of the above-mentioned aspects.
  • FIG. 1a is a schematic diagram of the hardware structure of a mobile phone according to an embodiment of the application.
  • FIG. 1b is a schematic diagram of the software structure of a mobile phone provided by an embodiment of this application.
  • Figure 2 is a schematic diagram of a one-handed mobile phone provided by an embodiment of the application.
  • FIGS. 3a to 3c are schematic diagrams of hot zones provided by embodiments of the application.
  • FIG. 4 is a schematic diagram of a set of interfaces provided by an embodiment of the application.
  • FIG. 5 is a schematic diagram of another set of interfaces provided by an embodiment of the application.
  • FIG. 6 is a schematic diagram of another set of interfaces provided by an embodiment of the application.
  • FIG. 7 is a schematic diagram of another set of interfaces provided by an embodiment of the application.
  • FIG. 8 is a schematic diagram of another set of interfaces provided by an embodiment of the application.
  • FIG. 9 is a schematic diagram of another set of interfaces provided by an embodiment of the application.
  • FIG. 10 is a schematic flowchart of a method for responding to a touch screen according to an embodiment of the application.
  • FIG. 11 is a schematic flowchart of a method for responding to a touch screen according to an embodiment of the application.
  • FIG. 12 is a schematic diagram of the hardware structure of a mobile phone provided by an embodiment of the application.
  • the cursor involved in the embodiments of this application is a symbol or graphic displayed on the screen of an electronic device for human-computer interaction or other display devices to move in response to finger operations.
  • the cursor can indicate the touch of the user's finger on the touch screen. The point where the operation occurred.
  • Gesture navigation is an interactive mode and animation effect that uses sliding gestures to operate mobile phones.
  • Emotion UI EMUI
  • Huawei mobile phones has added gesture navigation in version 9.0.
  • the function of the side swipe gesture in the gesture navigation function is: after sliding inward on both sides of the screen to produce a semi-transparent arc-shaped graphic and raising the hand, the application will go back to the upper level interface.
  • Floating navigation is an interactive way of operating the floating buttons that are resident on the screen and their animation effects.
  • the floating buttons can be semi-transparent dots, covering the interface.
  • the position of the floating buttons can be changed manually, such as pressing the floating button with a finger.
  • the button moves to the left.
  • EMUI added a floating navigation function in version 8.0.
  • the main screen and the secondary screen of the electronic device are introduced below.
  • some electronic devices have two display screens, one display screen located on the front of the mobile phone is called the main screen, and the other display screen located on the back of the mobile phone is called the secondary screen.
  • the holding hand can be used to touch the secondary screen to implement operations on the secondary screen.
  • the foldable touch screen when the foldable touch screen is in a fully unfolded state, can be regarded as a complete screen; when the foldable touch screen is in a folded state, the mobile phone The screen displayed on the front is called the main screen, and the screen on the back of the phone is called the secondary screen.
  • GUI graphical user interface
  • the commonly used form of the user interface is a graphical user interface (GUI), which refers to a user interface related to computer operations that is displayed in a graphical manner. It can be an icon, window, control and other interface elements displayed on the display screen of an electronic device.
  • the control can include icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, Widgets, etc. Visual interface elements.
  • the user interface 200 is the main interface of the electronic device.
  • the user interface 200 may include a status bar 201, a hideable navigation bar 202, a time and weather widget 203, and various application icons, such as WeChat icons, gallery icons, short message icons, and so on.
  • the status bar 201 includes the name of the operator (for example, China Mobile), mobile network (for example, 4G), time, and remaining power.
  • the navigation bar 202 may include a back button icon, a home button icon, and a forward button icon.
  • the status bar 201 may also include a Bluetooth icon, a Wi-Fi icon, an alarm clock icon, an icon of an external device, and the like.
  • the user interface 200 shown in FIG. 2 may also include a Dock bar 204, and the Dock bar 204 may include commonly used application icons, such as phone icons, Set icons, browser icons, and Weibo icons, etc.
  • the processor 110 detects a touch event of the user's finger (or stylus, etc.) on an application icon, in response to the touch event, it opens the user interface of the application corresponding to the application icon, and displays it on the display 194 Show the user interface of the application.
  • the electronic device may be a mobile phone, a tablet computer, a notebook computer, or a wearable device with wireless communication function (such as a smart watch or smart glasses, etc.).
  • the electronic device includes a device capable of realizing data processing functions (such as a processor, or an application processor, or, an image processor, or other processor), and a device (such as a display screen) that can display a user interface.
  • Exemplary embodiments of the electronic device include, but are not limited to, carrying Or other operating system equipment.
  • the above-mentioned electronic device may also be other portable devices, such as a laptop with a touch-sensitive surface (such as a touch panel). It should also be understood that in some other embodiments of the present application, the above-mentioned electronic device 01 may not be a portable electronic device, but a desktop computer with a touch-sensitive surface (such as a touch panel).
  • FIG. 1a only shows a schematic diagram of the hardware structure of a mobile phone 100 provided by an embodiment of the present application.
  • the mobile phone 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, and a battery 142, Antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, A display screen 194, and a subscriber identification module (SIM) card interface 195, etc.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light Sensor 180L, bone conduction sensor 180M, etc.
  • the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the mobile phone 100.
  • the mobile phone 100 may include more or fewer components than those shown in FIG. 1a, or combine certain components, or split certain components, or arrange different components.
  • the components shown in Figure 1a can be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait.
  • AP application processor
  • GPU graphics processing unit
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • the different processing units may be independent devices or integrated in one or more processors.
  • the controller may be the nerve center and command center of the mobile phone 100. The controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 110 to store instructions and data.
  • the memory in the processor 110 is a cache memory.
  • the memory can store instructions or data that the processor 110 has just used or used cyclically. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory, thereby avoiding repeated access, reducing the waiting time of the processor 110, and improving the efficiency of the system.
  • the processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (PCM) interface, and a universal asynchronous transceiver ( universal asynchronous receiver/transmitter, UART interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface , And/or Universal Serial Bus (USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • USB Universal Serial Bus
  • the I2C interface is a bidirectional synchronous serial bus, which includes a serial data line (SDA) and a serial clock line (SCL).
  • the processor 110 may include multiple sets of I2C buses.
  • the processor 110 may couple the touch sensor 180K, the charger, the flash, the camera 193, etc., respectively through different I2C bus interfaces.
  • the processor 110 may couple the touch sensor 180K through an I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface to realize the touch function of the mobile phone 100.
  • the I2S interface can be used for audio communication.
  • the processor 110 may include multiple sets of I2S buses.
  • the processor 110 may be coupled with the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170.
  • the audio module 170 may transmit audio signals to the wireless communication module 160 through an I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
  • the PCM interface can also be used for audio communication to sample, quantize and encode analog signals.
  • the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus can be a two-way communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • the UART interface is generally used to connect the processor 110 and the wireless communication module 160.
  • the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to realize the Bluetooth function.
  • the audio module 170 may transmit audio signals to the wireless communication module 160 through a UART interface, so as to realize the function of playing music through a Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 with the display screen 194, the camera 193 and other peripheral devices.
  • the MIPI interface includes a camera serial interface (camera serial interface, CSI), a display serial interface (display serial interface, DSI), and so on.
  • the processor 110 and the camera 193 communicate through a CSI interface to implement the shooting function of the mobile phone 100.
  • the processor 110 and the display screen 194 communicate through the DSI interface to realize the display function of the mobile phone 100.
  • the GPIO interface can be configured through software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface can be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and so on.
  • the GPIO interface can also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 130 is an interface that complies with the USB standard specification, and specifically may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and so on.
  • the USB interface 130 can be used to connect a charger to charge the mobile phone 100, and can also be used to transfer data between the mobile phone 100 and peripheral devices. It can also be used to connect earphones and play audio through earphones. This interface can also be used to connect to other electronic devices, such as AR devices.
  • the interface connection relationship between the modules illustrated in the embodiment of the present application is merely a schematic description, and does not constitute a structural limitation of the mobile phone 100.
  • the mobile phone 100 may also adopt different interface connection modes in the above-mentioned embodiments, or a combination of multiple interface connection modes.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger.
  • the charging management module 140 may receive the charging input of the wired charger through the USB interface 130.
  • the charging management module 140 may receive the wireless charging input through the wireless charging coil of the mobile phone 100. While the charging management module 140 charges the battery 142, it can also supply power to the electronic device through the power management module 141.
  • the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
  • the power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160.
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
  • the power management module 141 may also be provided in the processor 110.
  • the power management module 141 and the charging management module 140 may also be provided in the same device.
  • the wireless communication function of the mobile phone 100 can be realized by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
  • the antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in the mobile phone 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna can be used in combination with a tuning switch.
  • the mobile communication module 150 may provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the mobile phone 100.
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc.
  • the mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering, amplifying and transmitting the received electromagnetic waves to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic wave radiation via the antenna 1.
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110.
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor.
  • the application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays an image or video through the display screen 194.
  • the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide applications on the mobile phone 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), and global navigation satellite systems. (global navigation satellite system, GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • WLAN wireless local area networks
  • BT Bluetooth
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication
  • IR infrared technology
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110.
  • the wireless communication module 160 may also receive the signal to be sent from the processor 110, perform frequency modulation, amplify it, and convert it into electromagnetic waves to radiate through the antenna 2.
  • the antenna 1 of the mobile phone 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the mobile phone 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite-based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite-based augmentation systems
  • the mobile phone 100 implements a display function through a GPU, a display screen 194, and an application processor.
  • the GPU is an image processing microprocessor, which is connected to the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations and is used for graphics rendering.
  • the processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos, and the like.
  • the display screen 194 includes a display panel.
  • the display panel can use liquid crystal display (LCD), organic light-emitting diode (OLED), active matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • active-matrix organic light-emitting diode active-matrix organic light-emitting diode
  • AMOLED flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (QLED), etc.
  • the mobile phone 100 may include one or N display screens 194, and N is a positive integer greater than one.
  • the mobile phone 100 can realize a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
  • the ISP is used to process the data fed back by the camera 193. For example, when taking a picture, the shutter is opened, the light is transmitted to the photosensitive element of the camera through the lens, the light signal is converted into an electrical signal, and the photosensitive element of the camera transfers the electrical signal to the ISP for processing and is converted into an image visible to the naked eye.
  • ISP can also optimize the image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera 193.
  • the camera 193 is used to capture still images or videos.
  • the object generates an optical image through the lens and is projected to the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then transfers the electrical signal to the ISP to convert it into a digital image signal.
  • ISP outputs digital image signals to DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other formats of image signals.
  • the mobile phone 100 may include one or N cameras 193, and N is a positive integer greater than one.
  • Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the mobile phone 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
  • Video codecs are used to compress or decompress digital video.
  • the mobile phone 100 may support one or more video codecs. In this way, the mobile phone 100 can play or record videos in multiple encoding formats, such as: moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, and so on.
  • MPEG moving picture experts group
  • MPEG2 MPEG2, MPEG3, MPEG4, and so on.
  • NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • applications such as intelligent cognition of the mobile phone 100 can be implemented, such as image recognition, face recognition, voice recognition, text understanding, and so on.
  • the external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the mobile phone 100.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example, save music, video and other files in an external memory card.
  • the internal memory 121 may be used to store computer executable program code, where the executable program code includes instructions.
  • the internal memory 121 may include a storage program area and a storage data area.
  • the storage program area can store an operating system, at least one application program (such as a sound playback function, an image playback function, etc.) required by at least one function.
  • the data storage area can store data (such as audio data, phone book, etc.) created during the use of the mobile phone 100.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), and the like.
  • the processor 110 executes various functional applications and data processing of the mobile phone 100 by running instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
  • the mobile phone 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. For example, music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal.
  • the audio module 170 can also be used to encode and decode audio signals.
  • the audio module 170 may be provided in the processor 110, or part of the functional modules of the audio module 170 may be provided in the processor 110.
  • the speaker 170A also called “speaker” is used to convert audio electrical signals into sound signals.
  • the mobile phone 100 can listen to music through the speaker 170A, or listen to a hands-free call.
  • the receiver 170B also called “earpiece” is used to convert audio electrical signals into sound signals.
  • the mobile phone 100 answers a call or a voice message, it can receive the voice by bringing the receiver 170B close to the human ear.
  • the microphone 170C also called “microphone”, “microphone”, is used to convert sound signals into electrical signals.
  • the user can make a sound by approaching the microphone 170C through the human mouth, and input the sound signal into the microphone 170C.
  • the mobile phone 100 may be provided with at least one microphone 170C. In other embodiments, the mobile phone 100 may be provided with two microphones 170C, which can implement noise reduction functions in addition to collecting sound signals. In some other embodiments, the mobile phone 100 may also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions.
  • the earphone interface 170D is used to connect wired earphones.
  • the earphone interface 170D may be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, and a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA, CTIA
  • the pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
  • the pressure sensor 180A may be provided on the display screen 194.
  • the capacitive pressure sensor may include at least two parallel plates with conductive material.
  • the mobile phone 100 determines the intensity of the pressure according to the change of the capacitance.
  • a touch operation acts on the display screen 194
  • the mobile phone 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the mobile phone 100 may also calculate the touched position based on the detection signal of the pressure sensor 180A.
  • touch operations that act on the same touch position but have different touch operation strengths may correspond to different operation instructions.
  • the gyro sensor 180B may be used to determine the movement posture of the mobile phone 100. In some embodiments, the angular velocity of the mobile phone 100 around three axes (ie, x, y, and z axes) can be determined by the gyroscope sensor 180B. The gyro sensor 180B can be used for image stabilization. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.
  • the air pressure sensor 180C is used to measure air pressure.
  • the mobile phone 100 uses the air pressure value measured by the air pressure sensor 180C to calculate the altitude to assist positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the mobile phone 100 can use the magnetic sensor 180D to detect the opening and closing of the flip holster.
  • the mobile phone 100 can detect the opening and closing of the flip according to the magnetic sensor 180D.
  • features such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the magnitude of the acceleration of the mobile phone 100 in various directions (generally three axes). When the mobile phone 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and apply to applications such as horizontal and vertical screen switching, pedometers and so on.
  • the mobile phone 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the mobile phone 100 may use the distance sensor 180F to measure the distance to achieve fast focusing.
  • the proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector such as a photodiode.
  • the light emitting diode may be an infrared light emitting diode.
  • the mobile phone 100 emits infrared light to the outside through the light emitting diode.
  • the mobile phone 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the mobile phone 100. When insufficient reflected light is detected, the mobile phone 100 can determine that there is no object near the mobile phone 100.
  • the mobile phone 100 can use the proximity light sensor 180G to detect that the user holds the mobile phone 100 close to the ear to talk, so as to automatically turn off the screen to save power.
  • the proximity light sensor 180G can also be used in leather case mode, and the pocket mode will automatically unlock and lock the screen.
  • the ambient light sensor 180L is used to sense the brightness of the ambient light.
  • the mobile phone 100 can adaptively adjust the brightness of the display 194 according to the perceived brightness of the ambient light.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the mobile phone 100 is in the pocket to prevent accidental touch.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the mobile phone 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, access application locks, fingerprint photographs, fingerprint answering calls, and so on.
  • a fingerprint sensor may be arranged on the front of the mobile phone 100 (below the display screen 194), or a fingerprint sensor may be arranged on the back of the mobile phone 100 (below the rear camera).
  • the fingerprint recognition function can also be realized by configuring a fingerprint sensor in the touch screen, that is, the fingerprint sensor can be integrated with the touch screen to realize the fingerprint recognition function of the mobile phone 100.
  • the fingerprint sensor may be configured in the touch screen, may be a part of the touch screen, or may be configured in the touch screen in other ways.
  • the fingerprint sensor can also be implemented as a full panel fingerprint sensor. Therefore, the touch screen can be regarded as a panel that can collect fingerprints at any position.
  • the fingerprint sensor may process the collected fingerprint (for example, whether the fingerprint is verified) and send it to the processor 110, and the processor 110 will perform corresponding processing according to the fingerprint processing result.
  • the fingerprint sensor may also send the collected fingerprint to the processor 110, so that the processor 110 can process the fingerprint (for example, fingerprint verification, etc.).
  • the fingerprint sensor in the embodiments of the present application can use any type of sensing technology, including but not limited to optical, capacitive, piezoelectric, or ultrasonic sensing technology.
  • the temperature sensor 180J is used to detect temperature.
  • the mobile phone 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the mobile phone 100 performs a reduction in the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection.
  • the mobile phone 100 when the temperature is lower than another threshold, the mobile phone 100 heats the battery 142 to avoid abnormal shutdown of the mobile phone 100 due to low temperature.
  • the mobile phone 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • Touch sensor 180K also called “touch panel”.
  • the touch sensor 180K may be disposed on the display screen 194, and the touch screen is composed of the touch sensor 180K and the display screen 194, which is also called a “touch screen”.
  • the touch sensor 180K is used to detect touch operations acting on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • the visual output related to the touch operation can be provided through the display screen 194.
  • the touch sensor 180K may also be disposed on the surface of the mobile phone 100, which is different from the position of the display screen 194.
  • the bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can obtain the vibration signal of the vibrating bone mass of the human voice.
  • the bone conduction sensor 180M can also contact the human pulse and receive the blood pressure pulse signal.
  • the bone conduction sensor 180M may also be provided in the earphone, combined with the bone conduction earphone.
  • the audio module 170 can parse the voice signal based on the vibration signal of the vibrating bone block of the voice obtained by the bone conduction sensor 180M, and realize the voice function.
  • the application processor may analyze the heart rate information based on the blood pressure beating signal obtained by the bone conduction sensor 180M, and realize the heart rate detection function.
  • the button 190 includes a power-on button, a volume button, and so on.
  • the button 190 may be a mechanical button. It can also be a touch button.
  • the mobile phone 100 can receive key input, and generate key signal input related to user settings and function control of the mobile phone 100.
  • the motor 191 can generate vibration prompts.
  • the motor 191 can be used for incoming call vibration notification, and can also be used for touch vibration feedback.
  • touch operations that act on different applications can correspond to different vibration feedback effects.
  • Acting on touch operations in different areas of the display screen 194, the motor 191 can also correspond to different vibration feedback effects.
  • Different application scenarios for example: time reminding, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 may be an indicator light, which may be used to indicate the charging status, power change, or to indicate messages, missed calls, notifications, and so on.
  • the SIM card interface 195 is used to connect to the SIM card.
  • the SIM card can be connected to and separated from the mobile phone 100 by inserting into the SIM card interface 195 or pulling out from the SIM card interface 195.
  • the mobile phone 100 may support 1 or N SIM card interfaces, and N is a positive integer greater than 1.
  • the SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc.
  • the same SIM card interface 195 can insert multiple cards at the same time. The types of the multiple cards can be the same or different.
  • the SIM card interface 195 can also be compatible with different types of SIM cards.
  • the SIM card interface 195 may also be compatible with external memory cards.
  • the mobile phone 100 interacts with the network through the SIM card to implement functions such as call and data communication.
  • the mobile phone 100 uses an eSIM, that is, an embedded SIM card.
  • the eSIM card can be embedded in the mobile phone 100 and cannot be separated from the mobile phone 100.
  • the mobile phone 100 may also include a Bluetooth device, a positioning device, a flashlight, a miniature projection device, a near field communication (NFC) device, etc., which will not be repeated here.
  • a Bluetooth device a positioning device
  • a flashlight a miniature projection device
  • NFC near field communication
  • the software system of the electronic device 100 may adopt a layered architecture.
  • the embodiment of the present application takes an Android system with a layered architecture as an example to illustrate the software structure of the electronic device 100 by way of example.
  • Fig. 1b is a software structure block diagram of an electronic device 100 according to an embodiment of the present invention.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Communication between layers through software interface.
  • the Android system is divided into four layers, from top to bottom, the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.
  • the application layer can include a series of application packages.
  • the application package may include applications such as phone, camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
  • the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer can include a window manager, a content provider, a view system, a phone manager, a resource manager, and a notification manager.
  • the window manager is used to manage window programs.
  • the window manager can obtain the size of the display, determine whether there is a status bar, lock the screen, take a screenshot, etc.
  • the content provider is used to store and retrieve data and make these data accessible to applications.
  • the data may include videos, images, audios, phone calls made and received, browsing history and bookmarks, phone book, etc.
  • the view system includes visual controls, such as controls that display text, controls that display pictures, and so on.
  • the view system can be used to build applications.
  • the display interface can be composed of one or more views.
  • a display interface that includes a short message notification icon may include a view that displays text and a view that displays pictures.
  • the phone manager is used to provide the communication function of the electronic device 100. For example, the management of the call status (including connecting, hanging up, etc.).
  • the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, etc.
  • the notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and it can disappear automatically after a short stay without user interaction.
  • the notification manager is used to notify download completion, message reminders, and so on.
  • the notification manager can also be a notification that appears in the status bar at the top of the system in the form of a chart or a scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, text messages are prompted in the status bar, prompt sounds, electronic devices vibrate, and indicator lights flash.
  • Android Runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system.
  • the core library consists of two parts: one part is the function functions that the java language needs to call, and the other part is the core library of Android.
  • the application layer and the application framework layer run in a virtual machine.
  • the virtual machine executes the java files of the application layer and the application framework layer as binary files.
  • the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
  • the system library can include multiple functional modules. For example: surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), etc.
  • surface manager surface manager
  • media library Media Libraries
  • 3D graphics processing library for example: OpenGL ES
  • 2D graphics engine for example: SGL
  • the surface manager is used to manage the display subsystem and provides a combination of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to realize 3D graphics drawing, image rendering, synthesis, and layer processing.
  • the 2D graphics engine is a drawing engine for 2D drawing.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
  • the following embodiments can all be implemented in an electronic device with the above-mentioned hardware structure (for example, a mobile phone 100.
  • the following embodiments will take the mobile phone 100 as an example and describe in detail the response method of the touch screen provided by the embodiments of the present application with reference to the accompanying drawings.
  • Fig. 2 exemplarily shows a schematic diagram of holding a mobile phone with one hand.
  • the user When the user holds the mobile phone with one hand, as shown in Figure 2, the user holds the mobile phone with his left hand, the thumb of the left hand is on the left side of the display 194 of the mobile phone 100, and the other fingers are on the back of the mobile phone or the right side of the display. If you want to operate the user interface displayed on the display 194 with the left hand holding the mobile phone, you can operate with your thumb.
  • the general user In order to support the weight of the phone and maintain the balance of the phone, the general user is used to holding the lower part of the phone when holding the phone with one hand.
  • the thumb of the left hand can operate on the lower half of the display screen, and the length of the thumb Limited, it is difficult to reach the upper half of the mobile phone, so in this case, it is difficult for the thumb of the left hand to operate the upper half of the display 194. If the width of the mobile phone is relatively large, the thumb of the left hand can operate the position on the left side of the display screen, and it will be difficult to operate the position on the right side of the display screen. A similar problem also exists when the user has the right hand to hold the terminal with one hand.
  • the embodiment of the present application provides a touch screen response method, which can be applied to an electronic device with a display screen.
  • the electronic device uses a mobile phone 100 as an example.
  • the side area of the display screen of the mobile phone 100 is provided with a hot zone.
  • the cursor display can be triggered by operating the hot zone on the side of the display screen.
  • the cursor can follow the user's finger sliding on the display screen.
  • the ratio of the cursor movement distance to the finger sliding distance is greater than 1.
  • the mobile phone 100 triggers a click operation at the cursor position and responds to the click operation, so that the thumb of the hand holding the mobile phone can be used for one-handed operation without changing the position and size of the window of the user interface. Anywhere on the screen.
  • the hot zone on the side.
  • the vertical length of the display screen of the mobile phone 100 is L
  • the hot zone can be the entire side area of the display screen of the mobile phone, and the hot zone can also be a part of the side area.
  • the thumb is generally in the middle or the lower area of the side of the display, and it is generally difficult to reach the upper quarter area.
  • the hot The zone can be set in the middle or lower area of the mobile phone, for example, as shown in Figure 3a, the hot zone can also be the three-quarters of the lower side of the mobile phone display, such as the area 310 and the area 320, that is, the area of the hot zone.
  • the length is 0.75L.
  • the hot zone can also be the side except the part near the top and the part near the bottom.
  • the hot zone can be the side except the quarter area near the top and the tenth near the bottom.
  • the middle area outside one area, namely area 330 and area 340.
  • the user’s thumb can slide into the screen on the hot zone on the side, and the mobile phone can display a semi-transparent arc area in response to the slide operation, as shown in a in Figure 4, the thumb acts At the side position A, and slide into the screen in the direction of arrow 411, during the sliding process, a semi-transparent arc-shaped area 421 as shown in b in Figure 4 is displayed, and the semi-transparent arc-shaped area 421 follows The sliding distance of the finger gradually becomes larger as the sliding distance of the finger increases.
  • the return indicator 422 is displayed.
  • the cursor can move with the hand, that is, when the thumb moves, the cursor will move in the same direction.
  • the following takes the hot zone shown in Figure 3a as an example to introduce the specific rules of hand movement in detail.
  • the size of the area that the finger can move is related to the position when the cursor is displayed.
  • the mobile phone display with a vertical length of 100 pixels and a horizontal width of 30 pixels as an example, and the aspect ratio of the mobile phone is 10. :3.
  • the finger movement distance and the cursor movement distance can have a linear relationship, and the ratio between the vertical movement distance and the horizontal movement distance of the cursor can be the same as the aspect ratio of the mobile phone, that is, if the finger moves 1 piece vertically Pixels, the cursor moves vertically by 10 pixels, and when the finger moves horizontally by 1 pixel, the cursor moves vertically by 3 pixels.
  • the ratio between the vertical movement distance of the cursor and the horizontal movement distance may also be inconsistent with the aspect ratio of the mobile phone. For example, if the finger moves vertically by 1 pixel, the cursor moves vertically by 4 pixels, and the finger moves horizontally by 1 pixel. , The cursor moves 1.5 pixels horizontally.
  • the cursor when the cursor is displayed at half of the left side of the display screen M (50 pixels from the top, 50 pixels from the bottom, and 30 pixels from the right), the cursor can be displayed vertically. Move 12.5 pixels, move down 12.5 pixels, and move to the right with a width of 30, that is, the area where the finger can move is a rectangular area with a vertical length of 25 and a horizontal width of 30 (as shown in the rectangular dotted frame in Figure 3c) 350).
  • the finger movement distance and the cursor movement distance may also have a non-linear relationship, such as an exponential function, a power function, and so on.
  • a non-linear relationship such as an exponential function, a power function, and so on.
  • the WeChat discovery interface 410 as shown in b in Figure 5, the interface includes a variety of function buttons, such as the Moments function button, the sweep function button, the shake function button, the look function button, and the search function button , Nearby people function button, shopping function button, game function button, applet function button, etc., the user wants to click the circle of friends function button, the thumb is at position C, and can continue to slide along the direction of arrow 433, as shown in Figure 5. As shown in c, when the thumb slides from position C to position D and cursor 432 slides from position C to position E, the thumb leaves the display. Position E is the position where the Moments function button is located. The mobile phone is in position E in response to this operation.
  • function buttons such as the Moments function button, the sweep function button, the shake function button, the look function button, and the search function button , Nearby people function button, shopping function button, game function button, applet function button, etc.
  • the click function is realized at, and the Moments interface 420 as shown in d in Figure 5 is displayed, where the connection direction from position C to position E is the same as the connection direction from position C to position D, but the connection direction from position C to position E
  • the line distance is greater than the connection distance from position C to position D, so that the user's thumb only needs to slide a small distance on the display screen, which can operate on the upper half of the display screen, thereby improving user experience.
  • the thumb slides into the screen in the hot zone on the side until the return mark is displayed, the slide is not continued, the thumb leaves the display screen, and the mobile phone executes the return function in response to the operation, that is, returns to the previous interface.
  • the Moments interface 420 shown in a in Fig. 6 the thumb slides in the direction of the arrow 601 at the position A of the hot zone on the side to display the arc-shaped area 621 shown in b in Fig. 6 until it slides
  • the return mark 602 appears in the arc-shaped area 621.
  • the thumb leaves the display screen, and the previous interface of the Moments interface 420 is displayed, such as the WeChat discovery interface 410 as shown in c in FIG. 6.
  • the way of triggering the cursor display can be as in the above embodiment: when the thumb slides to position B, and the display shows the semi-transparent arc-shaped area 421 as shown in b in FIG. 4, continue sliding a certain distance to trigger the cursor Display, the following embodiments also provide several ways to trigger the cursor display.
  • the thumb when the thumb slides to position B and the display shows a semi-transparent arc-shaped area 421 as shown in b in Figure 4, the thumb is still, but the thumb does not leave the display, that is, the thumb is still in contact with the display ,
  • the cursor When the thumb is resting on the display for a time greater than or equal to the duration threshold, the cursor will be displayed. If the thumb is resting on the display for less than the duration threshold, the display will be left, and the phone will perform the return function, that is, return to the previous interface. .
  • the thumb can be still when the semi-transparent arc-shaped area 421 is displayed, and the user's intention can be judged by judging the length of time the thumb is still on the display screen, whether the user wants to perform the return function or trigger the cursor display.
  • the semi-transparent arc-shaped area 421 disappears, that is, the display screen does not Then the semi-transparent arc-shaped area 421 is displayed.
  • the cursor in the above embodiment can also disappear when the thumb leaves the display screen.
  • the cursor can disappear immediately after the thumb leaves the display screen. In this case, when the cursor needs to be used again, the cursor needs to be The hot zone on the side slides into the screen to re-trigger the cursor display.
  • the cursor can also disappear after the thumb leaves the display for a certain period of time (such as 3s). In this case, for example, when the thumb leaves When the display screen is 2s, you can continue to operate the cursor by sliding on the display screen again.
  • the thumb acts on the position A in the side hot zone and slides upward in the direction of arrow 711.
  • the cursor 721 is displayed. After the cursor 721 appears at the position F, it moves with the sliding of the thumb, and triggers the click function at the position where the thumb leaves the display screen.
  • the thumb can continue to slide in the direction of arrow 731, as shown in c in Figure 7, when the thumb slides from position F to position G, when the cursor 432 slides from position F to position E, the thumb leaves the display screen ,
  • Location E is the location where the Moments function button is located.
  • the mobile phone implements the click function at location E, and displays the Moments interface 420 as shown in d in FIG. 5.
  • the connecting direction from position F to position G is the same as the connecting direction from position F to position E, but the connecting distance from position F to position E is greater than the connecting distance from position F to position G, so that the user's thumb only needs to be in Sliding a small distance on the display screen can implement operations on the upper half of the display screen, thereby improving user experience.
  • the thumb can trigger the cursor display by pressing in the hot zone on the side.
  • the capacitance signal generated by the thumb pressing on the display screen can actually be approximated as an ellipse, that is, what the thumb actually touches is not a point, but an elliptical area, which can be based on the area of the ellipse being larger than the area
  • the threshold value and the pressing duration is greater than or equal to the preset duration
  • the function of triggering the cursor display can also be realized by the floating button.
  • the floating button can be a semi-transparent dot or other shapes, which is not limited in the embodiment of the present application.
  • the floating button when you drag the floating button with your thumb, you can move the floating button, such as dragging the floating button up or down in the vertical direction, or dragging the floating button to the left or right in the horizontal direction to move the floating button. Button, and the floating button moves the same distance as the finger. In this way, the floating button can be moved to an area where no content is displayed by moving the floating button, so as to prevent the floating button from obstructing the displayed content and improve the user experience.
  • Trigger cursor display As shown in the floating button 801 shown in a in FIG. 8, after the thumb is pressed on the floating button 801, as shown in b in FIG. 8, the thumb slides up from the position H in the vertical direction (such as the direction of the arrow 802) to the position K, and the cursor 803 is displayed at position H and moved to the position of the thumb (ie, position K).
  • the floating button 801 is still at position H, where the vertical distance between position K and position H is greater than or equal to the distance threshold.
  • the cursor 803 moves along with the sliding of the finger.
  • the multitasking management interface 810 includes pages of multiple applications running in the background, such as information pages 811 and WeChat page 812.
  • the cursor display when the thumb is dragging the floating button up or down in the vertical direction, when the dragging distance of the floating button is greater than or equal to a certain distance threshold, the cursor display can be triggered; when the thumb moves to the left or horizontally When dragging the floating button to the right, when the dragging distance of the floating button is greater than or equal to a certain distance threshold, the multitasking management function can be triggered. In this way, the cursor display can be triggered by directly dragging the floating button. Compared with the method of triggering the cursor display by long pressing the floating button and sliding operation, the method of directly dragging the floating button can simplify the operation process and improve efficiency.
  • the mobile phone vibrates to prompt the user to perform further operations.
  • the thumb on the floating button and slide vertically upwards or downwards, or continue to press the thumb on the floating button and horizontally Swipe left or right to drag the floating button.
  • the function of the hover button may be limited to trigger the cursor display. For example, when the thumb drags the floating button up or down in the vertical direction, or the thumb drags the floating button to the left or right in the horizontal direction, the cursor display can be triggered.
  • the mobile phone vibrates to prompt the user to perform further operations, and the thumb continues to press the floating button and slides up or down in the vertical direction when the sliding distance is greater than or equal to the distance threshold
  • the thumb continues to press the floating button and slides to the left or right in the horizontal direction for a sliding distance greater than or equal to the distance threshold. This can simplify the function of the floating button and reduce the cost of learning.
  • the mobile phone has a display screen on the front and back, or when the mobile phone with a folding screen is in a fully folded state, when the user holds the mobile phone with one hand, generally the thumb can perform the operation on the front display screen.
  • the index finger or middle finger can be operated on the back of the display screen.
  • the finger can trigger the cursor display.
  • the preset operation can include but not limited to long press, slide up, double tap , Press on a large area, draw specific shapes and other operations.
  • the user's finger can operate in the back display, and the cursor moves on the front display.
  • the display screen 901 and the display screen 902 have a positional mapping relationship.
  • the index finger performs a sliding operation on the display screen 901, and the sliding operation slides from the position M to the position N.
  • the mobile phone displays a cursor 903 at a position corresponding to the position N on the display screen 902.
  • FIG. 10 exemplarily shows a flow of a method for responding to a touch screen provided by an embodiment of the present application, and the method is executed by an electronic device.
  • Step 1001 The electronic device receives a first operation of a user's finger on a preset area on a first side of the touch screen, where the first side is one of the left and right sides of the touch screen.
  • the preset area may be the hot zone in the foregoing embodiment, such as the area 310, the area 320, the area 330, and the area 340.
  • Step 1002 When the electronic device determines that the first operation meets the first response threshold, it displays a cursor at the end position of the first operation in response to the first operation.
  • the first operation includes a first sliding operation from the preset area on the first side into the screen and a second sliding operation continuing upward or downward from the end position of the first sliding operation
  • the first response threshold is the first The first sliding distance corresponding to the sliding operation and the second sliding distance in the vertical direction corresponding to the second sliding operation.
  • the first operation includes a first sliding operation from a preset area on the first side into the screen and a first pressing operation at the end position of the first sliding operation, and the first response threshold is corresponding to the first sliding operation The first sliding distance and the first pressing duration corresponding to the first pressing operation.
  • the first operation is a third sliding operation up or down in the preset area of the first side, and the first response threshold is the third sliding distance in the vertical direction.
  • the first operation is a second pressing operation
  • the first response threshold is the second pressing duration and the first pressing area.
  • Step 1003 the electronic device detects the second operation of the user's finger on the cursor, and the user's finger leaves the touch screen when the second operation ends, and in response to the second operation, triggers a click operation at the cursor position corresponding to the position where the user's finger leaves the touch screen ,
  • the movement distance of the cursor is proportional to the movement distance of the user's finger corresponding to the second operation, and the ratio is greater than 1.
  • the second operation is a sliding operation.
  • the sliding operation in the direction of arrow 433 shown in b in FIG. 5 is another example of the sliding operation in the direction of arrow 731 shown in c in FIG. 7.
  • Step 1004 When the electronic device detects the click operation, it responds to the click operation.
  • the user's finger operates in the preset area on the first side of the touch screen, and the cursor can be displayed by touching it, and then the cursor can be operated to make the cursor move with the movement of the finger, and the movement distance of the cursor is the same as the second operation
  • the corresponding user's finger movement distance is proportional, and the ratio is greater than 1, that is to say, the user's finger moves a smaller distance, can make the cursor move a larger distance, so that it can be used without changing the window position and size of the user interface
  • the thumb of the hand holding the mobile phone performs one-handed operation on the touch screen, and can tap anywhere on the screen.
  • the first operation includes a first sliding operation from the preset area of the first side into the screen, and a second sliding operation continuing upward or downward from the end position of the first sliding operation
  • 4 and 5 to illustrate, when the electronic device receives the first sliding operation from the preset area of the first side into the screen (the sliding operation along the arrow 411 as shown in a in FIG. 4), it is determined Whether the sliding distance corresponding to the first sliding operation reaches the first sliding distance, and if it reaches the first sliding distance, then it is detected whether a second sliding operation that continues upward or downward from the end position of the first sliding operation is received (as shown in Figure 5).
  • the electronic device when the first operation includes the first sliding operation from the preset area of the first side into the screen and the first pressing operation at the end position of the first sliding operation, when the electronic device receives The first sliding operation from the preset area on the first side into the screen (the sliding operation along arrow 411 as shown in a in Figure 4) can determine whether the sliding distance corresponding to the first sliding operation reaches the first sliding distance.
  • the first sliding distance is reached, when the first pressing operation at the end position of the first sliding operation (position B shown in b in Figure 4) is received, it is determined whether the pressing duration corresponding to the first pressing operation is greater than If the first pressing duration is longer than the first pressing duration, the cursor is displayed at the end position of the first operation, that is, the cursor is displayed at the end position of the first sliding operation.
  • the electronic device responds to the first sliding operation (the sliding operation along the arrow 411 as shown in a in FIG. 4) to display an arc-shaped area on the first side (as shown in b in FIG. 4). Shown in the arc area 421).
  • the user can see the result of the first sliding operation, thereby intuitively letting the user know the size of the sliding distance.
  • the electronic device determines that the sliding distance corresponding to the first sliding operation (the sliding operation along the arrow 411 as shown in a in FIG. 4 a) reaches the first sliding distance, and displays the return mark ( The return mark 422 shown in b in Fig. 4), the cursor is displayed after the return mark. In this design, the return mark is displayed to prompt the user to return to the previous level of function.
  • the electronic device determines that the sliding distance of the second sliding operation in the vertical direction does not satisfy the second sliding distance, or the pressing corresponding to the first pressing operation If the duration does not meet the first pressing duration, the return to the previous level function is executed in response to the first operation. For example, as shown in b in FIG. 6, when the user's finger performs the first sliding operation from position A to position B If the second sliding operation is continued, and the touch screen is left when the sliding distance in the vertical direction does not meet the second sliding distance, the electronic device performs the function of returning to the previous level, and returns from the interface 420 as shown in b in FIG.
  • the electronic device when the electronic device receives a third sliding operation up or down in the preset area of the first side (the sliding operation in the direction of arrow 711 as shown in a in FIG. 7), it can be judged Whether the sliding distance of the third sliding operation in the vertical direction reaches the third sliding distance, if it reaches the third sliding distance, the cursor (cursor 721 shown in b in FIG. 7) is displayed at the end position of the first operation, that is The cursor is displayed at the end position of the third sliding operation.
  • the electronic device when the electronic device receives the second pressing operation on the preset area on the first side, it can determine whether the pressing duration corresponding to the second pressing operation is greater than the second pressing duration, and the second pressing Whether the pressing area corresponding to the operation is greater than the first pressing area, if the judgment result is all yes, the cursor is displayed at the end position of the first operation, that is, the cursor is displayed at the position of the second pressing operation.
  • the shape of the cursor includes but is not limited to any of the following: circle, arrow, I-shape, diamond, rectangle, vertical line.
  • the preset area is the entire side area of the first side, or a part of the side area of the first side.
  • FIG. 11 it exemplarily shows the flow of another method for responding to a touch screen provided by an embodiment of the present application, and the method is executed by an electronic device.
  • Step 1101 The electronic device detects the third operation of the user's finger on the floating button displayed on the touch screen.
  • the floating button may be the floating button 801 in the above example.
  • Step 1102 When the electronic device determines that the third operation meets the second response threshold, it responds to the third operation and displays a cursor at the end position of the third operation.
  • the third operation is left or right in the horizontal direction, or the fourth sliding operation up or down in the vertical direction, and the second response threshold is the fourth sliding distance.
  • the third operation includes a third pressing operation and a fifth sliding operation
  • the second response threshold is the third pressing duration corresponding to the third pressing operation and the fifth sliding distance corresponding to the fifth sliding operation.
  • Step 1103 the electronic device detects the fourth operation of the user's finger on the cursor, and the user's finger leaves the touch screen when the second operation ends, and in response to the fourth operation, triggers a click operation at the cursor position corresponding to the position where the user's finger leaves the touch screen ,
  • the movement distance of the cursor is proportional to the movement distance of the user's finger corresponding to the fourth operation, and the ratio is greater than 1.
  • the fourth operation is a sliding operation.
  • Step 1104 When the electronic device detects the click operation, it responds to the click operation.
  • the user's finger can operate the floating button, and the cursor can be displayed by touching it, and then the cursor can be operated to make the cursor move with the movement of the finger, and the movement distance of the cursor is proportional to the movement distance of the user's finger corresponding to the second operation , And the ratio is greater than 1, that is to say, the user's fingers can move a smaller distance to make the cursor move a larger distance, so that you can use the thumb of the hand holding the phone without changing the position and size of the user interface window.
  • the touch screen can be operated with one hand and can be tapped anywhere on the screen.
  • the electronic device detects that the user's finger on the floating button displayed on the touch screen moves to the left or right in the horizontal direction, or the fourth sliding operation up or down in the vertical direction, the electronic When the device determines that the sliding distance corresponding to the fourth sliding operation is greater than the fourth sliding operation, in response to the fourth sliding operation, the cursor is displayed at the end position of the fourth sliding operation.
  • the fourth sliding operation is a sliding operation in the direction of arrow 802 as shown in b in FIG. 8, sliding from position H to position K, and the distance difference between position K and position H is greater than the fourth sliding operation.
  • the cursor 802 is displayed at the position K.
  • the electronic device detects the third pressing operation of the user's finger on the floating button displayed on the touch screen, and when the electronic device determines that the pressing duration corresponding to the third pressing operation is greater than the third pressing duration, it detects that the floating button is pressed In the fifth sliding operation, when it is determined that the sliding distance corresponding to the fifth sliding operation is greater than the fifth sliding distance, in response to the fifth sliding operation, a cursor is displayed at the end position of the fifth sliding operation.
  • the electronic device when the pressing duration of the third pressing operation reaches the third pressing duration, the electronic device performs a vibration prompt. In this way, the user can determine that the pressing duration of the third pressing operation reaches the third pressing duration by sensing the vibration without looking at the screen.
  • the shape of the cursor includes but is not limited to any of the following: arrow, I-shape, circle, diamond, rectangle, vertical line.
  • the method provided in the embodiments of the present application is introduced from the perspective of an electronic device as an execution subject.
  • the electronic device may include a hardware structure and/or a software module, and realize the above functions in the form of a hardware structure, a software module, or a hardware structure plus a software module. Whether a certain function of the above-mentioned functions is executed by a hardware structure, a software module, or a hardware structure plus a software module depends on the specific application and design constraint conditions of the technical solution.
  • the hardware implementation of the electronic device can refer to FIG. 12 and related descriptions.
  • the electronic device 100 includes: a touch screen 1201, where the touch screen 1201 includes a touch panel 1207 and a display screen 1208; one or more processors 1202; a memory 1203; one or more application programs (not shown) Shown); and one or more computer programs 1204, the sensor 1205, and the above-mentioned devices may be connected through one or more communication buses 1206.
  • the one or more computer programs 1204 are stored in the aforementioned memory 1203 and configured to be executed by the one or more processors 1202, and the one or more computer programs 1204 include instructions, and the aforementioned instructions can be used to execute any of the aforementioned instructions.
  • the method in one embodiment.
  • the embodiments of the present application also provide a computer storage medium, the computer storage medium stores computer instructions, when the computer instructions run on the electronic device, the electronic device executes the above-mentioned related method steps to realize the response of the touch screen in the above-mentioned embodiment method.
  • the embodiment of the present application also provides a computer program product.
  • the computer program product runs on a computer, the computer is caused to execute the above-mentioned related steps, so as to implement the touch screen response method in the above-mentioned embodiment.
  • the embodiments of the present application also provide a device.
  • the device may specifically be a chip, component or module.
  • the device may include a processor and a memory connected to each other.
  • the memory is used to store computer execution instructions.
  • the processor can execute the computer-executable instructions stored in the memory, so that the chip executes the translation methods in the foregoing method embodiments.
  • the electronic devices, computer storage media, computer program products, or chips provided in the embodiments of the present application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the corresponding methods provided above. The beneficial effects of the method are not repeated here.
  • the disclosed device and method can be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of modules or units is only a logical function division.
  • there may be other division methods for example, multiple units or components may be combined or It can be integrated into another device, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate parts may or may not be physically separate, and the parts displayed as units may be one physical unit or multiple physical units, that is, they may be located in one place, or they may be distributed to multiple different places. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium.
  • the technical solutions of the embodiments of the present application are essentially or the part that contributes to the prior art, or all or part of the technical solutions can be embodied in the form of a software product, and the software product is stored in a storage medium. It includes several instructions to make a device (may be a single-chip microcomputer, a chip, etc.) or a processor (processor) execute all or part of the steps of the methods in the embodiments of the present application.
  • the foregoing storage media include: U disk, mobile hard disk, read only memory (read only memory, ROM), random access memory (random access memory, RAM), magnetic disk or optical disk and other media that can store program codes.

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)
  • Telephone Function (AREA)

Abstract

本申请实施例提供一种触摸屏的响应方法及电子设备,该方法应用于具有触摸屏的电子设备,该方法包括:接收用户手指在触摸屏的第一侧边的预设区域的第一操作,确定第一操作满足第一响应阈值时,则响应于第一操作在第一操作的终点位置显示光标;检测到用户手指对光标的第二操作、且用户手指在第二操作结束时离开触摸屏,则响应于第二操作,在与用户手指离开触摸屏的位置对应的光标位置触发点击操作,光标的移动距离与第二操作对应的用户手指移动距离成正比,且比值大于1,检测到点击操作时,响应点击操作。通过触发光标显示,之后对光标进行操作,用户手指移动较小的距离,可以使光标移动较大的距离,这样可以实现单手对屏幕上的任何位置进行操作。

Description

一种触摸屏的响应方法及电子设备
相关申请的交叉引用
本申请要求在2019年09月30日提交中国专利局、申请号为201910944437.3、申请名称为“一种触摸屏的响应方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及终端技术领域,尤其涉及一种触摸屏的响应方法及电子设备。
背景技术
随着电子设备的更新升级,如智能手机、平板电脑等电子设备的触摸屏的屏幕尺寸越来越大。以手机为例,现在的手机的竖向尺寸越来越长,竖向尺寸与横向尺寸横的比例从之前的16:9到现在的18:9、19.5:9,甚至未来可能到21:9,这就使得用户在单手握持手机时,如果单手握持手机的下半部分,就难以用拇指操作屏幕的上方区域。而很多应用的显示界面上的重要按钮(如返回、设置等)设置在界面上方,用户就不得不用另一只手来进行操作。这样容易增加用户操作的难度,中断沉浸体验。
现有的一些手机为了改变这种竖屏尺寸太大导致单手握持手机时,无法实现对上半屏进行操作,手机***提供一种单手模式,即双击home键,显示界面会下位移至下半屏位置,使得显示界面上的按钮接近用户的手指。但是这种方式会导致窗口变小或者部分被遮挡导致阅读困难,而且在操作结束后界面还需要复位,影响使用效率,另外,界面内容发生大幅变动,其他与窗口相关的操作(如多任务等)需要对单手模式做出适配,增加开发工作量和维护成本。
发明内容
本申请实施例提供一种触摸屏的响应方法及电子设备,用以实现在不改变用户界面的尺寸和位置的情况下,使用单手握持的手指对手机的显示屏上的任何位置进行操作。
第一方面,本申请实施例提供一种触摸屏的响应方法,应用于具有触摸屏的电子设备,该方法包括:电子设备接收用户手指在触摸屏的第一侧边的预设区域的第一操作,其中,第一侧边为触摸屏的左侧和右侧中的一个,电子设备在确定第一操作满足第一响应阈值时,则响应于第一操作在第一操作的终点位置显示光标,电子设备在检测到用户手指对光标的第二操作、且用户手指在第二操作结束时离开触摸屏,则响应于第二操作,在与用户手指离开触摸屏的位置对应的光标位置触发点击操作,其中,光标的移动距离与第二操作对应的用户手指移动距离成正比,且比值大于1,电子设备在检测到点击操作时,响应点击操作。
基于该方案,用户手指在触摸屏的第一侧边的预设区域进行操作,可以触发现光标显示,之后对光标进行操作,可以使光标跟随手指移动而移动,而且光标的移动距离与第二操作对应的用户手指移动距离成正比,且比值大于1,也就是说,用户手指移动较小的距 离,可以使光标移动较大的距离,这样可以在不改变用户界面的窗口位置、尺寸即可使用握持手机的手的拇指对触摸屏进行单手操作,能够点击到屏幕上的任何位置。
在一种可能的设计中,第一操作包括从第一侧边的预设区域向屏幕内的第一滑动操作和从第一滑动操作的终点位置继续向上或向下的第二滑动操作,第一响应阈值为第一滑动操作对应的第一滑动距离和第二滑动操作对应的沿竖直方向的第二滑动距离。也就是说,当电子设备接收到从第一侧边的预设区域向屏幕内的第一滑动操作时,判断第一滑动操作对应的滑动距离是否达到第一滑动距离,若达到第一滑动距离,则在接收到从第一滑动操作的终点位置继续向上或向下的第二滑动操作时,判断第二滑动操作对应的沿竖直方向的滑动距离是否大于第二滑动距离,若大于第二滑动距离,则在第一操作的终点位置显示光标,也就是在第二滑动操作的终点位置显示光标。
在一种可能的设计中,第一操作包括从第一侧边的预设区域向屏幕内的第一滑动操作和在第一滑动操作的终点位置的第一按压操作,第一响应阈值为第一滑动操作对应的第一滑动距离和第一按压操作对应的第一按压时长。也就是说,当电子设备接收到从第一侧边的预设区域向屏幕内的第一滑动操作,可以判断第一滑动操作对应的滑动距离是否达到第一滑动距离,若达到第一滑动距离,则在接收到在第一滑动操作的终点位置的第一按压操作时,判断第一按压操作对应的按压时长是否大于第一按压时长,若大于第一按压时长,则在第一操作的终点位置显示光标,也就是在第一滑动操作的终点位置显示光标。
在一种可能的设计中,该方法还包括:电子设备响应于所述第一滑动操作,在所述第一侧边显示弧形区域。在该设计中,通过显示弧形区域可以让用户看到第一滑动操作的结果,从而直观的让用户知晓已经滑动的距离大小。
在一种可能的设计中,该方法还包括:电子设备确定第一滑动操作对应的滑动距离达到第一滑动距离,在第一侧边的弧形区域中显示返回标识,光标在返回标识之后显示。在该设计中,通过显示返回标识,以提示用户可进行返回上一级功能。
在一种可能的设计中,该方法还包括:电子设备在确定所述第一滑动操作对应的滑动距离达到所述第一滑动距离后,确定所述第二滑动操作沿竖直方向的滑动距离不满足所述第二滑动距离,或者,所述第一按压操作对应的按压时长不满足第一按压时长,则响应于所述第一操作执行返回上一级功能。
在一种可能的设计中,第一操作为在第一侧边的预设区域向上或向下的第三滑动操作,第一响应阈值为沿竖直方向的第三滑动距离。也就是说,当电子设备接收到在第一侧边的预设区域向上或向下的第三滑动操作,可以判断第三滑动操作沿竖直方向的滑动距离是否达到第三滑动距离,若达到第三滑动距离,则在第一操作的终点位置显示光标,也就是在第三滑动操作的终点位置显示光标。
在一种可能的设计中,第一操作为第二按压操作,第一响应阈值为第二按压时长和第一按压面积。也就是说,当电子设备接收到在第一侧边的预设区域上的第二按压操作,可以判断第二按压操作对应的按压时长是否大于第二按压时长、且第二按压操作对应的按压面积是否大于第一按压面积,若判断结果均为是,则在第一操作的终点位置显示光标,也就是在第二按压操作的位置显示光标。
在一种可能的设计中,第二操作为滑动操作。
在一种可能的设计中,光标的形状为以下任一项:圆形、箭头、I型、菱形、矩形、竖线。
在一种可能的设计中,所述预设区域为所述第一侧边的整个侧边区域,或者为所述第一侧边的部分侧边区域。
第二方面,本申请实施例提供一种触摸屏的响应方法,应用于具有触摸屏的电子设备,该方法包括:电子设备检测到用户手指在触摸屏显示的悬浮按钮上的第三操作,电子设备确定第三操作满足第二响应阈值时,则响应于第三操作,在第三操作的终点位置显示光标,电子设备检测到用户手指对光标的第四操作、且用户手指在第二操作结束时离开触摸屏,则响应于第四操作,在与用户手指离开触摸屏的位置对应的光标位置触发点击操作,其中,光标的移动距离与第四操作对应的用户手指移动距离成正比、且比值大于1,检测到点击操作时,响应点击操作。
基于该方案,用户手指对悬浮按钮进行操作,可以触发现光标显示,之后对光标进行操作,可以使光标跟随手指移动而移动,而且光标的移动距离与第二操作对应的用户手指移动距离成正比,且比值大于1,也就是说,用户手指移动较小的距离,可以使光标移动较大的距离,这样可以在不改变用户界面的窗口位置、尺寸即可使用握持手机的手的拇指对触摸屏进行单手操作,能够点击到屏幕上的任何位置。
在一种可能的设计中,第三操作为沿水平方向的向左或向右,或者,沿竖直方向的向上或向下的第四滑动操作,第二响应阈值为第四滑动距离。也就是说,电子设备检测到用户手指在触摸屏显示的悬浮按钮上的沿水平方向的向左或向右,或者,沿竖直方向的向上或向下的第四滑动操作,电子设备确定第四滑动操作对应的滑动距离大于第四滑动操作时,则响应于第四滑动操作,在第四滑动操作的终点位置显示光标。
在一种可能的设计中,第三操作包括第三按压操作和第五滑动操作,第二响应阈值为第三按压操作对应的第三按压时长和第五滑动操作对应的第五滑动距离。也就是说,电子设备检测到用户手指在触摸屏显示的悬浮按钮上的第三按压操作,电子设备确定第三按压操作对应的按压时长大于第三按压时长时,检测到对悬浮按钮的第五滑动操作,判断第五滑动操作对应的滑动距离大于第五滑动距离时,响应于第五滑动操作,在第五滑动操作的终点位置显示光标。
在一种可能的设计中,该方法还包括:当第三按压操作的按压时长达到第三按压时长时,电子设备进行振动提示。通过该设计,用户可以不用看着屏幕,就可以通过感知到振动来确定第三按压操作的按压时长达到第三按压时长。
在一种可能的设计中,所述光标的形状为以下任一项:箭头、I型、圆形、菱形、矩形、竖线。
在一种可能的设计中,所述第四操作为滑动操作。
第三方面,本申请实施例提供一种电子设备,包括处理器、存储器、触摸屏;所述触摸屏,用于接收用户的操作;所述存储器用于存储一个或多个计算机程序,所述计算机程序被所述处理器执行时,使得所述电子设备执行:接收用户手指在所述触摸屏的第一侧边的预设区域的第一操作,其中,所述第一侧边为所述触摸屏的左侧和右侧中的一个;确定所述第一操作满足第一响应阈值时,则响应于所述第一操作在所述第一操作的终点位置显示光标;检测到所述用户手指对所述光标的第二操作、且所述用户手指在所述第二操作结束时离开所述触摸屏,则响应于所述第二操作,在与所述用户手指离开所述触摸屏的位置对应的所述光标位置触发点击操作,其中,所述光标的移动距离与所述第二操作对应的用户手指移动距离成正比,且比值大于1;检测到所述点击操作时,响应所述点击操作。
在一种可能的设计中,所述第一操作包括从所述第一侧边的预设区域向屏幕内的第一滑动操作和从第一滑动操作的终点位置继续向上或向下的第二滑动操作,所述第一响应阈值为所述第一滑动操作对应的第一滑动距离和所述第二滑动操作对应的沿竖直方向的第二滑动距离。
在一种可能的设计中,所述第一操作包括从所述第一侧边的预设区域向屏幕内的第一滑动操作和在第一滑动操作的终点位置的第一按压操作,所述第一响应阈值为所述第一滑动操作对应的第一滑动距离和所述第一按压操作对应的第一按压时长。
在一种可能的设计中,所述处理器,还用于:响应于所述第一滑动操作,在所述第一侧边显示弧形区域。
在一种可能的设计中,所述处理器,还用于:确定所述第一滑动操作对应的滑动距离达到所述第一滑动距离,在所述第一侧边的弧形区域中显示返回标识,所述光标在所述返回标识之后显示。
在一种可能的设计中,所述处理器,还用于:在确定所述第一滑动操作对应的滑动距离达到所述第一滑动距离后,确定所述第二滑动操作沿竖直方向的滑动距离不满足所述第二滑动距离,或者,所述第一按压操作对应的按压时长不满足第一按压时长,则响应于所述第一操作执行返回上一级功能。
在一种可能的设计中,所述第一操作为在所述第一侧边的预设区域向上或向下的第三滑动操作,所述第一响应阈值为沿竖直方向的第三滑动距离。
在一种可能的设计中,所述第一操作为第二按压操作,所述第一响应阈值为第二按压时长和第一按压面积。
在一种可能的设计中,所述第二操作为滑动操作。
在一种可能的设计中,所述光标的形状为以下任一项:圆形、箭头、I型、菱形、矩形、竖线。
在一种可能的设计中,所述预设区域为所述第一侧边的整个侧边区域,或者为所述第一侧边的部分侧边区域。
第四方面,本申请实施例提供一种电子设备,包括处理器、存储器、触摸屏;所述触摸屏,用于接收用户的操作;所述存储器用于存储一个或多个计算机程序,所述计算机程序被所述处理器执行时,使得所述电子设备执行:检测到用户手指在所述触摸屏显示的悬浮按钮上的第三操作;确定所述第三操作满足第二响应阈值时,则响应于所述第三操作,在所述第三操作的终点位置显示光标;检测到所述用户手指对所述光标的第四操作、且所述用户手指在所述第二操作结束时离开所述触摸屏,则响应于所述第四操作,在与所述用户手指离开所述触摸屏的位置对应的所述光标位置触发点击操作,其中,所述光标的移动距离与所述第四操作对应的用户手指移动距离成正比、且比值大于1;检测到所述点击操作时,响应所述点击操作。
在一种可能的设计中,所述第三操作为沿水平方向的向左或向右,或者,沿竖直方向的向上或向下的第四滑动操作,所述第二响应阈值为第四滑动距离。
在一种可能的设计中,所述第三操作包括第三按压操作和第五滑动操作,所述第二响应阈值为第三按压操作对应的第三按压时长和所述第五滑动操作对应的第五滑动距离。
在一种可能的设计中,所述处理器,还用于:当所述第三按压操作的按压时长达到所述第三按压时长时,所述电子设备进行振动提示。
在一种可能的设计中,所述光标的形状可以为以下任一项:箭头、I型、圆形、菱形、矩形、竖线。
在一种可能的设计中,所述第四操作为滑动操作。
第七方面,本申请实施例还提供一种装置,该装置包括执行上述任一方面的任意一种可能的设计的方法的模块/单元。这些模块/单元可以通过硬件实现,也可以通过硬件执行相应的软件实现。
第八方面,本申请实施例中还提供一种计算机可读存储介质,所述计算机可读存储介质包括计算机程序,当计算机程序在电子设备上运行时,使得所述电子设备执行上述任一方面的任意一种可能的设计的方法。
第九方面,本申请实施例还提供一种包含计算机程序产品,当所述计算机程序产品在终端上运行时,使得所述电子设备执行上述任一方面的任意一种可能的设计的方法。
本申请的这些方面或其他方面在以下实施例的描述中会更加简明易懂。
附图说明
图1a为本申请实施例提供的一种手机的硬件结构示意图;
图1b为本申请实施例提供的一种手机的软件结构示意图;
图2为本申请实施例提供的单手握持手机示意图;
图3a至图3c为本申请实施例提供的热区示意图;
图4为本申请实施例提供的一组界面示意图;
图5为本申请实施例提供的另一组界面示意图;
图6为本申请实施例提供的另一组界面示意图;
图7为本申请实施例提供的另一组界面示意图;
图8为本申请实施例提供的另一组界面示意图;
图9为本申请实施例提供的另一组界面示意图;
图10为本申请实施例提供的一种触摸屏的响应方法的流程示意图;
图11为本申请实施例提供的一种触摸屏的响应方法的流程示意图;
图12为本申请实施例提供的一种手机的硬件结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。
以下,对本申请实施例中的部分用语进行解释说明,以便于本领域技术人员理解。
本申请实施例中涉及的光标,为用于人机交互的电子设备的屏幕或其他显示设备上显示的符号或图形,用以响应手指操作而移动,光标可以指示用户的手指在触摸屏上的触摸操作发生的位置点。
手势导航为一种利用滑动手势来操作手机的交互方式及其动画效果。例如,华为手机的情感化操作***(Emotion UI,EMUI)在9.0版本中新增的手势导航功能。其中,手势导航功能中的侧边滑动手势的功能为:在屏幕的两侧边缘向内滑动至产生半透明弧形图形并抬手后,应用会后退到上一级界面。
悬浮导航为一种对屏幕内常驻的悬浮按钮进行操作的交互方式及其动画效果,悬浮按 钮可以为半透明圆点,覆盖在界面之上,悬浮按钮的位置可以手动改变,比如手指按压悬浮按钮向左移动。EMUI在8.0版本中新增了悬浮导航功能。
下面对电子设备的主屏和副屏进行介绍。
在一些实施例中,有些电子设备具有两个显示屏,一个显示屏位于手机的正面称为主屏,另一个显示屏位于手机的背面称为副屏。当单手握持电子设备时,可以使用握持的手在触摸到副屏,以实现在副屏上进行操作。
在其他一些实施例中,对于具有可折叠触摸屏的电子设备来说,当可折叠触摸屏处于完全展开状态时,可折叠触摸屏可以看作是一个完整的屏幕;当可折叠触摸屏处于折叠状态时,手机正面显示的屏幕称为主屏,位于手机背面的屏幕称为副屏。
本申请的说明书和权利要求书及附图中的术语“用户界面”,是应用程序或操作***与用户之间进行交互和信息交换的介质接口,它实现信息的内部形式与用户可以接受形式之间的转换。用户界面常用的表现形式是图形用户界面(graphic user interface,GUI),是指采用图形方式显示的与计算机操作相关的用户界面。它可以是在电子设备的显示屏中显示的一个图标、窗口、控件等界面元素,其中控件可以包括图标、按钮、菜单、选项卡、文本框、对话框、状态栏、导航栏、Widget等可视的界面元素。
如图2所示,该用户界面200为电子设备的主界面。其中,用户界面200可包括状态栏201、可隐藏的导航栏202、时间和天气小组件(widget)203、以及各种应用的图标,例如微信图标、图库图标、短消息图标等。状态栏201中包括运营商名称(例如***)、移动网络(例如4G)、时间和剩余电量等。导航栏202中可包括后退(back)键图标、主屏幕(home)键图标和前进键图标。此外,可以理解的是,在一些实施例中,状态栏201中还可以包括蓝牙图标、Wi-Fi图标、闹钟图标、外接设备的图标等。还可以理解的是,在另一些实施例中,图2所示的用户界面200中还可以包括Dock栏204,Dock栏204中可以包括常用的应用图标,如图2中所示的电话图标、设置图标、浏览器图标、以及微博图标等。当处理器110检测到用户的手指(或触控笔等)针对某一应用图标的触摸事件后,响应于该触摸事件,打开与该应用图标对应的应用的用户界面,并在显示屏194上显示该应用的用户界面。
需要说明的是,本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,如无特殊说明,一般表示前后关联对象是一种“或”的关系。且在本申请实施例的描述中,“第一”、“第二”等词汇,仅用于区分描述的目的,而不能理解为指示或暗示相对重要性,也不能理解为指示或暗示顺序。
以下介绍电子设备、用于这样的电子设备的图形用户界面(graphical user interface,GUI)、和用于使用这样的电子设备的实施例。在本申请一些实施例中,电子设备可以是手机、平板电脑、笔记本计算机或具备无线通讯功能的可穿戴设备(如智能手表或智能眼镜等)等。该电子设备包含能够实现数据处理功能的器件(比如处理器,或,应用处理器,或,图像处理器,或,其他处理器),以及能够显示用户界面的器件(比如显示屏)。该电子设备的示例性实施例包括但不限于搭载
Figure PCTCN2020105489-appb-000001
或者其它操作***的设备。上述电子设备也可以是其它便携式设备,诸如具有触敏表面(例如触控面板)的膝上型计算机(laptop)等。还应当理解的是,在本申请其他一些实施例中,上述电子设备01也可以不是便携式电子设备,而是具有触敏表面(例如触控面板)的台式计算机。
结合附图,进一步说明上述电子设备的结构。
以电子设备是手机为例,图1a仅示出了本申请实施例提供的一种手机100的硬件结构示意图,在图1a所示的基础上,还可以有其他变型结构方式存在。如图1a所示,手机100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
可以理解的是,本申请实施例示意的结构并不构成对手机100的具体限定。在本申请另一些实施例中,手机100可以包括比图1a中所示出的更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图1a所示的部件可以以硬件、软件、或软件和硬件的组合实现。
下面对图1a示出的手机100具有的部件进行详细介绍。
处理器110可以包括一个或多个处理单元,例如,处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。其中,控制器可以是手机100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用,从而可避免重复存取,可减少处理器110的等待时间,因而可提高***的效率。
在一些实施例中,处理器110可以包括一个或多个接口。比如,接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现手机100的触摸功能。
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。 处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等***器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现手机100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现手机100的显示功能。
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为手机100充电,也可以用于手机100与***设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对手机100的结构限定。在本申请另一些实施例中,手机100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过手机100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
手机100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块 160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。手机100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在手机100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在手机100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星***(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,手机100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得手机100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯***(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位***(global positioning system,GPS),全球导航卫星***(global navigation satellite system,GLONASS),北斗卫星导航***(beidou navigation satellite system,BDS),准天顶卫星***(quasi-zenith satellite system,QZSS)和/或星基增强***(satellite based augmentation systems,SBAS)。
手机100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲 染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,手机100可以包括1个或N个显示屏194,N为大于1的正整数。
手机100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,手机100可以包括1个或N个摄像头193,N为大于1的正整数。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当手机100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。手机100可以支持一种或多种视频编解码器。这样,手机100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现手机100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展手机100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作***,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储手机100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行手机100的各种 功能应用以及数据处理。
手机100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。手机100可以通过扬声器170A收听音乐,或收听免提通话。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当手机100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。手机100可以设置至少一个麦克风170C。在另一些实施例中,手机100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,手机100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。手机100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,手机100根据压力传感器180A检测所述触摸操作强度。手机100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。
陀螺仪传感器180B可以用于确定手机100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定手机100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。
气压传感器180C用于测量气压。在一些实施例中,手机100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。
磁传感器180D包括霍尔传感器。手机100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当手机100是翻盖机时,手机100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。
加速度传感器180E可检测手机100在各个方向上(一般为三轴)加速度的大小。当手机100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。
距离传感器180F,用于测量距离。手机100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,手机100可以利用距离传感器180F测距以实现快速对焦。
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。手机100通过发光二极管向外发射红外光。手机100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定手机100附近有物体。当检测到不充分的反射光时,手机100可以确定手机100附近没有物体。手机100可以利用接近光传感器180G检测用户手持手机100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。
环境光传感器180L用于感知环境光亮度。手机100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测手机100是否在口袋里,以防误触。
指纹传感器180H用于采集指纹。手机100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。例如,可以在手机100的正面(显示屏194的下方)配置指纹传感器,或者,在手机100的背面(后置摄像头的下方)配置指纹传感器。另外,也可以通过在触摸屏中配置指纹传感器来实现指纹识别功能,即指纹传感器可以与触摸屏集成在一起来实现手机100的指纹识别功能。在这种情况下,该指纹传感器可以配置在触摸屏中,可以是触摸屏的一部分,也可以是以其他方式配置在触摸屏中。另外,该指纹传感器还可以被实现为全面板指纹传感器,因此,可以把触摸屏看成是任何位置可都可以进行指纹采集的一个面板。在一些实施例中,该指纹传感器可以对采集到的指纹进行处理(例如指纹是否验证通过)发送给处理器110,由处理器110根据指纹处理结果做出相应的处理。在另一些实施例中,还指纹传感器还可以将采集到的指纹发送给处理器110,以便处理器110对该指纹进行处理(例如指纹验证等)。本申请实施例中的指纹传感器可以采用任何类型的感测技术,包括但不限于光学式、电容式、压电式或超声波传感技术等。
温度传感器180J用于检测温度。在一些实施例中,手机100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,手机100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,手机100对电池142加热,以避免低温导致手机100异常关机。在其他一些实施例中,当温度低于又一阈值时,手机100对电池142的输出电压执行升压,以避免低温导致的异常关机。
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于手机100的表面,与显示屏194所处的位置不同。
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压 跳动信号解析心率信息,实现心率检测功能。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。手机100可以接收按键输入,产生与手机100的用户设置以及功能控制有关的键信号输入。
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
SIM卡接口195用于连接SIM卡。SIM卡可以通过***SIM卡接口195,或从SIM卡接口195拔出,实现和手机100的接触和分离。手机100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时***多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。手机100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,手机100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在手机100中,不能和手机100分离。
尽管图1a中未示出,手机100还可以包括蓝牙装置、定位装置、闪光灯、微型投影装置、近场通信(near field communication,NFC)装置等,在此不予赘述。
电子设备100的软件***可以采用分层架构,本申请实施例以分层架构的Android***为例,示例性说明电子设备100的软件结构。
图1b是本发明实施例的电子设备100的软件结构框图。
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android***分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和***库,以及内核层。
应用程序层可以包括一系列应用程序包。
如图1b所示,应用程序包可以包括电话、相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
如图1b所示,应用程序框架层可以包括窗口管理器,内容提供器,视图***,电话管理器,资源管理器,通知管理器等。
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
视图***包括可视控件,例如显示文字的控件,显示图片的控件等。视图***可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。
电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在***顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。
Android Runtime包括核心库和虚拟机。Android runtime负责安卓***的调度和管理。
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
***库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。
表面管理器用于对显示子***进行管理,并且为多个应用程序提供了2D和3D图层的融合。
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。
2D图形引擎是2D绘图的绘图引擎。
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。
以下实施例均可以在具有上述硬件结构的电子设备(例如手机100中实现。以下实施例将以手机100为例,结合附图对本申请实施例提供的触摸屏的响应方法进行详细介绍。
图2示例性示出了单手握持手机的示意图。
用户采用单手握持手机时,如图2所示,用户左手握持手机,左手的大拇指在手机100显示屏194的左侧,其他手指在手机的背面或显示屏的右侧,如果用户想要用使用握持手机的左手对显示屏194上显示的用户界面进行操作,可以用大拇指进行操作。一般用户单手握持手机时,为了能够支持手机重量、保持手机平衡,习惯握持手机的下半部分,这时左手的大拇指可以对显示屏的下半屏进行操作,而大拇指的长度有限,很难够得着手机的上半部分,所以这种情况下左手的大拇指也就很难实现对显示屏194的上半屏进行操作。如果手机宽度也比较大,左手的大拇指可对显示屏的靠左侧的位置进行操作,也会很难对显示屏的靠右侧的位置进行操作。当用户有右手单手握持终端时,也存在类似的问题。
为此,本申请实施例提供一种触摸屏的响应方法,该方法可以适用于具有显示屏的电子设备,电子设备以手机100为例,手机100的显示屏的侧边区域设置有热区,用户可以通过在显示屏侧边的热区进行操作触发光标显示,该光标可以跟随用户手指在显示屏上滑 动而移动,光标移动距离与手指滑动距离的比值大于1,当手指滑动到某一位置离开显示屏时,手机100在光标所在位置触发点击操作,响应该点击操作,这样就可以在不改变用户界面的窗口位置、尺寸即可使用握持手机的手的拇指进行单手操作,能够点击到屏幕上的任何位置。
以下将结合附图,以电子设备为手机为例,对本申请实施例提供的触摸屏的响应方法进行详细介绍。
首先,对侧边的热区进行介绍。如图3a和图3b所示,手机100的显示屏竖向长度为L,热区可以为手机的显示屏的整个侧边区域,热区也可以为侧边的一部分区域,考虑到用户习惯,用户单手握持手机时,拇指一般在显示屏的侧边中间或靠下的区域,一般很难达到靠上的四分之一区域,为便于用户单手握持时对手机进行操作,热区可以设置在手机中间或偏下的区域,例如图3a所示,该热区也可以为手机显示屏的侧边靠下的四分之三区域,如区域310和区域320,即热区的长度为0.75L。热区也可以为侧边的除去靠近顶端的部分区域以及靠近底端的部分区域,例如图3b所示,热区可以为侧边的除去靠近顶端的四分之一区域以及靠近底端的十分之一区域之外的中间区域,即区域330和区域340。
下面以用户的拇指作用于侧边的热区为例,对侧边热区的功能,以及手机对于用户操作的响应方法进行介绍。
在一个示例中,用户的拇指可以对侧边的热区进行向屏幕内的滑动操作,手机可以响应于该滑动操作,显示一个半透明的弧形区域,如图4中a所示,拇指作用于侧边的位置A,并沿着箭头411的方向向屏幕内的滑动,滑动过程中显示如图4中b所示的半透明的弧形区域421,该半透明的弧形区域421随着手指的滑动距离的增大而逐渐变大,当滑动的横行距离大于或等于预设距离(如滑动到图4中b所示的位置B)时,显示返回标识422。
在一个示例中,如图5中a所示,在拇指滑动到位置B时,出现返回标识422后,继续滑动,如按照箭头433的方向滑动,如图5中b所示,当滑动到位置C时触发光标432显示,位置C与位置B之间的竖直距离大于距离阈值。在该示例中,拇指按照箭头433的方向向上滑动的竖直距离大于距离阈值时,在位置C显示光标432,在其它一些实施例中,手指也可以向下滑动,当向下滑动的竖直距离大于距离阈值时,也会在相应位置显示光标432。
之后,光标可以跟手移动,即拇指移动时,光标会同方向移动。下面以图3a所示的热区为例,对具体的跟手移动规则进行详细介绍。
在触发光标显示之后,手指可移动的区域的大小与触发光标显示时的位置有关,以手机显示屏的竖向长度为100个像素,横向宽度为30个像素为例,手机的纵横比为10:3。
在一个示例中,手指移动距离与光标移动距离可以为线性关系,光标竖向移动的距离与横向移动的距离之间的比例可以与手机纵横比一致,也就是说,如果手指竖向移动1个像素,则光标竖向移动10个像素,手指横向移动1个像素,则光标竖向移动3个像素。光标竖向移动的距离与横向移动的距离之间的比例也可以与手机纵横比不一致,示例的,以手指竖向移动1个像素,则光标竖向移动4个像素,手指横向移动1个像素,则光标横向移动1.5个像素。如图3c所示,当在显示屏的左侧侧边一半的位置M(距离顶端50个像素,距离底端50个像素,距离右侧30个像素)触发光标显示时,手指竖直向上可移动12.5个像素,向下可移动12.5个像素,向右可移动宽度为30,即手指可移动的区域为竖向长度为25,横向宽度为30的矩形区域(如图3c中的矩形虚线框350)。
在其它一些示例中,手指移动距离与光标移动距离也可以为非线性关系,比如指数函数、幂函数等。比如,可以用函数曲线实现可以让光标先移动的快,然后随着移动的距离越来越远,光标移动的越慢,这样可以在功能按钮离手指较远时,在光标即将达到功能按钮时光标移动的较慢,从而可以使得操作点选择的更准确。
如图5中b所示的微信发现界面410,该界面包括多种功能按钮,例如朋友圈功能按钮、扫一扫功能按钮、摇一摇功能按钮、看一看功能按钮、搜一搜功能按钮、附近的人功能按钮、购物功能按钮、游戏功能按钮、小程序功能按钮等,用户想要点击朋友圈功能按钮,拇指在位置C处,可以沿着箭头433的方向继续滑动,如图5中c所示,当拇指从位置C滑动到位置D时,光标432从位置C滑动到位置E时,拇指离开显示屏,位置E即朋友圈功能按钮所在位置处,手机响应于该操作在位置E处实现点击功能,显示如图5中d所示的朋友圈界面420,其中,位置C到位置E的连线方向与位置C到位置D的连线方向相同,但位置C到位置E的连线距离大于位置C到位置D的连线距离,这样用户拇指只需要在显示屏上滑动较小的距离,可以实现对显示屏的上半屏的区域进行操作,从而提升用户体验。
在另一个示例中,拇指在侧边的热区向屏幕内滑动直到显示返回标识时,不继续滑动,拇指离开显示屏,手机响应于该操作执行返回功能,即返回上一界面。如图6中a所示的朋友圈界面420,拇指在侧边的热区的位置A处按照箭头601的方向向屏幕内滑动,显示如图6中b所示的弧形区域621,直到滑动到位置B时弧形区域621中出现返回标识602,此时拇指离开显示屏,显示该朋友圈界面420的上一界面,如图6中c所示的微信发现界面410。
本申请实施例中,触发光标显示的方式可以如上述实施例中:拇指滑动到位置B,显示屏显示如图4中b所示的半透明的弧形区域421时,继续滑动一定距离触发光标显示,以下实施例中还提供几种可以触发光标显示的方式。
在一个示例中,在拇指滑动到位置B,显示屏显示如图4中b所示的半透明的弧形区域421时,拇指静止,但拇指并未离开显示屏,即拇指仍与显示屏接触,当拇指在显示屏上静止的时长大于或等于时长阈值时,触发光标显示,如果拇指在显示屏上静止的时长小于时长阈值时就离开显示屏,那么手机执行返回功能,即返回上一界面。这样可以在显示半透明的弧形区域421时拇指静止,可以通过判断拇指在显示屏上静止的时长来判断用户的意图,是想要执行返回功能还是触发光标显示。
用户的拇指在显示屏的侧边的热区内滑动,显示上述实施例中的半透明的弧形区域421,当拇指离开显示屏时,半透明的弧形区域421会消失,即显示屏不再显示该半透明的弧形区域421。应理解,上述实施例中的光标也可以在拇指离开显示屏时消失,在具体实施中,光标可以在拇指离开显示屏之后立即消失,这种情况下,当需要再次使用光标时,需要重新在侧边的热区向屏幕内滑动以便重新触发光标显示,在其它一些实施例中,光标也可以在拇指离开显示屏一定时间(比如3s)之后再消失,在这种情况下,比如在拇指离开显示屏2s时,再次在显示屏进行滑动操作,可以继续对光标进行操作。
在另一个示例中,可以在侧边的热区内向上滑动或者向下滑动,当滑动的距离大于一定的距离阈值时,触发光标显示。如图7中a所示,拇指作用于侧边的热区内的位置A,并沿着箭头711的方向向上滑动,当滑动距离大于或等于距离阈值时(如滑动到图7中b 所示的位置F)时,显示光标721。光标721出现在位置F后,跟随拇指滑动而移动,并在拇指离开显示屏的位置触发点击功能。拇指在位置F处,可以沿着箭头731的方向继续滑动,如图7中c所示,当拇指从位置F滑动到位置G时,光标432从位置F滑动到位置E时,拇指离开显示屏,位置E即朋友圈功能按钮所在位置处,手机响应于该操作在位置E处实现点击功能,显示如图5中d所示的朋友圈界面420。其中,位置F到位置G的连线方向与位置F到位置E的连线方向相同,但位置F到位置E的连线距离大于位置F到位置G的连线距离,这样用户拇指只需要在显示屏上滑动较小的距离,可以实现对显示屏的上半屏的区域进行操作,从而提升用户体验。
在又一示例中,拇指可以在侧边的热区内通过按压的方式触发光标显示。拇指按压在显示屏上所产生的电容信号实际上可以近似为一个椭圆的形状,也就是说,拇指实际触摸的不是一个点,而是一个椭圆的区域,可以根据这个椭圆的区域的面积大于面积阈值、且按压时长大于或等于预设时长时,触发光标显示。由于用户单手握持手机时,手指经常会不小心碰到侧边区域,通过设定拇指按压侧边的热区的接触面积大于面积阈值、且按压时长大于或等于预设时长的过滤条件,可以过滤因为手指误触到侧边区域触发光标显示,而造成的误操作。
在其它实施例中,还可以通过悬浮按钮实现触发光标显示的功能,悬浮按钮可以为一个半透明的圆点,也可以为其它形状,本申请实施例不作限定。
下面针对悬浮按钮的功能进行详细介绍。
在一个示例中,当拇指拖动悬浮按钮时,可以移动悬浮按钮,比如沿竖直方向向上或向下拖动悬浮按钮,再比如沿水平方向向左或向右拖动悬浮按钮,可以移动悬浮按钮,而且悬浮按钮移动距离与手指移动距离相同。如此,可以通过移动悬浮按钮,将悬浮按钮移动到无显示内容的区域,以便避免悬浮按钮遮挡显示内容,提升用户体验。
当拇指按压悬浮按钮的时间达到时间阈值时,手机振动提示用户可以进行进一步操作之后,拇指继续按压在悬浮按钮上沿竖直方向向上或向下滑动,当竖向位移大于或等于距离阈值时,触发光标显示。如图8中a所示的悬浮按钮801,拇指按压在悬浮按钮801之后,如图8中b所示,拇指从位置H沿竖直方向向上(如箭头802的方向)滑动至位置K,光标803在位置H处显示并移动到拇指所在位置(即位置K),此时悬浮按钮801依旧在位置H处,其中位置K与位置H之间的竖直距离大于或等于该距离阈值。在显示光标803之后,光标803跟随手指滑动而移动,具体的跟手规则参见前述实施例中相关内容,此处不再赘述。
在手机振动提示用户可以进行进一步操作之后,拇指继续按压在悬浮按钮上沿水平方向向左或向右滑动,可以触发多任务管理功能,如图8中c所示,拇指从位置H沿水平方向向右(如箭头804的方向)滑动至位置L,显示如图8中d所示的多任务管理界面810,多任务管理界面810包括多个在后台运行的应用的页面,如信息页面811和微信页面812。
在另一个示例中,当拇指沿竖直方向向上或向下拖动悬浮按钮时,当拖动悬浮按钮的距离大于或等于一定的距离阈值,可以触发光标显示;当拇指沿水平方向向左或向右拖动悬浮按钮时,当拖动悬浮按钮的距离大于或等于一定的距离阈值,可以触发多任务管理功能。这样可以通过直接拖动悬浮按钮实现触发光标显示,相较于通过长按悬浮按钮、并进行滑动操作实现触发光标显示的方式,直接拖动悬浮按钮的方式可以简化操作过程,提高 效率。
当拇指按压悬浮按钮的时间达到时间阈值时,手机振动提示用户可以进行进一步操作之后,拇指继续按压在悬浮按钮上沿竖直方向向上或向下滑动,或者,拇指继续按压在悬浮按钮上沿水平方向向左或向右滑动,都可以实现拖动悬浮按钮。
在又一个示例中,考虑到悬浮导航原有功能的使用率较低,且与手势导航功能的部分重复,可以将悬浮按钮的功能限定为触发光标显示。比如,当拇指沿竖直方向向上或向下拖动悬浮按钮,或者,拇指沿水平方向向左或向右拖动悬浮按钮时,可以实现触发光标显示。又比如,当拇指按压悬浮按钮的时间达到时间阈值时,手机振动提示用户可以进行进一步操作之后,拇指继续按压在悬浮按钮上沿竖直方向向上或向下滑动的滑动距离大于或等于距离阈值时,或者,拇指继续按压在悬浮按钮上沿水平方向向左或向右滑动的滑动距离大于或等于距离阈值时,触发光标显示。这样可以简化悬浮按钮的功能,降低学习成本。
在其它一些实施例中,如果手机的正面和背面均有显示屏,或者,具有折叠屏的手机处于完全折叠状态时,当用户单手握持手机时,一般拇指可在正面的显示屏上进行操作,食指或中指可在背面的显示屏上进行操作,当手指在背面的显示屏上进行预设操作时,可以触发光标显示,比如预设操作可以包括但不限于长按、上滑、双击、大面积按压、画特定形状等操作。为了便于用户操作,用户手指可以在背面的显示屏内进行操作,光标在正面的显示屏上移动,当手指在背面的显示屏上的某一位置离开显示屏时,在正面的显示屏上与该位置相对应的位置触发点击功能。需要说明的是,手指在背面的显示屏上移动时,在正面的显示屏上显示的光标跟随手指移动,具体的跟手规则参见前述实施例中相关内容,此处不再赘述。
下面以手机的正面和背面均有显示屏为例,结合图9进行说明。
如图9中a所示的手机背面的显示屏901,以及如图9中b所示的手机正面的显示屏902,显示屏901和显示屏902存在位置映射关系。比如食指在显示屏901进行滑动操作,该滑动操作从位置M滑动到位置N,手机响应于该滑动操作,在显示屏902中与位置N对应的位置显示光标903。
参见图10,示例性的示出了本申请实施例提供的一种触摸屏的响应方法的流程,该方法由电子设备执行。
步骤1001,电子设备接收用户手指在触摸屏的第一侧边的预设区域的第一操作,其中,第一侧边为触摸屏的左侧和右侧中的一个。
示例的,预设区域可以为上述实施例中的热区,例如区域310,又例如区域320,又例如区域330,又例如区域340。
步骤1002,电子设备确定第一操作满足第一响应阈值时,则响应于第一操作在第一操作的终点位置显示光标。
例如,第一操作包括从第一侧边的预设区域向屏幕内的第一滑动操作和从第一滑动操作的终点位置继续向上或向下的第二滑动操作,第一响应阈值为第一滑动操作对应的第一滑动距离和第二滑动操作对应的沿竖直方向的第二滑动距离。
又例如,第一操作包括从第一侧边的预设区域向屏幕内的第一滑动操作和在第一滑动操作的终点位置的第一按压操作,第一响应阈值为第一滑动操作对应的第一滑动距离和第一按压操作对应的第一按压时长。
又例如,第一操作为在第一侧边的预设区域向上或向下的第三滑动操作,第一响应阈值为沿竖直方向的第三滑动距离。
又例如,第一操作为第二按压操作,第一响应阈值为第二按压时长和第一按压面积。
步骤1003,电子设备检测到用户手指对光标的第二操作、且用户手指在第二操作结束时离开触摸屏,则响应于第二操作,在与用户手指离开触摸屏的位置对应的光标位置触发点击操作,其中,光标的移动距离与第二操作对应的用户手指移动距离成正比,且比值大于1。
例如,第二操作为滑动操作。如图5中b所示的箭头433方向的滑动操作,又比如图7中c所示的箭头731方向的滑动操作。
步骤1004,电子设备检测到点击操作时,响应点击操作。
基于该方法,用户手指在触摸屏的第一侧边的预设区域进行操作,可以触发现光标显示,之后对光标进行操作,可以使光标跟随手指移动而移动,而且光标的移动距离与第二操作对应的用户手指移动距离成正比,且比值大于1,也就是说,用户手指移动较小的距离,可以使光标移动较大的距离,这样可以在不改变用户界面的窗口位置、尺寸即可使用握持手机的手的拇指对触摸屏进行单手操作,能够点击到屏幕上的任何位置。
在一种可能的设计中,当第一操作包括从第一侧边的预设区域向屏幕内的第一滑动操作和从第一滑动操作的终点位置继续向上或向下的第二滑动操作,结合图4和图5来说明,当电子设备接收到从第一侧边的预设区域向屏幕内的第一滑动操作(如图4中a所示的沿箭头411的滑动操作)时,判断第一滑动操作对应的滑动距离是否达到第一滑动距离,若达到第一滑动距离,那么检测是否接收到从第一滑动操作的终点位置继续向上或向下的第二滑动操作(如图5中a所示的沿箭头423的滑动操作),若接收到从第一滑动操作的终点位置继续向上或向下的第二滑动操作时,判断第二滑动操作对应的沿竖直方向的滑动距离是否大于第二滑动距离,若大于第二滑动距离,则在第二滑动操作的终点位置(如图5中b所示的位置C)显示光标(如图5中b所示的光标432)。
在一种可能的设计中,当第一操作包括从第一侧边的预设区域向屏幕内的第一滑动操作和在第一滑动操作的终点位置的第一按压操作,当电子设备接收到从第一侧边的预设区域向屏幕内的第一滑动操作(如图4中a所示的沿箭头411的滑动操作),可以判断第一滑动操作对应的滑动距离是否达到第一滑动距离,若达到第一滑动距离,则在接收到在第一滑动操作的终点位置(如图4中b所示的位置B)的第一按压操作时,判断第一按压操作对应的按压时长是否大于第一按压时长,若大于第一按压时长,则在第一操作的终点位置显示光标,也就是在第一滑动操作的终点位置显示光标。
进一步的,结合图4来说明,电子设备响应于第一滑动操作(如图4中a所示的沿箭头411的滑动操作),在第一侧边显示弧形区域(如图4中b所示的弧形区域421)。通过显示弧形区域可以让用户看到第一滑动操作的结果,从而直观的让用户知晓已经滑动的距离大小。
进一步的,电子设备确定第一滑动操作(如图4中a所示的沿箭头411的滑动操作)对应的滑动距离达到第一滑动距离,在第一侧边的弧形区域中显示返回标识(如图4中b所示的返回标识422),光标在返回标识之后显示。在该设计中,通过显示返回标识,以提示用户可进行返回上一级功能。
进一步的,电子设备在确定第一滑动操作对应的滑动距离达到第一滑动距离后,确定 第二滑动操作沿竖直方向的滑动距离不满足第二滑动距离,或者,第一按压操作对应的按压时长不满足第一按压时长,则响应于第一操作执行返回上一级功能,示例性的,参见图6中b所示,当用户手指进行从位置A滑动到位置B的第一滑动操作后,若继续进行第二滑动操作,则在沿竖直方向的滑动距离不满足第二滑动距离时离开触摸屏,则电子设备执行返回上一级功能,从如图6中b所示的界面420返回到上一页面,即图6中c所示的界面410。或者,当用户手指进行从位置A滑动到位置B的第一滑动操作后,在位置B按压时长不满足第一按压时长就离开触摸屏,则电子设备执行返回上一级功能。
在一种可能的设计中,当电子设备接收到在第一侧边的预设区域向上或向下的第三滑动操作(如图7中a所示的箭头711方向的滑动操作),可以判断第三滑动操作沿竖直方向的滑动距离是否达到第三滑动距离,若达到第三滑动距离,则在第一操作的终点位置显示光标(如图7中b所示的光标721),也就是在第三滑动操作的终点位置显示光标。
在一种可能的设计中,当电子设备接收到在第一侧边的预设区域上的第二按压操作,可以判断第二按压操作对应的按压时长是否大于第二按压时长、且第二按压操作对应的按压面积是否大于第一按压面积,若判断结果均为是,则在第一操作的终点位置显示光标,也就是在第二按压操作的位置显示光标。
在一种可能的设计中,光标的形状为包括但不限于以下任一项:圆形、箭头、I型、菱形、矩形、竖线。
在一种可能的设计中,所述预设区域为所述第一侧边的整个侧边区域,或者为所述第一侧边的部分侧边区域。
参见图11,示例性的示出了本申请实施例提供的另一种触摸屏的响应方法的流程,该方法由电子设备执行。
步骤1101,电子设备检测到用户手指在触摸屏显示的悬浮按钮上的第三操作。
示例的,悬浮按钮可以为上述示例中的悬浮按钮801。
步骤1102,电子设备确定第三操作满足第二响应阈值时,则响应于第三操作,在第三操作的终点位置显示光标。
例如,第三操作为沿水平方向的向左或向右,或者,沿竖直方向的向上或向下的第四滑动操作,第二响应阈值为第四滑动距离。
又例如,第三操作包括第三按压操作和第五滑动操作,第二响应阈值为第三按压操作对应的第三按压时长和第五滑动操作对应的第五滑动距离。
步骤1103,电子设备检测到用户手指对光标的第四操作、且用户手指在第二操作结束时离开触摸屏,则响应于第四操作,在与用户手指离开触摸屏的位置对应的光标位置触发点击操作,其中,光标的移动距离与第四操作对应的用户手指移动距离成正比、且比值大于1。
例如,第四操作为滑动操作。
步骤1104,电子设备检测到点击操作时,响应点击操作。
基于该方法,用户手指对悬浮按钮进行操作,可以触发现光标显示,之后对光标进行操作,可以使光标跟随手指移动而移动,而且光标的移动距离与第二操作对应的用户手指移动距离成正比,且比值大于1,也就是说,用户手指移动较小的距离,可以使光标移动较大的距离,这样可以在不改变用户界面的窗口位置、尺寸即可使用握持手机的手的拇指 对触摸屏进行单手操作,能够点击到屏幕上的任何位置。
在一种可能的设计中,电子设备检测到用户手指在触摸屏显示的悬浮按钮上的沿水平方向的向左或向右,或者,沿竖直方向的向上或向下的第四滑动操作,电子设备确定第四滑动操作对应的滑动距离大于第四滑动操作时,则响应于第四滑动操作,在第四滑动操作的终点位置显示光标。示例的,第四滑动操作为如图8中b所示的沿箭头802方向的滑动操作,从位置H滑动到位置K,位置K与位置H之间的距离差大于第四滑动操作,则在位置K出显示光标802。
在一种可能的设计中,电子设备检测到用户手指在触摸屏显示的悬浮按钮上的第三按压操作,电子设备确定第三按压操作对应的按压时长大于第三按压时长时,检测到对悬浮按钮的第五滑动操作,判断第五滑动操作对应的滑动距离大于第五滑动距离时,响应于第五滑动操作,在第五滑动操作的终点位置显示光标。
进一步的,当第三按压操作的按压时长达到第三按压时长时,电子设备进行振动提示。这样用户可以不用看着屏幕,就可以通过感知到振动来确定第三按压操作的按压时长达到第三按压时长。
在一种可能的设计中,光标的形状包括但不限于以下任一项:箭头、I型、圆形、菱形、矩形、竖线。
上述本申请提供的实施例中,从电子设备作为执行主体的角度对本申请实施例提供的方法进行了介绍。为了实现上述本申请实施例提供的方法中的各功能,电子设备可以包括硬件结构和/或软件模块,以硬件结构、软件模块、或硬件结构加软件模块的形式来实现上述各功能。上述各功能中的某个功能以硬件结构、软件模块、还是硬件结构加软件模块的方式来执行,取决于技术方案的特定应用和设计约束条件。
采用硬件实现时,该电子设备的硬件实现可参考图12及其相关描述。
参见图12,所述电子设备100,包括:触摸屏1201,其中,所述触摸屏1201包括触控面板1207和显示屏1208;一个或多个处理器1202;存储器1203;一个或多个应用程序(未示出);以及一个或多个计算机程序1204,传感器1205、上述各器件可以通过一个或多个通信总线1206连接。其中该一个或多个计算机程序1204被存储在上述存储器1203中并被配置为被该一个或多个处理器1202执行,该一个或多个计算机程序1204包括指令,上述指令可以用于执行上述任一实施例中的方法。
本申请实施例还提供一种计算机存储介质,该计算机存储介质中存储有计算机指令,当该计算机指令在电子设备上运行时,使得电子设备执行上述相关方法步骤实现上述实施例中的触摸屏的响应方法。
本申请实施例还提供了一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述相关步骤,以实现上述实施例中的触摸屏的响应方法。
另外,本申请的实施例还提供一种装置,这个装置具体可以是芯片,组件或模块,该装置可包括相连的处理器和存储器;其中,存储器用于存储计算机执行指令,当装置运行时,处理器可执行存储器存储的计算机执行指令,以使芯片执行上述各方法实施例中的翻译方法。
其中,本申请实施例提供的电子设备、计算机存储介质、计算机程序产品或芯片均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应 的方法中的有益效果,此处不再赘述。
通过以上实施方式的描述,所属领域的技术人员可以了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其他的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其他的形式。
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上内容,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。

Claims (31)

  1. 一种触摸屏的响应方法,应用于具有触摸屏的电子设备,其特征在于,所述方法包括:
    接收用户手指在所述触摸屏的第一侧边的预设区域的第一操作,其中,所述第一侧边为所述触摸屏的左侧和右侧中的一个;
    确定所述第一操作满足第一响应阈值时,则响应于所述第一操作在所述第一操作的终点位置显示光标;
    检测到所述用户手指对所述光标的第二操作、且所述用户手指在所述第二操作结束时离开所述触摸屏,则响应于所述第二操作,在与所述用户手指离开所述触摸屏的位置对应的所述光标位置触发点击操作,其中,所述光标的移动距离与所述第二操作对应的用户手指移动距离成正比,且比值大于1;
    检测到所述点击操作时,响应所述点击操作。
  2. 如权利要求1所述的方法,其特征在于,所述第一操作包括从所述第一侧边的预设区域向屏幕内的第一滑动操作和从第一滑动操作的终点位置继续向上或向下的第二滑动操作,所述第一响应阈值为所述第一滑动操作对应的第一滑动距离和所述第二滑动操作对应的沿竖直方向的第二滑动距离。
  3. 如权利要求1所述的方法,其特征在于,所述第一操作包括从所述第一侧边的预设区域向屏幕内的第一滑动操作和在第一滑动操作的终点位置的第一按压操作,所述第一响应阈值为所述第一滑动操作对应的第一滑动距离和所述第一按压操作对应的第一按压时长。
  4. 如权利要求2或3所述的方法,其特征在于,所述方法还包括:
    响应于所述第一滑动操作,在所述第一侧边显示弧形区域。
  5. 如权利要求2或3所述的方法,其特征在于,所述方法还包括:
    确定所述第一滑动操作对应的滑动距离达到所述第一滑动距离,在所述第一侧边的弧形区域中显示返回标识,所述光标在所述返回标识之后显示。
  6. 如权利要求2或3所述的方法,其特征在于,所述方法还包括:
    在确定所述第一滑动操作对应的滑动距离达到所述第一滑动距离后,确定所述第二滑动操作沿竖直方向的滑动距离不满足所述第二滑动距离,或者,所述第一按压操作对应的按压时长不满足第一按压时长,则响应于所述第一操作执行返回上一级功能。
  7. 如权利要求1所述的方法,其特征在于,所述第一操作为在所述第一侧边的预设区域向上或向下的第三滑动操作,所述第一响应阈值为沿竖直方向的第三滑动距离。
  8. 如权利要求1所述的方法,其特征在于,所述第一操作为第二按压操作,所述第一响应阈值为第二按压时长和第一按压面积。
  9. 如权利要求1-8任一项所述的方法,其特征在于,所述预设区域为所述第一侧边的整个侧边区域,或者为所述第一侧边的部分侧边区域。
  10. 一种触摸屏的响应方法,应用于具有触摸屏的电子设备,其特征在于,所述方法包括:
    检测到用户手指在所述触摸屏显示的悬浮按钮上的第三操作;
    确定所述第三操作满足第二响应阈值时,则响应于所述第三操作,在所述第三操作的 终点位置显示光标;
    检测到所述用户手指对所述光标的第四操作、且所述用户手指在所述第二操作结束时离开所述触摸屏,则响应于所述第四操作,在与所述用户手指离开所述触摸屏的位置对应的所述光标位置触发点击操作,其中,所述光标的移动距离与所述第四操作对应的用户手指移动距离成正比、且比值大于1;
    检测到所述点击操作时,响应所述点击操作。
  11. 如权利要求10所述的方法,其特征在于,所述第三操作为沿水平方向的向左或向右,或者,沿竖直方向的向上或向下的第四滑动操作,所述第二响应阈值为第四滑动距离。
  12. 如权利要求10所述的方法,其特征在于,所述第三操作包括第三按压操作和第五滑动操作,所述第二响应阈值为第三按压操作对应的第三按压时长和所述第五滑动操作对应的第五滑动距离。
  13. 如权利要求12所述的方法,其特征在于,所述方法还包括:
    当所述第三按压操作的按压时长达到所述第三按压时长时,所述电子设备进行振动提示。
  14. 一种电子设备,其特征在于,包括处理器、存储器、触摸屏;
    所述触摸屏,用于接收用户的操作;
    所述存储器用于存储一个或多个计算机程序,所述计算机程序被所述处理器执行时,使得所述电子设备执行:
    接收用户手指在所述触摸屏的第一侧边的预设区域的第一操作,其中,所述第一侧边为所述触摸屏的左侧和右侧中的一个;
    确定所述第一操作满足第一响应阈值时,则响应于所述第一操作在所述第一操作的终点位置显示光标;
    检测到所述用户手指对所述光标的第二操作、且所述用户手指在所述第二操作结束时离开所述触摸屏,则响应于所述第二操作,在与所述用户手指离开所述触摸屏的位置对应的所述光标位置触发点击操作,其中,所述光标的移动距离与所述第二操作对应的用户手指移动距离成正比,且比值大于1;
    检测到所述点击操作时,响应所述点击操作。
  15. 如权利要求14所述的电子设备,其特征在于,所述第一操作包括从所述第一侧边的预设区域向屏幕内的第一滑动操作和从第一滑动操作的终点位置继续向上或向下的第二滑动操作,所述第一响应阈值为所述第一滑动操作对应的第一滑动距离和所述第二滑动操作对应的沿竖直方向的第二滑动距离。
  16. 如权利要求14所述的电子设备,其特征在于,所述第一操作包括从所述第一侧边的预设区域向屏幕内的第一滑动操作和在第一滑动操作的终点位置的第一按压操作,所述第一响应阈值为所述第一滑动操作对应的第一滑动距离和所述第一按压操作对应的第一按压时长。
  17. 如权利要求15或16所述的电子设备,其特征在于,所述处理器,还用于:
    响应于所述第一滑动操作,在所述第一侧边显示弧形区域。
  18. 如权利要求15或16所述的电子设备,其特征在于,所述处理器,还用于:
    确定所述第一滑动操作对应的滑动距离达到所述第一滑动距离,在所述第一侧边的弧形区域中显示返回标识,所述光标在所述返回标识之后显示。
  19. 如权利要求15或16所述的电子设备,其特征在于,所述处理器,还用于:
    在确定所述第一滑动操作对应的滑动距离达到所述第一滑动距离后,确定所述第二滑动操作沿竖直方向的滑动距离不满足所述第二滑动距离,或者,所述第一按压操作对应的按压时长不满足第一按压时长,则响应于所述第一操作执行返回上一级功能。
  20. 如权利要求14所述的电子设备,其特征在于,所述第一操作为在所述第一侧边的预设区域向上或向下的第三滑动操作,所述第一响应阈值为沿竖直方向的第三滑动距离。
  21. 如权利要求14所述的电子设备,其特征在于,所述第一操作为第二按压操作,所述第一响应阈值为第二按压时长和第一按压面积。
  22. 如权利要求14-21任一项所述的电子设备,其特征在于,所述第二操作为滑动操作。
  23. 如权利要求14-22任一项所述的电子设备,其特征在于,所述光标的形状为以下任一项:圆形、箭头、I型、菱形、矩形、竖线。
  24. 如权利要求14-23任一项所述的电子设备,其特征在于,所述预设区域为所述第一侧边的整个侧边区域,或者为所述第一侧边的部分侧边区域。
  25. 一种电子设备,其特征在于,包括处理器、存储器、触摸屏;
    所述触摸屏,用于接收用户的操作;
    所述存储器用于存储一个或多个计算机程序,所述计算机程序被所述处理器执行时,使得所述电子设备执行:
    检测到用户手指在所述触摸屏显示的悬浮按钮上的第三操作;
    确定所述第三操作满足第二响应阈值时,则响应于所述第三操作,在所述第三操作的终点位置显示光标;
    检测到所述用户手指对所述光标的第四操作、且所述用户手指在所述第二操作结束时离开所述触摸屏,则响应于所述第四操作,在与所述用户手指离开所述触摸屏的位置对应的所述光标位置触发点击操作,其中,所述光标的移动距离与所述第四操作对应的用户手指移动距离成正比、且比值大于1;
    检测到所述点击操作时,响应所述点击操作。
  26. 如权利要求25所述的电子设备,其特征在于,所述第三操作为沿水平方向的向左或向右,或者,沿竖直方向的向上或向下的第四滑动操作,所述第二响应阈值为第四滑动距离。
  27. 如权利要求25所述的电子设备,其特征在于,所述第三操作包括第三按压操作和第五滑动操作,所述第二响应阈值为第三按压操作对应的第三按压时长和所述第五滑动操作对应的第五滑动距离。
  28. 如权利要求27所述的电子设备,其特征在于,所述处理器,还用于:
    当所述第三按压操作的按压时长达到所述第三按压时长时,所述电子设备进行振动提示。
  29. 如权利要求25-28任一项所述的电子设备,其特征在于,所述光标的形状为以下任一项:箭头、I型、圆形、菱形、矩形、竖线。
  30. 如权利要求25-29任一项所述的电子设备,其特征在于,所述第四操作为滑动操作。
  31. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质包括计算机程 序,当计算机程序在电子设备上运行时,使得所述电子设备执行如权利要求1至13任一项所述的方法。
PCT/CN2020/105489 2019-09-30 2020-07-29 一种触摸屏的响应方法及电子设备 WO2021063098A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910944437.3A CN110806831A (zh) 2019-09-30 2019-09-30 一种触摸屏的响应方法及电子设备
CN201910944437.3 2019-09-30

Publications (1)

Publication Number Publication Date
WO2021063098A1 true WO2021063098A1 (zh) 2021-04-08

Family

ID=69488124

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/105489 WO2021063098A1 (zh) 2019-09-30 2020-07-29 一种触摸屏的响应方法及电子设备

Country Status (2)

Country Link
CN (1) CN110806831A (zh)
WO (1) WO2021063098A1 (zh)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110806831A (zh) * 2019-09-30 2020-02-18 华为技术有限公司 一种触摸屏的响应方法及电子设备
CN114115629A (zh) * 2020-08-26 2022-03-01 华为技术有限公司 一种界面显示方法及设备
CN112764623B (zh) * 2021-01-26 2022-09-09 维沃移动通信有限公司 内容编辑方法及装置
CN113515217A (zh) * 2021-04-08 2021-10-19 Oppo广东移动通信有限公司 一种触控处理方法、装置、存储介质及电子设备
CN116451709A (zh) * 2021-09-02 2023-07-18 荣耀终端有限公司 翻译控件的控制方法及电子设备
CN114168022A (zh) * 2021-11-04 2022-03-11 厦门知本家科技有限公司 一种用于户型结构模型编辑的震动反馈***及方法
CN117008772A (zh) * 2022-04-28 2023-11-07 华为技术有限公司 一种应用窗口的显示方法及电子设备
CN115657863B (zh) * 2022-12-29 2023-04-07 北京东舟技术股份有限公司 一种触屏设备的非侵入式跟手性检测方法及装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103412725A (zh) * 2013-08-27 2013-11-27 广州市动景计算机科技有限公司 一种触控操作方法和装置
TW201506760A (zh) * 2013-08-14 2015-02-16 Nat Chengchi University 手持式觸控裝置及其以單手操縱全觸控範圍的方法
CN105204754A (zh) * 2014-06-26 2015-12-30 深圳Tcl新技术有限公司 触摸屏的单手操作方法及装置
US9304680B2 (en) * 2013-11-25 2016-04-05 At&T Mobility Ii Llc Methods, devices, and computer readable storage device for touchscreen navigation
CN110806831A (zh) * 2019-09-30 2020-02-18 华为技术有限公司 一种触摸屏的响应方法及电子设备

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20110138743A (ko) * 2010-06-21 2011-12-28 안현구 측면 및 후면 터치센서가 구비된 모바일 장치
CN103543913A (zh) * 2013-10-25 2014-01-29 小米科技有限责任公司 一种终端设备操作方法、装置和终端设备
US10073493B2 (en) * 2014-03-19 2018-09-11 Sony Corporation Device and method for controlling a display panel
CN104615352A (zh) * 2015-01-28 2015-05-13 上海华豚科技有限公司 移动终端桌面、移动终端以及移动终端桌面的操作方法
TW201706817A (zh) * 2015-08-06 2017-02-16 兆霆科技股份有限公司 通訊裝置之操作結構及其操作方法
EP3382521A4 (en) * 2015-11-25 2019-05-08 Misumi Group Inc. METHOD AND PROGRAM FOR AIDING THE CONSULTATION OF AN ELECTRONIC BOOK
CN106371749A (zh) * 2016-08-30 2017-02-01 青岛海信移动通信技术股份有限公司 一种终端控制的方法和装置
US10572054B2 (en) * 2016-10-28 2020-02-25 Nanning Fugui Precision Industrial Co., Ltd. Interface control method for operation with one hand and electronic device thereof
CN108958580B (zh) * 2018-06-28 2021-07-23 维沃移动通信有限公司 一种显示控制方法及终端设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201506760A (zh) * 2013-08-14 2015-02-16 Nat Chengchi University 手持式觸控裝置及其以單手操縱全觸控範圍的方法
CN103412725A (zh) * 2013-08-27 2013-11-27 广州市动景计算机科技有限公司 一种触控操作方法和装置
US9304680B2 (en) * 2013-11-25 2016-04-05 At&T Mobility Ii Llc Methods, devices, and computer readable storage device for touchscreen navigation
CN105204754A (zh) * 2014-06-26 2015-12-30 深圳Tcl新技术有限公司 触摸屏的单手操作方法及装置
CN110806831A (zh) * 2019-09-30 2020-02-18 华为技术有限公司 一种触摸屏的响应方法及电子设备

Also Published As

Publication number Publication date
CN110806831A (zh) 2020-02-18

Similar Documents

Publication Publication Date Title
WO2021129326A1 (zh) 一种屏幕显示方法及电子设备
JP7391102B2 (ja) ジェスチャ処理方法およびデバイス
WO2021018067A1 (zh) 一种悬浮窗口的管理方法及相关装置
WO2021013158A1 (zh) 显示方法及相关装置
WO2021063098A1 (zh) 一种触摸屏的响应方法及电子设备
WO2021103981A1 (zh) 分屏显示的处理方法、装置及电子设备
WO2020052529A1 (zh) 全屏显示视频中快速调出小窗口的方法、图形用户接口及终端
WO2021036571A1 (zh) 一种桌面的编辑方法及电子设备
WO2020134869A1 (zh) 电子设备的操作方法和电子设备
WO2021213164A1 (zh) 应用界面交互方法、电子设备和计算机可读存储介质
WO2021052290A1 (zh) 一种音量调节方法及电子设备
WO2020062294A1 (zh) ***导航栏的显示控制方法、图形用户界面及电子设备
WO2021000839A1 (zh) 一种分屏方法及电子设备
WO2021036770A1 (zh) 一种分屏处理方法及终端设备
WO2021082835A1 (zh) 启动功能的方法及电子设备
WO2021063237A1 (zh) 电子设备的控制方法及电子设备
WO2022068483A1 (zh) 应用启动方法、装置和电子设备
WO2021078032A1 (zh) 用户界面的显示方法及电子设备
WO2022068819A1 (zh) 一种界面显示方法及相关装置
WO2021082564A1 (zh) 一种操作提示的方法和电子设备
WO2022017393A1 (zh) 显示交互***、显示方法及设备
WO2020238759A1 (zh) 一种界面显示方法和电子设备
WO2020037469A1 (zh) 界面的显示方法及电子设备
WO2021082815A1 (zh) 一种显示要素的显示方法和电子设备
WO2021238370A1 (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: 20872094

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

Country of ref document: EP

Kind code of ref document: A1