WO2024104161A1 - 手势触控方法及电子设备 - Google Patents

手势触控方法及电子设备 Download PDF

Info

Publication number
WO2024104161A1
WO2024104161A1 PCT/CN2023/128743 CN2023128743W WO2024104161A1 WO 2024104161 A1 WO2024104161 A1 WO 2024104161A1 CN 2023128743 W CN2023128743 W CN 2023128743W WO 2024104161 A1 WO2024104161 A1 WO 2024104161A1
Authority
WO
WIPO (PCT)
Prior art keywords
hot zone
touch
application
target
software
Prior art date
Application number
PCT/CN2023/128743
Other languages
English (en)
French (fr)
Inventor
乐毅
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2024104161A1 publication Critical patent/WO2024104161A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0486Drag-and-drop
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Definitions

  • the present application relates to the field of terminal technology, and in particular to a gesture touch method and an electronic device.
  • electronic devices such as mobile phones, tablet computers, wearable devices, and vehicle-mounted devices trigger the system software or application software that controls the electronic device through gesture touch operations received by the touch screen. Due to the limited size of the touch screen, the touch hotspots of the system software or application software conflict with each other. When the electronic device detects a gesture trigger event of a conflicting touch hotspot, if the user wants to use the system software, the electronic device will inject the gesture trigger event into the system software for execution.
  • the embodiments of the present application provide a gesture touch method and an electronic device. If there is a conflicting touch hot zone between a system touch hot zone of a system software and an application touch hot zone of a target page of an application software, the conflicting touch hot zone is reallocated. According to the result of the reallocation of the conflicting touch hot zone, a gesture trigger event is allocated to an operating system or a current application to implement the function corresponding to the gesture touch event in the operating system or the application.
  • the present application provides a gesture touch method, which can be applied to an electronic device with a touch screen.
  • the electronic device displays a target page of a target application software.
  • the electronic device reallocates the conflicting touch hot zone to determine the target system hot zone of the system software and the target application hot zone of the target page.
  • the electronic device executes the first function in the system software corresponding to the gesture touch event.
  • the electronic device executes the second function in the target application software corresponding to the gesture touch event.
  • the electronic device reallocates the conflicting touch hotspots to generate temporary target system hotspots and target application hotspots.
  • the electronic device determines whether to allocate the gesture trigger event to the system software or the application software based on the target system hotspots and the target application hotspots.
  • the electronic device reallocates the conflicting touch hot zones, including: dividing all the conflicting touch hot zones into system touch hot zones, dividing all the conflicting touch hot zones into application touch hot zones, or dividing a part of the conflicting touch hot zones into system touch hot zones and dividing another part of the conflicting touch hot zones into application touch hot zones.
  • the conflicting touch hot zone is a part of the system touch hot zone (application touch hot zone)
  • the conflicting touch hot zone can be reallocated without occupying more screen space, and the utilization rate of the screen space can be improved by reusing the conflicting touch hot zone.
  • the reallocation result of the reallocation of the conflicting touch hot zone it is determined whether the gesture input position of the gesture touch event belongs to the target system hot zone or the target application hot zone, and the gesture trigger event is allocated to the system software or the application software, rather than the gesture trigger event being fixedly allocated to the system software, so that the allocation of the conflicting touch hot zone is more flexible, and it is possible to realize the function of the system software corresponding to the gesture trigger event, and it is possible to realize the function of the application software corresponding to the gesture trigger event.
  • the conflicting touch hot zone is a part of the system touch hot zone (application touch hot zone), and the user does not need to remember the additional touch hot zone, which can avoid misoperation and is conducive to realizing the function corresponding to the gesture touch event.
  • the gesture touch method further includes: when the first preset condition is met, the electronic device determines whether there is a conflicting touch hot zone between the system touch hot zone of the system software and the application touch hot zone of the target page according to the hot zone configuration file corresponding to the target application software. When the first preset condition is not met, the electronic device determines whether there is a conflicting touch hot zone between the system touch hot zone of the system software and the application touch hot zone of the target page according to whether there is an overlapping hot zone between the screen display area corresponding to the system touch hot zone and the screen display area corresponding to the application touch hot zone.
  • the first preset condition includes: the target application software is included in the preset software list, or the conflict identifier corresponding to the target application software is a preset identifier; the preset software list is used to store application software that has an overlapping hot zone with the system touch hot zone of the system software; the preset identifier is used to mark the application software that has an overlapping hot zone with the system touch hot zone of the system software.
  • the electronic device obtains the preset software list from the server and stores the preset software list. In the process of the electronic device determining whether the first preset condition is met, the electronic device determines whether the preset software list includes the target application software.
  • the preset software list can be ranked based on download counts, usage time, search counts or user reviews, and the top ranked applications (such as the top 10) are selected to select applications that have conflicting touch hotspots compared to the application touch hotspots of the system software.
  • the basis may be obtained by statistics of all users in a certain area, or by statistics of application software usage within a certain time period, or by statistics of all users in a certain age group.
  • the method for obtaining the preset software list is not limited.
  • the electronic device can load the preset software list from the cloud server, or generate a conflict identifier when installing the application software in the preset software list, wherein the conflict identifier is used to identify whether the application software is stored in the preset software list.
  • the application software that overlaps with the system touch hot zone is marked through the preset software list or preset identification, and different judgment methods are used to determine whether there is a conflicting touch hot zone between the system touch hot zone of the system software and the application touch hot zone of the target page by whether the target application software belongs to the preset software list or whether the conflict identification corresponding to the target software is a preset identification. If the judgment method based on the hot zone configuration file corresponding to the target application software is adopted, the judgment speed of the target application software can be improved. If the judgment method based on whether there is an overlapping hot zone between the system touch hot zone and the application touch hot zone is adopted, so that the determination result of whether there is a conflicting touch hot zone is obtained through judgment, the judgment accuracy of the target page can be improved.
  • the electronic device determines whether there is a conflicting touch hot zone between the system touch hot zone of the system software and the application touch hot zone of the target page according to the hot zone configuration file corresponding to the target application software, which can also be implemented in the following manner.
  • the electronic device obtains the hot zone configuration file corresponding to the target application software.
  • the electronic device determines that there is a conflicting touch hot zone between the system touch hot zone of the system software and the application touch hot zone of the target page.
  • the hot zone configuration parameter is used to indicate the reallocation method of the conflicting touch hot zones.
  • the hot zone configuration file includes the hot zone configuration parameters corresponding to the target page, it is possible to determine whether there is a conflicting touch hot zone between the system software's system touch hot zone and the target page's application touch hot zone, thereby improving the speed of determining the target application software.
  • the gesture touch method before the electronic device obtains the hot zone configuration file corresponding to the application software, the gesture touch method also includes: receiving the hot zone configuration file corresponding to the target application software sent by the server, and storing the hot zone configuration file corresponding to the target application software in the file storage location of the system software.
  • the hot zone configuration file corresponding to the target application software is used to store the hot zone configuration parameters corresponding to at least one conflicting page; each conflicting page in the at least one conflicting page is: among the various pages of the target application software, the corresponding application touch hot zone and the system touch hot zone have overlapping hot zones; and the various pages of the target application software include the target page.
  • the server stores the hot zone configuration files of multiple application software, and sends the hot zone configuration files corresponding to the target application software to the electronic device where the target application software is installed. That is, the electronic device only needs to store the hot zone configuration files corresponding to the target application software, which can reduce the amount of data that the electronic device needs to store and save system resources.
  • the electronic device reallocates the conflicting touch hot zone to determine the target system hot zone of the system software and the target application hot zone of the target page.
  • This can also be implemented in the following manner: reallocating the conflicting touch hot zone to determine the target system hot zone of the system software and the target application hot zone of the target page according to the hot zone configuration parameters corresponding to the target page in the hot zone configuration file.
  • the hot zone configuration parameters corresponding to the target page include the target system hot zone of the system software and the target application hot zone of the target page.
  • the generation basis of the hot zone configuration parameters corresponding to the target page includes at least one of the following: the system touch hot zone, the key touch hot zone in the system touch hot zone, the system history usage information of the system software, the application touch hot zone and the application history usage information in the target page.
  • the key touch hot zone is used to ensure that the system software can run normally, and the key touch hot zone belongs to the target system hot zone of the system software.
  • the historical usage information of the system software may include at least one of the following: the number of system function triggers of the system software and the system trigger frequency of the system software.
  • the historical usage information of the target page may include at least one of the following: the number of application function triggers of the target page and the application trigger frequency.
  • the electronic device saves the hot zone configuration parameters in the form of extensible markup language xml, and the hot zone configuration file is an extensible markup language xml file.
  • the conflicting touch hot zone is a part of the system touch hot zone (application touch hot zone)
  • the conflicting touch hot zone can be reallocated without occupying more screen space, thereby realizing the reuse of the conflicting touch hot zone and improving the utilization rate of the screen space.
  • the conflicting touch hot zone is directly reallocated, or after generating a hot zone configuration file, the conflicting touch hot zone is reallocated, so that the target software that executes the gesture trigger event can be aligned with the actual needs of the user, thereby realizing the function of the system software (application software) corresponding to the gesture trigger event.
  • the hot zone configuration parameters corresponding to the target page include any of the following items: the target system hot zone includes: the overlapping key hot zone, and the touch hot zone other than the conflicting touch hot zone in the system touch hot zone; the target application hot zone includes: the touch hot zone other than the overlapping key hot zone in the conflicting touch hot zone, and the touch hot zone other than the conflicting touch hot zone in the application touch hot zone; the overlapping key hot zone
  • the key hot zone is the overlapping hot zone of the key touch hot zone and the conflicting touch hot zone.
  • the target system hot zone is the system touch hot zone
  • the target application hot zone is the touch hot zone other than the conflicting touch hot zone in the application touch hot zone.
  • the target system hot zone is the touch hot zone other than the conflicting touch hot zone in the system touch hot zone
  • the target application hot zone is the application touch hot zone.
  • the target system hot zone includes: the touch hot zone other than the conflicting touch hot zone in the system touch hot zone, and the first touch hot zone in the conflicting touch hot zone
  • the target application hot zone includes: the touch hot zone other than the conflicting touch hot zone in the application touch hot zone, and the second touch hot zone in the conflicting touch hot zone.
  • the allocation ratio of the first touch hot zone to the second touch hot zone may correspond to the ratio of the first number of times to the second number of times, or may correspond to the ratio of the first input probability to the second input probability.
  • the touch hot zone closer to the system touch hot zone can be divided into the first touch hot zone and the touch hot zone closer to the application touch hot zone can be divided into the second touch hot zone according to the proximity principle and the allocation ratio.
  • the hot zone configuration file is determined based on the key touch hot zones of the system software and the historical application information of the system software, as well as the historical usage information of the application software, after the conflicting touch hot zones are reallocated according to the hot zone configuration file, it can meet the user's intuitive feelings to the greatest extent, and the user's control of the progress bar is not prone to accidental touches, and the function of controlling the progress bar can be realized in the target application hot zone of the application software.
  • the target system hot zone and the target application hot zone are automatically adjusted according to the overlap of the application touch hot zone and the system touch hot zone of the target page, which can avoid modifying the hot zone configuration file in a high-coupling manner and save the development cycle of the application software.
  • the gesture touch event received by the electronic device may execute the first function in the system software or the second function in the application software according to the gesture input position of the gesture touch event.
  • the electronic device determines whether there is a conflicting touch hot zone between the system touch hot zone of the system software and the application touch hot zone of the target page based on whether there is an overlapping hot zone between the screen display area corresponding to the system touch hot zone and the screen display area corresponding to the application touch hot zone.
  • This can also be implemented in the following manner.
  • the electronic device receives the application touch hot zone of the target page reported by the target application software through a preset application programming interface.
  • the preset application programming interface refers to an interface reserved in the system software for the application software to report the application touch hot zone of the target page.
  • a preset application programming interface is set in the system software for the target software to report the application touch area of the target page, so that the system software can obtain the application touch area in time, and then promptly determine whether there is a conflicting touch hot area between the system touch hot area of the system software and the application touch hot area of the target software, so that after receiving the gesture touch event, the gesture touch event can be promptly allocated to the system software or application software.
  • the electronic device reallocates the conflicting touch hot zone to determine the target system hot zone of the system software and the target application hot zone of the target page, which can also be implemented in the following manner.
  • the target system hot zone is determined to include: the overlapping key hot zone, and the touch hot zone other than the conflicting touch hot zone in the system touch hot zone;
  • the target application hot zone is determined to include the touch hot zone other than the overlapping key hot zone in the conflicting touch hot zone, and the touch hot zone other than the conflicting touch hot zone in the application touch hot zone.
  • the conflicting touch hot zone is reallocated according to the system history usage information of the system software and the application history usage information of the target page to determine the target system hot zone of the system software and the target application hot zone of the target page.
  • the second preset condition includes: the application touch hot zone includes a key touch hot zone, and the key touch hot zone overlaps with the conflicting touch hot zone; the key touch hot zone is used to ensure that the system software can run normally.
  • the electronic device can temporarily transfer the non-key touch hot zones in the conflicting touch hot zones to the application software for use, and the key touch hot zones in the conflicting touch hot zones cannot be transferred to the application software for use.
  • the overlapping hot zone between the key touch hot zone and the conflicting touch hot zone is determined as the target system hot zone.
  • a key touch hot zone is set in the system touch hot zone, and the key touch hot zone is a reserved touch hot zone for the system software. If there is no overlapping hot zone between the key touch hot zone and the conflicting touch hot zone, the electronic device reallocates the conflicting touch hot zone according to the following conditions.
  • the conflict touch hot zone can be reallocated.
  • it can ensure that the system software can run normally, and on the other hand, it can allocate the gesture trigger event to the system software or the application software, instead of fixedly allocating the gesture trigger event to the system software. This makes the allocation of the conflict touch hot zone more flexible, which can realize the function of the system software corresponding to the gesture trigger event, and the function of the application software corresponding to the gesture trigger event.
  • the system history usage information includes at least one of the following: the number of times a system function of the system software is triggered; number, system trigger frequency of system software; application history usage information includes at least one of the following: the number of application function triggering times of the target page, the application triggering frequency of the target page.
  • the electronic device reallocates the conflicting touch hot zone according to the system history usage information of the system software and the application history usage information of the target page to determine the target system hot zone of the system software and the target application hot zone of the target page, which can also be achieved in the following way.
  • the electronic device determines that the target system hot zone is the system touch hot zone, and the electronic device determines that the target application hot zone is the touch hot zone other than the conflicting touch hot zone in the application touch hot zone.
  • the electronic device determines that the target system hot zone is the touch hot zone other than the conflicting touch hot zone in the system touch hot zone, and the electronic device determines that the target application hot zone is the application touch hot zone.
  • the third preset condition is: the difference between the number of system function triggering times and the number of application function triggering times is greater than the first preset value.
  • the fourth preset condition is: the difference between the system triggering frequency and the application triggering frequency is greater than the third preset value.
  • the fifth preset condition is: the difference between the number of application function triggering times and the number of system function triggering times is greater than the second preset value.
  • the sixth preset condition is: the difference between the application triggering frequency and the system triggering frequency is greater than the fourth preset value.
  • the conflicting touch hot zone is a part of the system touch hot zone (application touch hot zone)
  • the conflicting touch hot zone can be reallocated without occupying more screen space, thereby realizing the reuse of the conflicting touch hot zone and improving the utilization rate of the screen space.
  • Directly reallocating the conflicting touch hot zone based on the key touch hot zone and historical usage information of the system software, as well as the historical usage information of the application software, can make the target software that executes the gesture trigger event fit the actual needs of the user, thereby realizing the function of the system software (application software) corresponding to the gesture trigger event.
  • the electronic device reallocates the conflicting touch hot zone according to the system history usage information of the system software and the application history usage information of the target page to determine the target system hot zone of the system software and the target application hot zone of the target page, which can also be implemented in the following manner.
  • the electronic device determines that the target system hot zone includes: the touch hot zone other than the conflicting touch hot zone in the system touch hot zone, and the first touch hot zone in the conflicting touch hot zone, and determines that the target application hot zone includes: the touch hot zone other than the conflicting touch hot zone in the application touch hot zone, and the second touch hot zone in the conflicting touch hot zone.
  • the electronic device reallocates the conflicting touch hot zone to determine the target system hot zone of the system software and the target application hot zone of the target page, which can also be implemented in the following manner.
  • the electronic device prompts the system touch hot zone, the application touch hot zone, and the conflicting touch hot zone on the target page.
  • the electronic device receives a hot zone setting operation input by the user.
  • the electronic device reallocates the conflicting touch hot zone in response to the hot zone setting operation to determine the target system hot zone of the system software and the target application hot zone of the target page.
  • the thermal zone setting operation is used to customize the target system thermal zone and the target application thermal zone by the user.
  • the electronic device before the electronic device receives a hot zone setting operation input by a user, the electronic device prompts a key touch hot zone on a target page.
  • the key touch hot zone is used to ensure that the system software can run normally, and the key touch hot zone belongs to the target system hot zone of the system software.
  • the application touch hot zone includes the key touch hot zone, so that when the key touch hot zone overlaps with the conflicting touch hot zone, the conflicting touch hot zone can be reallocated.
  • it can ensure the normal operation of the system software, and on the other hand, it can make the allocation of the conflicting touch hot zone more flexible, which can realize the function of the system software corresponding to the gesture trigger event, and the function of the application software corresponding to the gesture trigger event.
  • another gesture touch device which includes: a display unit, a determination unit and an execution unit.
  • the display unit is used to display a target page of a target application software.
  • the determination unit is used to reallocate the conflicting touch hot zone when there is a conflicting touch hot zone between the system touch hot zone of the system software and the application touch hot zone of the target page, so as to determine the target system hot zone of the system software and the target application hot zone of the target page.
  • the execution unit is used to execute the first function in the system software corresponding to the gesture touch event when the gesture input position of the gesture touch event is detected to belong to the target system hot zone; the execution unit is also used to execute the second function in the target application software corresponding to the gesture touch event when the gesture input position of the gesture touch event is detected to belong to the target application hot zone.
  • an electronic device comprising: a memory, one or more processors; the memory and the processor are coupled; wherein computer program code is stored in the memory, and the computer program code comprises computer instructions, and when the computer instructions are executed by the processor, the electronic device executes the gesture touch method described in any one of the above-mentioned first aspect.
  • a computer-readable storage medium comprising computer instructions.
  • the computer instructions When the computer instructions are executed on an electronic device, the electronic device executes the gesture touch control method described in any one of the first aspects.
  • a computer program product is provided.
  • the computer program product When the computer program product is run on a computer, the computer executes the gesture touch method described in any one of the first aspects.
  • beneficial effects that can be achieved by the electronic device described in the third aspect, the computer-readable storage medium described in the fourth aspect, and the computer program product described in the fifth aspect provided above can refer to the beneficial effects in the first aspect, the second aspect and any possible design methods thereof, and will not be repeated here.
  • FIG1 is a schematic diagram of a gesture touch effect in the related art
  • FIG2 is a schematic diagram of the hardware structure of an electronic device shown in an embodiment of the present application.
  • FIG3 is a schematic diagram of a software structure of an electronic device shown in an embodiment of the present application.
  • FIG4 is a schematic diagram of the architecture of a gesture touch control method according to an embodiment of the present application.
  • FIG5 is a flowchart of a gesture touch control method according to an embodiment of the present application.
  • FIG6 is a schematic diagram of a gesture touch effect for system software shown in an embodiment of the present application.
  • FIG. 7 is a second flow chart of a gesture touch control method according to an embodiment of the present application.
  • FIG8 is one of schematic diagrams of a gesture touch effect for application software shown in an embodiment of the present application.
  • FIG9 is a schematic diagram showing a comparison of touch effects of system software and application software shown in an embodiment of the present application.
  • FIG. 10 is a schematic diagram of a hot zone allocation and a corresponding gesture touch effect shown in an embodiment of the present application.
  • FIG11 is a third flow chart of a gesture touch control method according to an embodiment of the present application.
  • FIG12 is a second schematic diagram of a gesture touch effect for application software shown in an embodiment of the present application.
  • FIG13 is a second schematic diagram of a hot zone allocation and corresponding gesture touch effect shown in an embodiment of the present application.
  • FIG14 is a schematic diagram of the structure of a gesture touch device shown in an embodiment of the present application.
  • FIG. 15 is a schematic diagram of the structure of another electronic device according to an embodiment of the present application.
  • At least one of the following or its similar expressions refers to any combination of these items, including any combination of single items or plural items.
  • at least one of a, b, or c can represent: a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, c can be single or multiple.
  • the words "first”, “second” and the like are used to distinguish the same items or similar items with substantially the same functions and effects.
  • the electronic device detects that the gesture input position of the gesture touch operation belongs to the conflicting touch hot zone, and both the system software and the application software are set with the function corresponding to the gesture touch operation, then it is necessary to determine whether to perform the gesture touch operation according to the system logic corresponding to the system software, or to perform the gesture touch operation according to the application logic corresponding to the application software.
  • the touch hot zone of the system software of the electronic device is the full screen range
  • the touch hot zone of the video playback page in the application software (such as video playback software) is also the full screen range, that is, the video playback page of the system software and the application software meets the scenario of touch hot zone conflict.
  • the electronic device receives a gesture touch operation (left swipe operation), then according to the system logic corresponding to the system software, the function corresponding to the left swipe operation is implemented: "Back" to the previous page, and according to the application logic corresponding to the video playback software, the function corresponding to the left swipe operation is implemented: Play the previous video.
  • the electronic device triggers a gesture trigger event (receives a gesture touch operation in the conflicting touch hot zone), the gesture trigger event is assigned to the system software, and the function corresponding to the gesture touch event in the application software cannot be implemented.
  • the electronic device can execute the system gesture navigation logic set by the user based on the starting position of the gesture input, if the preset full-screen edge position threshold is met, otherwise the gesture logic of the current application is executed. If the trigger area of the target function of the current application is located at the edge of the full screen, then only the target gesture input (gesture input starting from the edge of the full screen) received by the electronic device can trigger the function. Target function.
  • the electronic device determines that the target gesture input meets the preset full-screen edge position threshold condition, executes the system gesture navigation logic set by the user, and cannot execute the gesture logic of the current application, which still results in the inability to achieve the target function corresponding to the target gesture input in the current application.
  • the electronic device can set a control identification area on the software interface of the top-level application of the touch screen device as a virtual touchpad; according to the current touch input position on the touch screen, the first control instruction corresponding to the top-level application or the second operation instruction corresponding to the virtual touchpad is selectively executed.
  • a control identification area on the software interface of the top-level application of the touch screen device as a virtual touchpad; according to the current touch input position on the touch screen, the first control instruction corresponding to the top-level application or the second operation instruction corresponding to the virtual touchpad is selectively executed.
  • the top-level application software is a PPT presentation application
  • the current editing state of the PPT presentation application is editing the first page.
  • a finger is slid from right to left within the range of the virtual touchpad to turn to the second page of the PPT presentation application, and the page turning function can be realized without receiving an operation to exit the current editing state.
  • a gesture touch method is provided in an embodiment of the present application.
  • it is first determined whether there is a conflicting touch hot zone compared with the system touch hot zone of the system software and the application touch hot zone of the target page of the application software. If so, the conflicting touch hot zone is reallocated to determine the target system hot zone of the system software and the target application hot zone of the target page. Then, a gesture touch event is received. If the gesture input position of the gesture touch event belongs to the target system hot zone, the gesture trigger event is assigned to the system software, and the first function corresponding to the system software is executed. If the gesture input position of the gesture touch event belongs to the target application hot zone, the gesture trigger event is assigned to the application software, and the second function corresponding to the application software is executed.
  • the preset software list includes the software identifier corresponding to the application software, it is determined that there is a conflicting hot zone between the system software and at least one page of the application software, and then the hot zone configuration file corresponding to the application software is obtained; when the configuration file includes the hot zone configuration parameters corresponding to the target page, it is determined that there is a conflicting touch hot zone between the system touch hot zone of the system software and the application touch hot zone of the target page.
  • the system touch hot zone of the system software and the application touch hot zone of the target page are obtained; when the screen display area corresponding to the system touch hot zone has an overlapping hot zone compared with the screen display area corresponding to the application touch hot zone of the target page, it is determined that there is a conflicting touch hot zone between the system touch hot zone of the system software and the application touch hot zone of the target page.
  • the electronic device reallocates the conflicting touch hotspots to generate temporary target system hotspots and target application hotspots.
  • the electronic device determines whether to allocate the gesture trigger event to the system software or the application software according to the target system hotspots and the target application hotspots.
  • the electronic device reallocates the conflicting touch hot zones, including: dividing all the conflicting touch hot zones into system touch hot zones, dividing all the conflicting touch hot zones into application touch hot zones, or dividing a part of the conflicting touch hot zones into system touch hot zones, and dividing another part of the conflicting touch hot zones into application touch hot zones.
  • the target system hot zone of the system software and the target application hot zone of the target page can be any of the following.
  • the target system hot zone is the system touch hot zone
  • the target application hot zone is the touch hot zone other than the conflicting touch hot zone in the application touch hot zone.
  • the target system hot zone is a touch hot zone other than the conflicting touch hot zone in the system touch hot zone
  • the target application hot zone is an application touch hot zone
  • the target system hot zone includes: the touch hot zones other than the conflicting touch hot zones in the system touch hot zones, and the first touch hot zone in the conflicting touch hot zones belongs to the system touch hot zone.
  • the target application hot zone includes: the touch hot zones other than the conflicting touch hot zones in the application touch hot zones, and the second touch hot zone in the conflicting touch hot zones.
  • the conflicting touch hot zone can be divided into a first touch hot zone and a second touch hot zone, then in the embodiment of the present application In the embodiment, the allocation ratio of the first touch hot zone and the second touch hot zone is not limited.
  • the conflicting touch hot zone is a part of the system touch hot zone (application touch hot zone)
  • the conflicting touch hot zone is reallocated without occupying more screen space, and the utilization rate of the screen space is improved by reusing the conflicting touch hot zone.
  • the reallocation result of the reallocation of the conflicting touch hot zone it is judged whether the gesture input position of the gesture touch event belongs to the target system hot zone or the target application hot zone, and the gesture trigger event is allocated to the system software or the application software, instead of fixedly allocating the gesture trigger event to the system software, so that the allocation of the conflicting touch hot zone is more flexible, and it is possible to realize the function of the system software corresponding to the gesture trigger event, and it is possible to realize the function of the application software corresponding to the gesture trigger event.
  • the conflicting touch hot zone is a part of the system touch hot zone (application touch hot zone), and the user does not need to remember the additional touch hot zone, which can avoid misoperation and is conducive to realizing the function corresponding to the gesture touch event.
  • the electronic device can be a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (AR)/virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA) and other mobile terminals.
  • AR augmented reality
  • VR virtual reality
  • UMPC ultra-mobile personal computer
  • PDA personal digital assistant
  • a gesture touch method provided in an embodiment of the present application can be applied to an electronic device. Please refer to FIG. 2 , which shows a schematic diagram of the hardware structure of an electronic device 100 .
  • the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.
  • a processor 110 an external memory interface 120, an internal memory 121, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.
  • SIM subscriber identification module
  • the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100.
  • the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently.
  • the components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and/or a neural-network processing unit (NPU), etc.
  • AP application processor
  • GPU graphics processor
  • ISP image signal processor
  • controller a memory
  • video codec a digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • Different processing units may be independent devices or integrated in one or more processors.
  • the controller may be the nerve center and command center of the electronic device 100.
  • the controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
  • the processor 110 may also be provided with a memory for storing instructions and data.
  • the memory in the processor 110 is a cache memory.
  • the memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
  • the wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
  • Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas.
  • antenna 1 can be reused as a diversity antenna for a wireless local area network.
  • the antenna can be used in combination with a tuning switch.
  • the mobile communication module 150 can provide solutions for wireless communications including 2G/3G/4G/5G, etc., applied to the electronic device 100.
  • the mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc.
  • the mobile communication module 150 may receive electromagnetic waves from the antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
  • the mobile communication module 150 may also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1.
  • at least some of the functional modules of the mobile communication module 150 may be arranged in the processor 110.
  • at least some of the functional modules of the mobile communication module 150 may be arranged in the same device as at least some of the modules of the processor 110.
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal.
  • the demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194.
  • the modem processor may be an independent device.
  • the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) and the like applied to the electronic device 100.
  • WLAN wireless local area networks
  • BT wireless fidelity
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication
  • IR infrared
  • the wireless communication module 160 can be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering processing, and sends the processed signal to the processor 110.
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of the signal, amplify the signal, and convert it into electromagnetic waves for radiation through the antenna 2.
  • the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and/or IR technology.
  • the GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and/or a satellite based augmentation system (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation system
  • the electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor.
  • the GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • the processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos, etc.
  • the display screen 194 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diodes (QLED), etc.
  • the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music and videos can be stored in the external memory card.
  • the internal memory 121 can be used to store computer executable program codes, which include instructions.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121.
  • the internal memory 121 may include a program storage area and a data storage area.
  • the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.
  • the data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
  • UFS universal flash storage
  • the SIM card interface 195 is used to connect a SIM card.
  • the SIM card can be connected to and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195.
  • the electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
  • the SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different.
  • the SIM card interface 195 can also be compatible with different types of SIM cards.
  • the SIM card interface 195 can also be compatible with external memory cards.
  • the electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications.
  • the electronic device 100 uses an eSIM, i.e., an embedded SIM card.
  • the eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
  • the software system of the electronic device 100 can adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture.
  • the embodiment of the present invention takes the Android system of the layered architecture as an example to illustrate the software structure of the electronic device 100.
  • FIG3 is a schematic diagram of the software structure of the electronic device 100 according to the embodiment of the present invention.
  • the layered architecture divides the software into several layers, each with a clear role and division of labor.
  • the layers communicate with each other through software interfaces.
  • the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime (Android Runtime) and system library, and the kernel layer.
  • the application layer can include a series of application packages.
  • the application package may include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, etc. Video, short message and other applications.
  • the application framework layer provides application programming interface (API) and programming framework for the applications in the application layer.
  • API application programming interface
  • the application framework layer includes some predefined functions.
  • the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
  • the window manager is used to manage window programs.
  • the window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
  • Content providers are used to store and retrieve data and make it accessible to applications.
  • the data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
  • the view system includes visual controls, such as controls for displaying text, controls for displaying images, etc.
  • the view system can be used to build applications.
  • a display interface can be composed of one or more views.
  • a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
  • the phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including connecting, hanging up, etc.).
  • the resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
  • the notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc.
  • the notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
  • Android Runtime includes core libraries and virtual machines. Android Runtime is responsible for the scheduling and management of the Android system.
  • the core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.
  • the application layer and the application framework layer run in a virtual machine.
  • the virtual machine executes the Java files of the application layer and the application framework layer as binary files.
  • the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
  • the system library can include multiple functional modules. For example: surface manager, media library, 3D graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), etc.
  • the surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing, etc.
  • the 2D graphics engine is a drawing engine for 2D drawing.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
  • the workflow of the software and hardware of the electronic device 100 is exemplified in the scenario of touch hot zone conflict.
  • the electronic device 100 loads the installation file of the application software through one or more of the external memory interface 120, the internal memory 121, the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160 and the SIM card interface.
  • the electronic device 100 runs the system software and the application software at the application layer.
  • the electronic device 100 obtains the system touch hot zone of the system software and the application touch hot zone of the application software through the application framework layer.
  • the processor 110 in the electronic device 100 determines whether there is a conflicting touch hot zone compared with the system touch hot zone of the system software and the application touch hot zone of the target page of the application software through Android Runtime, and if there is, the conflicting touch hot zone is reallocated to determine the target system hot zone of the system software and the target application hot zone of the target page.
  • the electronic device 100 receives gesture touch events through the application framework layer. In the case where the gesture input position of the gesture touch event belongs to the target system hot zone, the processor 110 in the electronic device 100 assigns the gesture trigger event to the system software through Android Runtime and executes the first function corresponding to the system software.
  • the processor 110 in the electronic device 100 assigns the gesture trigger event to the application software through Android Runtime and executes the second function corresponding to the application software.
  • the display screen 194 in the electronic device 100 is used to display the function page of the first function corresponding to the system software, or to display the function page of the second function corresponding to the application software.
  • the gesture touch method of the embodiment of the present application is implemented by a cloud server and an electronic device.
  • the electronic device includes an application layer and an application framework layer of the system software.
  • the application layer of the electronic device has installed application 1, application 2 and application 3 which belong to the preset software list.
  • the application layer of the electronic device has also installed application 4, application 5 and application 6 which do not belong to the preset software list.
  • the preset software list is the system software of the electronic device.
  • the corresponding software list is used to store application software having overlapping hot zones with the system touch hot zones of the system software of the electronic device.
  • application 1 For application software belonging to the preset software list, take application 1 as an example.
  • the electronic device starts the first page in application 1, it first searches whether the hot zone configuration file includes the first page. If the hot zone configuration file includes the first page, the conflicting touch hot zone is reallocated according to the hot zone configuration file.
  • the hot zone configuration file is used to store hot zone configuration parameters corresponding to the conflicting page, and the conflicting page is a page in which the corresponding application touch hot zone and the system touch hot zone in each page of the application software have overlapping hot zones.
  • the hot zone configuration file is searched to see whether it contains the first page, that is, to determine whether the first page is a conflicting page. If the first page is a conflicting page, the conflicting touch hot zone of the first page needs to be reconfigured.
  • the electronic device when installing or updating application 1, stores the hot zone configuration file in the application framework layer in the electronic device system software.
  • the hot zone configuration file can be generated by the cloud server according to the touch hot zone of the system software and application software, or can be stored in the installation file or update file by the developer of application 1.
  • the source of the hot zone configuration file is not limited in the embodiment of the present application.
  • the cloud server can push the updated configuration file to the electronic device without updating application 1, so that the hot zone configuration file stored in the electronic device can be updated in time.
  • the gesture touch method of the embodiment of the present application can also be implemented by a server, as well as an application layer and an application framework layer of the electronic device system software.
  • the server is similar to a cloud server and is used to generate a hot zone configuration file, generate an updated hot zone configuration file, receive an updated hot zone configuration file, and push an updated configuration file.
  • application 4 For application software that does not belong to the preset software list, take application 4 as an example.
  • the electronic device starts the second page in application 4, the electronic device obtains the application touch hot zone of the second page, determines whether there is a conflicting touch hot zone between the application touch hot zone of the second page and the system touch hot zone of the system software, and if there is a conflicting touch hot zone, adaptively reconfigures the conflicting touch hot zone.
  • application 4 of the electronic device can report the application touch hot area of the second page to the system software through a preset application programming interface.
  • the system software of the electronic device can also obtain the application touch hot area of the second page through the preset application programming interface after detecting the startup of application 4.
  • the configuration basis for adaptively reconfiguring the conflicting touch hot zone may include: historical usage information of the application touch hot zone of the second page, historical usage information of the system touch hot zone of the system software, key touch hot zones of the system software, and user operations received through the human-computer interaction interface.
  • both the system software and the application software can respond to a left-swipe operation.
  • the system touch hot zone is set on the side of the touch screen of the electronic device, and the application touch hot zone is also set on the side of the touch screen of the electronic device.
  • the touch hot zones of the system software and the application software conflict with each other, resulting in that when the electronic device displays the application software, in response to a left-swipe operation, the function corresponding to the conflicting system software or the function corresponding to the application software may be triggered.
  • the method may include the following steps S501 - S504 .
  • S501 The electronic device starts a target page of a target application software.
  • the electronic device may receive a user operation and start a target page of a target application software. After starting the target page of the target application software, the electronic device may start to determine whether there is a conflicting touch hot zone compared to the system touch hot zone and the application touch hot zone of the target page. The electronic device may also start to determine whether there is a conflicting touch hot zone compared to the system touch hot zone and the application touch hot zone of the target page after displaying the target page. In an embodiment of the present application, the timing of determining whether there is a conflicting touch hot zone is not limited.
  • the electronic device reallocates the conflicting touch hot zones to generate temporary target system hot zones and target application hot zones.
  • the electronic device determines whether to assign the gesture trigger event to the system software or the application software according to the target system hot zone and the target application hot zone. After the electronic device displays other pages of the target application software or exits the target application software, the hot zone assignment information of the target system hot zone and the target application hot zone is deleted. If the target page is started again, the electronic device re-executes the above step S502.
  • the screen display area formed by the target system hot zone and the target application hot zone is the same as the screen display area formed by the system touch hot zone and the application touch hot zone.
  • the electronic device is installed with system software and application software so that the electronic device can realize functions such as positioning, taking pictures, instant calls and playing videos.
  • system software refers to the system that controls and coordinates itself and external devices, supports the development and operation of application software, and is a collection of various programs that do not require user intervention. Its main functions are to schedule, monitor and maintain computer systems; it is responsible for managing various independent hardware in the computer system so that they can work in coordination. System software allows computer users and other software to treat the computer as a whole without having to consider how each underlying hardware works.
  • application software corresponds to system software, which is a collection of various programming languages that users can use and application programs compiled in various programming languages.
  • Application software can be instant messaging software, shopping software, video playback software, office software, etc.
  • the type of application software is not limited.
  • the electronic device displays a first desktop page, and multiple application software are displayed on the first desktop.
  • the electronic device receives a single-finger "drag down" gesture touch operation, that is, triggers a first gesture touch event.
  • the system touch hot zone of the system software includes the top area of the touch screen of the electronic device.
  • the electronic device detects that the gesture input position of the first gesture touch event belongs to the top area.
  • the electronic device executes the function in the system software corresponding to the first gesture touch event (displays the quick settings menu).
  • the system touch hot zone of the system software includes the top area of the touch screen of the electronic device.
  • the gesture operation corresponding to the gesture touch event can be a single-finger, double-finger, multi-finger or other finger gesture, or a knuckle gesture, such as sliding, tapping, double tapping, zooming in, pressing, dragging and other gesture operations.
  • the touch screen of the electronic device displays the system desktop of the system software, and displays the application launch icon of the application software on the system desktop. After clicking the application launch icon, the touch screen of the electronic device displays the page of the application software. If the electronic device displays the page of the application software in the electronic device, then the application software is the top-level application software of the electronic device, that is, the application software that is running.
  • the gesture touch event received by the electronic device may implement the function corresponding to the application software, and may also implement the function corresponding to the system software.
  • the electronic device needs to re-determine whether there is a conflicting touch hot zone between the system touch hot zone of the system software and the application touch hot zone of the target page.
  • the running state of the target application software can be a suspended state or a non-running state.
  • the purpose of starting the target application software is to make the top-level window of the electronic device display the target application software.
  • the target application software may include multiple pages, and the application touch hotspots of each of the multiple pages may be the same, may be different, or may not be the same, so the electronic device determines whether there is a conflicting touch hotspot between the application touch hotspot of each of the multiple pages and the system touch hotspot of the system software.
  • the target page is any page among the pages of the target application software.
  • the electronic device when the electronic device meets the first preset condition, it determines whether there is a conflicting touch hot zone between the system touch hot zone of the system software and the application touch hot zone of the target page according to the hot zone configuration file corresponding to the target application software. When the electronic device does not meet the first preset condition, it determines whether there is a conflicting touch hot zone between the system touch hot zone of the system software and the application touch hot zone of the target page according to whether there is an overlapping hot zone between the screen display area corresponding to the system touch hot zone and the screen display area corresponding to the application touch hot zone;
  • the first preset condition includes: the target application software is included in the preset software list, or the conflict identifier corresponding to the target application software is a preset identifier; the preset software list is used to store application software that has a hot zone conflict with the system touch hot zone of the system software; the preset identifier is used to mark the application software that has a hot zone conflict with the system touch hot zone of the system software.
  • the electronic device obtains the preset software list from the server and stores the preset software list. In the process of the electronic device determining whether the first preset condition is met, the electronic device determines whether the preset software list includes the target application software.
  • the list of pre-installed software can be ranked based on the number of downloads, usage time, number of searches, or user reviews.
  • the top ranked (e.g., top 10) applications are selected to filter out applications that have conflicting touch hotspots compared to the application touch hotspots of the system software.
  • the ranking basis can be obtained by statistics of all users in a certain area, or by statistics of the usage of application software in a certain period of time, or by statistics of all users in a certain age group.
  • the pre-installed software can be ranked based on the number of downloads, usage time, search times, or user reviews. There is no limitation on the method of obtaining the software list.
  • the electronic device may load the preset software list from the cloud server, or generate a conflict identifier when installing an application software in the preset software list, wherein the conflict identifier is used to identify whether the application software is stored in the preset software list.
  • the electronic device may adopt the received updated preset software list, or the electronic device may generate a conflict identifier when updating the application software in the preset software list.
  • the application software that overlaps with the system touch hot zone is marked through the preset software list or preset identification, and different judgment methods are used to determine whether there is a conflicting touch hot zone between the system touch hot zone of the system software and the application touch hot zone of the target page by whether the target application software belongs to the preset software list or whether the conflict identification corresponding to the target software is a preset identification. If the judgment method based on the hot zone configuration file corresponding to the target application software is adopted, the judgment speed of the target application software can be improved. If the judgment method based on whether there is an overlapping hot zone between the system touch hot zone and the application touch hot zone is adopted, so that the determination result of whether there is a conflicting touch hot zone is obtained through judgment, the judgment accuracy of the target page can be improved.
  • the electronic device when the electronic device includes a software identifier corresponding to the application software in the preset software list, it is determined that there is a conflicting touch hot zone between the system software and at least one page in the application software, and then the hot zone configuration file corresponding to the target application software is obtained; when the hot zone configuration file includes the hot zone configuration parameters corresponding to the target page, it is determined that there is a conflicting touch hot zone between the system touch hot zone of the system software and the application touch hot zone of the target page.
  • the system touch hot zone of the system software and the application touch hot zone of the target page are obtained; when the screen display area corresponding to the system touch hot zone has an overlapping area compared with the screen display area corresponding to the application touch hot zone of the target page, it is determined that there is a conflicting touch hot zone between the system touch hot zone of the system software and the application touch hot zone of the target page.
  • the electronic device determines that there is no conflicting touch hot zone compared to the system touch hot zone of the system software and the application touch hot zone of the target page.
  • the electronic device determines that there is no conflicting touch hot zone between the system touch hot zone of the system software and the application touch hot zone of the target page.
  • the electronic device determines whether a gesture touch event is received, and when the gesture input position of the detected gesture touch event belongs to the system touch hot zone, the electronic device executes the first function in the system software corresponding to the gesture touch event; when the gesture input position of the detected gesture touch event belongs to the application touch hot zone, the electronic device executes the second function in the application software corresponding to the gesture touch event.
  • the electronic device when there is a conflicting touch hot zone between the system touch hot zone of the system software and the application touch hot zone of the target page, can obtain the hot zone configuration parameters corresponding to the target page stored in the configuration file, and then, according to the hot zone configuration parameters corresponding to the target page, reallocate the conflicting touch hot zone to determine the target system hot zone and the target application hot zone of the system software. Thereafter, the electronic device determines whether a gesture touch event is received, and responds to the function corresponding to the gesture touch event according to the gesture input position of the gesture touch event.
  • the electronic device when the electronic device installs application software for the first time or updates and installs application software, if the application software belongs to a preset software list corresponding to the system software, the electronic device can load and store a hot zone configuration file for the application software.
  • the electronic device receives a hot zone configuration file corresponding to the target application software sent by the server; and stores the hot zone configuration file corresponding to the target application software in the file storage location of the system software.
  • the hot zone configuration file corresponding to the target application software is used to store hot zone configuration parameters corresponding to at least one conflicting page; each conflicting page in the at least one conflicting page is: among the pages of the target application software, the corresponding application touch hot zone and the system touch hot zone have overlapping hot zones; and the pages of the target application software include the target page.
  • the server stores the hot zone configuration files of multiple application software, and sends the hot zone configuration files corresponding to the target application software to the electronic device where the target application software is installed. That is, the electronic device only needs to store the hot zone configuration files corresponding to the target application software, which can reduce the amount of data that the electronic device needs to store and save system resources.
  • the cloud server pushes the updated hot zone configuration file to the electronic device so that the updated hot zone configuration file stored in the electronic device can be updated in a timely manner.
  • the electronic device periodically sends a hot zone configuration acquisition request to the cloud server, and the server sends an updated hot zone configuration file of the application software to the electronic device in response to the hot zone configuration acquisition request.
  • the hot zone configuration acquisition request is used to request to obtain an updated hot zone configuration file of the application software.
  • the electronic device reads the hot zone configuration file corresponding to the application software. If the hot zone configuration file includes the hot zone configuration parameters corresponding to the target page, the conflicting touch hot zone is reallocated according to the hot zone configuration parameters corresponding to the target page, and the target system hot zone and the target application hot zone of the system software are determined.
  • the electronic device distributes the gesture touch event to the system software, and executes the first function in the system software corresponding to the gesture touch event.
  • the electronic device distributes the gesture touch event to the application software, and executes the second function in the application software corresponding to the gesture touch event.
  • the electronic device determines that there is no conflicting touch hot zone compared to the system touch hot zone of the system software and the application touch hot zone of the target page. The electronic device determines whether a gesture touch event is received, and if the gesture input position of the detected gesture touch event belongs to the system touch hot zone, the electronic device executes the first function in the system software corresponding to the gesture touch event; if the gesture input position of the detected gesture touch event belongs to the application touch hot zone, the electronic device executes the second function in the application software corresponding to the gesture touch event.
  • the electronic device reallocates the conflicting touch hot zone to determine the target system hot zone of the system software and the target application hot zone of the target page, including: reallocating the conflicting touch hot zone according to the hot zone configuration parameters corresponding to the target page in the hot zone configuration file to determine the target system hot zone of the system software and the target application hot zone of the target page.
  • the hot zone configuration parameters corresponding to the target page include the target system hot zone of the system software and the target application hot zone of the target page;
  • the generation basis of the hot zone configuration parameters corresponding to the target page includes at least one of the following: the system touch hot zone, the key touch hot zone in the system touch hot zone, the system history usage information of the system software, the application touch hot zone and the application history usage information in the target page;
  • the key touch hot zone is used to ensure the normal operation of the system software, and the key touch hot zone belongs to the target system hot zone of the system software.
  • the hot zone allocation parameters corresponding to the target page may also include a page identifier, which is used to mark the hot zone allocation parameters corresponding to the target page in the hot zone configuration file.
  • the page identifier type may be a page name, a page path, or a random number. In the embodiment of the present application, the page identifier type of the conflicting page is not limited.
  • the electronic device saves the hot zone configuration parameters in the form of extensible markup language xml, and the hot zone configuration file is an extensible markup language xml file.
  • the electronic device or cloud server can randomly assign conflicting touch hot zones and determine hot zone assignment parameters based on the random assignment results.
  • the electronic device or cloud server can also assign conflicting touch hot zones based on preset assignment rules and determine hot zone assignment parameters based on the assignment results.
  • the historical usage information of the system software may include at least one of the following: the number of system function triggers of the system software and the system trigger frequency of the system software.
  • the historical usage information of the target page may include at least one of the following: the number of application function triggers of the target page and the application trigger frequency.
  • the electronic device periodically collects statistics on historical usage information of the system software and historical usage information of the conflicting pages according to preset time intervals and the running conditions of the system software and application software on the electronic device, and redetermines the hot zone allocation parameters.
  • the electronic device collects statistics on the historical usage information of the system software and the historical usage information of the conflicting pages, and reports the two types of historical usage information to the cloud server.
  • the cloud server aggregates the data based on the two types of historical usage information reported by multiple electronic devices, and obtains the aggregated historical usage information of the system software and the aggregated historical usage information of the conflicting pages based on mathematical statistics methods such as mean, variance, standard deviation, and normal distribution. Then, based on the aggregated historical usage information of the system software and the aggregated historical usage information of the conflicting pages, the hot zone allocation parameters of the conflicting pages are determined.
  • the hot zone configuration parameters corresponding to the target page include any of the following: the target system hot zone includes: the overlapping key hot zone, and the touch hot zone other than the conflicting touch hot zone in the system touch hot zone; the target application hot zone includes: the touch hot zone other than the overlapping key hot zone in the conflicting touch hot zone, and the touch hot zone other than the conflicting touch hot zone in the application touch hot zone; the overlapping key hot zone is the overlapping hot zone of the key touch hot zone and the conflicting touch hot zone; or, the target system hot zone is the system touch hot zone, the target The application hot zone is a touch hot zone other than the conflicting touch hot zone in the application touch hot zone; or, the target system hot zone is a touch hot zone other than the conflicting touch hot zone in the system touch hot zone, and the target application hot zone is the application touch hot zone; or, the target system hot zone includes: touch hot zones other than the conflicting touch hot zone in the system touch hot zone, and a first touch hot zone in the conflicting touch hot zone
  • the electronic device determines that the target system hot zone is the system touch hot zone, and determines that the target application hot zone is a touch hot zone other than the conflicting touch hot zone in the application touch hot zone. If the difference between the number of application function triggering times and the number of system function triggering times is greater than a second preset value, the target system hot zone is determined to be a touch hot zone other than the conflicting touch hot zone in the system touch hot zone, and determines that the target application hot zone is an application touch hot zone.
  • the target system hot zone is determined to be a touch hot zone other than the conflicting touch hot zone in the system touch hot zone, and the target application hot zone is determined to be a touch hot zone other than the conflicting touch hot zone in the application touch hot zone. If the difference between the application trigger frequency and the system trigger frequency is greater than a fourth preset value, the target system hot zone is determined to be a touch hot zone other than the conflicting touch hot zone in the system touch hot zone, and the target application hot zone is determined to be an application touch hot zone.
  • the electronic device determines that the target system hot zone includes: the touch hot zone other than the conflicting touch hot zone in the system touch hot zone, and the first touch hot zone in the conflicting touch hot zone; determines that the target application hot zone includes: the touch hot zone other than the conflicting touch hot zone in the application touch hot zone, and the second touch hot zone in the conflicting touch hot zone.
  • the allocation ratio of the first touch hot zone to the second touch hot zone can correspond to the ratio of the first number and the second number, and can also correspond to the ratio of the first input probability to the second input probability. It is worth noting that the former and the latter in the allocation ratio are not 0.
  • the touch hot zone closer to the system touch hot zone can be divided into the first touch hot zone and the touch hot zone closer to the application touch hot zone can be divided into the second touch hot zone according to the proximity principle and the allocation ratio.
  • system touch hot zone application touch hot zone, conflicting touch hot zone, target system hot zone and target application hot zone are not displayed on the touch screen of the electronic device.
  • touch hot zone to which the gesture input position of the gesture touch event belongs is determined, and according to the response logic corresponding to different touch hot zones, the function in the system software or application software corresponding to the gesture touch event is executed.
  • system touch hot zone and the application touch hot zone divided on the touch screen of the electronic device can be determined by the electronic device according to the size of the touch screen of the electronic device, can be set to a fixed size, or can be determined according to the page display content, which is not limited in the embodiments of the present application.
  • the above-mentioned conflicting touch hot zone, target system hot zone and target application hot zone are determined according to the corresponding area sizes of the system touch hot zone and the application touch hot zone.
  • the conflicting touch hot zone is a part of the system touch hot zone (application touch hot zone)
  • the conflicting touch hot zone can be reallocated without occupying more screen space, thereby realizing the reuse of the conflicting touch hot zone and improving the utilization rate of the screen space.
  • the conflicting touch hot zone is directly reallocated, or after generating a hot zone configuration file, the conflicting touch hot zone is reallocated, so that the target software that executes the gesture trigger event can be aligned with the actual needs of the user, thereby realizing the function of the system software (application software) corresponding to the gesture trigger event.
  • the electronic device displays a first desktop page, displays an application start icon of the application software “a certain video” on the first desktop, and receives a click operation input by the user, and the click operation is used to click the application start icon of the application software “a certain video”.
  • the system touch hot zone of the system software includes a left edge hot zone and a right edge hot zone of the touch screen of the electronic device.
  • the electronic device starts to display the “Follow” page (target page) of the application software “a certain video” in response to the click operation.
  • the display area corresponding to the progress bar on the touch screen of the electronic device is: the application touch hot zone of the “Follow” page, which can realize the function of adjusting the playback progress in the “Follow” page. It should be noted that for the electronic device, whether the first desktop page is currently displayed or the “Follow” page (target page) is displayed, the system touch hot zone of the system software of the electronic device is the same.
  • the electronic device does not execute the gesture touch method provided by the present application, based on the "Follow” page displayed in (b1) of FIG. 8, as shown in (a1) of FIG. 9, during the process of playing the "Sports" video on the "Follow” page, the electronic device receives a single-finger "drag to the left" gesture touch operation, that is, triggering a second gesture touch event. As shown in (a2) of FIG. 9, the gesture input position of the second gesture touch event belongs to the system touch hot zone. In response to the second gesture touch event, as shown in (a3) of FIG. 9, the electronic device executes the function in the system software corresponding to the second gesture touch event (displaying the application launch icon of the application software with higher frequency of use).
  • the electronic device receives a single-finger "drag to the left" gesture touch operation, that is, triggering a third gesture touch event.
  • the gesture input position of the third gesture touch event belongs to the application touch hot zone.
  • the electronic device may respond to the third touch gesture event input by the user, as shown in (b3) in FIG. 9 , and execute the function (adjust the video playback progress) in the application software corresponding to the third touch gesture event.
  • an electronic device executes the gesture touch method provided by the present application, based on the "Follow” page displayed in (b1) of Figure 8, as shown in (a1) of Figure 10, during the process of playing the "Sports” video on the “Follow” page, without reallocating the conflicting touch hot zone, the electronic device receives a single-finger "drag to the left" gesture touch operation, that is, triggering the fourth gesture touch event.
  • the gesture input position of the fourth gesture touch event may belong to the system touch hot zone, or may belong to the application touch hot zone.
  • the electronic device plays the "Sports" video and displays indication information at the same time, indicating that it is temporarily not responding to the gesture touch event, such as being unable to respond to the gesture and re-entering the gesture later.
  • the “Follow” page continues to play the “Sports” video. Comparing the system touch hot zone shown in (a2) in FIG8 and the application touch hot zone shown in (b2) in FIG8 , as shown in (b2) in FIG10 , the electronic device compares the system touch hot zone and the application touch hot zone of the “Follow” page and determines that there is a conflicting touch hot zone. Specifically, a part of the touch hot zone in the left side hot zone and a part of the touch hot zone in the right side hot zone that overlap with the application touch hot zone in the system touch hot zone are conflicting touch hot zones.
  • the electronic device receives a single-finger "drag to the left” gesture touch operation, that is, triggering the fifth gesture touch event.
  • the electronic device obtains the hot zone configuration parameters corresponding to the "Follow” page according to the hot zone configuration file corresponding to the application software "certain video”, reallocates the conflicting touch hot zone, and determines that the target system hot zone is the touch hot zone other than the conflicting touch hot zone in the left side hot zone and the right side hot zone.
  • the gesture input position of the fifth gesture touch event belongs to the target system hot zone.
  • the electronic device can respond to the fifth gesture touch event input by the user, as shown in (c3) in FIG. 10, and the electronic device executes the function in the fifth gesture touch event system software (displaying the application launch icon of the application software with higher frequency of use).
  • the electronic device receives a single-finger "drag to the left” gesture touch operation, that is, triggering the sixth gesture touch event.
  • the electronic device obtains the hot zone configuration parameters corresponding to the "Follow” page according to the hot zone configuration file corresponding to the application software "certain video”, reallocates the conflicting touch hot zone, and determines that the target application hot zone is the display area corresponding to the progress bar on the touch screen of the electronic device.
  • the gesture input position of the sixth gesture touch event belongs to the application touch hot zone.
  • the electronic device can respond to the sixth gesture touch event input by the user, as shown in (d3) in FIG. 10, and the electronic device executes the function in the application software corresponding to the sixth gesture touch event (adjusting the video playback progress).
  • the hot zone configuration file is determined based on the key touch hot zones of the system software and the historical application information of the system software, as well as the historical usage information of the application software, after the conflicting touch hot zones are reallocated according to the hot zone configuration file, it can meet the user's intuitive feelings to the greatest extent, and the user's control of the progress bar is not prone to accidental touches, and the function of controlling the progress bar can be realized in the target application hot zone of the application software.
  • the target system hot zone and the target application hot zone are automatically adjusted according to the overlap of the application touch hot zone and the system touch hot zone of the target page, which can avoid modifying the hot zone configuration file in a high-coupling manner and save the development cycle of the application software.
  • the gesture touch event received by the electronic device may execute the first function in the system software or the second function in the application software according to the gesture input position of the gesture touch event.
  • the electronic device receives the application touch hotspot of the target page reported by the target application software through the preset application programming interface (which is an interface provided by the system software). Then, the electronic device obtains the system touch hotspot of the system software, determines whether the screen display area corresponding to the system touch hotspot and the screen display area corresponding to the application touch hotspot of the target page have overlapping hotspots, and determines whether there are conflicting touch hotspots between the system touch hotspot of the system software and the application touch hotspot of the target software.
  • the preset application programming interface which is an interface provided by the system software.
  • a preset application programming interface is set in the system software for the target software to report the application touch area of the target page, so that the system software can obtain the application touch area in time, and then determine in time whether there are conflicting touch hotspots between the system touch hotspot of the system software and the application touch hotspot of the target software, so that after receiving the gesture touch event, the gesture touch event can be promptly allocated to the system software or the application software.
  • the original system touch hot zone and the original target page application touch hot zone are maintained unchanged. According to whether the gesture input position corresponding to the gesture touch event belongs to the system touch hot zone or the application touch hot zone, the gesture touch event is assigned to the system software or the application software.
  • the conflicting touch hot zone is reallocated according to the key touch hot zone of the system software to determine the target system hot zone and the target application hot zone of the system software.
  • the electronic device allocates the gesture touch event to the system software or the application software according to the target system hot zone and the target application hot zone.
  • the electronic device restores the original system touch hot zone and the original application touch hot zone of the target page, and then obtains the application touch hot zone of the other page through the preset system interface, and reallocates the conflicting touch hot zone again. If the electronic device exits the application software, the electronic device restores the original system touch hot zone and the original application touch hot zone of the target page.
  • the electronic device determines that the target system hot zone includes: the overlapping key hot zone, and the touch hot zone other than the conflicting touch hot zone in the system touch hot zone; determines that the target application hot zone includes the touch hot zone other than the overlapping key hot zone in the conflicting touch hot zone, and the touch hot zone other than the conflicting touch hot zone in the application touch hot zone.
  • the electronic device reallocates the conflicting touch hot zone according to the system history usage information of the system software and the application history usage information of the target page, so as to determine the target system hot zone of the system software and the target application hot zone of the target page.
  • the second preset condition includes: the application touch hot zone includes a key touch hot zone, and the key touch hot zone overlaps with the conflicting touch hot zone; the key touch hot zone is used to ensure that the system software can run normally.
  • the electronic device can temporarily transfer the non-key touch hot zones in the conflicting touch hot zones to the application software for use, and the key touch hot zones in the conflicting touch hot zones cannot be transferred to the application software for use.
  • the overlapping hot zone between the key touch hot zone and the conflicting touch hot zone is determined as the target system hot zone.
  • the electronic device periodically collects statistics on historical usage information of the system software and historical usage information of the conflicting pages at preset time intervals and the running conditions of the system software and application software on the electronic device.
  • a critical touch hot zone is set in the system touch hot zone.
  • the critical touch hot zone is a reserved touch hot zone for the system software. If there is no overlapping hot zone between the critical touch hot zone and the conflicting touch hot zone, the electronic device reallocates the conflicting touch hot zone according to the following situation. If there is an overlapping hot zone between the critical touch hot zone and the conflicting touch hot zone, then in the process of allocating the conflicting touch hot zone, the overlapping hot zone between the critical touch hot zone and the conflicting touch hot zone is determined as the target system hot zone, and then the non-critical touch hot zone in the conflicting touch hot zone is reallocated to the conflicting touch hot zone according to the following situation.
  • the conflict touch hot zone can be reallocated.
  • it can ensure that the system software can run normally, and on the other hand, it can allocate the gesture trigger event to the system software or the application software, instead of fixedly allocating the gesture trigger event to the system software. This makes the allocation of the conflict touch hot zone more flexible, which can realize the function of the system software corresponding to the gesture trigger event, and the function of the application software corresponding to the gesture trigger event.
  • the electronic device reallocates the conflicting touch hot zone according to the system history usage information of the system software and the application history usage information of the target page to determine the target system hot zone of the system software and the target application hot zone of the target page.
  • the following situations may be included:
  • the historical usage information of the system software may include at least one of the following: the number of system function triggers of the system software and the system trigger frequency of the system software.
  • the historical usage information of the target page may include at least one of the following: the number of application function triggers of the target page and the application trigger frequency.
  • the number of system function triggering times refers to the number of times the function corresponding to the system software is triggered when the target page is displayed.
  • the system triggering frequency refers to the frequency at which the function corresponding to the system software is triggered per unit time when the target page is displayed.
  • the number of application function triggering times refers to the number of times the function corresponding to the application software is triggered when the target page is displayed.
  • the application triggering frequency refers to the frequency at which the function corresponding to the application software is triggered per unit time when the target page is displayed.
  • the electronic device determines that the target system hot zone is the system touch hot zone, and the electronic device determines that the target application hot zone is the touch hot zone other than the conflicting touch hot zone in the application touch hot zone.
  • the third preset condition is: the difference between the number of system function triggering times and the number of application function triggering times is greater than the first preset value
  • the fourth preset condition is: the difference between the system triggering frequency and the application triggering frequency is greater than the third preset value.
  • the target system hot zone is determined to be a touch hot zone other than the conflicting touch hot zone in the system touch hot zone
  • the target application hot zone is determined to be an application touch hot zone.
  • the fifth preset condition is: the difference between the application function triggering times and the system function triggering times is greater than the second preset value
  • the sixth preset condition is: the difference between the application triggering frequency and the system triggering frequency is greater than the fourth preset value.
  • the target system hot zone includes: the touch hot zone other than the conflicting touch hot zone in the system touch hot zone, and the first touch hot zone in the conflicting touch hot zone
  • the target application hot zone includes: the touch hot zone other than the conflicting touch hot zone in the application touch hot zone, and the second touch hot zone in the conflicting touch hot zone.
  • the allocation ratio of the first touch hot zone to the second touch hot zone can correspond to the ratio of the first number and the second number, and can also correspond to the ratio of the first input probability and the second input probability. It is worth noting that the former and the latter in the allocation ratio are not 0.
  • the touch hot zone closer to the system touch hot zone can be divided into the first touch hot zone and the touch hot zone closer to the application touch hot zone can be divided into the second touch hot zone according to the proximity principle and the allocation ratio.
  • an electronic device executes the gesture touch method provided by the present application, based on (a1) in FIG. 6, as shown in (a1) in FIG. 12, the electronic device displays a first desktop page, displays an application startup icon of the application software "resource message" on the first desktop, and receives a click operation input by the user, and the click operation is used to click the application startup icon of the application software "resource message".
  • the system touch hot zone of the system software includes the left side hot zone and the right side hot zone of the touch screen of the electronic device. As shown in (b1) in FIG.
  • the electronic device displays the "Home” page (target page) of the application software "resource message” to display virtual resource information.
  • the application touch hot zone of the "Home” page is: the top window area of the current page, which can realize the switching of the display content of the top window of the "Home” page.
  • the electronic device executes the gesture touch method provided by the present application, based on (b1) in FIG12, the virtual resource information is displayed on the "Home" page as shown in (a1) in FIG13. Comparing the system touch hot zone shown in (a2) in FIG12 and the application touch hot zone shown in (b2) in FIG12, as shown in (a2) in FIG13, the electronic device compares the system touch hot zone and the application touch hot zone of the "Home" page, and determines that there is a conflicting touch hot zone. Specifically, a part of the touch hot zone in the left side hot zone and a part of the touch hot zone in the right side hot zone that overlap with the application touch hot zone in the system touch hot zone are conflicting touch hot zones.
  • the electronic device receives a single-finger “drag to the left” gesture touch operation, i.e., triggers the seventh gesture touch event.
  • the electronic device reallocates the conflicting touch hot zone according to the key touch hot zone of the system software, and determines that the target system hot zone is the touch hot zone other than the conflicting touch hot zone in the left side hot zone and the right side hot zone.
  • the gesture input position of the seventh gesture touch event belongs to the target system hot zone.
  • the electronic device can respond to the seventh gesture touch event input by the user, as shown in (b3) in FIG. 13 , and the electronic device executes the function in the seventh gesture touch event system software (displaying the application launch icon of the application software with higher frequency of use).
  • the electronic device receives a single-finger “drag to the left” gesture touch operation, i.e., triggering the eighth gesture touch event.
  • the electronic device reallocates the conflicting touch hot zone according to the key touch hot zone of the system software, and determines that the target application hot zone is the top window area of the current page displayed on the touch screen of the electronic device.
  • the gesture input position of the eighth gesture touch event belongs to the application touch hot zone.
  • the electronic device can respond to the eighth gesture touch event input by the user, as shown in (c3) in FIG. 13 , and the electronic device executes the function in the application software corresponding to the eighth gesture touch event (switching the display content of the top window of the “Home” page).
  • the electronic device may also prompt the system touch hot zone, the application touch hot zone and the conflicting touch hot zone on the target page; receive the hot zone setting operation input by the user; and in response to the hot zone setting operation, reallocate the conflicting touch hot zone to determine the target system hot zone of the system software and the target application hot zone of the target page.
  • the hot zone setting operation is used for the user to customize the target system hot zone and the target application hot zone.
  • a key touch hot zone is prompted on the target page, and the key touch hot zone is used to ensure that the system software can run normally, and the key touch hot zone belongs to the target system hot zone of the system software.
  • the application touch hot zone includes the key touch hot zone, so that when the key touch hot zone overlaps with the conflicting touch hot zone, the conflicting touch hot zone can be reallocated.
  • it can ensure the normal operation of the system software, and on the other hand, it can make the allocation of the conflicting touch hot zone more flexible, which can realize the function of the system software corresponding to the gesture trigger event, and the function of the application software corresponding to the gesture trigger event.
  • the conflicting touch hot zones are reallocated, that is, all the conflicting touch hot zones are divided into system touch hot zones, all the conflicting touch hot zones are divided into application touch hot zones, or a part of the conflicting touch hot zones is divided into system touch hot zones, and another part of the conflicting touch hot zones is divided into application touch hot zones.
  • the conflicting touch hot zone is a part of the system touch hot zone (application touch hot zone)
  • the conflicting touch hot zone is reallocated without occupying more screen space, thereby realizing the reuse of the conflicting touch hot zone and improving the utilization rate of the screen space.
  • the reallocation result of the reallocation of the conflicting touch hot zone it is judged whether the gesture input position of the gesture touch event belongs to the target system hot zone or the target application hot zone, and the gesture trigger event is allocated to the system software or the application software, instead of the gesture trigger event being fixedly allocated to the system software, so that the allocation of the conflicting touch hot zone is more flexible, which can realize both the function of the system software corresponding to the gesture trigger event and the function of the application software corresponding to the gesture trigger event.
  • the conflicting touch hot zone is directly reallocated, or after the hot zone configuration file is generated, the conflicting touch hot zone is reallocated, so that the target software that executes the gesture trigger event can be aligned with the actual needs of the user, thereby realizing the corresponding gesture trigger event.
  • the conflicting touch hot zone is a part of the system touch hot zone (application touch hot zone), and the user does not need to remember the additional touch hot zone, which can avoid misoperation and is conducive to realizing the functions corresponding to the gesture touch events.
  • the embodiment of the present application also provides a gesture touch device, referring to FIG. 14 , the first device includes a starting unit 1401 , a determining unit 1402 , and an executing unit 1403 ;
  • the starting unit 1401 is used to start the target page of the application software, for example, by executing step S501 in the above embodiment.
  • the determination unit 1402 is used to reallocate the conflicting touch hotspots when there are conflicting touch hotspots between the system software and the target page's application touch hotspots to determine the target system hotspot of the system software and the target application hotspot of the target page. For example, step S502 in the above embodiment is performed.
  • the execution unit 1403 is used to execute the first function in the system software corresponding to the gesture touch event when the gesture input position of the detected gesture touch event belongs to the target system hot zone, for example, executing step S503 in the above embodiment.
  • the execution unit 1403 is further configured to execute the second function in the target application software corresponding to the gesture touch event when the gesture input position of the detected gesture touch event belongs to the target application hot zone, for example, executing step S504 in the above embodiment.
  • the electronic device includes hardware and/or software modules corresponding to the execution of each function.
  • the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in combination with the embodiments, but such implementation should not be considered to be beyond the scope of the present application.
  • the electronic device can be divided into functional modules according to the above method example.
  • each functional module can be divided according to each function, or two or more functions can be integrated into one processing module.
  • the above integrated module can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is schematic and is only a logical function division. There may be other division methods in actual implementation.
  • An embodiment of the present application also provides an electronic device, as shown in FIG15 , which may include one or more processors 1001 , a memory 1002 and a communication interface 1003 .
  • the memory 1002 and the communication interface 1003 are coupled to the processor 1001.
  • the memory 1002, the communication interface 1003 and the processor 1001 may be coupled together via a bus 1004.
  • the communication interface 1003 is used to transmit data with other devices.
  • the memory 1002 stores computer program code.
  • the computer program code includes computer instructions. When the computer instructions are executed by the processor 1001, the electronic device executes the screen projection method in the embodiment of the present application.
  • the processor 1001 can be a processor or a controller, for example, it can be a central processing unit (CPU), a general processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It can implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the contents of this disclosure.
  • the processor can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of DSP and microprocessors, and the like.
  • the bus 1004 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus.
  • PCI Peripheral Component Interconnect
  • EISA Extended Industry Standard Architecture
  • the bus 1004 may be divided into an address bus, a data bus, a control bus, etc.
  • FIG15 only uses one thick line, but does not mean that there is only one bus or one type of bus.
  • An embodiment of the present application further provides a computer-readable storage medium, in which a computer program code is stored.
  • a computer program code is stored.
  • the electronic device executes the relevant method steps in the method embodiment.
  • the embodiment of the present application also provides a computer program product.
  • the computer program product When the computer program product is run on a computer, it enables the computer to execute the relevant method steps in the above method embodiment.
  • the electronic device, computer storage medium or computer program product provided in this application is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here.
  • the disclosed devices and methods can be implemented in other ways.
  • the device embodiments described above are only illustrative, for example, the division of the modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed.
  • Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium.
  • the technical solution of the embodiment of the present application can essentially or contribute to the part or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the method described in each embodiment of the present application.
  • the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一种手势触控方法及电子设备,涉及终端技术领域,能够使得对冲突触控热区的分配更灵活,既可能实现手势触发事件对应的系统软件的功能,又可能实现手势触发事件对应的应用软件的功能。该方法中,显示目标应用软件的目标页面;当系统软件的系统触控热区和目标页面的应用触控热区存在冲突触控热区,则重新分配冲突触控热区,以确定系统软件的目标系统热区和目标页面的目标应用热区;在检测到手势触控事件的手势输入位置,属于目标系统热区的情况下,执行手势触控事件对应的系统软件中的第一功能;在检测到手势触控事件的手势输入位置,属于目标应用热区的情况下,电子设备执行手势触控事件对应的目标应用软件中的第二功能。

Description

手势触控方法及电子设备
本申请要求于2022年11月15日提交国家知识产权局、申请号为202211429756.9、申请名称为“手势触控方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及终端技术领域,尤其涉及一种手势触控方法及电子设备。
背景技术
一般的,手机、平板电脑、可穿戴设备、车载设备等电子设备(包括触控屏),通过触控屏接收的手势触控操作,触发控制电子设备的系统软件或应用软件。由于触控屏的大小有限,导致系统软件或应用软件的触控热区相冲突。当电子设备检测到冲突触控热区的手势触发事件时,如果用户想使用系统软件,电子设备会将该手势触发事件注入系统软件执行。
发明内容
本申请实施例提供一种手势触控方法及电子设备,如果系统软件的系统触控热区和应用软件的目标页面的应用触控热区存在冲突触控热区,重新分配冲突触控热区;根据冲突触控热区的重新分配结果,将手势触发事件分配给操作系统或者当前的应用程序,实现操作系统或应用程序中手势触控事件对应的功能。
为达到上述目的,本申请的实施例采用如下技术方案:
第一方面,本申请提供一种手势触控方法,该方法可以应用于触控屏的电子设备。在该方法中,首先,电子设备显示目标应用软件的目标页面。然后,当系统软件的系统触控热区和目标页面的应用触控热区存在冲突触控热区,则电子设备重新分配冲突触控热区,以确定系统软件的目标系统热区和目标页面的目标应用热区,接下来,在检测到手势触控事件的手势输入位置,属于目标系统热区的情况下,电子设备执行手势触控事件对应的系统软件中的第一功能。或者,接下来,在检测到手势触控事件的手势输入位置,属于目标应用热区的情况下,电子设备执行手势触控事件对应的目标应用软件中的第二功能。
应理解,电子设备重新分配冲突触控热区,生成临时的目标系统热区和目标应用热区。在显示目标页面的情况下,电子设备根据目标系统热区和目标应用热区,确定将手势触发事件分配给系统软件还是应用软件。
在本申请中,电子设备重新分配冲突触控热区,包括:将冲突触控热区全部划分为系统触控热区、将冲突触控热区全部划分为应用触控热区,或者,将冲突触控热区中的一部分划分为系统触控热区、将冲突触控热区的另一部分划分为应用触控热区。
如此,由于冲突触控热区为系统触控热区(应用触控热区)的一部分区域,重新分配冲突触控热区,无需占用更多的屏幕空间,通过对冲突触控热区的复用,提高屏幕空间的利用率。根据重新分配冲突触控热区的重新分配结果,判断手势触控事件的手势输入位置属于目标系统热区还是目标应用热区,将手势触发事件分配给系统软件或者应用软件,而不是,将手势触发事件固定分配给系统软件,使得对冲突触控热区的分配更灵活,既可能实现手势触发事件对应的系统软件的功能,又可能实现手势触发事件对应的应用软件的功能。另外,冲突触控热区为系统触控热区(应用触控热区)的一部分区域,用户无需记忆额外的触控热区,能够避免误操作,有利于实现手势触控事件对应的功能。
在第一方面的一种可实现方式中,在显示目标应用软件的目标页面之后,手势触控方法还包括:当满足第一预设条件,则电子设备根据目标应用软件对应的热区配置文件,确定系统软件的系统触控热区和目标页面的应用触控热区是否存在冲突触控热区。当不满足第一预设条件,则电子设备根据系统触控热区对应的屏幕显示区域,与应用触控热区对应的屏幕显示区域是否存在重合热区,确定系统软件的系统触控热区和目标页面的应用触控热区是否存在冲突触控热区。
其中,第一预设条件包括:预置软件列表中包括目标应用软件,或者,目标应用软件对应的冲突标识为预置标识;预置软件列表用于存储与系统软件的系统触控热区存在重合热区的应用软件;预置标识用于标记与系统软件的系统触控热区存在重合热区的应用软件。
需要说明的是,电子设备从服务器获取预置软件列表,并存储预置软件列表。电子设备判断是否满足第一预设条件的过程中,电子设备判断预置软件列表中是否包括目标应用软件。
其中,预置软件列表可以依据下载次数、使用时长、搜索次数或用户评价等排行依据,获取的排序靠前(如前10)的应用软件中,筛选的与系统软件的应用触控热区相比,存在冲突触控热区的应用软件。排 行依据可以是针对某个地区内所有用户进行统计得到的,还可以是针对某一时间段内的应用软件的使用情况进行统计得到的,还可以是针对某一特定年龄段的所有用户进行统计得到的,在本申请实施例中对预置软件列表的获取方法不做限定。
在本申请中,电子设备可以从云服务器中加载预置软件列表,或者在安装预置软件列表中的应用软件时,生成冲突标识。其中,冲突标识用于标识应用软件是否存储在预置软件列表中。
如此,通过预置软件列表或预置标识,标记与系统触控热区存在重合热区的应用软件,并通过目标应用软件是否属于预置软件列表,或者目标软件对应的冲突标识是否为预置标识,采用不同的判断方式,确定系统软件的系统触控热区和目标页面的应用触控热区是否存在冲突触控热区。如果采用根据目标应用软件对应的热区配置文件的判断方式,能够提高对目标应用软件的判断速度,如果采用根据系统触控热区和应用触控热区是否存在重合热区的判断方式,以使得是否存在冲突触控热区的确定结果,都是经过判断得到的,能够提高对目标页面的判断准确度。
在第一方面的一种可实现方式中,电子设备根据目标应用软件对应的热区配置文件,确定系统软件的系统触控热区和目标页面的应用触控热区是否存在冲突触控热区,还可以通过以下方式实现。首先,电子设备获取目标应用软件对应的热区配置文件。当热区配置文件中包括目标页面对应的热区配置参数,则电子设备确定系统软件的系统触控热区和目标页面的应用触控热区存在冲突触控热区。
其中,热区配置参数用于指示冲突触控热区的重新分配方式。
如此,通过查找热区配置文件中是否包括目标页面对应的热区配置参数,以确定系统软件的系统触控热区和目标页面的应用触控热区是否存在冲突触控热区,能够提高对目标应用软件的判断速度。
在第一方面的一种可实现方式中,电子设备获取应用软件对应的热区配置文件之前,手势触控方法还包括:接收服务器发送的目标应用软件对应的热区配置文件,在系统软件的文件存储位置,存储目标应用软件对应的热区配置文件。
其中,目标应用软件对应的热区配置文件用于存储至少一个冲突页面对应的热区配置参数;至少一个冲突页面中每个冲突页面为:目标应用软件的各个页面中,对应的应用触控热区与系统触控热区存在重合热区的页面;目标应用软件的各个页面中包括目标页面。
如此,服务器存储多个应用软件的热区配置文件,并将目标应用软件对应的热区配置文件发送至安装该目标应用软件的电子设备,即电子设备只需存储目标应用软件对应的热区配置文件,能够减少电子设备所需存储的数据量,节约系统资源。
在第一方面的一种可实现方式中,电子设备重新分配冲突触控热区,以确定系统软件的目标系统热区和目标页面的目标应用热区,还可以通过以下方式实现:根据热区配置文件中目标页面对应的热区配置参数,重新分配冲突触控热区,以确定系统软件的目标系统热区和目标页面的目标应用热区。
其中,目标页面对应的热区配置参数包括系统软件的目标系统热区,以及目标页面的目标应用热区。目标页面对应的热区配置参数的生成依据包括以下至少一项:系统触控热区、系统触控热区中的关键触控热区,系统软件的系统历史使用信息、应用触控热区和目标页面中的应用历史使用信息。关键触控热区用于保障系统软件能够正常运行,关键触控热区属于系统软件的目标系统热区。
其中,系统软件的历史使用信息可以包括以下至少一项:系统软件的系统功能触发次数、系统软件的系统触发频率。目标页面的历史使用信息可以包括以下至少一项:目标页面的应用功能触发次数、应用触发频率。
需要说明的是,电子设备将热区配置参数以可扩展标记语言xml形式保存,热区配置文件为标记扩展语言xml文件。
如此,考虑系统触控热区、系统触控热区中的关键触控热区、系统软件的系统历史使用信息、应用触控热区和目标页面中的应用历史使用信息,对于目标页面而言的各种可能情况,提供重新分配冲突触控热区的各种分配结果。由于冲突触控热区为系统触控热区(应用触控热区)的一部分区域,重新分配冲突触控热区,无需占用更多的屏幕空间,实现对冲突触控热区的复用,提高屏幕空间的利用率。依据系统软件的关键触控热区和历史使用信息,以及应用软件的历史使用信息,直接重新分配冲突触控热区,或者,生成热区配置文件后,再重新分配冲突触控热区,能够使得执行手势触发事件的目标软件,与用户的实际需求向贴合,从而实现手势触发事件对应的系统软件(应用软件)的功能。
在第一方面的一种可实现方式中,在本申请中目标页面对应的热区配置参数,包括以下任一项:目标系统热区包括:重合关键热区,以及系统触控热区中冲突触控热区以外的触控热区;目标应用热区包括:冲突触控热区中重合关键热区之外的触控热区,以及应用触控热区中冲突触控热区以外的触控热区;重合 关键热区为关键触控热区与冲突触控热区的重合热区。或者,目标系统热区为系统触控热区,目标应用热区为应用触控热区中冲突触控热区以外的触控热区。或者,目标系统热区为系统触控热区中冲突触控热区以外的触控热区,目标应用热区为应用触控热区。或者,目标系统热区包括:系统触控热区中冲突触控热区以外的触控热区,以及冲突触控热区中的第一触控热区;目标应用热区包括:应用触控热区中冲突触控热区以外的触控热区,以及,冲突触控热区中的第二触控热区。
其中,第一触控热区与第二触控热区的分配比例,可以与第一次数和第二次数的比例相对应,还可以与第一输入概率和第二输入概率的比例相对应。
值得说明的是,电子设备划分冲突触控热区的过程中,还可以根据临近原则,按照分配比例,将距离系统触控热区较近的触控热区划分第一触控热区,将距离应用触控热区较近的触控热区划分为第二触控热区。
如此,由于热区配置文件是依据系统软件的关键触控热区和系统软件的历史应用信息,以及应用软件的历史使用信息下确定的,因此根据热区配置文件重新分配冲突触控热区之后,能够最大程度符合用户的直观感受,用户对于进度条的控制不容易出现误触,在应用软件的目标应用热区能够实现控制进度条对的功能。根据服务器推送热区配置文件的方式,根据目标页面的应用触控热区和系统触控热区的重合情况,自动调整目标系统热区和目标应用热区,能够避免以高耦合方式修改热区配置文件,节约的应用软件的开发周期。同时,还能够保证电子设备接收到的手势触控事件,根据手势触控事件的手势输入位置,既可能执行系统软件中的第一功能,又可能执行应用软件中的第二功能。
在第一方面的一种可实现方式中,电子设备根据系统触控热区对应的屏幕显示区域,与应用触控热区对应的屏幕显示区域是否存在重合热区,确定系统软件的系统触控热区和目标页面的应用触控热区是否存在冲突触控热区,还可以通过以下方式实现。首先,电子设备通过预置应用程序编程接口,接收目标应用软件上报的目标页面的应用触控热区。接下来,当系统触控热区对应的屏幕显示区域,与应用触控热区对应的屏幕显示区域存在重合热区,确定系统软件的系统触控热区和目标页面的应用触控热区存在冲突触控热区。
其中,预置应用程序编程接口是指系统软件中为应用软件上报目标页面的应用触控热区预留的接口。
如此,在系统软件中为目标软件上报目标页面的应用触控区域设置预置应用程序编程接口,以使得系统软件能够及时获取应用触控区域,进而及时确定系统软件的系统触控热区和目标软件的应用触控热区是否存在冲突触控热区,以便于在接收手势触控事件后,能够及时将手势触控事件分配至系统软件或者应用软件。
在第一方面的一种可实现方式中,电子设备重新分配冲突触控热区,以确定系统软件的目标系统热区和目标页面的目标应用热区,还可以通过以下方式实现。当满足第二预设条件,则确定目标系统热区包括:重合关键热区,以及系统触控热区中冲突触控热区以外的触控热区;确定目标应用热区包括冲突触控热区中重合关键热区之外的触控热区,以及应用触控热区中冲突触控热区以外的触控热区。当不满足第二预设条件,则根据系统软件的系统历史使用信息和目标页面的应用历史使用信息,重新分配冲突触控热区,以确定系统软件的目标系统热区和目标页面的目标应用热区。
其中,第二预设条件包括:应用触控热区中包括关键触控热区,且关键触控热区与冲突触控热区存在重合关键热区;关键触控热区用于保障系统软件能够正常运行。
可以理解的是,电子设备根据系统软件的关键触控热区重新分配冲突触控热区过程中,电子设备可以将冲突触控热区中的非关键触控热区,临时让渡给应用软件使用,冲突触控热区中的关键触控热区,不能让渡给应用软件使用。也就是说,如果关键触控热区与冲突触控热区存在重合热区,那么分配冲突触控热区过程中,将关键触控热区与冲突触控热区的重合热区,确定为目标系统热区。
需要说明的是,为了保证系统软件能够正常运行,在系统触控热区中设置关键触控热区,关键触控热区是系统软件的预留触控热区。如果关键触控热区与冲突触控热区不存在重合热区,那么电子设备按照下述情况重新分配冲突触控热区。
如此,在应用触控热区中包括关键触控热区,且关键触控热区与冲突触控热区存在重合关键热区的情况下,重新分配冲突触控热区,一方面能够保障系统软件能够正常运行,另一方面能够将手势触发事件分配给系统软件或者应用软件,而不是,将手势触发事件固定分配给系统软件,使得对冲突触控热区的分配更灵活,既可能实现手势触发事件对应的系统软件的功能,又可能实现手势触发事件对应的应用软件的功能。
在第一方面的一种可实现方式中,系统历史使用信息包括以下至少一项:系统软件的系统功能触发次 数、系统软件的系统触发频率;应用历史使用信息包括以下至少一项:目标页面的应用功能触发次数、目标页面的应用触发频率。电子设备根据系统软件的系统历史使用信息和目标页面的应用历史使用信息,重新分配冲突触控热区,以确定系统软件的目标系统热区和目标页面的目标应用热区,还可以通过以下方式实现。当满足第三预设条件,或者满足第四预设条件,则电子设备确定目标系统热区为系统触控热区,电子设备确定目标应用热区为应用触控热区中冲突触控热区以外的触控热区。当满足第五预设条件,或者满足第六预设条件,则电子设备确定目标系统热区为系统触控热区中冲突触控热区以外的触控热区,电子设备确定目标应用热区为应用触控热区。
其中,第三预设条件为:系统功能触发次数与应用功能触发次数的差值大于第一预置数值。第四预设条件为:系统触发频率与应用触发频率的差值大于第三预置数值。第五预设条件为:应用功能触发次数与系统功能触发次数的差值大于第二预置数值。第六预设条件为:应用触发频率与系统触发频率的差值大于第四预置数值。
如此,考虑系统触控热区、系统触控热区中的关键触控热区、系统软件的系统历史使用信息、应用触控热区和目标页面中的应用历史使用信息,对于目标页面而言的各种可能情况,提供重新分配冲突触控热区的各种分配结果。由于冲突触控热区为系统触控热区(应用触控热区)的一部分区域,重新分配冲突触控热区,无需占用更多的屏幕空间,实现对冲突触控热区的复用,提高屏幕空间的利用率。依据系统软件的关键触控热区和历史使用信息,以及应用软件的历史使用信息,直接重新分配冲突触控热区,能够使得执行手势触发事件的目标软件,与用户的实际需求向贴合,从而实现手势触发事件对应的系统软件(应用软件)的功能。
在第一方面的一种可实现方式中,电子设备根据系统软件的系统历史使用信息和目标页面的应用历史使用信息,重新分配冲突触控热区,以确定系统软件的目标系统热区和目标页面的目标应用热区,还可以通过以下方式实现。当不满足第三预设条件,不满足第四预设条件,不满足第五预设条件,并且不满足第六预设条件,则电子设备确定目标系统热区包括:系统触控热区中冲突触控热区以外的触控热区,以及冲突触控热区中的第一触控热区,确定目标应用热区包括:应用触控热区中冲突触控热区以外的触控热区,以及,冲突触控热区中的第二触控热区。
如此,能够解决存在冲突触控热区的情况下,应用软件页面的相关功能难以响应、容易发生误触的问题,还能够兼顾实现应用软件的页面功能以及系统软件的基础功能。
在第一方面的一种可实现方式中,电子设备重新分配冲突触控热区,以确定系统软件的目标系统热区和目标页面的目标应用热区,还可以通过以下方式实现。首先,电子设备在目标页面上,提示系统触控热区、应用触控热区和冲突触控热区。然后,电子设备接收用户输入的热区设置操作。接下来,电子设备响应于热区设置操作,重新分配冲突触控热区,以确定系统软件的目标系统热区和目标页面的目标应用热区。
其中,热区设置操作用于由用户自定义设置目标系统热区和目标应用热区。
如此,使得对冲突触控热区的分配更灵活,既可能实现手势触发事件对应的系统软件的功能,又可能实现手势触发事件对应的应用软件的功能。
在第一方面的一种可实现方式中,电子设备接收用户输入的热区设置操作之前,电子设备在目标页面上,提示关键触控热区。
其中,关键触控热区用于保障系统软件能够正常运行,关键触控热区属于系统软件的目标系统热区。
如此,以便于提示应用触控热区中包括关键触控热区,以使得关键触控热区与冲突触控热区存在重合关键热区的情况下,重新分配冲突触控热区,一方面能够保障系统软件能够正常运行,另一方面能够对冲突触控热区的分配更灵活,既可能实现手势触发事件对应的系统软件的功能,又可能实现手势触发事件对应的应用软件的功能。
第二方面,提供了另一种手势触控装置,该装置包括:显示单元、确定单元和执行单元。显示单元,用于显示目标应用软件的目标页面。确定单元,用于当系统软件的系统触控热区和目标页面的应用触控热区存在冲突触控热区,则重新分配冲突触控热区,以确定系统软件的目标系统热区和目标页面的目标应用热区。执行单元,用于在检测到手势触控事件的手势输入位置,属于目标系统热区的情况下,执行手势触控事件对应的系统软件中的第一功能;执行单元,还用于在检测到手势触控事件的手势输入位置,属于目标应用热区的情况下,执行手势触控事件对应的目标应用软件中的第二功能。
第三方面,提供了一种电子设备,包括:存储器、一个或多个处理器;存储器和处理器耦合;其中,存储器中存储有计算机程序代码,计算机程序代码包括计算机指令,当计算机指令被处理器执行时,使得电子设备执行上述第一方面任一项所述的手势触控方法。
第四方面,提供了一种计算机可读存储介质,包括计算机指令,当计算机指令在电子设备上运行时,使得电子设备执行上述第一方面任一项所述的手势触控方法。
第五方面,提供了一种计算机程序产品,当计算机程序产品在计算机上运行时,使得计算机执行上述第一方面任一项所述的手势触控方法。
可以理解地,上述提供的第三方面所述的电子设备,第四方面所述的计算机可读存储介质,第五方面所述的计算机程序产品所能达到的有益效果,可参考第一方面、第二方面及其任一种可能的设计方式中的有益效果,此处不再赘述。
附图说明
图1为相关技术中的手势触控效果示意图;
图2为本申请实施例示出的一种电子设备的硬件结构示意图;
图3为本申请实施例示出的一种电子设备的软件结构示意图;
图4为本申请实施例示出的一种手势触控方法的架构示意图;
图5为本申请实施例示出的一种手势触控方法的流程示意图之一;
图6为本申请实施例示出的一种针对系统软件的手势触控效果示意图;
图7为本申请实施例示出的一种手势触控方法的流程示意图之二;
图8为本申请实施例示出的一种针对应用软件的手势触控效果示意图之一;
图9为本申请实施例示出的一种系统软件和应用软件的触控效果对比示意图;
图10为本申请实施例示出的一种热区分配及对应的手势触控效果示意图之一;
图11为本申请实施例示出的一种手势触控方法的流程示意图之三;
图12为本申请实施例示出的一种针对应用软件的手势触控效果示意图之二;
图13为本申请实施例示出的一种热区分配及对应的手势触控效果示意图之二;
图14为本申请实施例示出的一种手势触控装置的结构示意图;
图15为本申请实施例示出的另一种电子设备的结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。其中,在本申请的描述中,除非另有说明,“/”表示前后关联的对象是一种“或”的关系,例如,A/B可以表示A或B;本申请中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况,其中A,B可以是单数或者复数。并且,在本申请的描述中,除非另有说明,“多个”是指两个或多于两个。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b,或c中的至少一项(个),可以表示:a,b,c,a-b,a-c,b-c,或a-b-c,其中a,b,c可以是单个,也可以是多个。另外,为了便于清楚描述本申请实施例的技术方案,在本申请的实施例中,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分。本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。同时,在本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念,便于理解。
在触控热区冲突的场景下,如果电子设备检测到手势触控操作的手势输入位置属于冲突触控热区,并且,系统软件和应用软件都设置了手势触控操作对应的功能,那么需要判断根据系统软件对应的系统逻辑执行手势触控操作,还是根据应用软件对应的应用逻辑执行手势触控操作。示例性的,电子设备的系统软件的触控热区是全屏范围,应用软件(如视频播放软件)中的视频播放页面的触控热区也是全屏范围,即,系统软件和应用软件的视频播放页面符合触控热区冲突的场景。如果电子设备接收到的手势触控操作(左滑操作),那么根据系统软件对应的系统逻辑,实现左滑操作对应的功能:“回退”至上一页面,根据视频播放软件对应的应用逻辑,实现左滑操作对应的功能:播放上一个视频。当电子设备触发手势触发事件(接收到冲突触控热区的手势触控操作),将该手势触发事件分配给系统软件,无法实现应用软件中的手势触控事件对应的功能。
在第一种相关技术中,电子设备可以根据手势输入的开始位置,在满足预设的全面屏边缘位置阈值条件下执行用户设置的系统手势导航逻辑,否则执行当前应用的手势逻辑。如果当前应用的目标功能的触发区域位于全面屏边缘,那么只有电子设备接收的目标手势输入(从全面屏边缘开始的手势输入),才能触发 目标功能。然而,通过上述相关技术,对于用于触发目标功能的目标手势,电子设备经过判断确定目标手势输入满足预设的全面屏边缘位置阈值条件,执行用户设置的系统手势导航逻辑,不能执行当前应用的手势逻辑,仍然还会导致无法实现当前应用中的目标手势输入对应的目标功能。
在第二种相关技术中,针对应用软件界面的同一页面两种显示状态,如果存在冲突触控热区,电子设备可以在触屏设备的顶层应用的软件界面上,设定操控识别区,作为虚拟触摸板;根据触控屏上当前触摸输入位置,择一地执行与顶层应用对应的第一操控指令,或者与虚拟触摸板对应的第二操作指令。也就是说,针对相同的触摸输入对应不同的功能的情况,在屏幕上划出一块固定的,足够大的区域来承接不同的触摸输入。如此,在应用软件界面内的同一种触摸输入实现了不同的功能,用户不需要退出应用状态的当前编辑状态,可避免误操作,使用方便,提升了用户体验度。
示例性的,如图1中的所示,假设顶层应用软件为PPT演示应用,PPT演示应用的当前编辑状态为对第一页进行编辑。在显示PPT演示应用的第一页的情况下,虚拟触摸板范围内自右向左滑动手指,翻到PPT演示应用的第二页,无需接收退出当前编辑状态的操作,即可实现了向后翻页功能。
上述第二种相关技术中,通过设定操控识别区、执行第一操作控制指令和执行第二操作控制指令等应用软件内部程序的运行过程,实现应用软件中手势输入对应的不同功能,不涉及系统软件中手势输入对应的功能。结合上述第二种相关技术,设置虚拟触摸板和触控屏分别对应系统软件和应用软件,以解决同一触摸输入既能实现应用软件对应的功能,又能实现系统软件对应的功能的问题。然而,由于许多电子设备(如手机、智能手表等)的触摸屏大小有限,在不影响顶层应用正常功能的情况下,很难在屏幕上为虚拟触摸板划分固定位置,不利于实现手势触控对应的功能。况且,如果相同的触摸输入对应至少三种功能,根据上述第二种相关技术需要划出至少两个虚拟触摸板,那么用户需要记忆虚拟触摸板对应的功能,增加了误操作的可能性,不利于实现手势触控对应的功能。
为了避免由于电子设备的触摸屏大小有限,导致无法实现系统软件或应用软件中手势触控事件对应的功能的问题,本申请实施例中提供了一种手势触控方法。该方法中,首先确定系统软件的系统触控热区和应用软件的目标页面的应用触控热区相比是否存在冲突触控热区,如果存在则重新分配冲突触控热区,以确定系统软件的目标系统热区和目标页面的目标应用热区。然后,接收到手势触控事件,如果手势触控事件的手势输入位置属于目标系统热区,那么将手势触发事件分配给系统软件,执行系统软件对应的第一功能。如果手势触控事件的手势输入位置属于目标应用热区,那么将手势触发事件分配给应用软件,执行应用软件对应的第二功能。
在本申请实施例中,在预置软件列表包括应用软件对应的软件标识的情况下,确定系统软件和应用软件中的至少一个页面存在冲突热区,然后,获取应用软件对应的热区配置文件;在配置文件包括目标页面对应的热区配置参数的情况下,确定系统软件的系统触控热区和目标页面的应用触控热区相比存在冲突触控热区。在预置软件列表中不包括应用软件对应的软件标识的情况下,获取系统软件的系统触控热区,以及目标页面的应用触控热区;在系统触控热区对应的屏幕显示区域,与目标页面的应用触控热区对应的屏幕显示区域相比存在重合热区的情况下,确定系统软件的系统触控热区和目标页面的应用触控热区相比存在冲突触控热区。
在本申请实施例中,电子设备重新分配冲突触控热区,生成临时的目标系统热区和目标应用热区。在显示目标页面的情况下,电子设备根据目标系统热区和目标应用热区,确定将手势触发事件分配给系统软件还是应用软件。
在本申请实施例中,电子设备重新分配冲突触控热区,包括:将冲突触控热区全部划分为系统触控热区、将冲突触控热区全部划分为应用触控热区,或者,将冲突触控热区中的一部分划分为系统触控热区、将冲突触控热区的另一部分划分为应用触控热区。也就是说,系统软件的目标系统热区和目标页面的目标应用热区,可以为以下任一种情况。
在第一种情况下,目标系统热区为系统触控热区,目标应用热区为应用触控热区中冲突触控热区以外的触控热区。
在第二种情况下,目标系统热区为系统触控热区中冲突触控热区以外的触控热区,目标应用热区为应用触控热区。
在第三种情况下,目标系统热区包括:系统触控热区中冲突触控热区以外的触控热区,以及冲突触控热区中的第一触控热区属于系统触控热区。目标应用热区包括:应用触控热区中冲突触控热区以外的触控热区,以及,冲突触控热区中的第二触控热区。
需要说明的是,如果冲突触控热区可以被划分为第一触控热区和第二触控热区,那么在本申请实施例 中,对第一触控热区和第二触控热区的分配比例不做限定。
本申请实施例提供的手势触控方法,由于冲突触控热区为系统触控热区(应用触控热区)的一部分区域,重新分配冲突触控热区,无需占用更多的屏幕空间,通过对冲突触控热区的复用,提高屏幕空间的利用率。根据重新分配冲突触控热区的重新分配结果,判断手势触控事件的手势输入位置属于目标系统热区还是目标应用热区,将手势触发事件分配给系统软件或者应用软件,而不是,将手势触发事件固定分配给系统软件,使得对冲突触控热区的分配更灵活,既可能实现手势触发事件对应的系统软件的功能,又可能实现手势触发事件对应的应用软件的功能。另外,冲突触控热区为系统触控热区(应用触控热区)的一部分区域,用户无需记忆额外的触控热区,能够避免误操作,有利于实现手势触控事件对应的功能。
示例性的,该电子设备可以是手机、平板电脑、可穿戴设备、车载设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)等移动终端,本申请实施例对电子设备的具体类型不作任何限制。
本申请实施例提供的一种手势触控方法,可应用于电子设备中,请参考图2,其示出了电子设备100的硬件结构示意图。
如图2所示,电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,天线1,天线2,移动通信模块150,无线通信模块160,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。
可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。
电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本发明实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。图3是本发明实施例的电子设备100的软件结构示意图。
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android Runtime)和系统库,以及内核层。
应用程序层可以包括一系列应用程序包。
如图3所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视 频,短信息等应用程序。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
如图3所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。
电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。
Android Runtime包括核心库和虚拟机。Android Runtime负责安卓系统的调度和管理。
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。2D图形引擎是2D绘图的绘图引擎。
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。
基于图2和图3所示的电子设备100实现本申请实施例中的手势触控方法时,在触控热区冲突的场景下,示例性说明电子设备100软件以及硬件的工作流程。电子设备100通过外部存储器接口120、内部存储器121、天线1,天线2,移动通信模块150、无线通信模块160和SIM卡接口中的一种或多种,加载应用软件的安装文件。电子设备100在应用程序层运行系统软件和应用软件。电子设备100通过应用程序框架层获取系统软件的系统触控热区和应用软件的应用触控热区。电子设备100中的处理器110通过Android Runtime确定系统软件的系统触控热区和应用软件的目标页面的应用触控热区相比是否存在冲突触控热区,如果存在则重新分配冲突触控热区,以确定系统软件的目标系统热区和目标页面的目标应用热区。电子设备100通过应用程序框架层接收手势触控事件。在手势触控事件的手势输入位置属于目标系统热区的情况下,电子设备100中的处理器110通过Android Runtime将手势触发事件分配给系统软件,执行系统软件对应的第一功能。在手势触控事件的手势输入位置属于目标应用热区的情况下,电子设备100中的处理器110通过Android Runtime将手势触发事件分配给应用软件,执行应用软件对应的第二功能。电子设备100中的显示屏194用于显示系统软件对应的第一功能的功能页面,或者显示应用软件对应的第二功能的功能页面。
结合图3所示的电子设备的软件结构,如图4所示,本申请实施例的手势触控方法通过云服务器,以及,电子设备来实现。电子设备包括系统软件的应用程序层和应用程序框架层。
电子设备的应用程序层安装了属于预置软件列表的应用1、应用2和应用3,电子设备的应用程序层还安装了不属于预置软件列表的应用4、应用5和应用6。其中,预置软件列表为电子设备的系统软件对 应的软件列表,用于存储与电子设备的系统软件的系统触控热区存在重合热区的应用软件。
对于属于预置软件列表的应用软件,以应用1为例。在电子设备对应用1中第一页面进行页面启动的情况下,首先查找热区配置文件是否包含第一页面,如果热区配置文件包含第一页面,则根据热区配置文件重新分配冲突触控热区。
其中,热区配置文件用于存储冲突页面对应的热区配置参数,冲突页面为应用软件的各个页面中对应的应用触控热区与系统触控热区存在重合热区的页面。
其中,查找热区配置文件是否包含第一页面,即,确定第一页面是否为冲突页面。如果第一页面为冲突页面,那么第一页面的冲突触控热区需要重新配置。
需要说明的是,电子设备在安装应用1或更新应用1的过程中,将热区配置文件存储至电子设备系统软件中的应用程序框架层。热区配置文件可以是云服务器根据系统软件和应用软件的触控热区生成的,还可以是应用1的开发方存储至安装文件或更新文件中的,在本申请实施例中对热区配置文件的来源不做限定。
还需要说明的是,云服务器在生成更新热区配置文件,或者接收应用1的开发方发送的更新热区配置文件后,云服务器可以在不更新应用1的情况下将更新配置文件推送至电子设备,以便于电子设备存储的热区配置文件能够及时更新。
可以理解的是,本申请实施例的手势触控方法还可以通过服务器,以及,电子设备系统软件的应用程序层和应用程序框架层实现。服务器与云服务器类似,用于生成热区配置文件、生成更新热区配置文件、接收更新热区配置文件以及推送更新配置文件。
对于不属于预置软件列表的应用软件,以应用4为例。在电子设备对应用4中第二页面进行页面启动的情况下,电子设备获取第二页面的应用触控热区,判断第二页面的应用触控热区与系统软件的系统触控热区相比是否存在冲突触控热区,如果存在冲突触控热区,则自适应地重新配置冲突触控热区。
需要说明的是,电子设备的应用4可以通过预置应用程序编程接口将第二页面的应用触控热区上报至系统软件,电子设备的系统软件还可以在检测到启动应用4之后,通过预置应用程序编程接口获取第二页面的应用触控热区。
还需要说明的是,自适应地重新配置冲突触控热区的配置依据可以包括:第二页面的应用触控热区的历史使用信息,以及系统软件的系统触控热区的历史使用信息,系统软件的关键触控热区,以及通过人机交互界面接收的用户操作。
以下将以电子设备为手机为例,结合附图,对本申请实施例提供的手势触控方法进行说明。由于手机上依靠手势触控操作实现的功能越来越多,并且,手机可以识别的手势有限,系统软件中某一功能和应用软件中某一功能都可以通过某一个相同的手势触控操作触发。再者,由于手机的触控屏大小有限,还可能导致系统软件中某一功能的系统触控热区和应用软件中某一功能的应用触控热区相冲突(部分重合)。
例如,系统软件和应用软件都能响应于左滑操作,系统触控热区设置在电子设备的触控屏的侧边,应用触控热区也设置在电子设备的触控屏的侧边,系统软件和应用软件的触控热区相冲突,导致电子设备显示应用软件的情况下,响应于左滑操作,可能触发相冲突的系统软件对应的功能,或者应用软件对应的功能。
为了兼顾电子设备正在运行的应用软件和系统软件的冲突触控热区,使得电子设备能够区分响应冲突触控热区接收到的手势触控操作,如图5所示,该方法可以包括如下步骤S501-S504。
S501、电子设备启动目标应用软件的目标页面。
S502、当系统软件的系统触控热区和目标页面的应用触控热区存在冲突触控热区,电子设备重新分配冲突触控热区,以确定系统软件的目标系统热区和目标页面的目标应用热区。
S503、在检测到的手势触控事件的手势输入位置属于目标系统热区的情况下,电子设备执行手势触控事件对应的系统软件中的第一功能。
S504、在检测到的手势触控事件的手势输入位置属于目标应用热区的情况下,电子设备执行手势触控事件对应的目标应用软件中的第二功能。
在本申请实施例中,电子设备可以接收用户操作,启动目标应用软件的目标页面。电子设备可以在启动目标应用软件的目标页面之后,开始判断系统触控热区和目标页面的应用触控热区相比是否存在冲突触控热区。电子设备还可以在显示目标页面之后,开始判断系统触控热区和目标页面的应用触控热区相比是否存在冲突触控热区。在本申请实施例中,对判断是否存在冲突触控热区的时机不做限定。
在本申请实施例中,电子设备重新分配冲突触控热区,生成临时的目标系统热区和目标应用热区。在 显示目标页面的情况下,电子设备根据目标系统热区和目标应用热区,确定将手势触发事件分配给系统软件还是应用软件。电子设备显示目标应用软件的其他页面,或者退出目标应用软件之后,删除目标系统热区和目标应用热区的的热区分配信息。如果再次启动目标页面,那么电子设备重新执行上述步骤S502。
需要说明的是,目标系统热区和目标应用热区共同构成的屏幕显示区域,与系统触控热区和应用触控热区共同构成的屏幕显示区域相同。
在本申请实施例中,电子设备通过安装系统软件和应用软件,以使得电子设备能够实现定位、拍照、即时通话和播放视频等功能。
其中,系统软件是指控制和协调本身及外部设备,支持应用软件开发和运行的系统,是无需用户干预的各种程序的集合,主要功能是调度、监控和维护计算机系统;负责管理计算机系统中各种独立的硬件,使得它们可以协调工作。系统软件使得计算机使用者和其他软件将计算机当作一个整体而不需要顾及到底层每个硬件是如何工作的。
其中,应用软件与系统软件相对应,是用户可以使用的各种程序设计语言,以及用各种程序设计语言编制的应用程序的集合。应用软件可以是即时通信软件、购物软件、视频播放软件和办公软件等等,在本申请实施例中,对应用软件的类型不做限定。
在本申请实施例中,如图6中的(a1)所示,电子设备显示第一桌面页面,在第一桌面上显示多个应用软件的。电子设备接收到单指的“向下拖拽”手势触控操作,即,触发第一手势触控事件。如图6中的(a2)所示,系统软件的系统触控热区包括电子设备的触控屏的顶部区域。电子设备检测到第一手势触控事件的手势输入位置属于顶部区域。如图6中的(b1)所示,电子设备执行第一手势触控事件对应的系统软件中的功能(显示快捷设置菜单)。如图6中的(b2)所示,电子设备显示快捷设置菜单的情况下,系统软件的系统触控热区包括电子设备的触控屏的顶部区域。
需要说明的是,手势触控事件对应的手势操作,可以为以单指、双指、多指等手指手势方式,或指关节手势方式,进行轻滑、轻点、双轻点、拉近、按压、拖拽等手势操作。
在本申请实施例中,通常情况下,电子设备的触控屏显示系统软件的系统桌面,在系统桌面上显示应用软件的应用启动图标。在单击应用启动图标后,电子设备的触控屏显示应用软件的页面。如果电子设备显示该应用软件时电子设备中的页面,那么该应用软件为电子设备的顶层应用软件,即,正在运行的应用软件。
可以理解的是,电子设备显示目标页面后,电子设备接收到的手势触控事件,可能实现应用软件对应的功能,还可能实现系统软件对应的功能。
在一些实施例中,由于不同的应用软件的应用页面的应用触控热区可能不相同,因此,在每次启动应用软件之后,电子设备需要重新判断系统软件的系统触控热区和目标页面的应用触控热区是否存在冲突触控热区。
需要说明的是,启动目标应用软件之前,目标应用软件的运行状态可以为挂起状态,还可以为未运行状态。启动目标应用软件的目的在于,使得电子设备的顶层窗口显示的目标应用软件。
还需要说明的是,目标应用软件可能包括多个页面,多个页面中每个页面的应用触控热区可能相同,可能都不相同,可以可能不都相同,因此,电子设备判断多个页面中每个页面的应用触控热区与系统软件的系统触控热区相比,是否存在冲突触控热区。目标页面是目标应用软件的各个页面中的任一页面。
在本申请实施例中,电子设备当满足第一预设条件,则根据目标应用软件对应的热区配置文件,确定系统软件的系统触控热区和目标页面的应用触控热区是否存在冲突触控热区。电子设备当不满足第一预设条件,则根据系统触控热区对应的屏幕显示区域,与应用触控热区对应的屏幕显示区域是否存在重合热区,确定系统软件的系统触控热区和目标页面的应用触控热区是否存在冲突触控热区;
其中,第一预设条件包括:预置软件列表中包括目标应用软件,或者,目标应用软件对应的冲突标识为预置标识;预置软件列表用于存储与系统软件的系统触控热区存在热区冲突的应用软件;预置标识用于标记与系统软件的系统触控热区存在热区冲突的应用软件。
需要说明的是,电子设备从服务器获取预置软件列表,并存储预置软件列表。电子设备判断是否满足第一预设条件的过程中,电子设备判断预置软件列表中是否包括目标应用软件。
其中,预置软件列表可以依据下载次数、使用时长、搜索次数或用户评价等排行依据,获取的排序靠前(如前10)的应用软件中,筛选的与系统软件的应用触控热区相比,存在冲突触控热区的应用软件。排行依据可以是针对某个地区内所有用户进行统计得到的,还可以是针对某一时间段内的应用软件的使用情况进行统计得到的,还可以是针对某一特定年龄段的所有用户进行统计得到的,在本申请实施例中对预置 软件列表的获取方法不做限定。
在本申请实施例中,电子设备可以从云服务器中加载预置软件列表,或者在安装预置软件列表中的应用软件时,生成冲突标识。其中,冲突标识用于标识应用软件是否存储在预置软件列表中。
在一些实施例中,如果云服务器更新预置软件列表,那么电子设备可以采用接收更新的预置软件列表,或者,电子设备在更新预置软件列表中的应用软件时,生成冲突标识。
如此,通过预置软件列表或预置标识,标记与系统触控热区存在重合热区的应用软件,并通过目标应用软件是否属于预置软件列表,或者目标软件对应的冲突标识是否为预置标识,采用不同的判断方式,确定系统软件的系统触控热区和目标页面的应用触控热区是否存在冲突触控热区。如果采用根据目标应用软件对应的热区配置文件的判断方式,能够提高对目标应用软件的判断速度,如果采用根据系统触控热区和应用触控热区是否存在重合热区的判断方式,以使得是否存在冲突触控热区的确定结果,都是经过判断得到的,能够提高对目标页面的判断准确度。
在本申请实施例中,电子设备在预置软件列表中包括应用软件对应的软件标识的情况下,确定系统软件和应用软件中的至少一个页面存在冲突触控热区,然后,获取目标应用软件对应的热区配置文件;在热区配置文件中包括目标页面对应的热区配置参数的情况下,确定系统软件的系统触控热区和目标页面的应用触控热区相比存在冲突触控热区。如此,通过查找热区配置文件中是否包括目标页面对应的热区配置参数,以确定系统软件的系统触控热区和目标页面的应用触控热区是否存在冲突触控热区,能够提高对目标应用软件的判断速度。
在本申请实施例中,在预置软件列表中不包括存储应用软件对应的软件标识的情况下,获取系统软件的系统触控热区,以及目标页面的应用触控热区;在系统触控热区对应的屏幕显示区域,与目标页面的应用触控热区对应的屏幕显示区域相比存在重合区域的情况下,确定系统软件的系统触控热区和目标页面的应用触控热区相比存在冲突触控热区。
在一些实施例中,如果在预置软件列表中存储应用软件对应的软件标识,但是,目标应用软件对应的配置文件中未存储目标页面对应的热区配置参数,那么电子设备确定系统软件的系统触控热区和目标页面的应用触控热区相比不存在冲突触控热区。
在另一些实施例中,如果预置软件列表中不存储应用软件对应的软件标识,并且,系统触控热区对应的屏幕区域,与目标页面的应用触控热区对应的屏幕区域相比不存在重合区域,那么电子设备确定系统软件的系统触控热区和目标页面的应用触控热区相比不存在冲突触控热区。
在一些实施例中,在系统软件的系统触控热区和目标页面的应用触控热区相比不存在冲突触控热区的情况下,电子设备判断是否接收到手势触控事件,在检测到的手势触控事件的手势输入位置属于系统触控热区的情况下,电子设备执行手势触控事件对应的系统软件中的第一功能;在检测到的手势触控事件的手势输入位置属于应用触控热区的情况下,电子设备执行手势触控事件对应的应用软件中的第二功能。
在另一些实施例中,在系统软件的系统触控热区和目标页面的应用触控热区相比存在冲突触控热区的情况下,电子设备可以获取配置文件中存储目标页面对应的热区配置参数,然后,根据目标页面对应的热区配置参数,重新分配冲突触控热区,确定系统软件的目标系统热区和目标应用热区。其后,电子设备判断是否接收到手势触控事件,并根据手势触控事件的手势输入位置,响应手势触控事件对应的功能。
在一些实施例中,电子设备首次安装应用软件或者更新安装应用软件,如果应用软件属于系统软件对应的预置软件列表,那么电子设备可以加载并存储应用软件的热区配置文件。
具体的,电子设备接收服务器发送的目标应用软件对应的热区配置文件;在系统软件的文件存储位置,存储目标应用软件对应的热区配置文件。其中,目标应用软件对应的热区配置文件用于存储至少一个冲突页面对应的热区配置参数;至少一个冲突页面中每个冲突页面为:目标应用软件的各个页面中,对应的应用触控热区与系统触控热区存在重合热区的页面;目标应用软件的各个页面中包括目标页面。
如此,服务器存储多个应用软件的热区配置文件,并将目标应用软件对应的热区配置文件发送至安装该目标应用软件的电子设备,即电子设备只需存储目标应用软件对应的热区配置文件,能够减少电子设备所需存储的数据量,节约系统资源。
在另一些实施例中,云服务器在生成更新热区配置文件,或者接收更新热区配置文件后,云服务器将更新热区配置文件推送至电子设备,以便于电子设备存储的更新热区配置文件能够及时更新。
在再一些实施例中,电子设备周期性地向云服务器发送热区配置获取请求,服务器响应于热区配置获取请求向电子设备发送应用软件的更新热区配置文件。其中,热区配置获取请求用于请求获取应用软件的更新热区配置文件。
在应用软件存储在预置软件列表的情况下,如图7所示,电子设备读取应用软件对应的热区配置文件,如果热区配置文件包括目标页面对应的热区配置参数,则根据目标页面对应的热区配置参数重新分配冲突触控热区,确定系统软件的目标系统热区和目标应用热区。在检测到的手势触控事件的手势输入位置属于目标系统热区的情况下,电子设备将手势触控事件分发给系统软件,执行手势触控事件对应的系统软件中第一功能。在检测到的手势触控事件的手势输入位置属于目标应用热区的情况下,电子设备将手势触控事件分发给应用软件,执行手势触控事件对应的应用软件中第二功能。
在一些实施例中,如果热区配置文件不包括目标页面对应的热区配置参数,则电子设备确定系统软件的系统触控热区和目标页面的应用触控热区相比不存在冲突触控热区。电子设备判断是否接收到手势触控事件,在检测到的手势触控事件的手势输入位置属于系统触控热区的情况下,电子设备执行手势触控事件对应的系统软件中的第一功能;在检测到的手势触控事件的手势输入位置属于应用触控热区的情况下,电子设备执行手势触控事件对应的应用软件中的第二功能。
在一些实施例中,电子设备重新分配冲突触控热区,以确定系统软件的目标系统热区和目标页面的目标应用热区,包括:根据热区配置文件中目标页面对应的热区配置参数,重新分配冲突触控热区,以确定系统软件的目标系统热区和目标页面的目标应用热区。
其中,目标页面对应的热区配置参数包括系统软件的目标系统热区,以及目标页面的目标应用热区;目标页面对应的热区配置参数的生成依据包括以下至少一项:系统触控热区、系统触控热区中的关键触控热区,系统软件的系统历史使用信息、应用触控热区和目标页面中的应用历史使用信息;关键触控热区用于保障系统软件能够正常运行,关键触控热区属于系统软件的目标系统热区。
其中,目标页面对应的热区分配参数还可以包括页面标识,用于标记热区配置文件中目标页面对应的热区分配参数。页面标识类型可以为页面名称、页面路径或者随机编号,在本申请实施例中对冲突页面的页面标识类型不做限定。
需要说明的是,电子设备将热区配置参数以可扩展标记语言xml形式保存,热区配置文件为标记扩展语言xml文件。
在一些实施例中,电子设备或云服务器可以随机分配冲突触控热区,根据随机分配结果确定热区分配参数。电子设备或云服务器还可以根据预置的分配规则,分配冲突触控热区,并根据分配结果确定热区分配参数。
其中,系统软件的历史使用信息可以包括以下至少一项:系统软件的系统功能触发次数、系统软件的系统触发频率。目标页面的历史使用信息可以包括以下至少一项:目标页面的应用功能触发次数、应用触发频率。
示例性的,电子设备按照预置时间间隔,以及,系统软件和应用软件在电子设备上的运行情况,周期性地统计系统软件的历史使用信息和冲突页面的历史使用信息,重新确定热区分配参数。
示例性的,电子设备统计系统软件的历史使用信息和冲突页面的历史使用信息,并将两种历史使用信息上报至云服务器,云服务器根据多个电子设备上报的两种历史使用信息,进行数据汇总,根据均值、方差、标准差、正态分布等数理统计方法,得到系统软件的汇总历史使用信息和冲突页面的汇总历史使用信息,然后,根据系统软件的汇总历史使用信息和冲突页面的汇总历史使用信息,确定冲突页面的热区分配参数。
在本申请实施例中,目标页面对应的热区配置参数,包括以下任一项:目标系统热区包括:重合关键热区,以及系统触控热区中冲突触控热区以外的触控热区;目标应用热区包括:冲突触控热区中重合关键热区之外的触控热区,以及应用触控热区中冲突触控热区以外的触控热区;重合关键热区为关键触控热区与冲突触控热区的重合热区;或者,目标系统热区为系统触控热区,目标应用热区为应用触控热区中冲突触控热区以外的触控热区;或者,目标系统热区为系统触控热区中冲突触控热区以外的触控热区,目标应用热区为应用触控热区;或者,目标系统热区包括:系统触控热区中冲突触控热区以外的触控热区,以及冲突触控热区中的第一触控热区;目标应用热区包括:应用触控热区中冲突触控热区以外的触控热区,以及,冲突触控热区中的第二触控热区。
在第一种情况下,如果系统功能触发次数与应用功能触发次数的差值大于第一预置数值,则电子设备确定目标系统热区为系统触控热区,确定目标应用热区为应用触控热区中冲突触控热区以外的触控热区。如果应用功能触发次数与系统功能触发次数的差值大于第二预置数值,则确定目标系统热区为系统触控热区中冲突触控热区以外的触控热区,确定目标应用热区为应用触控热区。
在第二种情况下,如果不满足上述第一种情况,如果系统触发频率与应用触发频率的差值大于第三预 置数值,则确定目标系统热区为系统触控热区,确定目标应用热区为应用触控热区中冲突触控热区以外的触控热区。如果应用触发频率与系统触发频率的差值大于第四预置数值,则确定目标系统热区为系统触控热区中冲突触控热区以外的触控热区,确定目标应用热区为应用触控热区。
在第三种情况下,如果不满足上述第一种情况或第二种情况,那么电子设备确定目标系统热区包括:系统触控热区中冲突触控热区以外的触控热区,以及冲突触控热区中的第一触控热区;确定目标应用热区包括:应用触控热区中冲突触控热区以外的触控热区,以及,冲突触控热区中的第二触控热区。
其中,第一触控热区与第二触控热区的分配比例,可以与第一次数和第二次数的比例相对应,还可以与第一输入概率和第二输入概率的比例相对应。值得说明的是,分配比例中的前项和后项都不为0。电子设备划分冲突触控热区的过程中,还可以根据临近原则,按照分配比例,将距离系统触控热区较近的触控热区划分第一触控热区,将距离应用触控热区较近的触控热区划分为第二触控热区。需要说明的是,为了确保系统软件和应用软件中的功能都可以实现,在系统触控热区和应用触控热区完全相同的情况下,那么直接采用上述第三种情况分配冲突触控热区中的第一触控热区与第二触控热区。
还需要说明的是,在电子设备的触控屏上不显示系统触控热区、应用触控热区、冲突触控热区、目标系统热区和目标应用热区。在接收到手势触控事件的情况下,确定手势触控事件的手势输入位置所属的触控热区,并根据不同触控热区对应的响应逻辑,执行手势触控事件对应系统软件或应用软件中的功能。
可以理解的是,电子设备的触控屏上划分的系统触控热区和应用触控热区,电子设备可以根据电子设备的触控屏的大小确定,还可以设置为固定尺寸,还可以根据页面显示内容确定,在本申请实施例中对此不做限定。上述冲突触控热区、目标系统热区和目标应用热区,是根据系统触控热区和应用触控热区的区域大小对应确定的。
如此,考虑系统触控热区、系统触控热区中的关键触控热区、系统软件的系统历史使用信息、应用触控热区和目标页面中的应用历史使用信息,对于目标页面而言的各种可能情况,提供重新分配冲突触控热区的各种分配结果。由于冲突触控热区为系统触控热区(应用触控热区)的一部分区域,重新分配冲突触控热区,无需占用更多的屏幕空间,实现对冲突触控热区的复用,提高屏幕空间的利用率。依据系统软件的关键触控热区和历史使用信息,以及应用软件的历史使用信息,直接重新分配冲突触控热区,或者,生成热区配置文件后,再重新分配冲突触控热区,能够使得执行手势触发事件的目标软件,与用户的实际需求向贴合,从而实现手势触发事件对应的系统软件(应用软件)的功能。
示例性的,在图6中的(a1)的基础上,如图8中的(a1)所示,电子设备显示第一桌面页面,在第一桌面上显示应用软件“某视频”的应用启动图标,接收用户输入的点击操作,点击操作用于点击应用软件“某视频”的应用启动图标。与图8中的(a1)所示的第一桌面页面相对应,如图8中的(a2)所示,系统软件的系统触控热区,包括电子设备的触控屏的左侧边热区和右侧边热区。如图8中的(b1)所示,电子设备响应于点击操作,启动显示应用软件“某视频”的“关注”页面(目标页面)。与图8中的(b1)所示的“关注”页面相对应,如图8中的(b2)所示,电子设备的触控屏上进度条对应的显示区域为:“关注”页面的应用触控热区,能够实现“关注”页面中调整播放进度的功能。需要说明的是,对于电子设备而言,无论当前显示第一桌面页面,还是显示“关注”页面(目标页面),电子设备的系统软件的系统触控热区相同。
如果电子设备不执行本申请提供的手势触控方法,在图8中的(b1)显示的“关注”页面的基础上,如图9中的(a1)所示,在“关注”页面播放“运动”视频的过程中,电子设备接收到单指的“向左拖拽”手势触控操作,即,触发第二手势触控事件。如图9中的(a2)所示,第二手势触控事件的手势输入位置属于系统触控热区。电子设备响应于第二手势触控事件,如图9中的(a3)所示,电子设备执行第二手势触控事件对应的系统软件中的功能(显示使用频率较高的应用软件的应用启动图标)。如图9中的(b1)所示,在“关注”页面播放“运动”视频的过程中,电子设备接收到单指的“向左拖拽”手势触控操作,即,触发第三手势触控事件。如图9中的(b2)所示,第三手势触控事件的手势输入位置属于应用触控热区。电子设备可以响应于用户输入的第三手势触控事件,如图9中的(b3)所示,电子设备执行第三手势触控事件对应的应用软件中的功能(调整视频播放进度)。
如果电子设备执行本申请提供的手势触控方法,在图8中的(b1)显示的“关注”页面的基础上,如图10中(a1)所示,“在关注”页面播放“运动”视频的过程中,在未重新分配冲突触控热区的情况下,电子设备接收到单指的“向左拖拽”手势触控操作,即,触发第四手势触控事件。如图10中(a2)所示,第四手势触控事件的手势输入位置可能属于系统触控热区,还可能属于应用触控热区。如图10中(a3)所示,电子设备播放“运动”视频,同时,显示指示信息,用于指示暂时不响应手势触控事件,如,无法响应手势,稍后重新输入手势等。
在重新分配冲突触控热区之后,如图10中(b1)所示,“在关注”页面继续播放“运动”视频。比较图8中的(a2)所示的系统触控热区,以及图8中的(b2)所示的应用触控热区,如图10中(b2)所示,电子设备比较系统触控热区和“关注”页面的应用触控热区,确定存在冲突触控热区,具体的,应用触控热区与系统触控热区中重合的左侧边热区中的一部分触控热区和右侧边热区中的一部分触控热区为冲突触控热区。
如图10中(c1)所示,在“关注”页面播放“运动”视频的过程中,电子设备接收到单指的“向左拖拽”手势触控操作,即,触发第五手势触控事件。电子设备根据应用软件“某视频”对应的热区配置文件,获取“关注”页面对应的热区配置参数,重新分配冲突触控热区,确定目标系统热区为左侧边热区和右侧边热区中冲突触控热区以外的触控热区,如图10中的(c2)所示,第五手势触控事件的手势输入位置属于目标系统热区。电子设备可以响应于用户输入的第五手势触控事件,如图10中的(c3)所示,电子设备执行第五手势触控事件系统软件中的功能(显示使用频率较高的应用软件的应用启动图标)。
如图10中(d1)所示,在“关注”页面播放“运动”视频的过程中,电子设备接收到单指的“向左拖拽”手势触控操作,即,触发第六手势触控事件。电子设备根据应用软件“某视频”对应的热区配置文件,获取“关注”页面对应的热区配置参数,重新分配冲突触控热区,确定目标应用热区为电子设备的触控屏上进度条对应的显示区域,如图10中的(d2)所示,第六手势触控事件的手势输入位置属于应用触控热区。电子设备可以响应于用户输入的第六手势触控事件,如图10中的(d3)所示,电子设备执行第六手势触控事件对应的应用软件中的功能(调整视频播放进度)。
如此,由于热区配置文件是依据系统软件的关键触控热区和系统软件的历史应用信息,以及应用软件的历史使用信息下确定的,因此根据热区配置文件重新分配冲突触控热区之后,能够最大程度符合用户的直观感受,用户对于进度条的控制不容易出现误触,在应用软件的目标应用热区能够实现控制进度条对的功能。根据服务器推送热区配置文件的方式,根据目标页面的应用触控热区和系统触控热区的重合情况,自动调整目标系统热区和目标应用热区,能够避免以高耦合方式修改热区配置文件,节约的应用软件的开发周期。同时,还能够保证电子设备接收到的手势触控事件,根据手势触控事件的手势输入位置,既可能执行系统软件中的第一功能,又可能执行应用软件中的第二功能。
在应用软件不属于预置软件列表的情况下,如图11所示,首先,电子设备通过预置应用程序编程接口(是系统软件提供的接口),接收目标应用软件上报的目标页面的应用触控热区。然后,电子设备获取系统软件的系统触控热区,判断系统触控热区对应的屏幕显示区域和目标页面的应用触控热区对应的屏幕显示区域是否存在重合热区,确定系统软件的系统触控热区和目标软件的应用触控热区是否存在冲突触控热区。如此,在系统软件中为目标软件上报目标页面的应用触控区域设置预置应用程序编程接口,以使得系统软件能够及时获取应用触控区域,进而及时确定系统软件的系统触控热区和目标软件的应用触控热区是否存在冲突触控热区,以便于在接收手势触控事件后,能够及时将手势触控事件分配至系统软件或者应用软件。
如果不存在冲突触控热区,则维持原有的系统触控热区和原有的目标页面的应用触控热区保持不变。根据手势触控事件对应的手势输入位置属于系统触控热区或者属于应用触控热区,将手势触控事件分配至系统软件或者应用软件。
如果存在冲突触控热区则根据系统软件的关键触控热区重新分配冲突触控热区,确定系统软件的目标系统热区和目标应用热区。在显示目标页面的情况下,电子设备根据目标系统热区和目标应用热区,将手势触控事件分配至系统软件或者应用软件。
在一些实施例中,在显示目标页面之后,如果电子设备显示应用软件对应的其他页面,那么电子设备恢复原有的系统触控热区和原有的目标页面的应用触控热区,其后,通过预置系统接口获取其他页面的应用触控热区,并再次重新分配冲突触控热区。如果电子设备退出该应用软件,那么电子设备恢复原有的系统触控热区和原有的目标页面的应用触控热区。
在本申请实施例中,无论采用热区配置文件提前分配目标系统热区和目标应用热区的分配方式,还是采用根据系统触控热区和应用触控热区即时分配的方式,对冲突触控热区进行重新分配的原理是类似的,可参考上文中确定热区分配参数的具体描述,理解如何根据系统软件的关键触控热区重新分配冲突触控热区,确定系统软件的目标系统热区和目标应用热区。
可以理解的是,由于应用软件对应的应用场景较多,很难针对应用软件所有页面的应用触控热区进行逐一判断冲突触控热区,并确定热区配置文件。因此,电子设备在运行应用程序的过程中,将当前显示的页面确定为目标页面,电子设备每次显示目标页面,都判断系统触控热区和目标页面的应用触控热区是否存在冲突触控热区。
在本申请实施例中,当满足第二预设条件,则电子设备确定目标系统热区包括:重合关键热区,以及系统触控热区中冲突触控热区以外的触控热区;确定目标应用热区包括冲突触控热区中重合关键热区之外的触控热区,以及应用触控热区中冲突触控热区以外的触控热区。当不满足第二预设条件,则电子设备根据系统软件的系统历史使用信息和目标页面的应用历史使用信息,重新分配冲突触控热区,以确定系统软件的目标系统热区和目标页面的目标应用热区。
其中,第二预设条件包括:应用触控热区中包括关键触控热区,且关键触控热区与冲突触控热区存在重合关键热区;关键触控热区用于保障系统软件能够正常运行。
可以理解的是,电子设备根据系统软件的关键触控热区重新分配冲突触控热区过程中,电子设备可以将冲突触控热区中的非关键触控热区,临时让渡给应用软件使用,冲突触控热区中的关键触控热区,不能让渡给应用软件使用。也就是说,如果关键触控热区与冲突触控热区存在重合热区,那么分配冲突触控热区过程中,将关键触控热区与冲突触控热区的重合热区,确定为目标系统热区。
示例性的,电子设备按照预置时间间隔,以及,系统软件和应用软件在电子设备上的运行情况,周期性地统计系统软件的历史使用信息和冲突页面的历史使用信息。
需要说明的是,为了保证系统软件能够正常运行,在系统触控热区中设置关键触控热区,关键触控热区是系统软件的预留触控热区。如果关键触控热区与冲突触控热区不存在重合热区,那么电子设备按照下述情况重新分配冲突触控热区。如果关键触控热区与冲突触控热区存在重合热区,那么分配冲突触控热区过程中,将关键触控热区与冲突触控热区的重合热区,确定为目标系统热区,然后将冲突触控热区中的非关键触控热区,按照下述情况重新分配冲突触控热区。
如此,在应用触控热区中包括关键触控热区,且关键触控热区与冲突触控热区存在重合关键热区的情况下,重新分配冲突触控热区,一方面能够保障系统软件能够正常运行,另一方面能够将手势触发事件分配给系统软件或者应用软件,而不是,将手势触发事件固定分配给系统软件,使得对冲突触控热区的分配更灵活,既可能实现手势触发事件对应的系统软件的功能,又可能实现手势触发事件对应的应用软件的功能。
对于不满足第二预设条件的情况,电子设备根据系统软件的系统历史使用信息和目标页面的应用历史使用信息,重新分配冲突触控热区,以确定系统软件的目标系统热区和目标页面的目标应用热区。可以包括以下几种情况:
其中,系统软件的历史使用信息可以包括以下至少一项:系统软件的系统功能触发次数、系统软件的系统触发频率。目标页面的历史使用信息可以包括以下至少一项:目标页面的应用功能触发次数、应用触发频率。
可以理解的是,系统功能触发次数是指在显示目标页面的情况下,系统软件对应的功能被触发的次数。系统触发频率是指在显示目标页面的情况下,在单位时间内,系统软件对应的功能被触发的频率。类似的,应用功能触发次数是指在显示目标页面的情况下,应用软件对应的功能被触发的次数。应用触发频率是指在显示目标页面的情况下,在单位时间内应用软件对应的功能被触发的频率。
在第一种情况下,当满足第三预设条件,或者满足第四预设条件,则电子设备确定目标系统热区为系统触控热区,电子设备确定目标应用热区为应用触控热区中冲突触控热区以外的触控热区。第三预设条件为:系统功能触发次数与应用功能触发次数的差值大于第一预置数值,第四预设条件为:系统触发频率与应用触发频率的差值大于第三预置数值。
在第二种情况下,当满足第五预设条件,或者满足第六预设条件,则确定目标系统热区为系统触控热区中冲突触控热区以外的触控热区,确定目标应用热区为应用触控热区。第五预设条件为:应用功能触发次数与系统功能触发次数的差值大于第二预置数值,第六预设条件为:应用触发频率与系统触发频率的差值大于第四预置数值。
在第三种情况下,当不满足第三预设条件,不满足第四预设条件,不满足第五预设条件,并且不满足第六预设条件,则确定目标系统热区包括:系统触控热区中冲突触控热区以外的触控热区,以及冲突触控热区中的第一触控热区,确定目标应用热区包括:应用触控热区中冲突触控热区以外的触控热区,以及,冲突触控热区中的第二触控热区。
其中,第一触控热区与第二触控热区的分配比例,可以与第一次数和第二次数的比例相对应,还可以与第一输入概率和第二输入概率的比例相对应。值得说明的是,分配比例中的前项和后项都不为0。电子设备划分冲突触控热区的过程中,还可以根据临近原则,按照分配比例,将距离系统触控热区较近的触控热区划分第一触控热区,将距离应用触控热区较近的触控热区划分为第二触控热区。
示例性的,如果电子设备执行本申请提供的手势触控方法,在图6中的(a1)的基础上,如图12中的(a1)所示,电子设备显示第一桌面页面,在第一桌面上显示应用软件“资源消息”的应用启动图标,接收用户输入的点击操作,点击操作用于点击应用软件“资源消息”的应用启动图标。与图12中的(a1)所示的第一桌面页面相对应,如图12中的(a2)所示,系统软件的系统触控热区,包括电子设备的触控屏的左侧边热区和右侧边热区。如图12中的(b1)所示,电子设备显示应用软件“资源消息”的“首页”页面(目标页面),展示虚拟资源信息。与图12中的(b1)所示的“首页”页面相对应,如图12中的(b2)所示,首页”页面的应用触控热区为:当前页面的顶部窗口区域,能够实现切换“首页”页面的顶部窗口的显示内容。
如果电子设备执行本申请提供的手势触控方法,在图12中的(b1)的基础上,如图13中的(a1)所示在“首页”页面展示虚拟资源信息。比较图12中的(a2)所示的系统触控热区,以及图12中的(b2)所示的应用触控热区,如图13中(a2)所示,电子设备比较系统触控热区和“首页”页面的应用触控热区,确定存在冲突触控热区,具体的,应用触控热区与系统触控热区中重合的左侧边热区中的一部分触控热区和右侧边热区中的一部分触控热区为冲突触控热区。
如图13中(b1)所示,在“首页”页面展示虚拟资源信息的过程中,电子设备接收到单指的“向左拖拽”手势触控操作,即,触发第七手势触控事件。电子设备根据系统软件的关键触控热区重新分配冲突触控热区,确定目标系统热区为左侧边热区和右侧边热区中冲突触控热区以外的触控热区,如图13中的(b2)所示,第七手势触控事件的手势输入位置属于目标系统热区。电子设备可以响应于用户输入的第七手势触控事件,如图13中的(b3)所示,电子设备执行第七手势触控事件系统软件中的功能(显示使用频率较高的应用软件的应用启动图标)。
如图13中(c1)所示,在“首页”页面展示虚拟资源信息的过程中,电子设备接收到单指的“向左拖拽”手势触控操作,即,触发第八手势触控事件。电子设备根据系统软件的关键触控热区重新分配冲突触控热区,确定目标应用热区为电子设备的触控屏显示的当前页面的顶部窗口区域,如图13中的(c2)所示,第八手势触控事件的手势输入位置属于应用触控热区。电子设备可以响应于用户输入的第八手势触控事件,如图13中的(c3)所示,电子设备执行第八手势触控事件对应的应用软件中的功能(切换“首页”页面的顶部窗口的显示内容)。
如此,能够解决存在冲突触控热区的情况下,应用软件页面的相关功能难以响应、容易发生误触的问题,还能够兼顾实现应用软件的页面功能以及系统软件的基础功能。
在一些实施例中,在应用软件不属于预置软件列表的情况下,电子设备还可以在目标页面上,提示系统触控热区、应用触控热区和冲突触控热区;接收用户输入的热区设置操作;响应于热区设置操作,重新分配冲突触控热区,以确定系统软件的目标系统热区和目标页面的目标应用热区。其中,热区设置操作用于由用户自定义设置目标系统热区和目标应用热区。
如此,使得对冲突触控热区的分配更灵活,既可能实现手势触发事件对应的系统软件的功能,又可能实现手势触发事件对应的应用软件的功能。
在另一些实施例中,在目标页面上,提示关键触控热区,关键触控热区用于保障系统软件能够正常运行,关键触控热区属于系统软件的目标系统热区。
如此,以便于提示应用触控热区中包括关键触控热区,以使得关键触控热区与冲突触控热区存在重合关键热区的情况下,重新分配冲突触控热区,一方面能够保障系统软件能够正常运行,另一方面能够对冲突触控热区的分配更灵活,既可能实现手势触发事件对应的系统软件的功能,又可能实现手势触发事件对应的应用软件的功能。
在本申请实施例中,无论应用软件是否属于预置软件列表,总体来说,重新分配冲突触控热区,也就是,将冲突触控热区全部划分为系统触控热区、将冲突触控热区全部划分为应用触控热区,或者,将冲突触控热区中的一部分划分为系统触控热区、将冲突触控热区的另一部分划分为应用触控热区。
本申请实施例提供的手势触控方法,由于冲突触控热区为系统触控热区(应用触控热区)的一部分区域,重新分配冲突触控热区,无需占用更多的屏幕空间,实现对冲突触控热区的复用,提高屏幕空间的利用率。根据重新分配冲突触控热区的重新分配结果,判断手势触控事件的手势输入位置属于目标系统热区还是目标应用热区,将手势触发事件分配给系统软件或者应用软件,而不是,将手势触发事件固定分配给系统软件,使得对冲突触控热区的分配更灵活,既可能实现手势触发事件对应的系统软件的功能,又可能实现手势触发事件对应的应用软件的功能。而且,依据系统软件的关键触控热区和历史使用信息,以及应用软件的历史使用信息,直接重新分配冲突触控热区,或者,生成热区配置文件后,再重新分配冲突触控热区,能够使得执行手势触发事件的目标软件,与用户的实际需求向贴合,从而实现手势触发事件对应的 系统软件(应用软件)的功能。另外,冲突触控热区为系统触控热区(应用触控热区)的一部分区域,用户无需记忆额外的触控热区,能够避免误操作,有利于实现手势触控事件对应的功能。
需要说明的是,上述各个场景中的实施例在方案本身不矛盾的情况下,可以进行任意的组合。
本申请实施例中还提供了一种手势触控装置,参见图14,该第一设备包括启动单元1401、确定单元1402和执行单元1403;
其中,启动单元1401,用于启动应用软件的目标页面。例如执行前述实施例中的步骤S501。
确定单元1402,用于当系统软件的系统触控热区和目标页面的应用触控热区存在冲突触控热区,重新分配冲突触控热区,以确定系统软件的目标系统热区和目标页面的目标应用热区。例如执行前述实施例中的步骤S502。
执行单元1403,用于在检测到的手势触控事件的手势输入位置属于目标系统热区的情况下,执行手势触控事件对应的系统软件中的第一功能。例如执行前述实施例中的步骤S503。
执行单元1403,还用于在检测到的手势触控事件的手势输入位置属于目标应用热区的情况下,执行手势触控事件对应的目标应用软件中的第二功能。例如执行前述实施例中的步骤S504。
可以理解的是,为了实现上述功能,电子设备包含了执行各个功能相应的硬件和/或软件模块。结合本文中所公开的实施例描述的各示例的算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。本领域技术人员可以结合实施例对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
本实施例可以根据上述方法示例对电子设备进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块可以采用硬件的形式实现。需要说明的是,本实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
本申请实施例还提供一种电子设备,如图15所示,该电子设备可以包括一个或者多个处理器1001、存储器1002和通信接口1003。
其中,存储器1002、通信接口1003与处理器1001耦合。例如,存储器1002、通信接口1003与处理器1001可以通过总线1004耦合在一起。
其中,通信接口1003用于与其他设备进行数据传输。存储器1002中存储有计算机程序代码。计算机程序代码包括计算机指令,当计算机指令被处理器1001执行时,使得电子设备执行本申请实施例中的投屏方法。
其中,处理器1001可以是处理器或控制器,例如可以是中央处理器(Central Processing Unit,CPU),通用处理器,数字信号处理器(Digital Signal Processor,DSP),专用集成电路(Application-Specific Integrated Circuit,ASIC),现场可编程门阵列(Field Programmable Gate Array,FPGA)或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本公开内容所描述的各种示例性的逻辑方框,模块和电路。所述处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等等。
其中,总线1004可以是外设部件互连标准(Peripheral Component Interconnect,PCI)总线或扩展工业标准结构(Extended Industry Standard Architecture,EISA)总线等。上述总线1004可以分为地址总线、数据总线、控制总线等。为便于表示,图15中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。
本申请实施例还提供一种计算机可读存储介质,该计算机存储介质中存储有计算机程序代码,当上述处理器执行该计算机程序代码时,电子设备执行上述方法实施例中的相关方法步骤。
本申请实施例还提供了一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述方法实施例中的相关方法步骤。
其中,本申请提供的电子设备、计算机存储介质或者计算机程序产品均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。
通过以上实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例 如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上内容,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。

Claims (15)

  1. 一种手势触控方法,其特征在于,所述方法包括:
    显示目标应用软件的目标页面;
    当系统软件的系统触控热区和所述目标页面的应用触控热区存在冲突触控热区,则重新分配所述冲突触控热区,以确定所述系统软件的目标系统热区和所述目标页面的目标应用热区;
    在检测到手势触控事件的手势输入位置,属于所述目标系统热区的情况下,执行所述手势触控事件对应的所述系统软件中的第一功能;
    在检测到手势触控事件的手势输入位置,属于所述目标应用热区的情况下,执行所述手势触控事件对应的所述目标应用软件中的第二功能。
  2. 根据权利要求1所述的方法,其特征在于,所述显示目标应用软件的目标页面之后,所述方法还包括:
    当满足第一预设条件,则根据所述目标应用软件对应的热区配置文件,确定所述系统软件的系统触控热区和所述目标页面的应用触控热区是否存在所述冲突触控热区;
    当不满足所述第一预设条件,则根据所述系统触控热区对应的屏幕显示区域,与所述应用触控热区对应的屏幕显示区域是否存在重合热区,确定所述系统软件的系统触控热区和所述目标页面的应用触控热区是否存在所述冲突触控热区;
    其中,所述第一预设条件包括:预置软件列表中包括所述目标应用软件,或者,所述目标应用软件对应的冲突标识为预置标识;所述预置软件列表用于存储与所述系统软件的系统触控热区存在重合热区的应用软件;所述预置标识用于标记与所述系统软件的系统触控热区存在重合热区的应用软件。
  3. 根据权利要求2所述的方法,其特征在于,所述根据所述目标应用软件对应的热区配置文件,确定所述系统软件的系统触控热区和所述目标页面的应用触控热区是否存在所述冲突触控热区,包括:
    获取所述目标应用软件对应的热区配置文件;
    当所述热区配置文件中包括所述目标页面对应的热区配置参数,则确定所述系统软件的系统触控热区和所述目标页面的应用触控热区存在所述冲突触控热区;
    其中,所述热区配置参数用于指示所述冲突触控热区的重新分配方式。
  4. 根据权利要求3所述的方法,其特征在于,所述获取所述应用软件对应的热区配置文件之前,所述方法还包括:
    接收服务器发送的所述目标应用软件对应的热区配置文件;
    在所述系统软件的文件存储位置,存储所述目标应用软件对应的热区配置文件;
    其中,所述目标应用软件对应的热区配置文件用于存储至少一个冲突页面对应的热区配置参数;所述至少一个冲突页面中每个冲突页面为:所述目标应用软件的各个页面中,对应的应用触控热区与所述系统触控热区存在重合热区的页面;所述目标应用软件的各个页面中包括所述目标页面。
  5. 根据权利要求4所述的方法,其特征在于,所述重新分配所述冲突触控热区,以确定所述系统软件的目标系统热区和所述目标页面的目标应用热区,包括:
    根据所述热区配置文件中所述目标页面对应的热区配置参数,重新分配所述冲突触控热区,以确定所述系统软件的目标系统热区和所述目标页面的目标应用热区;
    其中,所述目标页面对应的热区配置参数包括所述系统软件的目标系统热区,以及所述目标页面的目标应用热区;
    所述目标页面对应的热区配置参数的生成依据包括以下至少一项:所述系统触控热区、所述系统触控热区中的关键触控热区,所述系统软件的系统历史使用信息、所述应用触控热区和所述目标页面中的应用历史使用信息;
    所述关键触控热区用于保障所述系统软件能够正常运行,所述关键触控热区属于所述系统软件的目标系统热区。
  6. 根据权利要求5所述的方法,其特征在于,所述目标页面对应的热区配置参数,包括以下任一项:
    所述目标系统热区包括:重合关键热区,以及所述系统触控热区中所述冲突触控热区以外的触控热区;所述目标应用热区包括:所述冲突触控热区中所述重合关键热区之外的触控热区,以及所述应用触控热区中所述冲突触控热区以外的触控热区;所述重合关键热区为所述关键触控热区与所述冲突触控热区的重合热区;
    或者,所述目标系统热区为所述系统触控热区,所述目标应用热区为所述应用触控热区中所述冲突触 控热区以外的触控热区;
    或者,所述目标系统热区为所述系统触控热区中所述冲突触控热区以外的触控热区,所述目标应用热区为所述应用触控热区;
    或者,所述目标系统热区包括:所述系统触控热区中所述冲突触控热区以外的触控热区,以及所述冲突触控热区中的第一触控热区;所述目标应用热区包括:所述应用触控热区中所述冲突触控热区以外的触控热区,以及,所述冲突触控热区中的第二触控热区。
  7. 根据权利要求2所述的方法,其特征在于,所述根据所述系统触控热区对应的屏幕显示区域,与所述应用触控热区对应的屏幕显示区域是否存在重合热区,确定所述系统软件的系统触控热区和所述目标页面的应用触控热区是否存在所述冲突触控热区,包括:
    通过预置应用程序编程接口,接收所述目标应用软件上报的所述目标页面的应用触控热区;
    当所述系统触控热区对应的屏幕显示区域,与所述应用触控热区对应的屏幕显示区域存在重合热区,确定所述系统软件的系统触控热区和所述目标页面的应用触控热区存在所述冲突触控热区。
  8. 根据权利要求2或7所述的方法,其特征在于,所述重新分配所述冲突触控热区,以确定所述系统软件的目标系统热区和所述目标页面的目标应用热区,包括:
    当满足第二预设条件,则确定所述目标系统热区包括:重合关键热区,以及所述系统触控热区中所述冲突触控热区以外的触控热区;确定所述目标应用热区包括所述冲突触控热区中所述重合关键热区之外的触控热区,以及所述应用触控热区中所述冲突触控热区以外的触控热区;
    当不满足所述第二预设条件,则根据所述系统软件的系统历史使用信息和所述目标页面的应用历史使用信息,重新分配所述冲突触控热区,以确定所述系统软件的目标系统热区和所述目标页面的目标应用热区;
    其中,所述第二预设条件包括:所述应用触控热区中包括关键触控热区,且所述关键触控热区与所述冲突触控热区存在所述重合关键热区;所述关键触控热区用于保障所述系统软件能够正常运行。
  9. 根据权利要求8所述的方法,其特征在于,所述系统历史使用信息包括以下至少一项:所述系统软件的系统功能触发次数、所述系统软件的系统触发频率;所述应用历史使用信息包括以下至少一项:所述目标页面的应用功能触发次数、所述目标页面的应用触发频率;
    所述根据所述系统软件的系统历史使用信息和所述目标页面的应用历史使用信息,重新分配所述冲突触控热区,以确定所述系统软件的目标系统热区和所述目标页面的目标应用热区,包括:
    当满足第三预设条件,或者满足第四预设条件,则确定所述目标系统热区为所述系统触控热区,确定所述目标应用热区为所述应用触控热区中所述冲突触控热区以外的触控热区,所述第三预设条件为:所述系统功能触发次数与所述应用功能触发次数的差值大于第一预置数值,所述第四预设条件为:所述系统触发频率与所述应用触发频率的差值大于第三预置数值;
    当满足第五预设条件,或者满足第六预设条件,则确定所述目标系统热区为所述系统触控热区中所述冲突触控热区以外的触控热区,确定所述目标应用热区为所述应用触控热区,所述第五预设条件为:所述应用功能触发次数与所述系统功能触发次数的差值大于第二预置数值,所述第六预设条件为:所述应用触发频率与所述系统触发频率的差值大于第四预置数值。
  10. 根据权利要求9所述的方法,其特征在于,所述根据所述系统软件的系统历史使用信息和所述目标页面的应用历史使用信息,重新分配所述冲突触控热区,以确定所述系统软件的目标系统热区和所述目标页面的目标应用热区,还包括:
    当不满足第三预设条件,不满足所述第四预设条件,不满足所述第五预设条件,并且不满足所述第六预设条件,则确定所述目标系统热区包括:所述系统触控热区中所述冲突触控热区以外的触控热区,以及所述冲突触控热区中的第一触控热区,确定所述目标应用热区包括:所述应用触控热区中所述冲突触控热区以外的触控热区,以及,所述冲突触控热区中的第二触控热区。
  11. 根据权利要求1所述的方法,其特征在于,所述重新分配所述冲突触控热区,以确定所述系统软件的目标系统热区和所述目标页面的目标应用热区,包括:
    在所述目标页面上,提示所述系统触控热区、所述应用触控热区和所述冲突触控热区;
    接收用户输入的热区设置操作;
    响应于所述热区设置操作,重新分配所述冲突触控热区,以确定所述系统软件的目标系统热区和所述目标页面的目标应用热区。
  12. 根据权利要求11所述的方法,其特征在于,所述接收用户输入的热区设置操作之前,所述方法还 包括:
    在所述目标页面上,提示关键触控热区,所述关键触控热区用于保障所述系统软件能够正常运行,所述关键触控热区属于所述系统软件的目标系统热区。
  13. 一种电子设备,其特征在于,包括:存储器、一个或多个处理器;所述存储器与所述处理器耦合;其中,所述存储器中存储有计算机程序代码,所述计算机程序代码包括计算机指令,当所述计算机指令被所述处理器执行时,使得所述电子设备执行如权利要求1-12任一项所述的手势触控方法。
  14. 一种计算机可读存储介质,其特征在于,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如权利要求1-12任一项所述的手势触控方法。
  15. 一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如权利要求1-12任一项所述的手势触控方法。
PCT/CN2023/128743 2022-11-15 2023-10-31 手势触控方法及电子设备 WO2024104161A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211429756.9 2022-11-15
CN202211429756.9A CN118051133A (zh) 2022-11-15 2022-11-15 手势触控方法及电子设备

Publications (1)

Publication Number Publication Date
WO2024104161A1 true WO2024104161A1 (zh) 2024-05-23

Family

ID=91047120

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/128743 WO2024104161A1 (zh) 2022-11-15 2023-10-31 手势触控方法及电子设备

Country Status (2)

Country Link
CN (1) CN118051133A (zh)
WO (1) WO2024104161A1 (zh)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106445376A (zh) * 2016-08-30 2017-02-22 北京小米移动软件有限公司 一种网页的操作方法及装置
CN112905296A (zh) * 2021-03-31 2021-06-04 读书郎教育科技有限公司 一种解决全面屏手势导航与应用逻辑冲突的系统及方法
CN113608610A (zh) * 2021-07-14 2021-11-05 荣耀终端有限公司 交互控制方法、电子设备及系统
WO2021254318A1 (zh) * 2020-06-18 2021-12-23 华为技术有限公司 终端设备及其手势操作方法和介质
CN114201075A (zh) * 2021-12-14 2022-03-18 深圳市闪联信息技术有限公司 一种触屏设备及其相同的触摸输入功能冲突的解决方法
WO2022206681A1 (zh) * 2021-03-30 2022-10-06 华为技术有限公司 一种窗口的显示方法以及相关装置

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106445376A (zh) * 2016-08-30 2017-02-22 北京小米移动软件有限公司 一种网页的操作方法及装置
WO2021254318A1 (zh) * 2020-06-18 2021-12-23 华为技术有限公司 终端设备及其手势操作方法和介质
WO2022206681A1 (zh) * 2021-03-30 2022-10-06 华为技术有限公司 一种窗口的显示方法以及相关装置
CN112905296A (zh) * 2021-03-31 2021-06-04 读书郎教育科技有限公司 一种解决全面屏手势导航与应用逻辑冲突的系统及方法
CN113608610A (zh) * 2021-07-14 2021-11-05 荣耀终端有限公司 交互控制方法、电子设备及系统
CN114201075A (zh) * 2021-12-14 2022-03-18 深圳市闪联信息技术有限公司 一种触屏设备及其相同的触摸输入功能冲突的解决方法

Also Published As

Publication number Publication date
CN118051133A (zh) 2024-05-17

Similar Documents

Publication Publication Date Title
US11803451B2 (en) Application exception recovery
WO2021159922A1 (zh) 卡片显示方法、电子设备及计算机可读存储介质
US11853820B2 (en) Cross-process communication method, apparatus, and device
WO2021057868A1 (zh) 一种界面切换方法及电子设备
CN110300328B (zh) 一种视频播放控制方法、装置及可读存储介质
WO2018045934A1 (zh) 应用进程的管理方法和终端设备
CN111225108A (zh) 一种通信终端及负屏界面的卡片显示方法
CN110633032B (zh) 终端设备的图标显示方法及装置
EP4123446A1 (en) Thread management method and apparatus
CN114138139B (zh) 应用程序卡片的管理方法、电子设备及介质
WO2023016012A9 (zh) 一种信息显示方法及电子设备
CN111124219A (zh) 一种通信终端及负屏界面的卡片显示方法
EP4095723B1 (en) Permission reuse method, permission reuse-based resource access method, and related device
WO2019128571A1 (zh) 资源管理方法、装置、移动终端及计算机可读存储介质
WO2022179249A1 (zh) 功能页面显示方法及电子设备
WO2022052677A1 (zh) 界面显示方法及电子设备
WO2024104161A1 (zh) 手势触控方法及电子设备
US20230139886A1 (en) Device control method and device
CN112825536A (zh) 电子终端及后台卡片显示方法
CN116661670B (zh) 管理手势导航窗口的方法、电子设备及存储介质
WO2024037346A1 (zh) 页面管理方法及电子设备
WO2024104131A1 (zh) 一种多窗口场景下的窗口获焦方法、设备及系统
WO2024032037A1 (zh) 未读消息通知的处理方法、电子设备及存储介质
CN115061758B (zh) 应用的显示方法、终端、电子设备以及存储介质
WO2023020339A1 (zh) 界面显示方法及电子设备