CN115705138A - Device control method, device, electronic device, and storage medium - Google Patents
Device control method, device, electronic device, and storage medium Download PDFInfo
- Publication number
- CN115705138A CN115705138A CN202110915268.8A CN202110915268A CN115705138A CN 115705138 A CN115705138 A CN 115705138A CN 202110915268 A CN202110915268 A CN 202110915268A CN 115705138 A CN115705138 A CN 115705138A
- Authority
- CN
- China
- Prior art keywords
- edge
- touch screen
- fingers
- point position
- starting point
- Prior art date
- Legal status (The legal status 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 status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction 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/0488—Interaction 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
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)
Abstract
The application discloses a device control method and device, electronic equipment and a storage medium, and relates to the technical field of electronic equipment. The method is applied to an electronic device, the electronic device comprises a touch screen, the touch screen comprises a display area, and the method comprises the following steps: and when the distance between the starting point position and the first edge of the touch screen is smaller than a first preset distance, controlling the display area according to the number of the fingers. According to the method and the device, the display area is controlled according to the starting point position and the number of the fingers corresponding to the sliding operation, so that the triggering success rate of corresponding control is improved.
Description
Technical Field
The present application relates to the field of electronic device technologies, and in particular, to a device control method and apparatus, an electronic device, and a storage medium.
Background
With the development of science and technology, electronic equipment is more widely used and more functions are more and more, and the electronic equipment becomes one of the necessary things in daily life of people. Electronic equipment generally starts to support quick triggering of a control function, but the conventional quick triggering mode is easy to generate false triggering, so that the triggering success rate of the control function is low.
Disclosure of Invention
In view of the above problems, the present application provides a device control method, apparatus, electronic device, and storage medium to solve the above problems.
In a first aspect, an embodiment of the present application provides an apparatus control method, which is applied to an electronic apparatus, where the electronic apparatus includes a touch screen, and the touch screen includes a display area, and the method includes: responding to the sliding operation acted on the touch screen, acquiring a starting point position corresponding to the sliding operation, and acquiring the number of fingers corresponding to the sliding operation; and when the distance between the starting point position and the first edge of the touch screen is smaller than a first preset distance, controlling the display area according to the number of the fingers.
In a second aspect, an embodiment of the present application provides an apparatus control device, which is applied to an electronic device, where the electronic device includes a touch screen, the touch screen includes a display area, and the apparatus includes: the parameter acquisition module is used for responding to sliding operation acted on the touch screen, acquiring a starting point position corresponding to the sliding operation and acquiring the number of fingers corresponding to the sliding operation; and the device control module is used for controlling the display area according to the number of the fingers when the distance between the starting point position and the first edge of the touch screen is less than a first preset distance.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a touch screen, a memory and a processor, wherein the touch screen and the memory are coupled to the processor, and the memory stores instructions, and when the instructions are executed by the processor, the processor executes the above method.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a program code is stored, and the program code can be called by a processor to execute the method.
The device control method, the device, the electronic device and the storage medium provided by the embodiment of the application respond to the sliding operation acting on the touch screen, the starting point position corresponding to the sliding operation is obtained, the number of fingers corresponding to the sliding operation is obtained, when the distance between the starting point position and the first edge of the touch screen is smaller than the first preset distance, the display area is controlled according to the number of the fingers, and therefore the display area is controlled according to the starting point position and the number of the fingers corresponding to the sliding operation, and the triggering success rate of corresponding control is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 illustrates a flowchart of a device control method according to an embodiment of the present application;
fig. 2 is a schematic flowchart illustrating a device control method according to another embodiment of the present application;
FIG. 3 is a flow chart illustrating an apparatus control method according to still another embodiment of the present application;
fig. 4 is a schematic flow chart illustrating an apparatus control method according to another embodiment of the present application;
FIG. 5 is a schematic diagram illustrating a first sliding operation provided by an embodiment of the present application;
FIG. 6 is a schematic view illustrating a first interface of an electronic device according to an embodiment of the present disclosure;
FIG. 7 is a schematic diagram illustrating a second sliding operation provided by an embodiment of the present application;
FIG. 8 is a diagram illustrating a second interface of an electronic device according to an embodiment of the present application;
FIG. 9 is a schematic diagram illustrating a third sliding operation provided by an embodiment of the present application;
FIG. 10 is a schematic diagram illustrating a fourth sliding operation provided by an embodiment of the present application;
fig. 11 illustrates a third interface schematic diagram of an electronic device provided by an embodiment of the present application;
fig. 12 is a flowchart illustrating an apparatus control method according to still another embodiment of the present application;
fig. 13 shows a flowchart of step S550 of the device control method shown in fig. 12 of the present application;
FIG. 14 is a schematic diagram illustrating a fifth sliding operation provided by an embodiment of the present application;
FIG. 15 is a diagram illustrating a fourth interface of an electronic device according to an embodiment of the application;
fig. 16 shows a block diagram of a device control apparatus provided in an embodiment of the present application;
fig. 17 is a block diagram of an electronic device according to an embodiment of the present application, configured to execute a device control method according to an embodiment of the present application;
fig. 18 shows a storage unit for storing or carrying a program code implementing the device control method according to the embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
At present, electronic devices generally start to support quick triggering of a control function, for example, the electronic devices generally start to support quick triggering of a control function according to a sliding operation of a user acting on a touch screen of the electronic device. However, when the electronic device is provided with a plurality of shortcut control functions, it is difficult to accurately recognize the control function that the user wants to be triggered quickly through a sliding operation triggered by the user, and thus an erroneous operation is easily generated. The inventor finds that, in order to solve the problem that misoperation is easily caused, the electronic device can be provided with different sliding positions corresponding to different shortcut control functions, but due to the size limitation of the electronic device, the control function triggered quickly is difficult to be accurately identified through the sliding positions, and misoperation is also easily caused.
In view of the above problems, the inventors have found and proposed a device control method, an apparatus, an electronic device, and a storage medium according to embodiments of the present application through long-term research, and control a display area according to a starting point position and a number of fingers corresponding to a sliding operation, so as to improve a trigger success rate of corresponding control. The specific device control method is described in detail in the following embodiments.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating an apparatus control method according to an embodiment of the present application. The equipment control method is used for controlling the display area according to the starting point position and the number of fingers corresponding to the sliding operation, so that the triggering success rate of corresponding control is improved. In a specific embodiment, the device control method is applied to the device control apparatus 200 shown in fig. 16 and the electronic device 100 (fig. 17) equipped with the device control apparatus 200. The specific process of the present embodiment will be described below by taking an electronic device as an example, and it is understood that the electronic device applied in the present embodiment may be a smart phone, a tablet computer, a wearable electronic device, and the like, which is not limited herein. As will be described in detail with respect to the flow shown in fig. 1, in this embodiment, the electronic device includes a touch screen, the touch screen includes a display area, and the device control method may specifically include the following steps:
step S110: and responding to the sliding operation acted on the touch screen, acquiring a starting point position corresponding to the sliding operation, and acquiring the number of fingers corresponding to the sliding operation.
In this embodiment, the touch operation performed on the touch screen may be detected, where the touch operation may include a single-finger click operation, a multi-finger click operation, a single-finger press operation, a multi-finger press operation, a single-finger slide operation, a multi-finger slide operation, a single-finger long-press operation, a multi-finger long-press operation, and the like, which is not limited herein. When the sliding operation acting on the touch screen is detected, the starting point position corresponding to the sliding operation can be obtained in response to the sliding operation acting on the touch screen, and the number of fingers corresponding to the sliding operation can be obtained.
In some embodiments, whether the touch screen of the electronic device is in a lighting state may be detected, when it is detected that the touch screen of the electronic device is in the lighting state, the touch operation acting on the touch screen may be detected, and when it is detected that the sliding operation acting on the touch screen is performed, the starting point position corresponding to the sliding operation may be acquired in response to the sliding operation acting on the touch screen, and the number of fingers corresponding to the sliding operation may be acquired.
In some embodiments, whether a touch screen of an electronic device is in a lit state may be detected, when it is detected that the touch screen of the electronic device is in the lit state, whether the touch screen of the electronic device is in an unlocked state may be detected, when it is detected that the touch screen of the electronic device is in the unlocked state, a touch operation acting on the touch screen may be detected, and when a slide operation acting on the touch screen is detected, a start point position corresponding to the slide operation may be acquired in response to the slide operation acting on the touch screen, and a number of fingers corresponding to the slide operation may be acquired.
In some embodiments, whether a touch screen of an electronic device is in a lit state or not may be detected, and when it is detected that the touch screen of the electronic device is in the lit state, whether the touch screen of the electronic device is in an unlocked state or not may be detected, and when it is detected that the touch screen of the electronic device is in the unlocked state, a currently displayed interface of the touch screen of the electronic device may be detected, where when it is detected that the currently displayed interface of the electronic device is a desktop or an application interface, a touch operation performed on the touch screen may be detected, and when a sliding operation performed on the touch screen is detected, a start point position corresponding to the sliding operation may be obtained in response to the sliding operation performed on the touch screen, and a number of fingers corresponding to the sliding operation may be obtained.
As one mode, a touch sensor may be provided on a touch screen of the electronic device. The touch control operation acting on the touch screen can be detected through the touch sensor, when the sliding operation acting on the touch screen is detected through the touch sensor, the starting point position corresponding to the sliding operation can be detected through the touch sensor, and the number of fingers corresponding to the sliding operation can be detected through the touch sensor. In some embodiments, a coordinate system may be established with a certain position of a touch screen of the electronic device as a coordinate origin, a start touch position of the sliding operation is detected by the touch sensor, and a coordinate of the start touch position in the coordinate system is acquired as a start position corresponding to the sliding operation. In some embodiments, the number of touch tracks of the sliding operation may be detected by the touch sensor, and the number of fingers corresponding to the sliding operation is obtained based on the number of touch tracks, where the number of touch tracks is consistent with the number of fingers, for example, when the number of fingers is one, the number of touch tracks is one, and when the number of fingers is two, the number of touch tracks is two.
As still another way, a pressure sensor may be provided on a touch screen of the electronic device. The touch operation acting on the touch screen can be detected through the pressure sensor, when the sliding operation acting on the touch screen is detected through the pressure sensor, the starting point position corresponding to the sliding operation can be detected through the pressure sensor, and the number of fingers corresponding to the sliding operation can be detected through the pressure sensor. In some embodiments, a coordinate system may be established with a certain position of a touch screen of the electronic device as a coordinate origin, a start pressing position of the sliding operation is detected by the pressure sensor, and a coordinate of the start pressing position in the coordinate system is acquired as a start position corresponding to the sliding operation. In some embodiments, the number of pressing traces of the sliding operation may be detected by the pressure sensor, and the number of fingers corresponding to the sliding operation may be acquired based on the number of pressing traces, where the number of pressing traces is identical to the number of fingers, for example, when the number of fingers is one, the number of pressing traces is one, and when the number of fingers is two, the number of pressing traces is two.
As still another mode, a touch screen of the electronic device may be provided with a pressure sensor and a touch sensor. The electronic device may further detect a starting point position corresponding to the sliding operation and the number of fingers corresponding to the sliding operation through the touch sensor and the pressure sensor, which are not described herein again.
In some embodiments, when determining the starting point position corresponding to the sliding operation, if the number of fingers is one, the position corresponding to the touch midpoint of one finger may be used as the starting point position, the position corresponding to the touch vertex of one finger may be used as the starting point position, or the position corresponding to the touch bottom of one finger may be used as the starting point position, which is not limited herein.
In some embodiments, when determining the starting point position corresponding to the sliding operation, if the number of the fingers is multiple (e.g., two), the position corresponding to the touch midpoint of the multiple fingers may be used as the starting point position (the touch midpoint of each of the multiple fingers is selected, and the touch midpoints of the multiple fingers are obtained based on the touch midpoint of each of the multiple fingers), the position corresponding to the touch vertex of the multiple fingers may be used as the starting point position (the position corresponding to the touch point of the multiple fingers closer to the first edge is selected as the starting point position), or the position corresponding to the touch bottom point of the multiple fingers may be used as the starting point position, which is not limited herein (the position corresponding to the touch point of the multiple fingers farther from the first edge is selected as the starting point position).
Step S120: and when the distance between the starting point position and the first edge of the touch screen is smaller than a first preset distance, controlling the display area according to the number of the fingers.
In some implementations, a touch screen of an electronic device includes a first edge. Taking the vertical screen display of the electronic device as an example, the first edge may be a top edge of the electronic device, may be a bottom edge of the electronic device, may be a left side edge of the electronic device, and may also be a right side edge of the electronic device, which is not limited herein.
In some embodiments, the electronic device may preset and store a first preset distance, where the first preset distance is used as a criterion for determining a distance between the starting point and the first edge of the touch screen. Therefore, in this embodiment, after the starting point position corresponding to the sliding operation is obtained, the distance between the starting point position and the first edge of the touch screen may be calculated, and the distance between the starting point position and the first edge of the touch screen may be compared with the first preset distance to determine whether the distance between the starting point position and the first edge of the touch screen is smaller than the first preset distance. If the distance between the starting point position and the first edge of the touch screen is smaller than the first preset distance, the starting point position can be determined to meet one condition for triggering shortcut control, and then judgment of other conditions of the shortcut control can be continued. If the distance between the starting point position and the first edge of the touch screen is not less than the first preset distance, it can be determined that the starting point position does not meet the condition for triggering the condition control, and the shortcut control may not be triggered.
As one mode, after the starting point of the sliding operation is obtained, distances from a plurality of edges (four edges) of the touch screen to the starting point may be obtained, a plurality of distances may be obtained, a minimum distance may be determined from the plurality of distances to be a target distance, and an edge corresponding to the target distance may be obtained to be a first edge. When the minimum distance among the plurality of distances is more than one (two), the target edge which is the first edge at the latest time may be obtained, and when the target edge is one of the two edges, the target edge may be taken as the first edge.
In this embodiment, when it is determined that the distance between the starting point position and the first edge of the touch screen is smaller than the first preset distance, the display area may be controlled according to the number of fingers corresponding to the sliding operation, so that when the starting point position meets the trigger condition, the display area is controlled according to the number of fingers, and the trigger success rate of corresponding control is improved.
As a mode, when the number of the fingers of the slide operation is one, the first control may be performed on the display area; when the number of the fingers for the slide operation is two or more, the second control can be performed on the display area. Wherein the first control and the second control are different.
As still another mode, when the number of fingers of the slide operation is one, the first control may be performed on the display area; when the number of the fingers for the sliding operation is two, performing second control on the display area; when the number of the fingers for the sliding operation is three, the display area can be controlled by a third control; when the number of the fingers of the slide operation is four, fourth control can be performed on the display area; when the number of the fingers of the slide operation is five, the display area can be controlled as the fifth control. Wherein the first control, the second control, the third control, the fourth control, and the fifth control are different from each other.
According to the device control method provided by one embodiment of the application, a starting point position corresponding to sliding operation is obtained in response to the sliding operation acting on the touch screen, the number of fingers corresponding to the sliding operation is obtained, when the distance between the starting point position and the first edge of the touch screen is smaller than a first preset distance, the display area is controlled according to the number of the fingers, and therefore the display area is controlled according to the starting point position and the number of the fingers corresponding to the sliding operation, and the triggering success rate of corresponding control is improved.
Referring to fig. 2, fig. 2 is a schematic flow chart illustrating an apparatus control method according to another embodiment of the present application. The method is applied to the electronic device, the electronic device includes a touch screen, the touch screen includes a display area, and as will be described in detail with reference to the flow shown in fig. 2, the device control method may specifically include the following steps:
step S210: and responding to the sliding operation acted on the touch screen, acquiring a starting point position corresponding to the sliding operation, and acquiring the number of fingers corresponding to the sliding operation.
For detailed description of step S210, please refer to step S110, which is not described herein again.
Step S220: and when the distance between the starting point position and the first edge of the touch screen is less than a first preset distance and the number of the fingers is one, controlling the display content of the display area.
In some embodiments, after obtaining a starting point position corresponding to the sliding operation and the number of fingers corresponding to the sliding operation, it may be determined whether a first distance between the starting point position and the touch screen is less than a first preset distance, and whether the number of fingers is one. When the distance between the starting point position and the first edge of the touch screen is determined to be smaller than the first preset distance and the number of the fingers is determined to be one, the display content of the display area of the touch screen can be directly controlled. For example, when it is determined that the distance between the starting point position and the first edge of the touch screen is smaller than a first preset distance and the number of the fingers is one, a preset control mode corresponding to sliding of one finger is searched, and the display content of the display area is controlled based on the control mode corresponding to sliding of the one finger.
Step S230: and when the distance between the starting point position and the first edge of the touch screen is less than a first preset distance and the number of the fingers is at least two, controlling the display content of the display area according to the starting point position.
In some embodiments, after obtaining a starting point position corresponding to the sliding operation and the number of fingers corresponding to the sliding operation, it may be determined whether a first distance between the starting point position and the touch screen is less than a first preset distance, and whether the number of fingers is at least two. When the distance between the starting point position and the first edge of the touch screen is determined to be smaller than a first preset distance and the number of the fingers is determined to be at least two, the display content of the display area of the touch screen can be controlled according to the starting point position. For example, when it is determined that the distance between the starting point position and the first edge of the touch screen is smaller than a first preset distance and the number of the fingers is at least two, searching for a preset control mode corresponding to the at least two fingers sliding at the starting point position, and controlling the display content of the display area based on the control mode corresponding to the at least two fingers sliding at the starting point position.
For example, when the starting point position is the first starting point position, a preset first control mode corresponding to when at least two fingers slide at the first starting point position may be searched, and the display content of the display area may be first controlled based on the first control mode corresponding to when the at least two fingers slide at the first starting point position. When the starting point position is a second starting point position, a preset second control mode corresponding to the sliding of at least two fingers at the second starting point position can be searched, and second control is performed on the display content of the display area based on the second control mode corresponding to the sliding of the at least two fingers at the first starting point position. Wherein the first control mode and the second control mode are different.
Wherein the at least two fingers may include: two fingers, three fingers, four fingers, five fingers, etc., without limitation.
In another embodiment of the present application, a device control method, in response to a sliding operation performed on a touch screen, obtains a starting point position corresponding to the sliding operation, and obtains a number of fingers corresponding to the sliding operation, controls display content in a display area when a distance between the starting point position and a first edge of the touch screen is less than a first preset distance and the number of fingers is one, and controls display content in the display area according to the starting point position when the distance between the starting point position and the first edge of the touch screen is less than the first preset distance and the number of fingers is at least two. Compared with the device control method shown in fig. 1, in this embodiment, when the number of fingers is one, the display content of the display area is directly controlled, and when the number of fingers is at least two, the display content of the display area is controlled according to the starting point position, so that different control functions are distinguished according to the number of fingers and the starting point position, the display content of the display area is differently controlled, and the control trigger success rate of the display content is improved.
Referring to fig. 3, fig. 3 is a schematic flow chart illustrating an apparatus control method according to still another embodiment of the present application. The method is applied to the electronic device, the electronic device includes a touch screen, the touch screen includes a display area, and as will be described in detail with reference to the flow shown in fig. 3, the device control method may specifically include the following steps:
step S310: and responding to the sliding operation acted on the touch screen, acquiring a starting point position corresponding to the sliding operation, and acquiring the number of fingers corresponding to the sliding operation.
For details of step S310, please refer to step S110, which is not repeated herein.
Step S320: and when the distance between the starting point position and the first edge of the touch screen is less than a first preset distance and the number of fingers is one, displaying a first page in the display area.
In some embodiments, after obtaining a starting point position corresponding to the sliding operation and the number of fingers corresponding to the sliding operation, it may be determined whether a first distance between the starting point position and the touch screen is less than a first preset distance, and whether the number of fingers is one. When the distance between the starting point position and the first edge of the touch screen is determined to be smaller than a first preset distance and the number of the fingers is determined to be one, the first page can be directly displayed in the display area. For example, when the distance between the starting point position and the first edge of the touch screen is determined to be smaller than a first preset distance and the number of the fingers is determined to be one, a preset first page corresponding to the sliding of one finger is searched, and the first page is displayed in the display area.
As one mode, the mode of displaying the first page in the display area may include: the first page is displayed in a floating mode in a display area and completely covers the current page, the first page is displayed in a floating mode in the display area and partially covers the current page, or the current page is displayed in the display area in a replacement mode through the first page.
Step S330: and when the distance between the starting point position and the first edge of the touch screen is smaller than a first preset distance, the number of the fingers is at least two, and the distance between the starting point position and the second edge of the touch screen or the distance between the starting point position and the third edge of the touch screen is smaller than a second preset distance, displaying a second page in the display area, wherein the second edge and the third edge are arranged oppositely, and the first edge is perpendicular to the second edge and the third edge.
In some embodiments, after obtaining a start point position corresponding to the sliding operation and a number of fingers corresponding to the sliding operation, it may be determined whether a first distance between the start point position and the touch screen is less than a first preset distance, whether the number of fingers is at least two, and whether the start point position meets a first preset condition. When it is determined that the distance between the starting point position and the first edge of the touch screen is smaller than a first preset distance, and it is determined that the number of the fingers is at least two and the starting point position meets a first preset condition, it may be determined that the second page is displayed in the display area according to the starting point position. For example, when it is determined that the distance between the starting point position and the first edge of the touch screen is smaller than a first preset distance and the number of the fingers is at least two, a second page corresponding to the at least two preset fingers when the starting point position slides is searched, and the second page is displayed in the display area.
As one mode, the mode of displaying the second page in the display area may include: the second page is displayed in a suspension mode in the display area and completely covers the current page, the second page is displayed in a suspension mode in the display area and partially covers the current page, or the current page is displayed in the display area in a replacement mode through the second page.
In some implementations, a touch screen of an electronic device includes a first edge, a second edge, and a third edge, where the second edge is disposed opposite the third edge, and the first edge is perpendicular to the second edge and the third edge. Taking the vertical screen display of the electronic device as an example, the first edge may be a top edge of the electronic device, the second edge may be a left edge of the electronic device, and the third edge may be a right edge of the electronic device; alternatively, the first edge may be a top edge of the electronic device, and the second edge may be a right side edge of the electronic device and the third edge may be a left side edge of the electronic device.
In some embodiments, the electronic device may preset and store a second preset distance, which is used as a basis for determining a distance between the starting position and the second edge and the third edge of the touch screen. Therefore, in this embodiment, after obtaining the starting point position corresponding to the sliding operation, the distance between the starting point position and the second edge and the distance between the starting point position and the third edge may be calculated, and the distance between the starting point position and the second edge is compared with a second preset distance to determine whether the distance between the starting point position and the second edge of the touch screen is smaller than the second preset distance, and the distance between the starting point position and the third edge is compared with the second preset distance to determine whether the distance between the starting point position and the third edge of the touch screen is smaller than the second preset distance. When the judgment result represents that the distance between the starting point position and the second edge of the touch screen or the third edge of the touch screen is smaller than the second preset distance, the starting point position can be determined to meet the first preset condition, and the second page can be displayed in the display area.
In another embodiment of the device control method provided in this application, in response to a sliding operation performed on a touch screen, a starting point position corresponding to the sliding operation is obtained, and a number of fingers corresponding to the sliding operation is obtained, when a distance between the starting point position and a first edge of the touch screen is less than a first preset distance and the number of fingers is one, a first page is displayed in a display area, and when a distance between the starting point position and the first edge of the touch screen is less than the first preset distance and the number of fingers is at least two and a distance between the starting point position and a second edge of the touch screen or a third edge of the touch screen is less than a second preset distance, a second page is displayed in the display area. Compared with the device control method shown in fig. 1, in this embodiment, when the number of fingers is one, the first surface is directly displayed in the display area, and when the number of fingers is at least two and the starting point position is close to two sides of the electronic device, the second page is displayed in the display area, so that different control functions are distinguished according to the number of fingers and the starting point position, different pages are displayed in the display area, and the triggering success rate of the shortcut page is improved.
Referring to fig. 4, fig. 4 is a schematic flowchart illustrating an apparatus control method according to another embodiment of the present application. The method is applied to the electronic device, the electronic device includes a touch screen, the touch screen includes a display area, and as will be described in detail with reference to the flow shown in fig. 4, the device control method may specifically include the following steps:
step S410: and responding to the sliding operation acted on the touch screen, acquiring a starting point position corresponding to the sliding operation, and acquiring the number of fingers corresponding to the sliding operation.
For detailed description of step S410, please refer to step S110, which is not described herein again.
Step S420: when the distance between the starting point position and the first edge of the touch screen is smaller than a first preset distance and the number of fingers is one, displaying a page corresponding to the notification center in the display area, wherein the page corresponding to the notification center is used for displaying notification messages of a plurality of application programs installed on the electronic equipment.
In some embodiments, after obtaining a starting point position corresponding to the sliding operation and the number of fingers corresponding to the sliding operation, it may be determined whether a first distance between the starting point position and the touch screen is less than a first preset distance, and whether the number of fingers is one. When the distance between the starting point position and the first edge of the touch screen is determined to be smaller than the first preset distance and the number of the fingers is determined to be one, the page corresponding to the notification center can be directly displayed in the display area. The notification center is used for providing notification messages of a plurality of application programs installed by the electronic equipment, the page corresponding to the notification center is used for displaying the notification messages of the plurality of application programs installed by the electronic equipment, and a user can view and manage the system of the electronic equipment and the notification messages of the application programs in the page corresponding to the notification center.
Referring to fig. 5 and fig. 6, fig. 5 is a schematic diagram illustrating a first sliding operation provided in the embodiment of the present application, and fig. 6 is a schematic diagram illustrating a first interface of an electronic device provided in the embodiment of the present application. As shown in fig. 5, when the distance between the starting point position corresponding to the sliding operation and the first edge (top edge) of the touch screen 130 is less than the first preset distance and the number of fingers is one, a page a corresponding to the notification center may be displayed in the display area, as shown in fig. 6. It will be appreciated that the starting point position may be located anywhere between the second edge and the third edge at this time.
Step S430: and when the distance between the starting point position and the first edge of the touch screen is smaller than a first preset distance, the number of the fingers is at least two, and the distance between the starting point position and the second edge of the touch screen or the distance between the starting point position and the third edge of the touch screen is smaller than a second preset distance, displaying a page corresponding to the control center in the display area, wherein the page corresponding to the control center is used for displaying a plurality of target function controls of the electronic equipment.
In some embodiments, after obtaining a starting point position corresponding to the sliding operation and a number of fingers corresponding to the sliding operation, it may be determined whether a first distance between the starting point position and the touch screen is less than a first preset distance, whether the number of fingers is at least two, and whether a distance between the starting point position and a second edge of the touch screen and a third edge of the touch screen is less than a second preset distance. When it is determined that the distance between the starting point position and the first edge of the touch screen is smaller than a first preset distance, and it is determined that the number of the fingers is at least two, and the distance between the starting point position and the second edge of the touch screen and the distance between the starting point position and the third edge of the touch screen are smaller than a second preset distance, a page corresponding to the control center can be displayed in the display area. The control center is used for containing commonly used functions and switches of the electronic equipment, the page corresponding to the control center is used for displaying a plurality of target function controls (commonly used functions and switches) of the electronic equipment, and a user can view and manage each target function of the electronic equipment in the page corresponding to the control center.
Referring to fig. 7 and 8, fig. 7 is a schematic diagram illustrating a second sliding operation provided in the embodiment of the present application, and fig. 8 is a schematic diagram illustrating a second interface of an electronic device provided in the embodiment of the present application. As shown in fig. 7, when the distance between the starting point position corresponding to the sliding operation and the first edge (top edge) of the touch screen 130 is less than a first preset distance, the number of fingers is two, and the distance between the starting point position and the second edge (right edge) of the touch screen is less than a second preset distance, a page 132 corresponding to the control center may be displayed in the display area, as shown in fig. 8.
Referring to fig. 9, fig. 9 is a schematic diagram illustrating a third sliding operation according to an embodiment of the present disclosure. As shown in fig. 9, when the distance between the starting point position corresponding to the sliding operation and the first edge (top edge) of the touch screen 130 is less than a first preset distance, the number of the fingers is two, and the distance between the starting point position and the third edge (left edge) of the touch screen is less than a second preset distance, a page B corresponding to the control center may be displayed in the display area, as shown in fig. 8.
Step S440: when the distance between the starting position and the first edge of the touch screen is smaller than a first preset distance, the number of the fingers is at least two, and the distances between the starting position and the second edge and the distance between the starting position and the third edge are both larger than or equal to a second preset distance, dividing the display area into a first screen dividing area and a second screen dividing area, wherein one of the first screen dividing area and the second screen dividing area is used for displaying a multi-task interface, the second edge and the third edge are arranged oppositely, and the first edge is perpendicular to the second edge and the third edge.
In some embodiments, after obtaining a start point position corresponding to the sliding operation and a number of fingers corresponding to the sliding operation, it may be determined whether a first distance between the start point position and the touch screen is less than a first preset distance, whether the number of fingers is at least two, and whether the start point position meets a second preset condition. When it is determined that the distance between the starting point position and the first edge of the touch screen is smaller than a first preset distance, and it is determined that the number of the fingers is at least two and the starting point position meets a second preset condition, the display area can be divided into a first split screen area and a second split screen area.
In some embodiments, the electronic device may preset and store a second preset distance, where the second preset distance is used as a basis for determining a distance between the starting position and the second edge and a third edge of the touch screen. Therefore, in this embodiment, after obtaining the starting point position corresponding to the sliding operation, the distance between the starting point position and the second edge and the distance between the starting point position and the third edge may be calculated, and the distance between the starting point position and the second edge is compared with a second preset distance to determine whether the distance between the starting point position and the second edge of the touch screen is smaller than the second preset distance, and the distance between the starting point position and the third edge is compared with the second preset distance to determine whether the distance between the starting point position and the third edge of the touch screen is smaller than the second preset distance. When the judgment result indicates that the distances between the starting point position and the second edge of the touch screen and the distance between the starting point position and the third edge of the touch screen are both greater than or equal to a second preset distance, it can be determined that the starting point position meets a second preset condition, and the display area can be divided into a first split screen area and a second split screen area.
The shape of the first split screen area and the shape of the second split screen area can be the same or different. The size of the first split screen area and the size of the second split screen area can be the same or different. The dividing line of the first split screen area can be a regular line (such as a straight line) or an irregular line (such as a bent line). The position of the first split screen area may be located above the position of the second split screen area, below the position of the second split screen area, to the left of the position of the second split screen area, to the right of the position of the second split screen area, and the like, which is not limited herein.
In some embodiments, one of the first split screen area and the second split screen area obtained by dividing the display area is used for displaying a multitasking interface, wherein the multitasking interface can be used for displaying a window corresponding to at least one application program.
As a first way, the first split screen area may be used to display an application interface corresponding to an application program, and the second split screen area may be used to display a multitasking interface, or the first split screen area may be used to display a multitasking interface, and the second split screen area may be used to display an application interface corresponding to an application program.
As a second way, the first split screen area may be used to display the multitasking interface, and the first split screen area may be used to display a blank interface, or the first split screen area may be used to display a blank interface, and the second split screen area may be used to display the multitasking interface.
As a third way, the first split screen area may be used to display an application interface corresponding to an application program, and the second split screen area may be used to display a multitasking interface and an application icon, or the first split screen area may be used to display a multitasking interface and an application icon, and the second split screen area may be used to display an application interface corresponding to an application program.
As a fourth way, the first split screen area may be used to display the multitasking interface and the application icon, and the first split screen area may be used to display a blank interface, or the first split screen area may be used to display a blank interface, and the second split screen area may be used to display the multitasking interface and the application icon.
Referring to fig. 10 and fig. 11, fig. 10 is a schematic diagram illustrating a fourth sliding operation provided in the embodiment of the present application, and fig. 11 is a schematic diagram illustrating a third interface of an electronic device provided in the embodiment of the present application. As shown in fig. 10, when the distance between the start position corresponding to the sliding operation and the first edge (top edge) of the touch screen 130 is less than a first preset distance, the number of fingers is two, and the distances between the start position and the second edge (right edge) and the third edge (left edge) of the touch screen are both greater than or equal to a second preset distance, the display area may be divided into a first split screen area C and a second split screen area D, as shown in fig. 11.
The device control method provided in another embodiment of the present application, in response to a sliding operation performed on a touch screen, obtains a starting point position corresponding to the sliding operation, and obtains a number of fingers corresponding to the sliding operation, when a distance between the starting point position and a first edge of the touch screen is less than a first preset distance and the number of fingers is one, displays a page corresponding to a notification center in a display area, when a distance between the starting point position and the first edge of the touch screen is less than the preset distance and the number of fingers is that a distance between at least two primary starting point positions and a second edge of the touch screen or a distance between at least two primary starting point positions and a third edge of the touch screen is less than a second preset distance, displays a page corresponding to a control center in the display area, and when a distance between the starting point position and the first edge of the touch screen is less than the first preset distance and the number of fingers is at least two and distances between the starting point positions and the second edge and the third edge are greater than or equal to the second preset distance, divides the display area into a first split area and a second split area. Compared with the device control method shown in fig. 1, in this embodiment, when the number of fingers is one, the page corresponding to the notification center is displayed, when the number of fingers is at least two and the starting positions are close to the two side edges of the electronic device, the page corresponding to the control center is displayed, and when the number of fingers is at least two and the starting positions are far away from the two side edges of the electronic device, the display area is subjected to split-screen processing, so that different control functions are distinguished according to the number of fingers and the starting positions, different control is performed on the display area, and the control trigger success rate is improved.
Referring to fig. 12, fig. 12 is a schematic flowchart illustrating an apparatus control method according to yet another embodiment of the present application. The method is applied to the electronic device, the electronic device includes a touch screen, the touch screen includes a display area, and as will be described in detail with reference to the flow shown in fig. 12, the device control method may specifically include the following steps:
step S510: and responding to the sliding operation acted on the touch screen, acquiring a starting point position corresponding to the sliding operation, and acquiring the number of fingers corresponding to the sliding operation.
For detailed description of step S510, please refer to step S110, which is not described herein again.
Step S520: when the distance between the starting point position and the first edge of the touch screen is smaller than a first preset distance and the number of fingers is one, displaying a page corresponding to the notification center in the display area, wherein the page corresponding to the notification center is used for displaying notification messages of a plurality of application programs installed on the electronic equipment.
Step S530: and when the distance between the starting position and the first edge of the touch screen is smaller than a first preset distance, the number of the fingers is at least two, and the distance between the starting position and the second edge of the touch screen or the distance between the starting position and the third edge of the touch screen is smaller than a second preset distance, displaying a page corresponding to the control center in the display area, wherein the page corresponding to the control center is used for displaying a plurality of target function controls of the electronic equipment.
For the detailed description of steps S520 to S530, please refer to steps S410 to S420, which are not described herein again.
Step S540: and when the distance between the starting position and the first edge of the touch screen is smaller than a first preset distance, the number of the fingers is at least two, and the distances between the starting position and the second edge and the distance between the starting position and the third edge are both larger than or equal to a second preset distance, acquiring a terminal position corresponding to the sliding operation.
In this embodiment, when it is determined that the distance between the start point position of the sliding operation and the first edge of the touch screen is smaller than a first preset distance, the distance between the start point position of the sliding operation and the second edge of the touch screen is greater than or equal to a second preset distance, the distance between the start point position of the sliding operation and the third edge of the touch screen is greater than or equal to the second preset distance, and the number of fingers of the sliding operation is at least two, the end point position corresponding to the sliding operation may be obtained.
As one mode, a touch sensor may be provided on a touch screen of the electronic device. The end position corresponding to the slide operation can be detected by the touch sensor. In some embodiments, a coordinate system may be established with a certain position of a touch screen of the electronic device as a coordinate origin, an end touch position of the sliding operation is detected by the touch sensor, and a coordinate of the end touch position in the coordinate system is acquired as an end position corresponding to the sliding operation.
As still another way, a pressure sensor may be provided on a touch screen of the electronic device. The end position corresponding to the slide operation can be detected by the pressure sensor. In some embodiments, a coordinate system may be established with a certain position of a touch screen of the electronic device as a coordinate origin, an end-pressing position of the sliding operation is detected by the pressure sensor, and a coordinate of the end-pressing position in the coordinate system is acquired as an end position corresponding to the sliding operation.
As still another mode, a touch screen of the electronic device may be provided with a pressure sensor and a touch sensor. The electronic device may further detect a terminal position corresponding to the sliding operation through the touch sensor and the pressure sensor, which is not described herein again.
Step S550: based on the starting point position and the end point position, a sliding direction corresponding to the sliding operation is obtained.
In this embodiment, after the start position and the end position corresponding to the sliding operation are obtained, the sliding direction corresponding to the sliding operation may be obtained based on the start position and the end position.
In some embodiments, after obtaining the start position and the end position corresponding to the sliding operation, a connection line direction of the start position and the end position may be obtained, and the sliding direction corresponding to the sliding operation may be obtained based on the connection line direction.
In some embodiments, after obtaining the start position and the end position corresponding to the sliding operation, the connection direction of the start position and the end position may be obtained, the connection direction may be subjected to an angle correction process to obtain a target connection direction, and the sliding direction corresponding to the sliding operation may be obtained based on the target connection direction. The target connecting line direction is parallel to the longitudinal axis direction of the electronic equipment or parallel to the transverse axis direction of the electronic equipment.
Referring to fig. 13, fig. 13 is a flowchart illustrating step S550 of the device control method illustrated in fig. 12 of the present application. As will be described in detail with respect to the flow shown in fig. 13, the method may specifically include the following steps:
step S551: and when the distance between the end point position and the fourth edge of the touch screen is smaller than a third preset distance, determining that the sliding operation meets the split screen triggering condition, wherein the first edge and the fourth edge are oppositely arranged.
In some implementations, a touch screen of an electronic device includes a first edge, a second edge, a third edge, and a fourth edge, where the second edge is disposed opposite the third edge, the first edge is disposed opposite the fourth edge, and the first edge and the fourth edge are perpendicular to the second edge and the third edge. Taking the vertical screen display of the electronic device as an example, the first edge may be a top edge of the electronic device, the second edge may be a left edge of the electronic device, the third edge may be a right edge of the electronic device, and the fourth edge may be a bottom edge of the electronic device; alternatively, the first edge may be a top edge of the electronic device, and then the second edge may be a right side edge of the electronic device, the third edge may be a left side edge of the electronic device, and the fourth edge may be a bottom edge of the electronic device; alternatively, the first edge may be a bottom edge of the electronic device, and then the second edge may be a right side edge of the electronic device, the third edge may be a left side edge of the electronic device, the fourth edge may be a top edge of the electronic device, and the like, which are not limited herein.
In some embodiments, the electronic device may preset and store a third preset distance, where the third preset distance is used as a basis for determining a distance between the end point position and a fourth edge of the touch screen. Therefore, in this embodiment, after obtaining the end point position corresponding to the sliding operation, the distance between the end point position and the fourth edge may be calculated, and the distance between the end point position and the fourth edge may be compared with a third preset distance, so as to determine whether the distance between the end point position and the fourth edge of the touch screen is smaller than the third preset distance. And when the distance between the end point position and the fourth edge of the touch screen is smaller than a third preset distance, determining that the sliding operation meets the split screen triggering condition.
Step S552: based on the starting point position and the end point position, a sliding direction corresponding to the sliding operation is obtained.
Step S560: and dividing the display area into a first split screen area and a second split screen area based on the sliding direction, wherein one split screen area of the first split screen area and the second split screen area is used for displaying the multi-task interface.
In this embodiment, after the sliding direction corresponding to the sliding operation is obtained, the display area of the touch screen may be divided into a first split screen area and a second split screen area according to the sliding direction.
Please refer to fig. 10 and 11. As shown in fig. 10, when the sliding operation slides down from the top of the touch screen 130 to the bottom of the touch screen, the display area of the touch screen 130 may be split left and right, i.e., the display area is divided into a first split screen area C and a second split screen area D (as shown in fig. 11).
Referring to fig. 14 and 15, fig. 14 is a schematic diagram illustrating a fifth sliding operation provided in the embodiment of the present application, and fig. 15 is a schematic diagram illustrating a fourth interface of an electronic device provided in the embodiment of the present application. As shown in fig. 14, when the sliding operation slides from the right side to the left side of the touch screen 130 to the left side of the touch screen, the display area of the touch screen 130 may be split up and down, i.e., the display area is divided into a first split area C and a second split area D (as shown in fig. 15).
In some embodiments, one of the first split screen area and the second split screen area obtained by dividing the display area is used for displaying a multitasking interface, wherein the multitasking interface can be used for displaying a window corresponding to at least one application program.
In some embodiments, after the sliding direction corresponding to the sliding operation is obtained, the screen splitting direction may be determined according to the sliding direction. As one mode, the electronic device may preset mapping relationships between a plurality of sliding directions and a plurality of split screen directions, store the mapping relationships between the plurality of sliding directions and the plurality of split screen directions in a mapping relationship table, based on which, after obtaining the sliding direction corresponding to the sliding operation, obtain the sliding direction corresponding to the sliding operation from the plurality of sliding directions in the mapping relationship table as a target sliding direction, and determine, based on the mapping relationships between the plurality of sliding directions and the plurality of split screen directions, a split screen direction having a mapping relationship with the target sliding direction from the plurality of split screen directions as a target split screen direction, where the target split screen direction may be determined as the split screen direction corresponding to the sliding operation.
In some embodiments, when it is determined that the sliding direction corresponding to the sliding operation is parallel to the longitudinal axis direction of the electronic device, the screen splitting direction may be determined to be parallel to the longitudinal axis direction of the electronic device, that is, the display area of the touch screen of the electronic device is split left and right; when the sliding direction corresponding to the sliding operation is determined to be parallel to the horizontal axis direction of the electronic device, the screen splitting direction can be determined to be parallel to the horizontal axis direction of the electronic device, that is, the display area of the touch screen of the electronic device is split up and down; when it is determined that the sliding direction corresponding to the sliding operation is parallel to the diagonal direction of the electronic device, the screen splitting direction may be determined to be parallel to the diagonal direction of the electronic device, that is, the display area of the touch screen of the electronic device is subjected to oblique screen splitting.
In some embodiments, the electronic device may be preset and store a specific direction, and the specific direction is set to be a longitudinal axis direction or a transverse axis direction of the electronic device. Then, when the sliding direction is parallel to the longitudinal axis direction of the electronic device, the longitudinal axis direction of the electronic device is determined as the split screen direction, the display area of the touch screen can be split left and right based on the split screen direction, when the sliding direction is parallel to the transverse axis direction of the electronic device, the transverse axis direction of the electronic device is determined as the split screen direction, and the display area of the touch screen can be split up and down based on the split screen direction.
Taking the screen splitting direction as the longitudinal axis direction of the electronic device as an example, when the two fingers slide down from the top to the bottom of the touch screen or slide up from the top to the top of the touch screen, the display area of the touch screen can be split left and right. Taking the screen splitting direction as the horizontal axis direction of the electronic device as an example, when the two fingers slide from the left edge to the right edge of the touch screen or from the right edge to the left edge of the touch screen, the display area of the touch screen can be split up and down.
In another embodiment of the present application, a device control method is provided, in which a starting point position corresponding to a sliding operation is obtained in response to the sliding operation performed on a touch screen, and a number of fingers corresponding to the sliding operation is obtained, when a distance between the starting point position and a first edge of the touch screen is less than a first preset distance and the number of fingers is one, a page corresponding to a notification center is displayed in a display area, when a distance between the starting point position and the first edge of the touch screen is less than the first preset distance, and the number of fingers is at least two and a distance between the starting point position and a second edge of the touch screen or a third edge of the touch screen is less than a second preset distance, a page corresponding to a control center is displayed in the display area, when a distance between the starting point position and the first edge of the touch screen is less than the first preset distance, and the number of fingers is at least two primary starting point positions and distances between the second edge and the third edge of the touch screen are greater than or equal to the second preset distance, an end point position corresponding to the sliding operation is obtained, a sliding direction corresponding to the display area is obtained based on the starting point position and the first split screen area, and the second split screen area. Compared with the device control method shown in fig. 1, in this embodiment, when the number of fingers is one, a page corresponding to the notification center is displayed, when the number of fingers is at least two and the starting positions are close to the two side edges of the electronic device, a page corresponding to the control center is displayed, and when the number of fingers is at least two and the starting positions are far away from the two side edges of the electronic device, the display area is split according to the starting positions and the ending positions, so that different control functions are distinguished according to the number of fingers and the starting positions, different control is performed on the display area, the control trigger success rate is improved, and the accuracy of splitting is improved.
Referring to fig. 16, fig. 16 shows a block diagram of a device control apparatus according to an embodiment of the present application. The device control apparatus 200 is applied to the electronic device including the touch panel including the display area, and will be explained with reference to the block diagram shown in fig. 16, and the device control apparatus 200 includes: a parameter acquisition module 210 and a device control module 220, wherein:
the parameter obtaining module 210 is configured to, in response to a sliding operation performed on the touch screen, obtain a starting point position corresponding to the sliding operation, and obtain the number of fingers corresponding to the sliding operation.
The device control module 220 is configured to control the display area according to the number of the fingers when the distance between the starting point and the first edge of the touch screen is smaller than a first preset distance.
Further, the device control module 220 includes: a first device control sub-module and a second device control sub-module, wherein:
and the first equipment control submodule is used for controlling the display content of the display area when the number of the fingers is one.
Further, the first device control sub-module includes: a first page display unit, wherein:
and a first page display unit for displaying the first page in the display area when the number of fingers is one.
Further, the first page display unit includes: a notification center page display subunit, wherein:
and the notification center page display subunit is used for displaying a page corresponding to the notification center in the display area when the number of the fingers is one, wherein the page corresponding to the notification center is used for displaying notification messages of a plurality of application programs installed by the electronic equipment.
And the second equipment control submodule is used for controlling the display content of the display area according to the starting point position when the number of the fingers is at least two.
Further, the second device control sub-module includes: a second page display unit, wherein:
and the second page display unit is used for displaying a second page in the display area when the number of the fingers is at least two and the distance between the starting point position and the second edge of the touch screen or the distance between the starting point position and the third edge of the touch screen is less than a second preset distance, wherein the second edge and the third edge are oppositely arranged, and the first edge is vertical to the second edge and the third edge.
Further, the second page display unit includes: a control center page display subunit, wherein:
and the control center page display subunit is used for displaying a page corresponding to the control center in the display area when the number of the fingers is at least two and the distance between the starting point position and the second edge of the touch screen or the third edge of the touch screen is less than a second preset distance, wherein the page corresponding to the control center is used for displaying a plurality of target function controls of the electronic equipment.
Further, the device control module 220 further includes: a third device control sub-module, wherein:
and the third device control sub-module is used for dividing the display area into a first split screen area and a second split screen area when the number of the fingers is at least two and the distances between the starting point position and the second edge and the distance between the starting point position and the third edge are both greater than or equal to a second preset distance, wherein one of the first split screen area and the second split screen area is used for displaying the multi-task interface.
Further, the third device control sub-module includes: a split screen unit, wherein:
and a screen splitting unit for dividing the display area into a first screen splitting area and a second screen splitting area based on the sliding direction.
Further, the device control module 220 further includes: an end position acquisition submodule and a sliding direction acquisition submodule, wherein:
and the terminal position acquisition submodule is used for acquiring a terminal position corresponding to the sliding operation.
The sliding direction obtaining submodule is used for obtaining a sliding direction corresponding to the sliding operation based on the starting point position and the end point position;
further, the sliding direction obtaining sub-module includes: a split screen trigger determination unit and a sliding direction obtaining unit, wherein:
and the split screen trigger determining unit is used for determining that the sliding operation meets the split screen trigger condition when the distance between the end point position and the fourth edge of the touch screen is smaller than a third preset distance, wherein the first edge and the fourth edge are arranged oppositely.
And a sliding direction obtaining unit for obtaining a sliding direction corresponding to the sliding operation based on the starting point position and the end point position.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In several embodiments provided in the present application, the coupling of the modules to each other may be electrical, mechanical or other forms of coupling.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
Referring to fig. 17, a block diagram of an electronic device 100 according to an embodiment of the present disclosure is shown. The electronic device 100 may be a smart phone, a tablet computer, an electronic book, or other electronic devices capable of running an application. The electronic device 100 in the present application may include one or more of the following components: a processor 110, a memory 120, a touch screen 130, and one or more applications, wherein the one or more applications may be stored in the memory 120 and configured to be executed by the one or more processors 110, the one or more programs configured to perform the methods as described in the aforementioned method embodiments.
The Memory 120 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 120 may be used to store instructions, programs, code sets, or instruction sets. The memory 120 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The memory data area may also store data created by electronic device 100 during use (e.g., phone books, audiovisual data, chat log data), etc.
The touch screen 130 is used for displaying information input by a user, information provided to the user, and various graphical user interfaces of the electronic device 100, which may be formed by graphics, text, icons, numbers, video, and any combination thereof, and in one example, the touch screen 130 may be a Liquid Crystal Display (LCD) or an Organic Light-Emitting Diode (OLED), which is not limited herein.
Referring to fig. 18, a block diagram of a computer-readable storage medium according to an embodiment of the present application is shown. The computer readable medium 300 has stored therein a program code which can be called by a processor to execute the method described in the above method embodiments.
The computer-readable storage medium 300 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium 300 includes a non-volatile computer-readable medium. The computer readable storage medium 300 has storage space for program code 310 for performing any of the method steps of the method described above. The program code can be read from or written to one or more computer program products. The program code 310 may be compressed, for example, in a suitable form.
To sum up, according to the device control method and apparatus, the electronic device, and the storage medium provided in the embodiments of the present application, in response to a sliding operation performed on the touch screen, a starting point position corresponding to the sliding operation is obtained, and the number of fingers corresponding to the sliding operation is obtained, and when a distance between the starting point position and a first edge of the touch screen is smaller than a first preset distance, the display area is controlled according to the number of fingers, so that the display area is controlled according to the starting point position and the number of fingers corresponding to the sliding operation, and a trigger success rate of the corresponding control is improved.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.
Claims (12)
1. A device control method applied to an electronic device including a touch screen including a display area, the method comprising:
responding to sliding operation acted on the touch screen, acquiring a starting point position corresponding to the sliding operation, and acquiring the number of fingers corresponding to the sliding operation;
and when the distance between the starting point position and the first edge of the touch screen is smaller than a first preset distance, controlling the display area according to the number of the fingers.
2. The method of claim 1, wherein the controlling the display area according to the number of fingers comprises:
when the number of the fingers is one, the display content of the display area is controlled, or
And when the number of the fingers is at least two, controlling the display content of the display area according to the starting point position.
3. The method according to claim 2, wherein when the number of the fingers is one, controlling the display content of the display area comprises:
and when the number of the fingers is one, displaying a first page in the display area.
4. The method according to claim 3, wherein the displaying a first page in the display area when the number of the fingers is one comprises:
and when the number of the fingers is one, displaying a page corresponding to a notification center in the display area, wherein the page corresponding to the notification center is used for displaying notification messages of a plurality of application programs installed in the electronic equipment.
5. The method according to claim 2, wherein the controlling the display area according to the starting point position when the number of fingers is at least two comprises:
and when the number of the fingers is at least two and the distance between the starting point position and the second edge of the touch screen or the distance between the starting point position and the third edge of the touch screen is less than a second preset distance, displaying a second page in the display area, wherein the second edge and the third edge are oppositely arranged, and the first edge is perpendicular to the second edge and the third edge.
6. The method according to claim 5, wherein when the number of fingers is that the distance between the at least two starting positions and the second edge of the touch screen or the third edge of the touch screen is less than a second preset distance, displaying a second page in the display area comprises:
when the number of the fingers is at least two, and the distance between the starting point position and the second edge of the touch screen or the distance between the starting point position and the third edge of the touch screen is smaller than a second preset distance, displaying a page corresponding to a control center in the display area, wherein the page corresponding to the control center is used for displaying a plurality of target function controls of the electronic equipment.
7. The method of claim 5 or 6, further comprising:
when the number of the fingers is at least two, and the distances between the starting point position and the second edge and between the starting point position and the third edge are both larger than or equal to the second preset distance, dividing the display area into a first split screen area and a second split screen area, wherein one split screen area of the first split screen area and the second split screen area is used for displaying a multi-task interface.
8. The method of claim 7, further comprising, prior to dividing the display area into a first split screen area and a second split screen area:
acquiring a terminal position corresponding to the sliding operation;
obtaining a sliding direction corresponding to the sliding operation based on the starting point position and the end point position;
the dividing of the display area into a first split screen area and a second split screen area comprises
Dividing the display area into the first split screen area and the second split screen area based on the sliding direction.
9. The method according to claim 8, wherein the obtaining a sliding direction corresponding to the sliding operation based on the starting position and the end position comprises:
when the distance between the end point position and a fourth edge of the touch screen is smaller than a third preset distance, determining that the sliding operation meets a split screen triggering condition, wherein the first edge and the fourth edge are arranged oppositely;
and obtaining a sliding direction corresponding to the sliding operation based on the starting position and the end position.
10. An apparatus control device, applied to an electronic device including a touch screen including a display area, the apparatus comprising:
the parameter acquisition module is used for responding to the sliding operation acted on the touch screen, acquiring a starting point position corresponding to the sliding operation and acquiring the number of fingers corresponding to the sliding operation;
and the device control module is used for controlling the display area according to the number of the fingers when the distance between the starting point position and the first edge of the touch screen is smaller than a first preset distance.
11. An electronic device comprising a touch screen, a memory, and a processor, the touch screen and the memory coupled to the processor, the memory storing instructions that, when executed by the processor, the processor performs the method of any of claims 1-9.
12. A computer-readable storage medium, having stored thereon program code that can be invoked by a processor to perform the method according to any one of claims 1 to 9.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110915268.8A CN115705138A (en) | 2021-08-10 | 2021-08-10 | Device control method, device, electronic device, and storage medium |
PCT/CN2022/106249 WO2023016193A1 (en) | 2021-08-10 | 2022-07-18 | Apparatus control method, device, electronic apparatus and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110915268.8A CN115705138A (en) | 2021-08-10 | 2021-08-10 | Device control method, device, electronic device, and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115705138A true CN115705138A (en) | 2023-02-17 |
Family
ID=85179661
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110915268.8A Pending CN115705138A (en) | 2021-08-10 | 2021-08-10 | Device control method, device, electronic device, and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN115705138A (en) |
WO (1) | WO2023016193A1 (en) |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103186330B (en) * | 2011-12-27 | 2016-03-30 | 联想(北京)有限公司 | A kind of display interface changing method and electronic equipment |
CN107346206A (en) * | 2017-06-23 | 2017-11-14 | 上海斐讯数据通信技术有限公司 | The control method and mobile terminal of a kind of mobile terminal |
JP6850768B2 (en) * | 2018-06-26 | 2021-03-31 | 株式会社日立製作所 | Simulation system and its control method |
CN108984064B (en) * | 2018-07-03 | 2020-07-07 | Oppo广东移动通信有限公司 | Split screen display method and device, storage medium and electronic equipment |
CN111722780B (en) * | 2020-06-19 | 2022-04-12 | 佛吉亚歌乐电子(丰城)有限公司 | Method and device for displaying quick operation bar, vehicle equipment and storage medium |
-
2021
- 2021-08-10 CN CN202110915268.8A patent/CN115705138A/en active Pending
-
2022
- 2022-07-18 WO PCT/CN2022/106249 patent/WO2023016193A1/en active Application Filing
Also Published As
Publication number | Publication date |
---|---|
WO2023016193A1 (en) | 2023-02-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11200072B2 (en) | User interface adaptations based on inferred content occlusion and user intent | |
US8633909B2 (en) | Information processing apparatus, input operation determination method, and input operation determination program | |
US7623119B2 (en) | Graphical functions by gestures | |
US20070236468A1 (en) | Gesture based device activation | |
US20120326994A1 (en) | Information processing apparatus, information processing method and program | |
US10599903B2 (en) | Information processing method and electronic device | |
US20190317658A1 (en) | Interaction method and device for a flexible display screen | |
US10048726B2 (en) | Display control apparatus, control method therefor, and storage medium storing control program therefor | |
CN112218134A (en) | Input method and related equipment | |
CN106933481B (en) | Screen scrolling method and device | |
CN110568990B (en) | Screen splitting method and device, electronic equipment and storage medium | |
US20120287063A1 (en) | System and method for selecting objects of electronic device | |
US20230376198A1 (en) | Screen splitting method and apparatus, electronic device, and storage medium | |
CN115705138A (en) | Device control method, device, electronic device, and storage medium | |
CN116301538A (en) | Interaction method, device, electronic equipment and storage medium | |
CN106598315B (en) | Touch display device and background image replacement method thereof | |
WO2019024507A1 (en) | Touch control method and device, and terminal | |
CN115268725A (en) | Application switching method and device, electronic equipment and storage medium | |
CN111782381A (en) | Task management method and device, mobile terminal and storage medium | |
US9778822B2 (en) | Touch input method and electronic apparatus thereof | |
US10261675B2 (en) | Method and apparatus for displaying screen in device having touch screen | |
CN116737001B (en) | Pressure sensing touch control method and device and electronic equipment | |
WO2021244124A1 (en) | Wearable device interaction method and apparatus, wearable device, and storage medium | |
US20240184443A1 (en) | Display control method, electronic device, and readable storage medium | |
CN111506215B (en) | Method and device for erasing screen content |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |