技术领域technical field
本发明涉及通信技术领域,尤其涉及一种滑动控制方法和移动终端。The present invention relates to the field of communication technologies, in particular to a sliding control method and a mobile terminal.
背景技术Background technique
在用户界面中,滑动控制是最为常用的一种交互设计,例如:主页面可通过左右滑动控制翻页,视频播放应用程序可以通过上下滑动增减音量,从屏幕的最上方往下滑动可以弹出下拉菜单等。目前,移动终端基本都具备下拉和上拉菜单功能,然而,用户在操作下拉或上拉菜单的过程中经常有误操作情况的发生,例如:用户在玩游戏或观看视频的过程中,想要通过滑动操作触发下拉菜单,但由于在操作时需要触摸到屏幕,从而容易误触发屏幕特定区域的命令或其他虚拟按键,产生用户不需要的动作或功能。可见,现有移动终端采用的滑动控制方法存在触发成功率较低的问题。In the user interface, sliding control is the most commonly used interactive design. For example, the main page can be turned by sliding left and right, the video playback application can increase and decrease the volume by sliding up and down, and the pop-up can be displayed by sliding down from the top of the screen. drop down menu etc. At present, mobile terminals basically have the functions of pull-down and pull-up menus. However, users often have misoperations in the process of operating pull-down or pull-up menus. For example, when a user wants to The drop-down menu is triggered by a sliding operation, but since the screen needs to be touched during the operation, it is easy to accidentally trigger commands or other virtual buttons in a specific area of the screen, resulting in actions or functions that the user does not need. It can be seen that the sliding control method adopted by the existing mobile terminal has the problem of low triggering success rate.
发明内容Contents of the invention
本发明实施例提供一种滑动控制方法和移动终端,以解决现有移动终端采用的滑动控制方法存在触发成功率较低的问题。Embodiments of the present invention provide a sliding control method and a mobile terminal, so as to solve the problem that the triggering success rate of the conventional sliding control method adopted by the mobile terminal is low.
第一方面,本发明实施例提供一种滑动控制方法,应用于移动终端,所述移动终端的Home键为触摸按键,所述方法包括:In the first aspect, an embodiment of the present invention provides a sliding control method, which is applied to a mobile terminal, where the Home key of the mobile terminal is a touch key, and the method includes:
通过所述移动终端的屏幕的预设区域检测第一触摸操作,以及通过所述Home键检测第二触摸操作,其中,所述预设区域为所述屏幕上与所述Home键的距离最近的区域;Detecting the first touch operation through a preset area of the screen of the mobile terminal, and detecting the second touch operation through the Home button, wherein the preset area is the closest distance to the Home button on the screen area;
判断所述第一触摸操作的检测时间与所述第二触摸操作的检测时间之差是否在预设时间范围内;judging whether the difference between the detection time of the first touch operation and the detection time of the second touch operation is within a preset time range;
若所述第一触摸操作的检测时间与所述第二触摸操作的检测时间之差在所述预设时间范围内,则确定所述移动终端检测到目标滑动操作;If the difference between the detection time of the first touch operation and the detection time of the second touch operation is within the preset time range, it is determined that the mobile terminal has detected a target sliding operation;
根据预设的滑动操作与事件的对应关系,执行与所述目标滑动操作对应的目标事件。According to the preset correspondence between sliding operations and events, the target event corresponding to the target sliding operation is executed.
第二方面,本发明实施例还提供一种移动终端,所述移动终端的Home键为触摸按键,所述移动终端包括:In the second aspect, the embodiment of the present invention also provides a mobile terminal, the Home key of the mobile terminal is a touch key, and the mobile terminal includes:
检测模块,用于通过所述移动终端的屏幕的预设区域检测第一触摸操作,以及通过所述Home键检测第二触摸操作,其中,所述预设区域为所述屏幕上与所述Home键的距离最近的区域;A detection module, configured to detect a first touch operation through a preset area of the screen of the mobile terminal, and detect a second touch operation through the Home button, wherein the preset area is the the nearest region of the key;
判断模块,用于判断所述第一触摸操作的检测时间与所述第二触摸操作的检测时间之差是否在预设时间范围内;A judging module, configured to judge whether the difference between the detection time of the first touch operation and the detection time of the second touch operation is within a preset time range;
确定模块,用于若所述第一触摸操作的检测时间与所述第二触摸操作的检测时间之差在所述预设时间范围内,则确定所述移动终端检测到目标滑动操作;A determining module, configured to determine that the mobile terminal has detected a target sliding operation if the difference between the detection time of the first touch operation and the detection time of the second touch operation is within the preset time range;
第一执行模块,用于根据预设的滑动操作与事件的对应关系,执行与所述目标滑动操作对应的目标事件。The first execution module is configured to execute the target event corresponding to the target sliding operation according to the preset correspondence between the sliding operation and the event.
第三方面,本发明实施例还提供一种移动终端,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现本发明实施例中的滑动控制方法中的步骤。In a third aspect, an embodiment of the present invention also provides a mobile terminal, including: a memory, a processor, and a computer program stored on the memory and operable on the processor, and the processor implements the present invention when executing the computer program Steps in the sliding control method in the embodiment.
第四方面,本发明实施例还提供一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现本发明实施例中的滑动控制方法中的步骤。In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the steps in the sliding control method in the embodiment of the present invention are implemented.
本发明实施例中,移动终端的Home键为触摸按键,通过所述移动终端的屏幕的预设区域检测第一触摸操作,以及通过所述Home键检测第二触摸操作,其中,所述预设区域为所述屏幕上与所述Home键的距离最近的区域;判断所述第一触摸操作的检测时间与所述第二触摸操作的检测时间之差是否在预设时间范围内;若所述第一触摸操作的检测时间与所述第二触摸操作的检测时间之差在所述预设时间范围内,则确定所述移动终端检测到目标滑动操作;根据预设的滑动操作与事件的对应关系,执行与所述目标滑动操作对应的目标事件。这样,所述移动终端可以结合所述屏幕的预设区域和所述Home键来检测用户的滑动操作,并根据用户的滑动操作执行相应的目标事件,从而可以降低用户在滑动操作时因误触碰屏幕上特定区域的命令或其他虚拟按键而产生误操作的可能,进而达到提高所述滑动控制方法的触发成功率的目的。In the embodiment of the present invention, the Home button of the mobile terminal is a touch button, the first touch operation is detected through the preset area of the screen of the mobile terminal, and the second touch operation is detected through the Home button, wherein the preset The area is the area closest to the Home button on the screen; judging whether the difference between the detection time of the first touch operation and the detection time of the second touch operation is within a preset time range; if the If the difference between the detection time of the first touch operation and the detection time of the second touch operation is within the preset time range, it is determined that the mobile terminal has detected a target sliding operation; according to the correspondence between the preset sliding operation and the event relation, execute the target event corresponding to the target sliding operation. In this way, the mobile terminal can detect the user's sliding operation in combination with the preset area of the screen and the Home button, and execute the corresponding target event according to the user's sliding operation, thereby reducing the risk of accidental touches caused by the user's sliding operation. Touching commands or other virtual keys in a specific area on the screen may cause misoperation, thereby achieving the purpose of improving the triggering success rate of the sliding control method.
附图说明Description of drawings
为了更清楚地说明本发明实施例的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only some of the present invention. Embodiments, for those of ordinary skill in the art, other drawings can also be obtained according to these drawings without paying creative labor.
图1是本发明实施例提供的一种滑动控制方法的流程示意图;FIG. 1 is a schematic flowchart of a sliding control method provided by an embodiment of the present invention;
图2是本发明实施例提供的一种移动终端屏幕的预设区域的位置示意图;FIG. 2 is a schematic diagram of the position of a preset area of a mobile terminal screen provided by an embodiment of the present invention;
图3是本发明实施例提供的另一种移动终端屏幕的预设区域的位置示意图;Fig. 3 is a schematic diagram of the location of another preset area of the mobile terminal screen provided by an embodiment of the present invention;
图4是本发明实施例提供的另一种滑动控制方法的流程示意图;FIG. 4 is a schematic flowchart of another sliding control method provided by an embodiment of the present invention;
图5是本发明实施例提供的目标向下滑动操作的示意图;Fig. 5 is a schematic diagram of a target sliding operation provided by an embodiment of the present invention;
图6是本发明实施例提供的目标向上滑动操作的示意图;Fig. 6 is a schematic diagram of an upward sliding operation of a target provided by an embodiment of the present invention;
图7是本发明实施例提供的一种第一预设区域和第二预设区域的位置示意图;Fig. 7 is a schematic diagram of the positions of a first preset area and a second preset area provided by an embodiment of the present invention;
图8是本发明实施例提供的一种移动终端的结构示意图;FIG. 8 is a schematic structural diagram of a mobile terminal provided by an embodiment of the present invention;
图9是本发明实施例提供的另一种移动终端的结构示意图;FIG. 9 is a schematic structural diagram of another mobile terminal provided by an embodiment of the present invention;
图10是本发明实施例提供的另一种移动终端的结构示意图;FIG. 10 is a schematic structural diagram of another mobile terminal provided by an embodiment of the present invention;
图11是本发明实施例提供的另一种移动终端的结构示意图;FIG. 11 is a schematic structural diagram of another mobile terminal provided by an embodiment of the present invention;
图12是本发明实施例提供的另一种移动终端的结构示意图;FIG. 12 is a schematic structural diagram of another mobile terminal provided by an embodiment of the present invention;
图13是本发明实施例提供的另一种移动终端的结构示意图;FIG. 13 is a schematic structural diagram of another mobile terminal provided by an embodiment of the present invention;
图14是本发明实施例提供的另一种移动终端的结构示意图。Fig. 14 is a schematic structural diagram of another mobile terminal provided by an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
请参阅图1,图1是本发明实施例提供的一种滑动控制方法的流程示意图,应用于移动终端,所述移动终端的Home键为触摸按键,如图1所示,所述方法包括以下步骤:Please refer to FIG. 1. FIG. 1 is a schematic flowchart of a sliding control method provided by an embodiment of the present invention, which is applied to a mobile terminal, and the Home button of the mobile terminal is a touch button. As shown in FIG. 1, the method includes the following step:
步骤101、通过所述移动终端的屏幕的预设区域检测第一触摸操作,以及通过所述Home键检测第二触摸操作,其中,所述预设区域为所述屏幕上与所述Home键的距离最近的区域。Step 101: Detect a first touch operation through a preset area of the screen of the mobile terminal, and detect a second touch operation through the Home button, wherein the preset area is the area between the screen and the Home button the nearest area.
上述预设区域为所述屏幕上与所述Home键的距离最近的区域,例如:所述预设区域可以为如图2或图3所示的A区域,其中,B区域为所述Home键对应的区域。由于本发明实施例是结合所述屏幕和所述Home键来检测用户的目标滑动操作,故所述预设区域设为所述屏幕上与所述Home键的距离最近的区域,这样,用户只需要在所述预设区域和所述Home键上连续滑动便可触发目标事件,而无需从所述屏幕的顶端滑向所述屏幕的底端或从所述屏幕的底端滑向所述屏幕的顶端,从而可以减少误操作的发生。The aforementioned preset area is the area closest to the Home button on the screen, for example: the preset area can be area A as shown in Figure 2 or Figure 3, wherein area B is the Home button the corresponding area. Since the embodiment of the present invention combines the screen and the Home key to detect the user's target sliding operation, the preset area is set as the area closest to the Home key on the screen, so that the user only needs to Continuous sliding on the preset area and the Home button is required to trigger the target event without sliding from the top of the screen to the bottom of the screen or from the bottom of the screen to the screen to reduce the occurrence of misuse.
若所述移动终端的屏幕采用的是电容式触摸屏,则上述通过所述移动终端的屏幕的预设区域检测第一触摸操作可以是通过检测所述屏幕的预设区域的电压值是否产生变化,若所述屏幕的预设区域的电压值产生了变化,则可以确定检测到所述第一触摸操作。当用户在所述屏幕的预设区域触摸时,被触摸的位置的电压值便会产生变化,从而可以检测到所述第一触摸操作。If the screen of the mobile terminal adopts a capacitive touch screen, the above-mentioned detection of the first touch operation through the preset area of the screen of the mobile terminal may be by detecting whether the voltage value of the preset area of the screen changes, If the voltage value of the preset area of the screen changes, it can be determined that the first touch operation is detected. When the user touches a preset area of the screen, the voltage value of the touched position will change, so that the first touch operation can be detected.
本发明实施例中,所述Home键为触摸按键,即通过所述Home键可以感应到用户的触摸操作,所述Home键用于感应用户的按压或触摸操作以进入预设的主页界面。所述Home键可以是电容式触摸按键,也可以是能够检测指纹的指纹按键。这样,当用户通过手指在所述Home键上触摸时,所述移动终端可以检测到所述Home键上电压信号的变化,或者通过所述Home键检测到用户的指纹图像,从而可以通过所述Home键检测到所述第二触摸操作。In the embodiment of the present invention, the Home button is a touch button, that is, a user's touch operation can be sensed through the Home button, and the Home button is used to sense the user's press or touch operation to enter a preset homepage interface. The Home button may be a capacitive touch button, or a fingerprint button capable of detecting fingerprints. In this way, when the user touches the Home button with a finger, the mobile terminal can detect the change of the voltage signal on the Home button, or detect the user's fingerprint image through the Home button, so that the The Home key detects the second touch operation.
该步骤中,通过所述屏幕的预设区域检测所述第一触摸操作,以及通过所述Home键检测所述第二触摸操作,这样,所述移动终端可以结合所述屏幕的预设区域和所述Home键来检测用户的触摸操作是否为目标滑动操作,以达到减少误操作发生的可能的目的。In this step, the first touch operation is detected through the preset area of the screen, and the second touch operation is detected through the Home key, so that the mobile terminal can combine the preset area of the screen with the The Home button is used to detect whether the user's touch operation is a target sliding operation, so as to reduce the possibility of misoperation.
步骤102、判断所述第一触摸操作的检测时间与所述第二触摸操作的检测时间之差是否在预设时间范围内。Step 102, judging whether the difference between the detection time of the first touch operation and the detection time of the second touch operation is within a preset time range.
上述第一触摸操作的检测时间可以理解为所述移动终端检测到所述第一触摸操作的时间,上述第二触摸操作的检测时间可以理解为所述移动终端检测到所述第二触摸操作的时间,上述预设时间范围可以是预先设定的,例如:所述预设时间范围为0~T秒之间,且所述预设时间范围可以理解为目标滑动操作中,所述第一触摸操作的检测时间与所述第二触摸操作的检测时间所允许的时间间隔范围。The detection time of the above-mentioned first touch operation can be understood as the time when the mobile terminal detects the first touch operation, and the detection time of the above-mentioned second touch operation can be understood as the time when the mobile terminal detects the second touch operation time, the above preset time range can be preset, for example: the preset time range is between 0 and T seconds, and the preset time range can be understood as the target sliding operation, the first touch The detection time of the operation and the allowable time interval range between the detection time of the second touch operation.
故该步骤中,需判断所述第一触摸操作的检测时间与所述第二触摸操作的检测时间之差是否在所述预设时间范围内,以判断用户的触摸操作是否是连惯的滑动操作,从而可以根据判断的结果确定用户的触摸操作是否为目标滑动操作。Therefore, in this step, it is necessary to determine whether the difference between the detection time of the first touch operation and the detection time of the second touch operation is within the preset time range, so as to determine whether the user’s touch operation is a continuous sliding operation, so that it can be determined whether the user's touch operation is a target sliding operation according to the judgment result.
步骤103、若所述第一触摸操作的检测时间与所述第二触摸操作的检测时间之差在所述预设时间范围内,则确定所述移动终端检测到目标滑动操作。Step 103: If the difference between the detection time of the first touch operation and the detection time of the second touch operation is within the preset time range, determine that the mobile terminal has detected a target sliding operation.
根据步骤103的判断结果,若所述第一触摸操作的检测时间与所述第二触摸操作的检测时间之差在所述预设时间范围内,则可以确定所述移动终端检测到所述目标滑动操作,其中,所述目标滑动操作可以为目标向下滑动操作或者目标向上滑动操作。这样,该步骤可以根据所述第一触摸操作与所述第二触摸操作的检测时间差确定用户的触摸操作是否为所述目标滑动操作,进而可以根据所述目标滑动操作确定所述移动终端需要执行的目标事件。According to the judgment result of step 103, if the difference between the detection time of the first touch operation and the detection time of the second touch operation is within the preset time range, it can be determined that the mobile terminal has detected the target A slide operation, wherein the target slide operation may be a target slide operation down or a target slide up operation. In this way, this step can determine whether the user’s touch operation is the target sliding operation according to the detection time difference between the first touch operation and the second touch operation, and then can determine according to the target sliding operation that the mobile terminal needs to perform target event.
需要说明的是,若所述第一触摸操作的检测时间与所述第二触摸操作的检测时间之差不在所述预设时间范围内,则确定用户的触摸操作不符合所述目标滑动操作的条件,此时,所述移动终端不会执行预设的目标滑动操作对应的目标事件,而是根据所述第一触摸操作和所述第二触摸操作的检测时间的先后顺序,执行先检测到的触摸操作对应的事件。It should be noted that, if the difference between the detection time of the first touch operation and the detection time of the second touch operation is not within the preset time range, it is determined that the user's touch operation does not meet the target sliding operation. Conditions, at this time, the mobile terminal will not execute the target event corresponding to the preset target sliding operation, but will execute the detection first according to the order of detection time of the first touch operation and the second touch operation The event corresponding to the touch operation.
步骤104、根据预设的滑动操作与事件的对应关系,执行与所述目标滑动操作对应的目标事件。Step 104: Execute the target event corresponding to the target sliding operation according to the preset correspondence between the sliding operation and the event.
本实施例中,可以预先设置好滑动操作与事件的对应关系,以使所述移动终端可以根据用户执行的滑动操作来触发相应的事件,例如:预先设置所述目标滑动操作对应的目标事件为弹出包括日期、天气和待办事件内容的消息框,这样,当检测到用户执行所述目标滑动操作时,便弹出所述包括日期、天气和待办事件内容的消息框。In this embodiment, the corresponding relationship between sliding operations and events can be set in advance, so that the mobile terminal can trigger corresponding events according to the sliding operations performed by the user. For example, the target event corresponding to the target sliding operation is preset as A message box including the date, weather, and to-do event content is popped up, so that when it is detected that the user performs the target sliding operation, the message box including the date, weather, and to-do event content pops up.
该步骤中,所述移动终端可以根据预先设置的滑动操作与事件的对应关系,来执行与所述目标滑动操作对应的目标事件,且若确定检测到所述目标滑动操作,则在执行与所述目标滑动操作对应的目标事件之前,不触发其他的事件,以提高本实施例中所述滑动控制方法的触发成功率。In this step, the mobile terminal may execute the target event corresponding to the target sliding operation according to the preset correspondence between the sliding operation and the event, and if it is determined that the target sliding operation is detected, then execute the target event corresponding to the target sliding operation. Before the target event corresponding to the target sliding operation, no other events are triggered, so as to improve the triggering success rate of the sliding control method in this embodiment.
本实施例中,上述移动终端可以是手机、平板电脑(Tablet Personal Computer)、膝上型电脑(Laptop Computer)、个人数字助理(personal digital assistant,简称PDA)、移动上网装置(Mobile Internet Device,MID)或可穿戴式设备(Wearable Device)等的终端设备。In this embodiment, the above-mentioned mobile terminal may be a mobile phone, a tablet computer (Tablet Personal Computer), a laptop computer (Laptop Computer), a personal digital assistant (personal digital assistant, PDA for short), a mobile Internet device (Mobile Internet Device, MID ) or terminal devices such as wearable devices.
本发明实施例中,移动终端的Home键为触摸按键,通过所述移动终端的屏幕的预设区域检测第一触摸操作,以及通过所述Home键检测第二触摸操作,其中,所述预设区域为所述屏幕上与所述Home键的距离最近的区域;判断所述第一触摸操作的检测时间与所述第二触摸操作的检测时间之差是否在预设时间范围内;若所述第一触摸操作的检测时间与所述第二触摸操作的检测时间之差在所述预设时间范围内,则确定所述移动终端检测到目标滑动操作;根据预设的滑动操作与事件的对应关系,执行与所述目标滑动操作对应的目标事件。这样,所述移动终端可以结合所述屏幕的预设区域和所述Home键来检测用户的滑动操作,并根据用户的滑动操作执行相应的目标事件,从而可以降低用户在滑动操作时因误触碰屏幕上特定区域的命令或其他虚拟按键而产生误操作的可能,进而达到提高所述滑动控制方法的触发成功率的目的。In the embodiment of the present invention, the Home button of the mobile terminal is a touch button, the first touch operation is detected through the preset area of the screen of the mobile terminal, and the second touch operation is detected through the Home button, wherein the preset The area is the area closest to the Home button on the screen; judging whether the difference between the detection time of the first touch operation and the detection time of the second touch operation is within a preset time range; if the If the difference between the detection time of the first touch operation and the detection time of the second touch operation is within the preset time range, it is determined that the mobile terminal has detected a target sliding operation; according to the correspondence between the preset sliding operation and the event relation, execute the target event corresponding to the target sliding operation. In this way, the mobile terminal can detect the user's sliding operation in combination with the preset area of the screen and the Home button, and execute the corresponding target event according to the user's sliding operation, thereby reducing the risk of accidental touches caused by the user's sliding operation. Touching commands or other virtual keys in a specific area on the screen may cause misoperation, thereby achieving the purpose of improving the triggering success rate of the sliding control method.
请参阅图4,图4是本发明实施例提供的另一种滑动控制方法的流程示意图,应用于移动终端,所述移动终端的Home键为触摸按键。该实施例在图1所示的实施例的基础上,对通过所述Home键检测第二触摸操作的步骤进行了细化,并对如何确定所述移动终端检测到目标滑动操作的步骤进行了解释说明。如图4所示,所述方法包括以下步骤:Please refer to FIG. 4 . FIG. 4 is a schematic flowchart of another sliding control method provided by an embodiment of the present invention, which is applied to a mobile terminal, and the Home key of the mobile terminal is a touch key. On the basis of the embodiment shown in FIG. 1 , this embodiment refines the step of detecting the second touch operation through the Home button, and details how to determine that the mobile terminal detects the target sliding operation. explain. As shown in Figure 4, the method includes the following steps:
步骤401、通过所述移动终端的屏幕的预设区域检测第一触摸操作,以及通过所述Home键检测第二触摸操作,并识别所述第二触摸操作的滑动方向,其中,所述预设区域为所述屏幕上与所述Home键的距离最近的区域。Step 401: Detect the first touch operation through the preset area of the screen of the mobile terminal, and detect the second touch operation through the Home button, and identify the sliding direction of the second touch operation, wherein the preset The area is the area on the screen that is closest to the Home button.
该实施例中,可进一步识别所述第二触摸操作的滑动方向,当用户在所述屏幕的预设区域和所述Home键上执行目标滑动操作时,需要相继在所述屏幕的预设区域及所述Home键上进行触摸操作,而在该过程中,用户需要先后对所述Home键上的不同的区域进行触摸操作,例如:如图5所示,用户执行向下滑动操作时,会先后触摸所述Home键上的E点和F点,又如图6所示,用户执行向上滑动操作时,会先后触摸所述Home键上的F点和E点,其中,所述向下滑动为从所述Home键上靠近所述屏幕的一侧向所述Home键上远离所述屏幕的一侧的滑动,所述向上滑动为从所述Home键上远离所述屏幕的一侧向所述Home键上靠近所述屏幕的一侧的滑动。In this embodiment, the sliding direction of the second touch operation can be further identified. When the user performs the target sliding operation on the preset area of the screen and the Home button, it is necessary to successively touch the target in the preset area of the screen. and touch operations on the Home button, and in this process, the user needs to successively perform touch operations on different areas on the Home button, for example: as shown in Figure 5, when the user performs a downward sliding operation, the Touch the E point and the F point on the Home key successively, and as shown in Figure 6, when the user performs an upward sliding operation, he will successively touch the F point and the E point on the Home key, wherein the downward sliding is sliding from a side of the Home button close to the screen to a side of the Home button away from the screen, and the upward sliding is sliding from a side of the Home button far away from the screen to the home button. Swipe the Home button on the side closer to the screen.
因此,该步骤可以根据所述Home键上不同区域的触摸操作的先后顺序来识别所述第二触摸操作的滑动方向,进而根据用户在所述Home键上的滑动方向来达到更准确地判断用户执行所述目标滑动操作时的滑动方向的目的。Therefore, in this step, the sliding direction of the second touch operation can be identified according to the sequence of touch operations in different areas on the Home button, and then the user's sliding direction on the Home button can be judged more accurately. The purpose of the swipe direction when performing the target swipe action.
上述通过所述移动终端的屏幕的预设区域检测第一触摸操作,以及通过所述Home键检测第二触摸操作的具体实施方式可以参见图1所示的方法实施例中步骤101的实施方式,为避免重复,这里不再赘述。For the specific implementation manners of detecting the first touch operation through the preset area of the screen of the mobile terminal and detecting the second touch operation through the Home button, please refer to the implementation manner of step 101 in the method embodiment shown in FIG. 1 , To avoid repetition, details are not repeated here.
可选的,所述通过所述Home键检测第二触摸操作,并识别所述第二触摸操作的滑动方向,包括:Optionally, the detecting the second touch operation through the Home button, and identifying the sliding direction of the second touch operation includes:
检测所述Home键的第一预设区域的电压值是否产生变化,以及检测所述Home键的第二预设区域的电压值是否产生变化,其中,所述第一预设区域离所屏幕的距离在第一预设距离范围内,所述第二预设区域为离所屏幕的距离在第二预设距离范围内,且所述第一预设距离范围内的最大距离小于所述第二预设距离范围内的最小距离;Detecting whether the voltage value of the first preset area of the Home button changes, and detecting whether the voltage value of the second preset area of the Home button changes, wherein the first preset area is far from the The distance is within the first preset distance range, the distance from the second preset area to the screen is within the second preset distance range, and the maximum distance within the first preset distance range is smaller than the second The minimum distance within the preset distance range;
若检测到所述第一预设区域的电压值和所述第二预设区域的电压值相继产生变化,则确定通过所述Home键检测到第二触摸操作;If it is detected that the voltage value of the first preset area and the voltage value of the second preset area successively change, then it is determined that a second touch operation is detected through the Home button;
根据所述第一预设区域的电压值产生变化的检测时间和所述第二预设区域的电压值产生变化的检测时间,识别所述第二触摸操作的滑动方向。The sliding direction of the second touch operation is identified according to the detection time of the voltage value change in the first preset area and the detection time of the voltage value change in the second preset area.
目前,大部分移动终端的Home键都是采用电容式触摸按键或者兼具指纹识别功能的电容式触摸按键,故用户在所述Home键上触摸时,所述Home键所处区域的电压值会产生变化,从而可以通过所述Home键检测到用户的触摸操作。At present, the Home button of most mobile terminals adopts a capacitive touch button or a capacitive touch button with a fingerprint recognition function, so when the user touches the Home button, the voltage value of the area where the Home button is located will change. A change occurs, so that the user's touch operation can be detected through the Home key.
下面以所述Home键为电容式触摸按键为例,对该实施方式进行举例说明,具体地,可将电容式触摸按键看作一个大的平板电容,当用户在所述Home键上触摸时,会对所述Home键产生一定的压力,该压力就会对平板电容两极板之间的距离产生影响,而电容C=εS/4πkd,其中d为两极板之间的距离,这样,电容C会随两平板间距离d的变化而变化,又因C=Q/U,其中Q为电荷量,U为电压,若电容C产生了变化,由于两极板之间的电荷量Q是不变的,故电压U会随电容C的变化而变化。因此,该实施方式中,可以通过检测所述Home键所处区域的电压值是否产生变化来检测用户的触摸操作。The following takes the Home button as an example of a capacitive touch button to illustrate this embodiment. Specifically, the capacitive touch button can be regarded as a large plate capacitor. When the user touches the Home button, There will be a certain pressure on the Home button, which will affect the distance between the two plates of the flat capacitor, and the capacitance C=εS/4πkd, where d is the distance between the two plates, so that the capacitance C will It changes with the change of the distance d between the two plates, and because C=Q/U, where Q is the amount of charge and U is the voltage, if the capacitance C changes, because the amount of charge Q between the two plates is unchanged, Therefore, the voltage U will vary with the capacitance C. Therefore, in this implementation manner, the user's touch operation can be detected by detecting whether the voltage value of the area where the Home key is located changes.
该实施方式中,可以从所述Home键所处的区域中划分出两个预设区域,分别为第一预设区域和第二预设区域,其中,所述第一预设区域离所屏幕的距离在第一预设距离范围内,所述第二预设区域离所屏幕的距离在第二预设距离范围内,且所述第一预设距离范围内的最大距离小于所述第二预设距离范围内的最小距离。这样,所述第一预设区域为所述Home键上离所述屏幕的距离较近的区域,而所述第二预设区域为所述Home键上离所述屏幕的距离较远的区域,例如:所述第一预设距离范围内的最小距离等于所述Home键到所述屏幕的距离,所述第一预设距离范围内的最大距离等于所述Home键的中心点到所述屏幕的距离,所述第二区域为所述Home键所处的区域中除所述第一预设区域外的区域,所述第一预设区域B1和所述第二预设区域B2的范围可以如图7所示。In this embodiment, two preset areas can be divided from the area where the Home button is located, namely a first preset area and a second preset area, wherein the first preset area is farther away from the home screen. The distance is within the first preset distance range, the distance between the second preset area and the screen is within the second preset distance range, and the maximum distance within the first preset distance range is smaller than the second The minimum distance within the preset distance range. In this way, the first preset area is an area on the Home button that is closer to the screen, and the second preset area is an area on the Home button that is farther from the screen. , for example: the minimum distance within the first preset distance range is equal to the distance from the Home button to the screen, and the maximum distance within the first preset distance range is equal to the center point of the Home button to the The distance of the screen, the second area is the area where the Home button is located except the first preset area, the range of the first preset area B1 and the second preset area B2 It can be shown in Figure 7.
所述通过所述Home键检测第二触摸操作可以是通过检测所述Home键的第一预设区域的电压值是否产生变化,以及检测所述Home键的第二预设区域的电压值是否产生变化来检测所述第二触摸操作。当用户执行所述目标滑动操作时,会按一定的顺序触摸所述第一预设区域和所述第二预设区域,当检测到所述第一预设区域的电压值和所述第二预设区域的电压值相继产生变化时,则确定通过所述Home键检测到所述第二触摸操作。该实施方式中,由于所述目标滑动操作是具备滑动方向的,因此需检测所述Home键上的所述第一预设区域和所述第二预设区域的电压值是否相继产生变化来确定是否检测到所述第二触摸操作,这样,所述第二触摸操作是区别于一次触摸操作的,是具备一定的滑动方向的。The detection of the second touch operation through the Home button may be by detecting whether the voltage value of the first preset area of the Home button changes, and detecting whether the voltage value of the second preset area of the Home button occurs change to detect the second touch operation. When the user performs the target sliding operation, he will touch the first preset area and the second preset area in a certain order, and when the voltage value of the first preset area and the second preset area are detected When the voltage value of the preset area changes successively, it is determined that the second touch operation is detected through the Home button. In this embodiment, since the target sliding operation has a sliding direction, it is necessary to detect whether the voltage values of the first preset area and the second preset area on the Home button successively change to determine Whether the second touch operation is detected. In this way, the second touch operation is different from the first touch operation and has a certain sliding direction.
上述第一预设区域的电压值产生变化的检测时间可以理解为所述移动终端检测到所述第一预设区域的电压值产生变化的时间,上述第二预设区域的电压值产生变化的检测时间可以理解为所述移动终端检测到所述第二预设区域的电压值产生变化的时间。上述根据所述第一预设区域的电压值产生变化的检测时间和所述第二预设区域的电压值产生变化的检测时间,识别所述第二触摸操作的滑动方向,可以是通过判断所述第一预设区域的电压值产生变化的检测时间与所述第二预设区域的电压值产生变化的检测时间的先后顺序,来识别所述第二触摸操作的滑动方向。或者更进一步地,先判断所述第一预设区域的电压值产生变化的检测时间与所述第二预设区域的电压值产生变化的检测时间的时间间隔是否在阈值时间间隔内,在满足条件的前提下,进一步判断所述第一预设区域的电压值产生变化的检测时间与所述第二预设区域的电压值产生变化的检测时间的先后顺序,进而识别所述第二触摸操作的滑动方向。The detection time when the voltage value in the first preset area changes can be understood as the time when the mobile terminal detects that the voltage value in the first preset area changes, and the time when the voltage value in the second preset area changes The detection time can be understood as the time when the mobile terminal detects that the voltage value in the second preset area changes. According to the detection time of the change of the voltage value of the first preset area and the detection time of the change of the voltage value of the second preset area, identifying the sliding direction of the second touch operation may be by judging the The sliding direction of the second touch operation is identified based on the order of the detection time of the voltage value change in the first preset area and the detection time of the voltage value change in the second preset area. Or further, it is first judged whether the time interval between the detection time of the voltage value change in the first preset area and the detection time of the voltage value change in the second preset area is within the threshold time interval. conditions, further judging the order of the detection time of the voltage value change in the first preset area and the detection time of the voltage value change in the second preset area, and then identifying the second touch operation direction of the slide.
具体地,若所述第一预设区域的电压值产生变化的检测时间与所述第二预设区域的电压值产生变化的检测时间的时间间隔在所述阈值时间间隔内,则判断所述第一预设区域的电压值产生变化的检测时间与所述第二预设区域的电压值产生变化的检测时间的先后顺序,若所述第一预设区域的电压值产生变化的检测时间先于所述第二预设区域的电压值产生变化的检测时间,则识别所述第二触摸操作的滑动方向为向下滑动。Specifically, if the time interval between the detection time of the voltage value change in the first preset area and the detection time of the voltage value change in the second preset area is within the threshold time interval, it is determined that the The order of the detection time of the voltage value change in the first preset area and the detection time of the voltage value change in the second preset area, if the detection time of the voltage value change in the first preset area comes first At the detection time when the voltage value of the second preset area changes, it is identified that the sliding direction of the second touch operation is downward sliding.
若所述第一预设区域的电压值产生变化的检测时间与所述第二预设区域的电压值产生变化的检测时间的时间间隔在所述阈值时间间隔内,则判断所述第一预设区域的电压值产生变化的检测时间与所述第二预设区域的电压值产生变化的检测时间的先后顺序,若所述第二预设区域的电压值产生变化的检测时间先于所述第一预设区域的电压值产生变化的检测时间,则识别所述第二触摸操作的滑动方向为向上滑动。If the time interval between the detection time of the voltage value change in the first preset area and the detection time of the voltage value change in the second preset area is within the threshold time interval, then it is determined that the first preset The order of the detection time of the change of the voltage value of the area and the detection time of the change of the voltage value of the second preset area is set, if the detection time of the change of the voltage value of the second preset area is earlier than the detection time of the second preset area The detection time when the voltage value of the first preset area changes, then it is recognized that the sliding direction of the second touch operation is upward sliding.
该实施方式中,通过检测所述Home键的第一预设区域的电压值是否产生变化,以及检测所述Home键的第二预设区域的电压值是否产生变化,来确定是否检测到所述第二触摸操作,并根据所述第一预设区域的电压值产生变化的检测时间和所述第二预设区域的电压值产生变化的检测时间,来识别所述第二触摸操作的滑动方向。这样,不仅可以更准确地判断用户的操作是否滑动操作,避免将用户的一次触摸操作识别为滑动操作,且还能根据所述第二触摸操作的滑动方向更准确地确定所述目标滑动操作的滑动方向,从而减少误操作发生的可能,并提高本实施例中所述滑动控制方法的触发成功率。In this embodiment, by detecting whether the voltage value of the first preset area of the Home key changes, and detecting whether the voltage value of the second preset area of the Home key changes, it is determined whether the second touch operation, and identify the sliding direction of the second touch operation according to the detection time of the voltage value change in the first preset area and the detection time of the voltage value change in the second preset area . In this way, not only can it be more accurately judged whether the user's operation is a sliding operation, and avoid identifying a user's touch operation as a sliding operation, but also more accurately determine the location of the target sliding operation according to the sliding direction of the second touch operation. sliding direction, so as to reduce the possibility of misoperation and improve the triggering success rate of the sliding control method described in this embodiment.
需要说明的是,本施例中并不限定所述Home键的具体类型,任何可以通过检测电压变化来检测用户触摸操作的触摸按键即可。It should be noted that, in this embodiment, the specific type of the Home key is not limited, and any touch key that can detect a user's touch operation by detecting a voltage change is sufficient.
步骤402、判断所述第一触摸操作的检测时间与所述第二触摸操作的检测时间之差是否在预设时间范围内。Step 402, judging whether the difference between the detection time of the first touch operation and the detection time of the second touch operation is within a preset time range.
由于用户在执行所述目标滑动操作时会先后触摸所述Home键上的不同区域,故上述第二触摸操作的检测时间可以为所述Home键上离所述屏幕较近的区域感应到触摸操作的时间,也可以为所述Home键上离所述屏幕较远的区域感应到触摸操作的时间,但所述预设时间范围需相应地根据用户在所屏幕的预设区域及在所述Home键上相应区域进行连续触摸操作所需的时间间隔进行设置。Since the user will successively touch different areas on the Home button when performing the target sliding operation, the detection time of the above-mentioned second touch operation may be that a touch operation is sensed on an area on the Home button that is closer to the screen It can also be the time when the touch operation is sensed on the area farther away from the screen on the Home button, but the preset time range needs to be based on the user’s preset area of the screen and the Home key Set the time interval required for continuous touch operations on the corresponding area on the key.
在实际应用中,考虑到用户在执行目标滑动操作时,触摸的顺序是先触摸所述屏幕的预设区域,再触摸所述Home键上离所述屏幕较近的区域,最后触摸所述Home键上离所述屏幕较远的区域,或者反之。故该步骤中,较佳的实施方式为根据用户在所屏幕的预设区域及在所述Home键上离所述屏幕较近的区域进行连续触摸操作所需的时间间隔预先设置所述预设时间范围,在步骤401之后,判断所述第一触摸操作的检测时间与所述Home键上离所述屏幕较近的区域感应到触摸操作的时间之差是否在所述预设时间范围内。例如:如图5和图6所示,该步骤可以是判断所述屏幕上D点感应到触摸操作的时间与所述Home键上E点感应到触摸操作的时间是否在所述预设时间范围内。In practical applications, considering that when the user performs the target sliding operation, the order of touch is to first touch the preset area of the screen, then touch the area on the Home button that is closer to the screen, and finally touch the Home button. The area on the key that is farther away from the screen, or vice versa. Therefore, in this step, a preferred implementation method is to pre-set the preset according to the time interval required for the user to perform continuous touch operations on the preset area of the screen and the area closer to the screen on the Home button. Time range: After step 401, it is judged whether the difference between the detection time of the first touch operation and the time when the touch operation is sensed by the area on the Home button closer to the screen is within the preset time range. For example: as shown in Figure 5 and Figure 6, this step can be to determine whether the time when point D on the screen senses a touch operation and the time when point E on the Home button senses a touch operation are within the preset time range Inside.
步骤403、若所述第一触摸操作的检测时间与所述第二触摸操作的检测时间之差在所述预设时间范围内,且所述第二触摸操作的滑动方向为向下滑动,则确定所述移动终端检测到目标向下滑动操作,其中,所述向下滑动为从所述Home键上靠近所述屏幕的一侧向所述Home键上远离所述屏幕的一侧的滑动。Step 403, if the difference between the detection time of the first touch operation and the detection time of the second touch operation is within the preset time range, and the sliding direction of the second touch operation is downward sliding, then It is determined that the mobile terminal detects an operation of sliding down a target, where the sliding down is a slide from a side of the Home button close to the screen to a side of the Home button away from the screen.
该步骤中,需根据步骤402中的判断结果,来确定所述移动终端是否检测到目标滑动操作,若确定所述移动终端检测到目标滑动操作,则需根据步骤401中识别的所述第二触摸操作的滑动方向,进一步识别所述目标滑动操作的滑动方向。In this step, it is necessary to determine whether the mobile terminal has detected the target sliding operation according to the judgment result in step 402. The sliding direction of the touch operation further identifies the sliding direction of the target sliding operation.
具体地,若所述第一触摸操作的检测时间与所述第二触摸操作的检测时间之差在所述预设时间范围内,则确定所述移动终端检测到目标滑动操作,若所述第二触摸操作的滑动方向为向下滑动,则确定所述移动终端检测到目标向下滑动操作,其中,所述向下滑动为从所述Home键上靠近所述屏幕的一侧向所述Home键上远离所述屏幕的一侧的滑动。所述目标向下滑动操作的滑动方向可以如图5中箭头方向所示。Specifically, if the difference between the detection time of the first touch operation and the detection time of the second touch operation is within the preset time range, it is determined that the mobile terminal has detected a target sliding operation, and if the second If the sliding direction of the second touch operation is sliding down, it is determined that the mobile terminal has detected a target sliding down operation, wherein the sliding down is from the side of the Home button close to the screen to the Home button. Swipe on the key away from the side of the screen. The sliding direction of the target sliding down operation may be shown in the direction of the arrow in FIG. 5 .
步骤404、若所述第一触摸操作的检测时间与所述第二触摸操作的检测时间之差在所述预设时间范围内,且所述第二触摸操作的滑动方向为向上滑动,则确定所述移动终端检测到目标向上滑动操作,其中,所述向上滑动为从所述Home键上远离所述屏幕的一侧向所述Home键上靠近所述屏幕的一侧的滑动。Step 404, if the difference between the detection time of the first touch operation and the detection time of the second touch operation is within the preset time range, and the sliding direction of the second touch operation is upward sliding, determine The mobile terminal detects an upward sliding operation of a target, wherein the upward sliding is a sliding from a side of the Home button away from the screen to a side of the Home button close to the screen.
该步骤中,需根据步骤402中的判断结果,来确定所述移动终端是否检测到目标滑动操作,若确定所述移动终端检测到目标滑动操作,则需根据步骤401中识别的所述第二触摸操作的滑动方向,进一步识别所述目标滑动操作的滑动方向。In this step, it is necessary to determine whether the mobile terminal has detected the target sliding operation according to the judgment result in step 402. The sliding direction of the touch operation further identifies the sliding direction of the target sliding operation.
具体地,若所述第一触摸操作的检测时间与所述第二触摸操作的检测时间之差在所述预设时间范围内,则确定所述移动终端检测到目标滑动操作,若所述第二触摸操作的滑动方向为向上滑动,则确定所述移动终端检测到目标向上滑动操作,其中,所述向上滑动为从所述Home键上远离所述屏幕的一侧向所述Home键上靠近所述屏幕的一侧的滑动。所述目标向上滑动操作的滑动方向可以如图6中箭头方向所示。Specifically, if the difference between the detection time of the first touch operation and the detection time of the second touch operation is within the preset time range, it is determined that the mobile terminal has detected a target sliding operation, and if the second If the sliding direction of the two-touch operation is sliding upward, it is determined that the mobile terminal detects an upward sliding operation of the target, wherein the upward sliding is approaching the Home button from the side away from the screen to the Home button A swipe of the side of the screen. The sliding direction of the upward sliding operation of the target may be shown in the direction of the arrow in FIG. 6 .
步骤405、根据预设的滑动操作与事件的对应关系,执行与所述目标滑动操作对应的目标事件。Step 405: Execute the target event corresponding to the target sliding operation according to the preset correspondence between the sliding operation and the event.
该步骤的具体实施方式可以参见图1所示的方法实施例中步骤104的实施方式,为避免重复,这里不再赘述。For the specific implementation manner of this step, refer to the implementation manner of step 104 in the method embodiment shown in FIG. 1 , and to avoid repetition, details are not repeated here.
可选的,若所述移动终端检测到所述目标向下滑动操作,则在所述屏幕上显示下拉菜单的内容;Optionally, if the mobile terminal detects that the target slides down, display the content of the drop-down menu on the screen;
若所述移动终端检测到所述目标向上滑动操作,则在所述屏幕上显示上拉菜单的内容。If the mobile terminal detects an upward sliding operation of the target, the content of the pull-up menu is displayed on the screen.
该实施方式中,可以预先设置所述目标向下滑动操作对应的目标事件为在所述移动终端的屏幕上显示下拉菜单的内容,所述目标向上滑动操作对应的目标事件为在所述移动终端的屏幕上显示上拉菜单的内容。所述在所述移动终端的屏幕上显示下拉菜单的内容可以为从所述屏幕的上端逐渐弹出所述下拉菜单,并显示所述下拉菜单的内容,所述在所述移动终端的屏幕上显示上拉菜单的内容可以为从所述屏幕的底端逐渐弹出所述上拉菜单,并显示所述上拉菜单的内容。所述下拉菜单的内容和所述上拉菜单的内容均可以由所述移动终端预先配置,也可以由用户自定义设置。In this embodiment, the target event corresponding to the target sliding operation can be preset as displaying the content of the drop-down menu on the screen of the mobile terminal, and the target event corresponding to the target sliding operation is The contents of the pull-up menu are displayed on the screen. The displaying the content of the drop-down menu on the screen of the mobile terminal may be to gradually pop up the drop-down menu from the upper end of the screen, and display the content of the drop-down menu, and displaying the content of the drop-down menu on the screen of the mobile terminal The content of the pull-up menu may be that the pull-up menu is gradually popped up from the bottom of the screen, and the content of the pull-up menu is displayed. Both the content of the pull-down menu and the content of the pull-up menu can be pre-configured by the mobile terminal, or can be customized by the user.
需要说明的是若确定检测到所述目标向下滑动操作或所述目标向上滑动操作,则在执行所述目标向下滑动操作或所述目标向上滑动操作对应的目标事件之前,不触发其他的事件,以提高本实施例中所述滑动控制方法的触发成功率。It should be noted that if it is determined that the target swipe down operation or the target swipe up operation is detected, other target events will not be triggered before the target event corresponding to the target swipe down operation or the target swipe up operation is executed. event, so as to improve the triggering success rate of the sliding control method described in this embodiment.
可选的,所述方法还包括:Optionally, the method also includes:
若所述第一触摸操作的检测时间与所述第二触摸操作的检测时间之差不在所述预设时间范围内,且所述第一触摸操作的检测时间先于所述第二触摸操作的检测时间,则执行与所述第一触摸操作对应的事件;If the difference between the detection time of the first touch operation and the detection time of the second touch operation is not within the preset time range, and the detection time of the first touch operation is earlier than the detection time of the second touch operation detection time, then execute an event corresponding to the first touch operation;
若所述第一触摸操作的检测时间与所述第二触摸操作的检测时间之差不在所述预设时间范围内,且所述第二触摸操作的检测时间先于所述第一触摸操作的检测时间,则执行与所述第二触摸操作对应的事件。If the difference between the detection time of the first touch operation and the detection time of the second touch operation is not within the preset time range, and the detection time of the second touch operation is earlier than the detection time of the first touch operation If the time is detected, an event corresponding to the second touch operation is executed.
该实施方式中,根据步骤402判断的结果,若所述第一触摸操作的检测时间与所述第二触摸操作的检测时间之差不在所述预设时间范围内,则确定用户的触摸操作不符合所述目标滑动操作的条件,此时,触发所述目标事件失败,需根据所述第一触摸操作的检测时间和所述第二触摸操作的检测时间来确定所需执行的具体事件。In this embodiment, according to the result of the judgment in step 402, if the difference between the detection time of the first touch operation and the detection time of the second touch operation is not within the preset time range, it is determined that the user's touch operation is not If the condition of the target sliding operation is met, at this time, the triggering of the target event fails, and the specific event to be executed needs to be determined according to the detection time of the first touch operation and the detection time of the second touch operation.
具体地,若所述第一触摸操作的检测时间先于所述第二触摸操作的检测时间,则执行与所述第一触摸操作对应的事件,例如:参考图5,若所述屏幕的预设区域处的D点先感应到触摸操作,则执行触摸D点处所对应的具体事件;若所述第二触摸操作的检测时间先于所述第一触摸操作的检测时间,则执行与所述第二触摸操作对应的事件,例如:若所述Home键先感应到触摸操作,则执行触摸所述Home键所对应的具体事件。Specifically, if the detection time of the first touch operation is earlier than the detection time of the second touch operation, an event corresponding to the first touch operation is executed, for example: referring to FIG. 5 , if the preview of the screen Assuming that point D at the area senses a touch operation first, then execute the specific event corresponding to touch point D; if the detection time of the second touch operation is earlier than the detection time of the first touch operation, execute the For the event corresponding to the second touch operation, for example: if the Home button first senses a touch operation, then execute the specific event corresponding to touching the Home button.
这样,通过判断所述第一触摸操作的检测时间与所述第二触摸操作的检测时间之差是否在所述预设时间范围内,以及所述第一触摸操作的检测时间和所述第二触摸操作的检测时间来决定具体执行的事件,只有对符合条件的滑动操作才执行相应的目标事件,对不符合条件的滑动操作根据滑动的先后顺序执行相应的事件,从而所述移动终端可以很明确地根据用户的具体操作执行相应的事件,而不会发生混乱。In this way, by judging whether the difference between the detection time of the first touch operation and the detection time of the second touch operation is within the preset time range, and the detection time of the first touch operation and the second touch operation The specific execution event is determined by the detection time of the touch operation, the corresponding target event is executed only for the sliding operation that meets the conditions, and the corresponding event is executed for the sliding operation that does not meet the conditions according to the order of sliding, so that the mobile terminal can quickly Clearly execute events based on specific user actions without confusion.
当然,该实施方式,同样可以应用到图1所示的实施例中,且能达到相同的有益效果。Of course, this implementation manner can also be applied to the embodiment shown in FIG. 1 , and can achieve the same beneficial effect.
本实施例中,在图1所示的实施例的基础上,对通过所述Home键检测第二触摸操作的步骤进行了细化,并对如何确定所述移动终端检测到目标滑动操作的步骤进行了解释说明。另外,本实施例在图1所示的实施例的基础上还增加了多种可选的实施方式,这些可选的实施方式可以相互结合实现,也可以单独实现,且都能达到提高所述滑动控制方法的触发成功率的技术效果。In this embodiment, on the basis of the embodiment shown in Figure 1, the step of detecting the second touch operation through the Home button is refined, and the step of how to determine that the mobile terminal detects the target sliding operation Explained. In addition, on the basis of the embodiment shown in Fig. 1, this embodiment adds a variety of optional implementations, these optional implementations can be implemented in combination with each other, or can be implemented independently, and can all achieve the improvement of the described The technical effect of the trigger success rate of the sliding control method.
请参阅图8,图8是本发明实施提供的一种移动终端的结构示意图,所述移动终端的Home键为触摸按键,如图8所示,移动终端800包括:Please refer to FIG. 8. FIG. 8 is a schematic structural diagram of a mobile terminal provided by the implementation of the present invention. The Home button of the mobile terminal is a touch button. As shown in FIG. 8, the mobile terminal 800 includes:
检测模块801,用于通过所述移动终端800的屏幕的预设区域检测第一触摸操作,以及通过所述Home键检测第二触摸操作,其中,所述预设区域为所述屏幕上与所述Home键的距离最近的区域;The detection module 801 is configured to detect a first touch operation through a preset area of the screen of the mobile terminal 800, and detect a second touch operation through the Home button, wherein the preset area is the same as the screen on the screen. The closest area to the Home button;
判断模块802,用于判断所述第一触摸操作的检测时间与所述第二触摸操作的检测时间之差是否在预设时间范围内;A judging module 802, configured to judge whether the difference between the detection time of the first touch operation and the detection time of the second touch operation is within a preset time range;
确定模块803,用于若所述第一触摸操作的检测时间与所述第二触摸操作的检测时间之差在所述预设时间范围内,则确定所述移动终端800检测到目标滑动操作;A determination module 803, configured to determine that the mobile terminal 800 has detected a target sliding operation if the difference between the detection time of the first touch operation and the detection time of the second touch operation is within the preset time range;
第一执行模块804,用于根据预设的滑动操作与事件的对应关系,执行与所述目标滑动操作对应的目标事件。The first executing module 804 is configured to execute a target event corresponding to the target sliding operation according to a preset correspondence between sliding operations and events.
可选的,如图9所示,所述检测模块801用于通过所述Home键检测第二触摸操作,并识别所述第二触摸操作的滑动方向;Optionally, as shown in FIG. 9 , the detection module 801 is configured to detect a second touch operation through the Home button, and identify a sliding direction of the second touch operation;
所述确定模块803包括:The determining module 803 includes:
第一确定单元8031,用于若所述第一触摸操作的检测时间与所述第二触摸操作的检测时间之差在所述预设时间范围内,且所述第二触摸操作的滑动方向为向下滑动,则确定所述移动终端800检测到目标向下滑动操作,其中,所述向下滑动为从所述Home键上靠近所述屏幕的一侧向所述Home键上远离所述屏幕的一侧的滑动;The first determining unit 8031 is configured to: if the difference between the detection time of the first touch operation and the detection time of the second touch operation is within the preset time range, and the sliding direction of the second touch operation is slide down, it is determined that the mobile terminal 800 detects a target slide down operation, wherein the slide down is from the side of the home button close to the screen to the home button away from the screen slide on one side of the
第二确定单元8032,用于若所述第一触摸操作的检测时间与所述第二触摸操作的检测时间之差在所述预设时间范围内,且所述第二触摸操作的滑动方向为向上滑动,则确定所述移动终端800检测到目标向上滑动操作,其中,所述向上滑动为从所述Home键上远离所述屏幕的一侧向所述Home键上靠近所述屏幕的一侧的滑动。The second determination unit 8032 is configured to if the difference between the detection time of the first touch operation and the detection time of the second touch operation is within the preset time range, and the sliding direction of the second touch operation is Sliding up, it is determined that the mobile terminal 800 detects an upward sliding operation of the target, wherein the upward sliding is from the side of the Home button away from the screen to the side of the Home button close to the screen slide.
可选的,如图10所示,所述第一执行模块804包括:Optionally, as shown in FIG. 10, the first execution module 804 includes:
第一显示单元8041,用于若所述移动终端800检测到所述目标向下滑动操作,则在所述屏幕上显示下拉菜单的内容;The first display unit 8041 is configured to display the content of the drop-down menu on the screen if the mobile terminal 800 detects that the target slides downward;
第二显示单元8042,用于若所述移动终端800检测到所述目标向上滑动操作,则在所述屏幕上显示上拉菜单的内容。The second display unit 8042 is configured to display the content of the pull-up menu on the screen if the mobile terminal 800 detects an upward sliding operation of the target.
可选的,如图11所示,所述移动终端800还包括:Optionally, as shown in FIG. 11, the mobile terminal 800 further includes:
第二执行模块805,用于若所述第一触摸操作的检测时间与所述第二触摸操作的检测时间之差不在所述预设时间范围内,且所述第一触摸操作的检测时间先于所述第二触摸操作的检测时间,则执行与所述第一触摸操作对应的事件;The second execution module 805 is configured to: if the difference between the detection time of the first touch operation and the detection time of the second touch operation is not within the preset time range, and the detection time of the first touch operation is first At the detection time of the second touch operation, execute an event corresponding to the first touch operation;
第三执行模块806,用于若所述第一触摸操作的检测时间与所述第二触摸操作的检测时间之差不在所述预设时间范围内,且所述第二触摸操作的检测时间先于所述第一触摸操作的检测时间,则执行与所述第二触摸操作对应的事件。The third execution module 806 is configured to: if the difference between the detection time of the first touch operation and the detection time of the second touch operation is not within the preset time range, and the detection time of the second touch operation is first At the detection time of the first touch operation, an event corresponding to the second touch operation is executed.
可选的,如图12所示,所述检测模块801包括:Optionally, as shown in Figure 12, the detection module 801 includes:
检测单元8011,用于检测所述Home键的第一预设区域的电压值是否产生变化,以及检测所述Home键的第二预设区域的电压值是否产生变化,其中,所述第一预设区域离所屏幕的距离在第一预设距离范围内,所述第二预设区域离所屏幕的距离在第二预设距离范围内,且所述第一预设距离范围内的最大距离小于所述第二预设距离范围内的最小距离;The detection unit 8011 is configured to detect whether the voltage value of the first preset area of the Home button changes, and detect whether the voltage value of the second preset area of the Home button changes, wherein the first preset The distance between the area and the screen is set within a first preset distance range, the distance between the second preset area and the screen is within a second preset distance range, and the maximum distance within the first preset distance range less than the minimum distance within the second preset distance range;
第三确定单元8012,用于若检测到所述第一预设区域的电压值和所述第二预设区域的电压值相继产生变化,则确定通过所述Home键检测到第二触摸操作;The third determination unit 8012 is configured to determine that a second touch operation is detected through the Home button if it is detected that the voltage value of the first preset area and the voltage value of the second preset area have changed successively;
识别单元8013,用于根据所述第一预设区域的电压值产生变化的检测时间和所述第二预设区域的电压值产生变化的检测时间,识别所述第二触摸操作的滑动方向。The identification unit 8013 is configured to identify the sliding direction of the second touch operation according to the detection time of the voltage value change in the first preset area and the detection time of the voltage value change in the second preset area.
移动终端800能够实现图1和图4的方法实施例中移动终端实现的各个过程,为避免重复,这里不再赘述。移动终端800可以结合所述屏幕的预设区域和所述Home键来检测用户的滑动操作,并根据用户的滑动操作执行相应的目标事件,从而可以降低用户在滑动操作时因误触碰屏幕上特定区域的命令或其他虚拟按键而产生误操作的可能,进而达到提高所述滑动控制方法的触发成功率的目的。The mobile terminal 800 can implement various processes implemented by the mobile terminal in the method embodiments in FIG. 1 and FIG. 4 , and details are not repeated here to avoid repetition. The mobile terminal 800 can detect the user's sliding operation in combination with the preset area of the screen and the Home button, and execute the corresponding target event according to the user's sliding operation, thereby reducing the risk of the user accidentally touching the screen during the sliding operation. Commands in specific areas or other virtual keys may cause misoperation, thereby achieving the purpose of improving the triggering success rate of the sliding control method.
请参阅图13,图13是本发明实施提供的另一种移动终端的结构示意图,所述移动终端的起始Home键为触摸按键,如图13所示,移动终端1300包括:至少一个处理器1301、存储器1302、至少一个网络接口1304和其他用户接口1303。移动终端1300中的各个组件通过总线系统1305耦合在一起。可理解,总线系统1305用于实现这些组件之间的连接通信。总线系统1305除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图13中将各种总线都标为总线系统1305。Please refer to FIG. 13. FIG. 13 is a schematic structural diagram of another mobile terminal provided by the implementation of the present invention. The initial Home button of the mobile terminal is a touch button. As shown in FIG. 13, the mobile terminal 1300 includes: at least one processor 1301 , memory 1302 , at least one network interface 1304 and other user interfaces 1303 . Various components in the mobile terminal 1300 are coupled together through the bus system 1305 . It can be understood that the bus system 1305 is used to realize connection and communication between these components. In addition to the data bus, the bus system 1305 also includes a power bus, a control bus and a status signal bus. However, for clarity of illustration, the various buses are labeled as bus system 1305 in FIG. 13 .
其中,用户接口1303可以包括显示器、键盘或者点击设备(例如,鼠标,轨迹球(trackball)、触感板或者触摸屏等)。Wherein, the user interface 1303 may include a display, a keyboard, or a pointing device (for example, a mouse, a trackball (trackball), a touch panel, or a touch screen, etc.).
可以理解,本发明实施例中的存储器1302可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double DataRate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synch link DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus DRAM,DRDRAM)。本文描述的系统和方法的存储器1302旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the memory 1302 in the embodiment of the present invention may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memories. Wherein, the non-volatile memory may be a read-only memory (Read-Only Memory, ROM), a programmable read-only memory (Programmable ROM, PROM), an erasable programmable read-only memory (Erasable PROM, EPROM), an electronically programmable Erase Programmable Read-Only Memory (Electrically EPROM, EEPROM) or Flash. The volatile memory can be Random Access Memory (RAM), which acts as an external cache. By way of illustration and not limitation, many forms of RAM are available such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double DataRate SDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous connection dynamic random access memory (Synch link DRAM, SLDRAM) And direct memory bus random access memory (Direct Rambus DRAM, DRDRAM). Memory 1302 of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
在一些实施方式中,存储器1302存储了如下的元素,可执行模块或者数据结构,或者他们的子集,或者他们的扩展集:操作系统13021和应用程序13022。In some implementations, the memory 1302 stores the following elements, executable modules or data structures, or their subsets, or their extended sets: an operating system 13021 and an application program 13022 .
其中,操作系统13021,包含各种系统程序,例如框架层、核心库层、驱动层等,用于实现各种基础业务以及处理基于硬件的任务。应用程序13022,包含各种应用程序,例如媒体播放器(Media Player)、浏览器(Browser)等,用于实现各种应用业务。实现本发明实施例方法的程序可以包含在应用程序13022中。Among them, the operating system 13021 includes various system programs, such as framework layer, core library layer, driver layer, etc., for realizing various basic services and processing tasks based on hardware. The application program 13022 includes various application programs, such as a media player (Media Player), a browser (Browser), etc., and is used to realize various application services. The program for realizing the method of the embodiment of the present invention may be contained in the application program 13022 .
在本发明实施例中,通过调用存储器1302存储的程序或指令,具体的,可以是应用程序13022中存储的程序或指令,处理器1301用于:In this embodiment of the present invention, by calling the program or instruction stored in the memory 1302, specifically, the program or instruction stored in the application program 13022, the processor 1301 is used to:
通过所述移动终端的屏幕的预设区域检测第一触摸操作,以及通过所述Home键检测第二触摸操作,其中,所述预设区域为所述屏幕上与所述Home键的距离最近的区域;Detecting the first touch operation through a preset area of the screen of the mobile terminal, and detecting the second touch operation through the Home button, wherein the preset area is the closest distance to the Home button on the screen area;
判断所述第一触摸操作的检测时间与所述第二触摸操作的检测时间之差是否在预设时间范围内;judging whether the difference between the detection time of the first touch operation and the detection time of the second touch operation is within a preset time range;
若所述第一触摸操作的检测时间与所述第二触摸操作的检测时间之差在所述预设时间范围内,则确定所述移动终端检测到目标滑动操作;If the difference between the detection time of the first touch operation and the detection time of the second touch operation is within the preset time range, it is determined that the mobile terminal has detected a target sliding operation;
根据预设的滑动操作与事件的对应关系,执行与所述目标滑动操作对应的目标事件。According to the preset correspondence between sliding operations and events, the target event corresponding to the target sliding operation is executed.
上述本发明实施例揭示的方法可以应用于处理器1301中,或者由处理器1301实现。处理器1301可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器1301中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器1301可以是通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(FieldProgrammable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器1302,处理器1301读取存储器1302中的信息,结合其硬件完成上述方法的步骤。The methods disclosed in the foregoing embodiments of the present invention may be applied to the processor 1301 or implemented by the processor 1301 . The processor 1301 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method may be completed by an integrated logic circuit of hardware in the processor 1301 or instructions in the form of software. The above-mentioned processor 1301 may be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), an off-the-shelf programmable gate array (Field Programmable Gate Array, FPGA) or other available Program logic devices, discrete gate or transistor logic devices, discrete hardware components. Various methods, steps and logic block diagrams disclosed in the embodiments of the present invention may be implemented or executed. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, and the like. The steps of the methods disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register. The storage medium is located in the memory 1302, and the processor 1301 reads the information in the memory 1302, and completes the steps of the above method in combination with its hardware.
可以理解的是,本文描述的这些实施例可以用硬件、软件、固件、中间件、微码或其组合来实现。对于硬件实现,处理单元可以实现在一个或多个专用集成电路(ApplicationSpecific Integrated Circuits,ASIC)、数字信号处理器(Digital Signal Processing,DSP)、数字信号处理设备(DSP Device,DSPD)、可编程逻辑设备(Programmable LogicDevice,PLD)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、通用处理器、控制器、微控制器、微处理器、用于执行本申请所述功能的其它电子单元或其组合中。It should be understood that the embodiments described herein may be implemented by hardware, software, firmware, middleware, microcode or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application specific integrated circuits (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing device (DSP Device, DSPD), programmable logic Device (Programmable Logic Device, PLD), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), general-purpose processor, controller, microcontroller, microprocessor, other electronic units for performing the functions described in this application or a combination thereof.
对于软件实现,可通过执行本文所述功能的模块(例如过程、函数等)来实现本文所述的技术。软件代码可存储在存储器中并通过处理器执行。存储器可以在处理器中或在处理器外部实现。For a software implementation, the techniques described herein can be implemented through modules (eg, procedures, functions, and so on) that perform the functions described herein. Software codes can be stored in memory and executed by a processor. Memory can be implemented within the processor or external to the processor.
可选的,处理器1301执行所述通过所述Home键检测第二触摸操作的步骤,包括:Optionally, the processor 1301 performing the step of detecting the second touch operation through the Home button includes:
通过所述Home键检测第二触摸操作,并识别所述第二触摸操作的滑动方向;Detecting a second touch operation through the Home button, and identifying a sliding direction of the second touch operation;
处理器1301执行所述若所述第一触摸操作的检测时间与所述第二触摸操作的检测时间之差在所述预设时间范围内,则确定所述移动终端检测到目标滑动操作的步骤,包括:The processor 1301 executes the step of determining that the mobile terminal has detected a target sliding operation if the difference between the detection time of the first touch operation and the detection time of the second touch operation is within the preset time range ,include:
若所述第一触摸操作的检测时间与所述第二触摸操作的检测时间之差在所述预设时间范围内,且所述第二触摸操作的滑动方向为向下滑动,则确定所述移动终端检测到目标向下滑动操作,其中,所述向下滑动为从所述Home键上靠近所述屏幕的一侧向所述Home键上远离所述屏幕的一侧的滑动;If the difference between the detection time of the first touch operation and the detection time of the second touch operation is within the preset time range, and the sliding direction of the second touch operation is downward sliding, then determine the The mobile terminal detects a target sliding down operation, wherein the sliding down is a slide from a side of the Home button close to the screen to a side of the Home button away from the screen;
若所述第一触摸操作的检测时间与所述第二触摸操作的检测时间之差在所述预设时间范围内,且所述第二触摸操作的滑动方向为向上滑动,则确定所述移动终端检测到目标向上滑动操作,其中,所述向上滑动为从所述Home键上远离所述屏幕的一侧向所述Home键上靠近所述屏幕的一侧的滑动。If the difference between the detection time of the first touch operation and the detection time of the second touch operation is within the preset time range, and the sliding direction of the second touch operation is upward sliding, then determine the movement The terminal detects an upward sliding operation of the target, where the upward sliding is a sliding from a side of the Home button away from the screen to a side of the Home button close to the screen.
可选的,处理器1301执行所述根据预设的滑动操作与事件的对应关系,执行与所述目标滑动操作对应的目标事件的步骤,包括:Optionally, the processor 1301 executing the step of executing a target event corresponding to the target sliding operation according to the preset correspondence between sliding operations and events includes:
若所述移动终端检测到所述目标向下滑动操作,则在所述屏幕上显示下拉菜单的内容;If the mobile terminal detects that the target slides down, display the content of the drop-down menu on the screen;
若所述移动终端检测到所述目标向上滑动操作,则在所述屏幕上显示上拉菜单的内容。If the mobile terminal detects an upward sliding operation of the target, the content of the pull-up menu is displayed on the screen.
可选的,处理器1301还用于读取存储器1302存储的程序或指令,执行如下步骤:Optionally, the processor 1301 is further configured to read programs or instructions stored in the memory 1302, and perform the following steps:
若所述第一触摸操作的检测时间与所述第二触摸操作的检测时间之差不在所述预设时间范围内,且所述第一触摸操作的检测时间先于所述第二触摸操作的检测时间,则执行与所述第一触摸操作对应的事件;If the difference between the detection time of the first touch operation and the detection time of the second touch operation is not within the preset time range, and the detection time of the first touch operation is earlier than the detection time of the second touch operation detection time, then execute an event corresponding to the first touch operation;
若所述第一触摸操作的检测时间与所述第二触摸操作的检测时间之差不在所述预设时间范围内,且所述第二触摸操作的检测时间先于所述第一触摸操作的检测时间,则执行与所述第二触摸操作对应的事件。If the difference between the detection time of the first touch operation and the detection time of the second touch operation is not within the preset time range, and the detection time of the second touch operation is earlier than the detection time of the first touch operation If the time is detected, an event corresponding to the second touch operation is executed.
可选的,处理器1301执行所述通过所述Home键检测第二触摸操作,并识别所述第二触摸操作的滑动方向的步骤,包括:Optionally, the processor 1301 performing the step of detecting the second touch operation through the Home key and identifying the sliding direction of the second touch operation includes:
检测所述Home键的第一预设区域的电压值是否产生变化,以及检测所述Home键的第二预设区域的电压值是否产生变化,其中,所述第一预设区域离所屏幕的距离在第一预设距离范围内,所述第二预设区域离所屏幕的距离在第二预设距离范围内,且所述第一预设距离范围内的最大距离小于所述第二预设距离范围内的最小距离;Detecting whether the voltage value of the first preset area of the Home button changes, and detecting whether the voltage value of the second preset area of the Home button changes, wherein the first preset area is far from the The distance is within a first preset distance range, the distance between the second preset area and the screen is within a second preset distance range, and the maximum distance within the first preset distance range is smaller than the second preset distance Set the minimum distance within the distance range;
若检测到所述第一预设区域的电压值和所述第二预设区域的电压值相继产生变化,则确定通过所述Home键检测到第二触摸操作;If it is detected that the voltage value of the first preset area and the voltage value of the second preset area successively change, then it is determined that a second touch operation is detected through the Home button;
根据所述第一预设区域的电压值产生变化的检测时间和所述第二预设区域的电压值产生变化的检测时间,识别所述第二触摸操作的滑动方向。The sliding direction of the second touch operation is identified according to the detection time of the voltage value change in the first preset area and the detection time of the voltage value change in the second preset area.
请参阅图14,图14是本发明实施例提供的另一种移动终端的结构示意图,所述移动终端的Home键为触摸按键。如图14所示,移动终端1400包括射频(Radio Frequency,RF)电路1401、存储器1402、输入单元1403、显示单元1404、电源1405、处理器1406、音频电路1407和通信模块1408。Please refer to FIG. 14 . FIG. 14 is a schematic structural diagram of another mobile terminal provided by an embodiment of the present invention. The Home button of the mobile terminal is a touch button. As shown in FIG. 14 , a mobile terminal 1400 includes a radio frequency (Radio Frequency, RF) circuit 1401 , a memory 1402 , an input unit 1403 , a display unit 1404 , a power supply 1405 , a processor 1406 , an audio circuit 1407 and a communication module 1408 .
其中,输入单元1403可用于接收用户输入的数字或字符信息,以及产生与移动终端1400的用户设置以及功能控制有关的信号输入。具体地,本发明实施例中,该输入单元1403可以包括触控面板14031。触控面板14031,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板14031上的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板14031可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给该处理器1406,并能接收处理器1406发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板14031。除了触控面板14031,输入单元1403还可以包括其他输入设备14032,其他输入设备14032可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。Wherein, the input unit 1403 can be used to receive number or character information input by the user, and generate signal input related to the user setting and function control of the mobile terminal 1400 . Specifically, in this embodiment of the present invention, the input unit 1403 may include a touch panel 14031 . The touch panel 14031, also referred to as a touch screen, can collect the user's touch operations on or near it (such as the user's operation on the touch panel 14031 using any suitable object or accessory such as a finger, a stylus), and The specified program drives the corresponding connected device. Optionally, the touch panel 14031 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to the to the processor 1406, and can receive and execute commands sent by the processor 1406. In addition, the touch panel 14031 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 14031, the input unit 1403 may also include other input devices 14032, which may include but not limited to physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, etc. one or more of.
其中,显示单元1404可用于显示由用户输入的信息或提供给用户的信息以及移动终端1400的各种菜单界面。显示单元1404可包括显示面板14041,可选的,可以采用LCD或有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板14041。Wherein, the display unit 1404 can be used to display information input by the user or provided to the user and various menu interfaces of the mobile terminal 1400 . The display unit 1404 may include a display panel 14041. Optionally, the display panel 14041 may be configured in the form of an LCD or an organic light-emitting diode (Organic Light-Emitting Diode, OLED).
应注意,触控面板14031可以覆盖显示面板14041,形成触摸显示屏,当该触摸显示屏检测到在其上或附近的触摸操作后,传送给处理器1406以确定触摸事件的类型,随后处理器1406根据触摸事件的类型在触摸显示屏上提供相应的视觉输出。It should be noted that the touch panel 14031 can cover the display panel 14041 to form a touch display screen. When the touch display screen detects a touch operation on or near it, it is sent to the processor 1406 to determine the type of the touch event, and then the processor 1406 Provide corresponding visual output on the touch display screen according to the type of the touch event.
触摸显示屏包括应用程序界面显示区及常用控件显示区。该应用程序界面显示区及该常用控件显示区的排列方式并不限定,可以为上下排列、左右排列等可以区分两个显示区的排列方式。该应用程序界面显示区可以用于显示应用程序的界面。每一个界面可以包含至少一个应用程序的图标和/或widget桌面控件等界面元素。该应用程序界面显示区也可以为不包含任何内容的空界面。该常用控件显示区用于显示使用率较高的控件,例如,设置按钮、界面编号、滚动条、电话本图标等应用程序图标等。The touch display screen includes an application program interface display area and a common control display area. The arrangement of the display area of the application program interface and the display area of the commonly used controls is not limited, and may be an arrangement in which the two display areas can be distinguished, such as vertical arrangement, left-right arrangement, and the like. The application program interface display area can be used to display the interface of the application program. Each interface may include at least one interface element such as an icon of an application program and/or a widget desktop control. The application program interface display area can also be an empty interface without any content. The commonly used control display area is used to display controls with a high usage rate, for example, application icons such as setting buttons, interface numbers, scroll bars, and phonebook icons.
其中处理器1406是移动终端1400的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在第一存储器14021内的软件程序和/或模块,以及调用存储在第二存储器14022内的数据,执行移动终端1400的各种功能和处理数据,从而对移动终端1400进行整体监控。可选的,处理器1406可包括一个或多个处理单元。Wherein the processor 1406 is the control center of the mobile terminal 1400, uses various interfaces and lines to connect various parts of the whole mobile phone, and runs or executes the software programs and/or modules stored in the first memory 14021, and calls the software programs and/or modules stored in the second The data in the memory 14022 executes various functions of the mobile terminal 1400 and processes data, so as to monitor the mobile terminal 1400 as a whole. Optionally, the processor 1406 may include one or more processing units.
在本发明实施例中,通过调用存储该第一存储器14021内的软件程序和/或模块和/或该第二存储器14022内的数据,处理器1406用于通过所述移动终端的屏幕的预设区域检测第一触摸操作,以及通过所述Home键检测第二触摸操作,其中,所述预设区域为所述屏幕上与所述Home键的距离最近的区域;In the embodiment of the present invention, the processor 1406 is used for preset detecting a first touch operation in an area, and detecting a second touch operation through the Home button, wherein the preset area is an area on the screen closest to the Home button;
判断所述第一触摸操作的检测时间与所述第二触摸操作的检测时间之差是否在预设时间范围内;judging whether the difference between the detection time of the first touch operation and the detection time of the second touch operation is within a preset time range;
若所述第一触摸操作的检测时间与所述第二触摸操作的检测时间之差在所述预设时间范围内,则确定所述移动终端检测到目标滑动操作;If the difference between the detection time of the first touch operation and the detection time of the second touch operation is within the preset time range, it is determined that the mobile terminal has detected a target sliding operation;
根据预设的滑动操作与事件的对应关系,执行与所述目标滑动操作对应的目标事件。According to the preset correspondence between sliding operations and events, the target event corresponding to the target sliding operation is executed.
可选的,处理器1406执行所述通过所述Home键检测第二触摸操作的步骤,包括:Optionally, the processor 1406 performing the step of detecting the second touch operation through the Home button includes:
通过所述Home键检测第二触摸操作,并识别所述第二触摸操作的滑动方向;Detecting a second touch operation through the Home button, and identifying a sliding direction of the second touch operation;
处理器1406执行所述若所述第一触摸操作的检测时间与所述第二触摸操作的检测时间之差在所述预设时间范围内,则确定所述移动终端检测到目标滑动操作的步骤,包括:The processor 1406 executes the step of determining that the mobile terminal has detected a target sliding operation if the difference between the detection time of the first touch operation and the detection time of the second touch operation is within the preset time range ,include:
若所述第一触摸操作的检测时间与所述第二触摸操作的检测时间之差在所述预设时间范围内,且所述第二触摸操作的滑动方向为向下滑动,则确定所述移动终端检测到目标向下滑动操作,其中,所述向下滑动为从所述Home键上靠近所述屏幕的一侧向所述Home键上远离所述屏幕的一侧的滑动;If the difference between the detection time of the first touch operation and the detection time of the second touch operation is within the preset time range, and the sliding direction of the second touch operation is downward sliding, then determine the The mobile terminal detects a target sliding down operation, wherein the sliding down is a slide from a side of the Home button close to the screen to a side of the Home button away from the screen;
若所述第一触摸操作的检测时间与所述第二触摸操作的检测时间之差在所述预设时间范围内,且所述第二触摸操作的滑动方向为向上滑动,则确定所述移动终端检测到目标向上滑动操作,其中,所述向上滑动为从所述Home键上远离所述屏幕的一侧向所述Home键上靠近所述屏幕的一侧的滑动。If the difference between the detection time of the first touch operation and the detection time of the second touch operation is within the preset time range, and the sliding direction of the second touch operation is upward sliding, then determine the movement The terminal detects an upward sliding operation of the target, where the upward sliding is a sliding from a side of the Home button away from the screen to a side of the Home button close to the screen.
可选的,处理器1406执行所述根据预设的滑动操作与事件的对应关系,执行与所述目标滑动操作对应的目标事件的步骤,包括:Optionally, the processor 1406 performing the step of executing a target event corresponding to the target sliding operation according to the preset correspondence between sliding operations and events includes:
若所述移动终端检测到所述目标向下滑动操作,则在所述屏幕上显示下拉菜单的内容;If the mobile terminal detects that the target slides down, display the content of the drop-down menu on the screen;
若所述移动终端检测到所述目标向上滑动操作,则在所述屏幕上显示上拉菜单的内容。If the mobile terminal detects an upward sliding operation of the target, the content of the pull-up menu is displayed on the screen.
可选的,处理器1406还用于调用存储该第一存储器14021内的软件程序和/或模块和/或该第二存储器14022内的数据,执行如下步骤:Optionally, the processor 1406 is further configured to call the software programs and/or modules stored in the first memory 14021 and/or the data in the second memory 14022, and perform the following steps:
若所述第一触摸操作的检测时间与所述第二触摸操作的检测时间之差不在所述预设时间范围内,且所述第一触摸操作的检测时间先于所述第二触摸操作的检测时间,则执行与所述第一触摸操作对应的事件;If the difference between the detection time of the first touch operation and the detection time of the second touch operation is not within the preset time range, and the detection time of the first touch operation is earlier than the detection time of the second touch operation detection time, then execute an event corresponding to the first touch operation;
若所述第一触摸操作的检测时间与所述第二触摸操作的检测时间之差不在所述预设时间范围内,且所述第二触摸操作的检测时间先于所述第一触摸操作的检测时间,则执行与所述第二触摸操作对应的事件。If the difference between the detection time of the first touch operation and the detection time of the second touch operation is not within the preset time range, and the detection time of the second touch operation is earlier than the detection time of the first touch operation If the time is detected, an event corresponding to the second touch operation is executed.
可选的,处理器1406执行所述通过所述Home键检测第二触摸操作,并识别所述第二触摸操作的滑动方向的步骤,包括:Optionally, the processor 1406 performs the step of detecting the second touch operation through the Home key and identifying the sliding direction of the second touch operation, including:
检测所述Home键的第一预设区域的电压值是否产生变化,以及检测所述Home键的第二预设区域的电压值是否产生变化,其中,所述第一预设区域离所屏幕的距离在第一预设距离范围内,所述第二预设区域离所屏幕的距离在第二预设距离范围内,且所述第一预设距离范围内的最大距离小于所述第二预设距离范围内的最小距离;Detecting whether the voltage value of the first preset area of the Home button changes, and detecting whether the voltage value of the second preset area of the Home button changes, wherein the first preset area is far from the The distance is within a first preset distance range, the distance between the second preset area and the screen is within a second preset distance range, and the maximum distance within the first preset distance range is smaller than the second preset distance Set the minimum distance within the distance range;
若检测到所述第一预设区域的电压值和所述第二预设区域的电压值相继产生变化,则确定通过所述Home键检测到第二触摸操作;If it is detected that the voltage value of the first preset area and the voltage value of the second preset area successively change, then it is determined that a second touch operation is detected through the Home button;
根据所述第一预设区域的电压值产生变化的检测时间和所述第二预设区域的电压值产生变化的检测时间,识别所述第二触摸操作的滑动方向。The sliding direction of the second touch operation is identified according to the detection time of the voltage value change in the first preset area and the detection time of the voltage value change in the second preset area.
本发明实施例还提供一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现本发明实施例中的滑动控制方法中的步骤。The embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the steps in the sliding control method in the embodiment of the present invention are realized.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in 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 or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。If the functions described above are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media capable of storing program codes such as U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. Should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710631102.7ACN107402703B (en) | 2017-07-28 | 2017-07-28 | A sliding control method and mobile terminal |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710631102.7ACN107402703B (en) | 2017-07-28 | 2017-07-28 | A sliding control method and mobile terminal |
| Publication Number | Publication Date |
|---|---|
| CN107402703A CN107402703A (en) | 2017-11-28 |
| CN107402703Btrue CN107402703B (en) | 2019-10-18 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710631102.7AActiveCN107402703B (en) | 2017-07-28 | 2017-07-28 | A sliding control method and mobile terminal |
| Country | Link |
|---|---|
| CN (1) | CN107402703B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108287649A (en)* | 2017-11-30 | 2018-07-17 | 维沃移动通信有限公司 | A kind of operating method of mobile terminal, device and mobile terminal |
| CN108984024B (en)* | 2018-06-27 | 2021-07-20 | Oppo广东移动通信有限公司 | Touch operation method, device, storage medium and electronic device |
| CN110913068A (en)* | 2019-11-14 | 2020-03-24 | 青岛海信移动通信技术股份有限公司 | Communication terminal and sliding touch event response method |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105808120A (en)* | 2016-03-07 | 2016-07-27 | 珠海格力电器股份有限公司 | Screen control method and device of touch screen and mobile terminal |
| CN105930089A (en)* | 2016-05-31 | 2016-09-07 | 维沃移动通信有限公司 | Method for switching display interfaces of mobile terminal and mobile terminal |
| CN106406728A (en)* | 2016-08-31 | 2017-02-15 | 瓦戈科技(上海)有限公司 | Operation method for desktop gesture of mobile terminal |
| CN106648416A (en)* | 2016-10-18 | 2017-05-10 | 维沃移动通信有限公司 | Method for starting application and mobile terminal |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105808120A (en)* | 2016-03-07 | 2016-07-27 | 珠海格力电器股份有限公司 | Screen control method and device of touch screen and mobile terminal |
| CN105930089A (en)* | 2016-05-31 | 2016-09-07 | 维沃移动通信有限公司 | Method for switching display interfaces of mobile terminal and mobile terminal |
| CN106406728A (en)* | 2016-08-31 | 2017-02-15 | 瓦戈科技(上海)有限公司 | Operation method for desktop gesture of mobile terminal |
| CN106648416A (en)* | 2016-10-18 | 2017-05-10 | 维沃移动通信有限公司 | Method for starting application and mobile terminal |
| Publication number | Publication date |
|---|---|
| CN107402703A (en) | 2017-11-28 |
| Publication | Publication Date | Title |
|---|---|---|
| CN105824559B (en) | False touch recognition and processing method and electronic equipment | |
| CN106843739B (en) | A kind of display control method and mobile terminal of mobile terminal | |
| US20150145820A1 (en) | Graphics editing method and electronic device using the same | |
| CN106383645A (en) | Music playing control method and mobile terminal | |
| CN107506109A (en) | A kind of method and mobile terminal for starting application program | |
| CN105843491A (en) | Quick navigation switching method and device of page, and terminal | |
| CN105224276A (en) | A kind of multi-screen display method and electronic equipment | |
| CN107103304A (en) | The display methods and mobile terminal in a kind of fingerprint recognition region | |
| CN106648242B (en) | A kind of control method and mobile terminal of touch control operation | |
| CN106873891B (en) | Touch operation method and mobile terminal | |
| CN107678666A (en) | A kind of virtual key display methods, mobile terminal and computer-readable recording medium | |
| CN107193482A (en) | The operating method and mobile terminal of a kind of mobile terminal screen | |
| CN107562345A (en) | A kind of information storage means and mobile terminal | |
| CN106371745B (en) | A kind of interface switching method and mobile terminal | |
| CN106503179A (en) | A kind of loading method of Webpage and mobile terminal | |
| CN106371719A (en) | Screen rotation control method and mobile terminal | |
| CN105824525A (en) | Method for triggering terminal operation and mobile terminal | |
| CN106527937B (en) | Method for adding mobile terminal widget and mobile terminal | |
| CN107402703B (en) | A sliding control method and mobile terminal | |
| CN106445299A (en) | A control method and mobile terminal | |
| CN106681640B (en) | Screen display control method of a mobile terminal and mobile terminal | |
| CN107368249A (en) | A kind of touch control operation recognition methods, device and mobile terminal | |
| CN106502567A (en) | A kind of screenshot method and mobile terminal | |
| CN107526523A (en) | The operation interface control method and mobile terminal of a kind of mobile terminal | |
| CN107562262A (en) | A kind of method, terminal and computer-readable recording medium for responding touch control operation |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |