CN104166508A - Touch implementation method and device - Google Patents
Touch implementation method and device Download PDFInfo
- Publication number
- CN104166508A CN104166508A CN201410407734.1A CN201410407734A CN104166508A CN 104166508 A CN104166508 A CN 104166508A CN 201410407734 A CN201410407734 A CN 201410407734A CN 104166508 A CN104166508 A CN 104166508A
- Authority
- CN
- China
- Prior art keywords
- main screen
- sub
- area
- target area
- screen area
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
本发明实施例公开了一种触控实现方法及装置。该方法包括:根据作用在触控面板上的点击操作,将当前主屏幕中第一目标区域上的显示内容在主屏幕中的第二目标区域进行显示,其中触控面板位于所在终端的背部,主屏幕位于所在终端的前部;如果检测到作用在第二目标区域上的第一触发操作,则计算第一触发操作对应的触摸点坐标在第一目标区域中的实际响应点坐标,并基于响应点坐标执行与第一触发操作对应的触控响应操作。本发明实施例提供的技术方案通过采用一种较为简单的操作方式,可以达到单手触摸终端的主屏幕效果,延长终端电池的续航能力。
The embodiment of the invention discloses a method and a device for realizing touch control. The method includes: according to the click operation acting on the touch panel, displaying the display content on the first target area of the current main screen in the second target area of the main screen, wherein the touch panel is located on the back of the terminal where it is located, The main screen is located at the front of the terminal; if the first trigger operation acting on the second target area is detected, the actual response point coordinates of the touch point coordinates corresponding to the first trigger operation in the first target area are calculated, and based on A touch response operation corresponding to the first trigger operation is performed in response to the point coordinates. The technical solution provided by the embodiment of the present invention can achieve the effect of touching the main screen of the terminal with one hand by adopting a relatively simple operation mode, and prolong the battery life of the terminal.
Description
技术领域technical field
本发明实施例涉及触控技术领域,尤其涉及一种触控实现方法及装置。The embodiments of the present invention relate to the technical field of touch control, and in particular, to a method and device for realizing touch control.
背景技术Background technique
目前,各式各样的触摸屏终端(例如智能手机、平板电脑、个人数字助理)蜂拥而现,成为当下最为主流的一种电子产品。其中,触摸屏又称为触控屏或者触控面板,是一种可接收触头等输入讯号的感应式液晶显示装置。当接触了屏幕上的图形按钮时,屏幕上的触觉反馈系统可根据预先编程的程式驱动各种连结装置,可用以取代机械式的按钮面板,并借由液晶显示画面制造出生动的影音效果。触摸屏作为一种交互式用户输入装置,具有操作简单、方便、自然等优点。At present, various touch screen terminals (such as smart phones, tablet computers, and personal digital assistants) are emerging in droves, becoming the most mainstream electronic product at present. Wherein, a touch screen, also called a touch screen or a touch panel, is an inductive liquid crystal display device capable of receiving input signals such as contacts. When the graphic buttons on the screen are touched, the tactile feedback system on the screen can drive various connecting devices according to the pre-programmed program, which can be used to replace the mechanical button panel, and create vivid audio-visual effects through the LCD screen. As an interactive user input device, the touch screen has the advantages of simple, convenient and natural operation.
随着电子科技技术的发展以及人们日益增长的需求,终端触摸屏的屏幕被设计的越来越大,从而可以带给用户一种高品质的视觉体验。但是,由于终端触摸屏幕较大,不便于用户仅采用单手来触摸其屏幕,也即不便于仅通过握有终端的一只手实现对触摸屏幕上任何区域的触发。为此,背部触控式智能终端随着出现。所谓背部触控式终端,即为在背部置备有触控面板的终端。其中,触控面板区域的面积远小于主屏幕(即前部触摸屏幕)区域的面积。图1为现有技术提供的一种背部触控式终端的结构示意图。参见图1,图1(a)示出了背部触控式终端的前部,即正面部分,在该部分中包含有主屏幕110;图1(b)示出了背部触控式终端的背部,即反面部分,在该部分中包含有触控面板120。背部触控式终端可以通过用户作用在触控面板120上的滑动操作以及触控面板上的点与主屏幕110上的点之间的映射关系,来控制对主屏幕110中相应图标的触发。With the development of electronic technology and the increasing demand of people, the screen of the terminal touch screen is designed to be larger and larger, so as to bring users a high-quality visual experience. However, due to the large touch screen of the terminal, it is inconvenient for the user to touch the screen with only one hand, that is, it is inconvenient to trigger any area on the touch screen with only one hand holding the terminal. For this reason, smart terminals with touch screen on the back appear. The so-called rear touch terminal refers to a terminal equipped with a touch panel on the back. Wherein, the area of the touch panel area is much smaller than the area of the main screen (that is, the front touch screen). FIG. 1 is a schematic structural diagram of a rear touch terminal provided in the prior art. Referring to FIG. 1, FIG. 1(a) shows the front part of the back-touch terminal, that is, the front part, in which a main screen 110 is included; FIG. 1(b) shows the back of the back-touch terminal , that is, the back part, which includes the touch panel 120 . The rear touch terminal can control the triggering of corresponding icons on the main screen 110 through the user's sliding operation on the touch panel 120 and the mapping relationship between points on the touch panel and points on the main screen 110 .
但是,现有技术存在的缺陷在于:在终端背部置备的触控面板不易被用户查看,因此用户很难通过上述滑动操作一次性准确触发主屏幕中的相应图标,而是需要不断的尝试多次,从而造成了用户触控操作上的繁琐,缩短了终端电池的续航能力。However, the defect in the existing technology is that the touch panel provided on the back of the terminal is not easy to be viewed by the user, so it is difficult for the user to accurately trigger the corresponding icon on the main screen at one time through the above-mentioned sliding operation, but it is necessary to continuously try multiple times , thus causing cumbersome touch operations for the user and shortening the battery life of the terminal.
发明内容Contents of the invention
本发明实施例提供一种触控实现方法及装置,以通过采用一种较为简单的操作方式来达到可以单手触摸终端的主屏幕效果,延长终端电池的续航能力。Embodiments of the present invention provide a method and device for implementing touch control, so as to achieve the effect of being able to touch the main screen of the terminal with one hand by adopting a relatively simple operation mode, and prolong the battery life of the terminal.
第一方面,本发明实施例提供了一种触控实现方法,该方法包括:In a first aspect, an embodiment of the present invention provides a method for implementing touch control, the method including:
根据作用在触控面板上的点击操作,将当前主屏幕中第一目标区域上的显示内容在主屏幕中的第二目标区域进行显示,其中所述触控面板位于所在终端的背部,所述主屏幕位于所在终端的前部;According to the click operation acting on the touch panel, the display content on the first target area in the current main screen is displayed on the second target area in the main screen, wherein the touch panel is located on the back of the terminal where it is located, and the The main screen is located on the front of the terminal in which it is located;
如果检测到作用在所述第二目标区域上的第一触发操作,则计算所述第一触发操作对应的触摸点坐标在所述第一目标区域中的实际响应点坐标,并基于所述实际响应点坐标执行与所述第一触发操作对应的触控响应操作。If the first trigger operation acting on the second target area is detected, calculate the actual response point coordinates of the touch point coordinates corresponding to the first trigger operation in the first target area, and based on the actual A touch response operation corresponding to the first trigger operation is executed in response to the point coordinates.
第二方面,本发明实施例还提供了一种触控实现装置,该装置包括:In the second aspect, the embodiment of the present invention also provides a device for realizing touch control, which includes:
显示模块,用于根据作用在触控面板上的点击操作,将当前主屏幕中第一目标区域上的显示内容在主屏幕中的第二目标区域进行显示,其中所述触控面板位于所在终端的背部,所述主屏幕位于所在终端的前部;The display module is configured to display the display content on the first target area of the current main screen in the second target area of the main screen according to the click operation acting on the touch panel, wherein the touch panel is located on the terminal where it is located , the main screen is located on the front of the corresponding terminal;
第一响应模块,用于如果检测到作用在所述第二目标区域上的第一触发操作,则计算所述第一触发操作对应的触摸点坐标在所述第一目标区域中的实际响应点坐标,并基于所述实际响应点坐标执行与所述第一触发操作对应的触控响应操作。A first response module, configured to calculate an actual response point in the first target area of the touch point coordinates corresponding to the first trigger operation if a first trigger operation acting on the second target area is detected coordinates, and perform a touch response operation corresponding to the first trigger operation based on the actual response point coordinates.
本发明实施例提出的技术方案,使得用户在通过对背部触控面板的点击操作将主屏幕中第一目标区域上的显示内容在第二目标区域进行显示之后,可以进一步通过触摸第二目标区域来完成对第一目标区域相应坐标点的触控响应。这样,在第一目标区域为用户单手不可触及的主屏幕区域,第二目标区域为用户单手可触及的主屏幕区域的情况下,用户仅使用单手便可实现对终端主屏幕不可触及区域的触发。与通过对背部触控面板的滑动操作来触发终端主屏幕相应区域的方案相比,本发明实施例不仅能够达到可以单手触摸终端的主屏幕的技术效果,而且对背部触控面板的操作仅为简单的点击操作,其出错率低,无需用户多次定位,能够延长终端电池的续航能力。The technical solution proposed by the embodiment of the present invention enables the user to display the display content on the first target area in the main screen in the second target area by clicking on the back touch panel, and then further touch the second target area To complete the touch response to the corresponding coordinate point of the first target area. In this way, when the first target area is the main screen area that cannot be touched by the user with one hand, and the second target area is the main screen area that the user can touch with one hand, the user can realize that the main screen of the terminal cannot be touched by using only one hand. Region triggers. Compared with the solution of triggering the corresponding area of the main screen of the terminal by sliding the touch panel on the back, the embodiment of the present invention can not only achieve the technical effect of being able to touch the main screen of the terminal with one hand, but also only need to operate the touch panel on the back. It is a simple click operation with a low error rate and does not require the user to locate multiple times, which can prolong the battery life of the terminal.
附图说明Description of drawings
图1为现有技术提供的一种背部触控式终端的结构示意图;FIG. 1 is a schematic structural diagram of a rear touch terminal provided in the prior art;
图2A是本发明实施例一提供的一种触控实现方法的流程示意图;FIG. 2A is a schematic flowchart of a method for realizing touch control provided by Embodiment 1 of the present invention;
图2B是本发明实施例一提供的一种主屏幕被划分为上下两个子主屏区域的示意图;FIG. 2B is a schematic diagram of a main screen divided into upper and lower sub-main screen areas according to Embodiment 1 of the present invention;
图2C是本发明实施例一提供的一种主屏幕被划分为左右两个子主屏区域的示意图;FIG. 2C is a schematic diagram of a main screen divided into left and right sub-main screen areas according to Embodiment 1 of the present invention;
图2D是本发明实施例一提供的一种主屏幕被划分为四个子主屏区域的示意图;FIG. 2D is a schematic diagram of a main screen divided into four sub-main screen areas according to Embodiment 1 of the present invention;
图2E是本发明实施例一提供的一种触控面板被划分为三个子面板区域的示意图;FIG. 2E is a schematic diagram of a touch panel divided into three sub-panel regions according to Embodiment 1 of the present invention;
图3是本发明实施例二提供的一种触控实现方法的流程示意图;FIG. 3 is a schematic flowchart of a method for realizing touch control provided by Embodiment 2 of the present invention;
图4是本发明实施例三提供的一种触控实现方法的流程示意图;FIG. 4 is a schematic flowchart of a method for realizing touch control provided by Embodiment 3 of the present invention;
图5A是本发明实施例四提供的一种触控实现方法的流程示意图;FIG. 5A is a schematic flowchart of a method for realizing touch control provided by Embodiment 4 of the present invention;
图5B是本发明实施例四提供的一种包含有四个子主屏区域的主屏幕的显示示意图;FIG. 5B is a schematic display diagram of a main screen including four sub-main screen areas provided by Embodiment 4 of the present invention;
图5C是本发明实施例四提供的一种根据作用在触控面板上的第一次点击操作,将图5B所示的当前主屏幕中第一目标区域上的显示内容在主屏幕中的第二目标区域进行显示后的示意图;Fig. 5C is a method according to the fourth embodiment of the present invention, according to the first click operation on the touch panel, the display content on the first target area in the current main screen shown in Fig. 5B is displayed on the first click on the main screen 2. Schematic diagram of the target area after displaying;
图5D是本发明实施例四提供的一种根据作用在触控面板上的第二次点击操作,将图5C所示的当前主屏幕中第一目标区域上的显示内容在主屏幕中的第二目标区域进行显示后的示意图;Fig. 5D is a method according to Embodiment 4 of the present invention, according to the second click operation on the touch panel, the display content on the first target area in the current main screen shown in Fig. 2. Schematic diagram of the target area after displaying;
图6是本发明实施例五提供的一种触控实现装置的结构示意图。FIG. 6 is a schematic structural diagram of a device for realizing touch control provided by Embodiment 5 of the present invention.
具体实施方式Detailed ways
下面结合附图和实施例对本发明作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部结构。The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, but not to limit the present invention. In addition, it should be noted that, for the convenience of description, only some structures related to the present invention are shown in the drawings but not all structures.
实施例一Embodiment one
图2A是本发明实施例一提供的一种触控实现方法的流程示意图。本实施例可适用于对背部触控式终端主屏幕的触控情况,该方法可以由触控实现装置来执行,所述装置由软件和/或硬件实现。该装置可以被内置在包含有触控面板和主屏幕的背部触控式终端中。其中,触控面板位于所在终端的背部,主屏幕位于所在终端的前部。参见图2A,本实施例中的触控实现方法具体包括如下操作:FIG. 2A is a schematic flowchart of a method for realizing touch control provided by Embodiment 1 of the present invention. This embodiment is applicable to the case of touching the main screen of the back touch-sensitive terminal, and the method may be executed by a device for implementing touch control, and the device is implemented by software and/or hardware. The device can be built into a back touch terminal including a touch panel and a main screen. Wherein, the touch panel is located at the back of the terminal, and the main screen is located at the front of the terminal. Referring to FIG. 2A, the touch implementation method in this embodiment specifically includes the following operations:
操作210、根据作用在触控面板上的点击操作,将当前主屏幕中第一目标区域上的显示内容在主屏幕中的第二目标区域进行显示。Operation 210: According to the click operation on the touch panel, display the display content in the first target area on the current main screen in the second target area on the main screen.
在本实施例中,可预先将主屏幕划分为至少两个子主屏区域,将触控面板划分为至少一个子面板区域;然后,实时检测用户对触控面板上子面板区域的点击操作,并基于该检测结果将当前主屏幕中第一目标区域上的显示内容在主屏幕中的第二目标区域进行显示。其中,第一目标区域可以是不能够被用户握有背部触控式终端的单手进行触摸操作的区域,第二目标区域可以是能够被用户握有背部触控式终端的单手进行触摸操作的区域作为第二目标区域。所述点击操作可以单击操作,也可以是双击操作,本实施例对此不作限定。In this embodiment, the main screen can be divided into at least two sub-main screen areas in advance, and the touch panel can be divided into at least one sub-panel area; then, the user's click operation on the sub-panel area on the touch panel is detected in real time, and The detection result displays the display content in the first target area on the current main screen in the second target area on the main screen. Wherein, the first target area may be an area that cannot be touched by the user's single hand holding the touch-sensitive terminal on the back, and the second target area may be touched by the user's single hand holding the touch-sensitive terminal on the back. area as the second target area. The clicking operation may be a single-click operation or a double-click operation, which is not limited in this embodiment.
在本实施例的一种具体实施方式中,在主屏幕被划分为上下两个子主屏区域(如图2B)或者左右两个子主屏区域(如图2C)的情况下,可仅将触控面板划分一个子面板区域(该子面板区域即为触控面板区域)。In a specific implementation of this embodiment, when the main screen is divided into upper and lower sub main screen areas (as shown in Figure 2B) or left and right sub main screen areas (as shown in Figure 2C), only the touch panel can be divided into A sub-panel area (the sub-panel area is the touch panel area).
其中,在主屏幕被划分为上下两个子主屏区域时,由于通常情况下不易对上面的子主屏区域进行单手触摸操作,因此,优选的,可将上面的子主屏区域作为主屏幕的第一目标区域,将下面的子主屏区域作为主屏幕的第二目标区域。在主屏幕被划分为左右两个子主屏区域时,由于通常情况下不易对左面的子主屏区域进行单手触摸操作,因此,优选的,可将左面的子主屏区域作为主屏幕的第一目标区域,将右面的子主屏区域作为主屏幕的第二目标区域。如果实时检测用户对触控面板区域的点击操作,则将当前主屏幕中第一目标区域上的显示内容在主屏幕中的第二目标区域进行显示。Wherein, when the main screen is divided into upper and lower sub-main screen areas, it is not easy to perform one-hand touch operation on the upper sub-main screen area under normal circumstances, therefore, preferably, the upper sub-main screen area can be used as the first sub-main screen area of the main screen. Target area, use the sub-main screen area below as the second target area of the main screen. When the main screen is divided into left and right sub-main screen areas, since it is usually not easy to perform one-handed touch operation on the left sub-main screen area, preferably, the left sub-main screen area can be used as the first target area of the main screen , use the sub-main screen area on the right as the second target area of the main screen. If the user's click operation on the touch panel area is detected in real time, the display content on the first target area on the current main screen is displayed on the second target area on the main screen.
在本实施例的另一种具体实施方式中,在主屏幕被划分为多个子主屏区域的情况下,可将触控面板划分为多个子面板区域,第一目标区域和第二目标区域是根据作用在触控面板上的点击操作而实时的被进行确定。例如,主屏幕被划分为四个子主屏区域(如图2D),触控面板被划分为三个子面板区域(如图2E)。这三个子面板区域可以分别视为是控制第一目标区域显示内容向右、向左和向下平移的区域。在此情况下可通过如下方式来确定第一目标区域和第二目标区域:In another specific implementation of this embodiment, when the main screen is divided into multiple sub-main screen areas, the touch panel can be divided into multiple sub-panel areas, and the first target area and the second target area are based on The click operation on the touch panel is determined in real time. For example, the main screen is divided into four sub-main screen areas (as shown in FIG. 2D ), and the touch panel is divided into three sub-panel areas (as shown in FIG. 2E ). These three sub-panel areas can be regarded as areas for controlling the translation of the content displayed in the first target area to the right, to the left, and to the bottom, respectively. In this case, the first target area and the second target area can be determined as follows:
如果触控面板的第一个子面板区域被点击,则确定当前主屏幕中的第一目标区域为第一个子主屏区域和第三个子主屏区域,第二目标区域为第二个子主屏区域和第四个子主屏区域;If the first sub-panel area of the touch panel is clicked, it is determined that the first target area in the current main screen is the first sub-main screen area and the third sub-main screen area, and the second target area is the second sub-main screen area and The fourth sub-main screen area;
如果触控面板的第二个子面板区域被点击,则确定当前主屏幕中的第一目标区域为第二个子主屏区域和第四个子主屏区域,第二目标区域为第一个子主屏区域和第三个子主屏区域;If the second sub-panel area of the touch panel is clicked, it is determined that the first target area in the current main screen is the second sub-main screen area and the fourth sub-main screen area, and the second target area is the first sub-main screen area and the second sub-main screen area. Three sub-home screen areas;
如果触控面板的第三个子面板区域被点击,则确定当前主屏幕中的第一目标区域为第一个子主屏区域和第二个子主屏区域,第二目标区域为第三个子主屏区域和第四个子主屏区域;If the third sub-panel area of the touch panel is clicked, it is determined that the first target area in the current main screen is the first sub-main screen area and the second sub-main screen area, and the second target area is the third sub-main screen area and the second sub-main screen area. Four sub-main screen areas;
如果触控面板的第一个子面板区域和第三个子面板顺序被点击,则确定当前主屏幕中的第一目标区域为第一个子主屏区域,第二目标区域为第四个子主屏区域;If the first sub-panel area and the third sub-panel of the touch panel are clicked sequentially, it is determined that the first target area in the current main screen is the first sub-main screen area, and the second target area is the fourth sub-main screen area;
如果触控面板的第二个子面板区域和第三个子面板顺序被点击,则确定当前主屏幕中的第一目标区域为第二个子主屏区域,第二目标区域为第三个子主屏区域。If the second sub-panel area and the third sub-panel of the touch panel are clicked sequentially, it is determined that the first target area in the current main screen is the second sub-main screen area, and the second target area is the third sub-main screen area.
当然,在主屏幕被划分为四个子主屏区域的情况下,触控面板还可被划分为四个子面板区域。这四个子面板区域可以分别视为是控制第一目标区域显示内容向右、向左、向下和向上平移的区域。在此情况下可通过如下方式来确定第一目标区域和第二目标区域:Of course, in the case that the main screen is divided into four sub-main screen areas, the touch panel can also be divided into four sub-panel areas. These four sub-panel areas can be regarded as areas for controlling the translation of the content displayed in the first target area to the right, left, down, and up, respectively. In this case, the first target area and the second target area can be determined as follows:
如果触控面板的第一个子面板区域和第三个子面板顺序被点击,则确定当前主屏幕中的第一目标区域为第一个子主屏区域,第二目标区域为第四个子主屏区域;If the first sub-panel area and the third sub-panel of the touch panel are clicked sequentially, it is determined that the first target area in the current main screen is the first sub-main screen area, and the second target area is the fourth sub-main screen area;
如果触控面板的第一个子面板区域和第四个子面板顺序被点击,则确定当前主屏幕中的第一目标区域为第三个子主屏区域,第二目标区域为第二个子主屏区域;If the first sub-panel area and the fourth sub-panel of the touch panel are clicked sequentially, it is determined that the first target area in the current main screen is the third sub-main screen area, and the second target area is the second sub-main screen area;
如果触控面板的第二个子面板区域和第三个子面板顺序被点击,则确定当前主屏幕中的第一目标区域为第二个子主屏区域,第二目标区域为第三个子主屏区域;If the second sub-panel area and the third sub-panel area of the touch panel are clicked sequentially, it is determined that the first target area in the current main screen is the second sub-main screen area, and the second target area is the third sub-main screen area;
如果触控面板的第二个子面板区域和第四个子面板顺序被点击,则确定当前主屏幕中的第一目标区域为第四个子主屏区域,第二目标区域为第一个子主屏区域。If the second sub-panel area and the fourth sub-panel of the touch panel are clicked sequentially, it is determined that the first target area in the current main screen is the fourth sub-main screen area, and the second target area is the first sub-main screen area.
本领域的普通技术人员应理解,还可按照其他方式:对主屏幕和触控面板进行区域划分,并确定第一目标区域和第二目标区域。例如,将主屏幕划分为K个子主屏区域,将触控面板划分为K个子面板区域,在此情况下可通过如下方式来确定第一目标区域和第二目标区域:如果触控面板的第i个子面板区域和第j个子面板顺序被点击,则确定当前主屏幕中的第一目标区域为第i个子主屏区域,第二目标区域为第j个子主屏区域。其中,i大于0且小于等于K,j大于0且小于等于K,i与j不相等。Those of ordinary skill in the art should understand that other methods may also be used: dividing the main screen and the touch panel into areas, and determining the first target area and the second target area. For example, the main screen is divided into K sub-main screen areas, and the touch panel is divided into K sub-panel areas. In this case, the first target area and the second target area can be determined in the following manner: If the ith touch panel If the sub-panel area and the j-th sub-panel are clicked sequentially, it is determined that the first target area in the current main screen is the i-th sub-main screen area, and the second target area is the j-th sub-main screen area. Wherein, i is greater than 0 and less than or equal to K, j is greater than 0 and less than or equal to K, and i and j are not equal.
在本发明实施例中,将当前主屏幕中第一目标区域上的显示内容在主屏幕中的第二目标区域进行显示,可具体包括:隐藏当前主屏幕中第一目标区域上的显示内容,并将所隐藏的显示内容作为当前主屏幕中第二目标区域的显示内容进行显示;或者,在当前主屏幕中第二目标区域上创建截图窗口,该截图窗口能够覆盖当前主屏幕中的第二目标区域,并显示当前主屏幕中第一目标区域上的显示内容。In the embodiment of the present invention, displaying the display content on the first target area on the current main screen in the second target area on the main screen may specifically include: hiding the display content on the first target area on the current main screen, And display the hidden display content as the display content of the second target area in the current main screen; or, create a screenshot window on the second target area in the current main screen, and the screenshot window can cover the second target area in the current main screen target area, and display the display content on the first target area in the current main screen.
操作220、如果检测到作用在第二目标区域上的第一触发操作,则计算第一触发操作对应的触摸点坐标在第一目标区域中的实际响应点坐标,并基于所述实际响应点坐标执行与第一触发操作对应的触控响应操作。Operation 220: If the first trigger operation acting on the second target area is detected, calculate the actual response point coordinates of the touch point coordinates corresponding to the first trigger operation in the first target area, and based on the actual response point coordinates Execute a touch response operation corresponding to the first trigger operation.
在根据作用在触控面板上的点击操作,将当前主屏幕中第一目标区域上的显示内容在主屏幕中的第二目标区域进行显示之后,可实时检测作用在主屏幕上的第一触发操作。After the display content on the first target area of the current main screen is displayed on the second target area of the main screen according to the click operation on the touch panel, the first trigger acting on the main screen can be detected in real time operate.
在本发明实施例中,预先存储有主屏幕上各个触摸点坐标与各个触控响应之间的映射关系。例如,第一目标区域上以(x1,y1)、(x1+a,y1)、(x1,y1+b)和(x1+a,y1+b)为顶点的第一矩形所属的坐标范围,所映射的触控响应为启动浏览器;第二目标区域上以(x2,y2)、(x2+a,y2)、(x2,y2+b)和(x2+a,y2+b)为顶点的第二矩形所属的坐标范围,所映射的触控响应为启动事务管理应用软件。In the embodiment of the present invention, the mapping relationship between the coordinates of each touch point on the main screen and each touch response is stored in advance. For example, the coordinate range of the first rectangle with vertices (x1, y1), (x1+a, y1), (x1, y1+b) and (x1+a, y1+b) on the first target area, The mapped touch response is to start the browser; the vertices on the second target area are (x2, y2), (x2+a, y2), (x2, y2+b) and (x2+a, y2+b) The coordinate range to which the second rectangle belongs, and the mapped touch response is to start the transaction management application software.
在检测到作用在第二目标区域上的触发操作后,如果直接将所检测到的触发操作所对应的触摸点坐标作为实际响应点坐标,则基于上述映射关系,所确定的触控响应为与检测到的第二目标区域上触摸点坐标相对应的触控响应。After the trigger operation acting on the second target area is detected, if the touch point coordinates corresponding to the detected trigger operation are directly used as the actual response point coordinates, based on the above mapping relationship, the determined touch response is the same as A touch response corresponding to the detected coordinates of the touch point on the second target area.
但是,由于第二目标区域当前所显示的是第一目标区域内容,为达到可以通过触摸第二目标区域来完成对第一目标区域相应坐标点的触控响应这样一种效果,可根据第一目标区域与第二目标区域之间的位置关系,来确定作用在第二目标区域上的第一触发操作所对应的触摸点坐标在第一目标区域中的实际响应点坐标,并基于该实际响应点坐标执行与第一触发操作对应的触控响应操作。However, since the second target area currently displays the content of the first target area, in order to achieve such an effect that the touch response to the corresponding coordinate point of the first target area can be completed by touching the second target area, according to the first The positional relationship between the target area and the second target area is used to determine the actual response point coordinates in the first target area of the touch point coordinates corresponding to the first trigger operation acting on the second target area, and based on the actual response The point coordinates perform a touch response operation corresponding to the first trigger operation.
例如,第二目标区域的中心位置相对于第一目标区域的中心位置向下平移了t,向右平移了r,在检测到对上述第二矩形所属坐标范围内的某个坐标点(x,y)的触发之后,可确定该坐标点在第一目标区域中的实际响应点坐标为(x-r,y-t),如果该实际响应点坐标(x-r,y-t)位于上述第一矩形所属的坐标范围,则基于上述映射关系可以得到相应的触控响应为对浏览器的启动响应,而非对事务管理应用软件的启动。For example, relative to the center position of the first target area, the center position of the second target area is translated downward by t and rightward by r. When a certain coordinate point (x, After y) is triggered, it can be determined that the actual response point coordinates of the coordinate point in the first target area are (x-r, y-t), if the actual response point coordinates (x-r, y-t) are within the coordinate range to which the above-mentioned first rectangle belongs, Then, based on the above mapping relationship, the corresponding touch response can be obtained as a response to the startup of the browser, rather than the startup of the transaction management application software.
本实施例提出的技术方案,使得用户在通过对背部触控面板的点击操作将主屏幕中第一目标区域上的显示内容在第二目标区域进行显示之后,可以进一步通过触摸第二目标区域来完成对第一目标区域相应坐标点的触控响应。这样,在第一目标区域为用户单手不可触及的主屏幕区域,第二目标区域为用户单手可触及的主屏幕区域的情况下,用户仅使用单手便可实现对终端主屏幕不可触及区域的触发。与通过对背部触控面板的滑动操作来触发终端主屏幕相应区域的方案相比,本实施例不仅能够达到可以单手触摸终端的主屏幕的技术效果,而且对背部触控面板的操作仅为简单的点击操作,其出错率低,无需用户多次定位,能够延长终端电池的续航能力。The technical solution proposed in this embodiment enables the user to display the display content on the first target area in the main screen in the second target area by clicking on the back touch panel, and then further touch the second target area to The touch response to the corresponding coordinate point of the first target area is completed. In this way, when the first target area is the main screen area that cannot be touched by the user with one hand, and the second target area is the main screen area that the user can touch with one hand, the user can realize that the main screen of the terminal cannot be touched by using only one hand. Region triggers. Compared with the solution of triggering the corresponding area of the main screen of the terminal by sliding the touch panel on the back, this embodiment can not only achieve the technical effect that the main screen of the terminal can be touched with one hand, but also the operation on the touch panel on the back is only The simple click operation has a low error rate, does not require the user to locate multiple times, and can extend the battery life of the terminal.
实施例二Embodiment two
图3是本发明实施例二提供的一种触控实现方法的流程示意图。本实施例在上述实施例一的基础上,在触控面板包括多个子面板区域,主屏幕包括多个子主屏区域的应用场景下,对操作210作进一步优化。参见图3,本实施例提供的触控实现方法包括如下操作:FIG. 3 is a schematic flowchart of a method for implementing touch control provided by Embodiment 2 of the present invention. In this embodiment, on the basis of the first embodiment above, the operation 210 is further optimized in an application scenario where the touch panel includes multiple sub-panel areas and the main screen includes multiple sub-main screen areas. Referring to FIG. 3, the touch implementation method provided in this embodiment includes the following operations:
操作310、获取当前作用在触控面板上的点击操作。Operation 310. Acquire a click operation currently acting on the touch panel.
操作320、检测所述点击操作所对应的子面板区域,根据检测结果调整水平平移参数值和垂直平移参数值,并根据调整后的水平平移参数值和垂直平移参数值,确定当前主屏幕中的第一目标区域和第二目标区域。Operation 320: Detect the sub-panel area corresponding to the click operation, adjust the horizontal translation parameter value and vertical translation parameter value according to the detection result, and determine the current main screen according to the adjusted horizontal translation parameter value and vertical translation parameter value The first target area and the second target area.
操作330、将确定的第一目标区域中的显示内容在确定的第二目标区域进行显示。Operation 330: Display the display content in the determined first target area in the determined second target area.
操作340、如果检测到作用在第二目标区域上的第一触发操作,则计算第一触发操作对应的触摸点坐标在第一目标区域中的实际响应点坐标,并基于所述实际响应点坐标执行与第一触发操作对应的触控响应操作。Operation 340: If the first trigger operation acting on the second target area is detected, calculate the actual response point coordinates of the touch point coordinates corresponding to the first trigger operation in the first target area, and based on the actual response point coordinates Execute a touch response operation corresponding to the first trigger operation.
其中,第一目标区域和第二目标区域分别包括至少一个子主屏区域,并且第一目标区域和第二目标区域包括的子主屏区域不存在交集。Wherein, the first target area and the second target area respectively include at least one sub-home screen area, and the sub-home screen areas included in the first target area and the second target area do not overlap.
在本实施例中,各个子主屏区域的形状和大小可以均相等,例如均为尺寸相等的矩形。水平平移参数值用于表示第二目标区域相对于第一目标区域在主屏幕水平(即宽度)方向上平移的矩形宽度的数量,垂直平移参数值用于表示第二目标区域相对于第一目标区域在主屏幕垂直(即高度)方向上平移的矩形高度的数量。当水平平移参数值为正数时,表示向右平移,为负数时,表示向左平移。当垂直平移参数值为正数时,表示向下平移,为负数时,表示向上平移。In this embodiment, the shapes and sizes of the respective sub-main screen areas may be equal, for example, they are all rectangles of equal size. The horizontal translation parameter value is used to indicate the number of rectangle widths that the second target area is translated relative to the first target area in the horizontal (ie width) direction of the main screen, and the vertical translation parameter value is used to indicate that the second target area is relative to the first target area. The amount of rectangle height the region is translated in the vertical (ie height) direction of the main screen. When the value of the horizontal translation parameter is positive, it means panning to the right, and when it is negative, it means panning to the left. When the vertical translation parameter value is positive, it means downward translation, and when it is negative, it means upward translation.
在触控面板包括第一子面板区域、第二子面板区域和第三子面板区域(如图2E),主屏幕包括第一个子主屏区域、第二个子主屏区域、第三个子主屏区域以及第四个子主屏区域(如图2D)的应用场景下,将确定的第一目标区域中的显示内容在确定的第二目标区域进行显示,包括:The touch panel includes a first sub-panel area, a second sub-panel area, and a third sub-panel area (as shown in Figure 2E), and the main screen includes a first sub-main screen area, a second sub-main screen area, a third sub-main screen area, and In the application scenario of the fourth sub-main screen area (as shown in Figure 2D), the display content in the determined first target area is displayed in the determined second target area, including:
如果所确定的第一目标区域为第一个子主屏区域和第二个子主屏区域,第二目标区域为第三个子主屏区域和第四个子主屏区域,则将当前主屏幕中第一个子主屏区域上的显示内容在第三个子主屏区域上进行显示,将当前主屏幕中第二个子主屏区域上的显示内容在第四个子主屏区域上进行显示;If the determined first target area is the first sub-main screen area and the second sub-main screen area, and the second target area is the third sub-main screen area and the fourth sub-main screen area, then the first sub-main screen area in the current main screen will be The display content on the area is displayed on the third sub-main screen area, and the display content on the second sub-main screen area of the current main screen is displayed on the fourth sub-main screen area;
如果所确定的第一目标区域为第一个子主屏区域和第三个子主屏区域,第二目标区域为第二个子主屏区域和第四个子主屏区域,则将当前主屏幕中第一个子主屏区域上的显示内容在第二个子主屏区域上进行显示,将当前主屏幕中第三个子主屏区域上的显示内容在第四个子主屏区域上进行显示;If the determined first target area is the first sub-main screen area and the third sub-main screen area, and the second target area is the second sub-main screen area and the fourth sub-main screen area, then the first sub-main screen area in the current main screen will be The display content on the area is displayed on the second sub-main screen area, and the display content on the third sub-main screen area of the current main screen is displayed on the fourth sub-main screen area;
如果所确定的第一目标区域为第二个子主屏区域和第四个子主屏区域,第二目标区域为第一个子主屏区域和第三个子主屏区域,则将当前主屏幕中第二个子主屏区域上的显示内容在第一个子主屏区域上进行显示,将当前主屏幕中第四个子主屏区域上的显示内容在第三个子主屏区域上进行显示;If the determined first target area is the second sub-main screen area and the fourth sub-main screen area, and the second target area is the first sub-main screen area and the third sub-main screen area, then the second sub-main screen area in the current main screen Display content on the first sub-main screen area, and display content on the fourth sub-main screen area of the current main screen on the third sub-main screen area;
如果所确定的第一目标区域为第一个子主屏区域,第二目标区域为第四个子主屏区域,则将当前主屏幕中第一个子主屏区域上的显示内容在第四个子主屏区域上进行显示;If the determined first target area is the first sub-main screen area and the second target area is the fourth sub-main screen area, display the content displayed on the first sub-main screen area in the current main screen on the fourth sub-main screen area to display;
如果所确定的第一目标区域为第二个子主屏区域,第二目标区域为第三个子主屏区域,则将当前主屏幕中第二个子主屏区域上的显示内容在第三个子主屏区域上进行显示。If the determined first target area is the second sub-main screen area, and the second target area is the third sub-main screen area, display the content displayed on the second sub-main screen area in the current main screen on the third sub-main screen area .
进一步的,根据检测结果调整水平平移参数值和垂直平移参数值,包括:Further, adjust the horizontal translation parameter value and the vertical translation parameter value according to the detection result, including:
如果所检测到的子面板区域为第一子面板区域,且当前的水平平移参数值小于1,则将当前的水平平移参数值加1;If the detected sub-panel area is the first sub-panel area, and the current horizontal translation parameter value is less than 1, then add 1 to the current horizontal translation parameter value;
如果所检测到的子面板区域为第二子面板区域,且当前的水平平移参数值大于0,则将当前的水平平移参数值减1;If the detected sub-panel area is the second sub-panel area, and the current horizontal translation parameter value is greater than 0, then subtract 1 from the current horizontal translation parameter value;
如果所检测到的子面板区域为第三子面板区域,且当前的垂直平移参数值不等于1,则将当前的垂直平移参数值加1;If the detected sub-panel area is the third sub-panel area, and the current vertical translation parameter value is not equal to 1, then add 1 to the current vertical translation parameter value;
如果所检测到的子面板区域为第三子面板区域,且当前的垂直平移参数值等于1,则将当前的垂直平移参数值减1;If the detected sub-panel area is the third sub-panel area, and the current vertical translation parameter value is equal to 1, then subtract 1 from the current vertical translation parameter value;
其中,水平平移参数值和垂直平移参数值的初始值均为0。Wherein, the initial values of the horizontal translation parameter value and the vertical translation parameter value are both 0.
根据调整后的水平平移参数值和垂直平移参数值,确定当前主屏幕中的第一目标区域和第二目标区域,包括:Determine the first target area and the second target area in the current main screen according to the adjusted horizontal translation parameter value and vertical translation parameter value, including:
如果调整后的水平平移参数值为1,垂直平移参数值为0,确定当前主屏幕中的第一目标区域为第一个子主屏区域和第三个子主屏区域,第二目标区域为第二个子主屏区域和第四个子主屏区域;If the adjusted horizontal translation parameter value is 1 and the vertical translation parameter value is 0, determine that the first target area in the current main screen is the first sub-main screen area and the third sub-main screen area, and the second target area is the second sub-main screen area. The main screen area and the fourth sub-home screen area;
如果调整后的水平平移参数值为-1,垂直平移参数值为0,确定当前主屏幕中的第一目标区域为第二个子主屏区域和第四个子主屏区域,第二目标区域为第一个子主屏区域和第三个子主屏区域;If the adjusted horizontal translation parameter value is -1 and the vertical translation parameter value is 0, determine that the first target area in the current main screen is the second sub-main screen area and the fourth sub-main screen area, and the second target area is the first A sub-home area and a third sub-home area;
如果调整后的水平平移参数值为0,垂直平移参数值为1,确定当前主屏幕中的第一目标区域为第一个子主屏区域和第二个子主屏区域,第二目标区域为第三个子主屏区域和第四个子主屏区域;If the adjusted horizontal translation parameter value is 0 and the vertical translation parameter value is 1, determine that the first target area in the current main screen is the first sub-main screen area and the second sub-main screen area, and the second target area is the third sub-main screen area. The main screen area and the fourth sub-home screen area;
如果调整后的水平平移参数值为1,垂直平移参数值为1,确定当前主屏幕中的第一目标区域为第一个子主屏区域,第二目标区域为第四个子主屏区域;If the adjusted horizontal translation parameter value is 1 and the vertical translation parameter value is 1, determine that the first target area in the current main screen is the first sub-main screen area, and the second target area is the fourth sub-main screen area;
如果调整后的水平平移参数值为-1,垂直平移参数值为1,确定当前主屏幕中的第一目标区域为第二个子主屏区域,第二目标区域为第三个子主屏区域。If the adjusted horizontal translation parameter value is -1 and the vertical translation parameter value is 1, it is determined that the first target area in the current main screen is the second sub-main screen area, and the second target area is the third sub-main screen area.
当然,在触控面板包括第一子面板区域、第二子面板区域、第三子面板区域和第四子面板区域的情况下,根据检测结果调整水平平移参数值和垂直平移参数值,包括:Of course, in the case that the touch panel includes the first sub-panel area, the second sub-panel area, the third sub-panel area and the fourth sub-panel area, adjusting the horizontal translation parameter value and the vertical translation parameter value according to the detection result includes:
如果所检测到的子面板区域为第一子面板区域,且当前的水平平移参数值小于1,则将当前的水平平移参数值加1;If the detected sub-panel area is the first sub-panel area, and the current horizontal translation parameter value is less than 1, then add 1 to the current horizontal translation parameter value;
如果所检测到的子面板区域为第二子面板区域,且当前的水平平移参数值大于0,则将当前的水平平移参数值减1;If the detected sub-panel area is the second sub-panel area, and the current horizontal translation parameter value is greater than 0, then subtract 1 from the current horizontal translation parameter value;
如果所检测到的子面板区域为第三子面板区域,且当前的垂直平移参数值小于1,则将当前的垂直平移参数值加1;If the detected sub-panel area is the third sub-panel area, and the current vertical translation parameter value is less than 1, then add 1 to the current vertical translation parameter value;
如果所检测到的子面板区域为第四子面板区域,且当前的垂直平移参数值大于0,则将当前的垂直平移参数值减1;If the detected sub-panel area is the fourth sub-panel area, and the current vertical translation parameter value is greater than 0, then subtract 1 from the current vertical translation parameter value;
其中,水平平移参数值和垂直平移参数值的初始值均为0。Wherein, the initial values of the horizontal translation parameter value and the vertical translation parameter value are both 0.
与上述触控面板包括三个子面板区域的应用场景下的技术方案相比,在触控面板包括第一子面板区域、第二子面板区域、第三子面板区域和第四子面板区域的情况下,根据调整后的水平平移参数值和垂直平移参数值,确定当前主屏幕中的第一目标区域和第二目标区域,还包括:Compared with the above-mentioned technical solution in the application scenario where the touch panel includes three sub-panel areas, in the case where the touch panel includes the first sub-panel area, the second sub-panel area, the third sub-panel area and the fourth sub-panel area Next, determine the first target area and the second target area in the current main screen according to the adjusted horizontal translation parameter value and vertical translation parameter value, including:
如果调整后的水平平移参数值为-1,垂直平移参数值为-1,确定当前主屏幕中的第一目标区域为第四个子主屏区域,第二目标区域为第一个子主屏区域;If the adjusted horizontal translation parameter value is -1, and the vertical translation parameter value is -1, determine that the first target area in the current main screen is the fourth sub-main screen area, and the second target area is the first sub-main screen area;
如果调整后的水平平移参数值为0,垂直平移参数值为-1,确定当前主屏幕中的第一目标区域为第三个子主屏区域和第四个子主屏区域,第二目标区域为第一个子主屏区域和第二个子主屏区域;If the adjusted horizontal translation parameter value is 0 and the vertical translation parameter value is -1, determine that the first target area in the current main screen is the third sub-main screen area and the fourth sub-main screen area, and the second target area is the first A sub-home area and a second sub-home area;
如果调整后的水平平移参数值为1,垂直平移参数值为-1,确定当前主屏幕中的第一目标区域为第三个子主屏区域,第二目标区域为第二个子主屏区域。If the adjusted horizontal translation parameter value is 1 and the vertical translation parameter value is -1, it is determined that the first target area in the current main screen is the third sub-main screen area, and the second target area is the second sub-main screen area.
本实施例提出的技术方案,不仅能够达到可以单手触摸终端的主屏幕的技术效果,而且对背部触控面板的操作仅为简单的点击操作,其出错率低,无需用户多次定位,能够延长终端电池的续航能力。并且,本实施例能够实时根据当前作用在触控面板上的点击操作,来动态的确定当前主屏幕中的第一目标区域和第二目标区域,这样使得用户能够通过对触控面板点击操作,来控制要将主屏幕的哪些子主屏区域设置为第一目标区域,将哪些子主屏区域设置为第二目标区域,而不是预先自动的将这两个目标区域设置为固定的子主屏区域,从而能够很好的满足用户需求,提升用户体验。The technical solution proposed in this embodiment can not only achieve the technical effect of being able to touch the main screen of the terminal with one hand, but also the operation on the back touch panel is only a simple click operation, which has a low error rate and does not require the user to locate multiple times. Extend the battery life of the terminal. Moreover, this embodiment can dynamically determine the first target area and the second target area in the current main screen according to the current click operation on the touch panel in real time, so that the user can click on the touch panel, To control which sub-main screen areas of the main screen are to be set as the first target area and which sub-main screen areas are to be set as the second target area, instead of automatically setting these two target areas as fixed sub-main screen areas in advance, thereby It can well meet user needs and improve user experience.
在上述技术方案的基础上,将当前主屏幕中第M个子主屏区域上的显示内容在第N个子主屏区域上进行显示,包括:On the basis of the above technical solution, the display content on the Mth sub-main screen area of the current main screen is displayed on the Nth sub-main screen area, including:
隐藏当前主屏幕中第N个子主屏区域的显示内容,将当前主屏幕中第M个子主屏区域上的显示内容作为当前主屏幕中第N个子主屏区域的显示内容进行显示;或者,Hide the display content of the Nth sub-main screen area of the current main screen, and display the display content of the M-th sub-main screen area of the current main screen as the display content of the Nth sub-main screen area of the current main screen; or,
检测与当前主屏幕中第M个子主屏区域相邻的子主屏区域上是否存在截图窗口;如果是,则判断所述截图窗口内容为当前主屏幕中第M个子主屏区域的显示内容,将所述截图窗口平移至当前主屏幕中第N个子主屏区域进行显示,并隐藏或删除所检测到的截图窗口;如果否,则创建并呈现用于覆盖当前主屏幕中第N个子主屏区域的截图窗口,其中所创建的截图窗口内容为当前主屏幕中第M个子主屏区域上的显示内容;Detect whether there is a screenshot window on the sub-main screen area adjacent to the Mth sub-main screen area in the current main screen; The screenshot window is shifted to the Nth sub-main screen area of the current main screen for display, and the detected screenshot window is hidden or deleted; if not, a screenshot window for covering the Nth sub-main screen area of the current main screen is created and presented, The content of the screenshot window created is the display content on the Mth sub-main screen area of the current main screen;
其中,所述M和N均可为一、二、三和四中的任一,且所述M和N不等。Wherein, said M and N can be any one of one, two, three and four, and said M and N are not equal.
实施例三Embodiment three
图4是本发明实施例三提供的一种触控实现方法的流程示意图。本实施例在上述实施例二的基础上,增加了对除第二目标区域之外的其他各个子主屏区域的触发响应操作。参见图4,本实施例提供的触控实现方法包括如下操作:FIG. 4 is a schematic flowchart of a method for implementing touch control provided by Embodiment 3 of the present invention. In this embodiment, on the basis of the above-mentioned second embodiment, trigger response operations for each sub-main screen area except the second target area are added. Referring to FIG. 4, the touch implementation method provided in this embodiment includes the following operations:
操作410、获取当前作用在触控面板上的点击操作。Operation 410. Acquire a click operation currently acting on the touch panel.
操作420、检测所述点击操作所对应的子面板区域,根据检测结果调整水平平移参数值和垂直平移参数值,并根据调整后的水平平移参数值和垂直平移参数值,确定当前主屏幕中的第一目标区域和第二目标区域。Operation 420: Detect the sub-panel area corresponding to the click operation, adjust the horizontal translation parameter value and vertical translation parameter value according to the detection result, and determine the current main screen according to the adjusted horizontal translation parameter value and vertical translation parameter value The first target area and the second target area.
其中,第一目标区域和第二目标区域分别包括至少一个子主屏区域,并且第一目标区域和第二目标区域包括的子主屏区域不存在交集。Wherein, the first target area and the second target area respectively include at least one sub-home screen area, and the sub-home screen areas included in the first target area and the second target area do not overlap.
操作430、将确定的第一目标区域中的显示内容在确定的第二目标区域进行显示。Operation 430: Display the display content in the determined first target area in the determined second target area.
操作440、如果检测到作用在第二目标区域上的第一触发操作,则计算第一触发操作对应的触摸点坐标在第一目标区域中的实际响应点坐标,并基于所述实际响应点坐标执行与第一触发操作对应的触控响应操作。Operation 440: If the first trigger operation acting on the second target area is detected, calculate the actual response point coordinates of the touch point coordinates corresponding to the first trigger operation in the first target area, and based on the actual response point coordinates Execute a touch response operation corresponding to the first trigger operation.
操作450、如果检测到作用在除第二目标区域之外的其他各个子主屏区域上的第二触发操作,则将所检测到的第二触发操作对应的触摸点坐标作为实际响应点坐标,并基于该实际响应点坐标执行与第二触发操作对应的触控响应操作。Operation 450: If a second trigger operation acting on each sub-main screen area except the second target area is detected, use the touch point coordinates corresponding to the detected second trigger operation as the actual response point coordinates, and A touch response operation corresponding to the second trigger operation is performed based on the actual response point coordinates.
本实施例提供的技术方案,在通过对背部触控面板的点击操作将主屏幕中第一目标区域上的显示内容在第二目标区域进行显示之后,一方面可以使得用户通过触摸第二目标区域来完成对第一目标区域相应坐标点的触控响应,另一方面可以使得用户通过触摸除第二目标区域之外的其他子主屏区域来完成相应坐标点的触控响应,从而能够正确检测除第二目标区域之外的其他子主屏区域的触控响应。In the technical solution provided by this embodiment, after the display content on the first target area in the main screen is displayed in the second target area by clicking on the back touch panel, on the one hand, the user can touch the second target area To complete the touch response to the corresponding coordinate point of the first target area, on the other hand, it can enable the user to complete the touch response of the corresponding coordinate point by touching other sub-main screen areas except the second target area, so as to correctly detect The touch response of other sub-main screen areas other than the second target area.
当然,在上述技术方法的基础上,在确定当前主屏幕中的第一目标区域和第二目标区域之后,还包括:Of course, on the basis of the above technical method, after determining the first target area and the second target area in the current main screen, it also includes:
隐藏用于覆盖当前主屏幕中除第一目标区域和第二目标区域之外的其他子主屏区域的显示内容。Hide the display content used to cover other sub-main screen areas except the first target area and the second target area in the current main screen.
实施例四Embodiment four
图5A是本发明实施例四提供的一种触控实现方法的流程示意图。本实施例可以以上述实施例为基础,提供了一种优选实例。在本实施例中,触控面板包括第一子面板区域、第二子面板区域和第三子面板区域(如图2E),主屏幕包括第一个子主屏区域、第二个子主屏区域、第三个子主屏区域以及第四个子主屏区域(如图2D)。其中,第一个子主屏区域位于主屏幕的左上角,第二个子主屏区域位于主屏幕的右上角,第三个子主屏区域位于主屏幕的左下角,第四个子主屏区域位于主屏幕的右下角;第一个子主屏区域、第二个子主屏区域、第三个子主屏区域以及第四个子主屏区域均为尺寸相等的矩形区域,且所有子主屏区域的面积之和为主屏幕的面积。FIG. 5A is a schematic flowchart of a method for implementing touch control provided by Embodiment 4 of the present invention. This embodiment can provide a preferred example based on the foregoing embodiments. In this embodiment, the touch panel includes a first sub-panel area, a second sub-panel area, and a third sub-panel area (as shown in FIG. 2E ), and the main screen includes a first sub-main screen area, a second sub-main screen area, and a second sub-main screen area. Three sub-main screen areas and a fourth sub-main screen area (as shown in Figure 2D). Among them, the first sub-home screen area is located in the upper left corner of the main screen, the second sub-home screen area is located in the upper right corner of the main screen, the third sub-home screen area is located in the lower left corner of the main screen, and the fourth sub-home screen area is located in the lower right corner of the main screen ; The first sub-main screen area, the second sub-main screen area, the third sub-main screen area and the fourth sub-main screen area are all rectangular areas of equal size, and the sum of the areas of all sub-main screen areas is the area of the main screen.
参见图5A,本实施例提供的触控实现方法具体包括如下操作:Referring to FIG. 5A, the touch control implementation method provided in this embodiment specifically includes the following operations:
操作510、获取当前作用在触控面板上的双击操作。Operation 510, acquiring a double-click operation currently acting on the touch panel.
操作520、检测所述双击操作所对应的子面板区域,根据检测结果调整水平平移参数值和垂直平移参数值,并根据调整后的水平平移参数值和垂直平移参数值,确定当前主屏幕中的第一目标区域和第二目标区域。Operation 520: Detect the sub-panel area corresponding to the double-click operation, adjust the horizontal translation parameter value and vertical translation parameter value according to the detection result, and determine the current main screen according to the adjusted horizontal translation parameter value and vertical translation parameter value The first target area and the second target area.
操作530、将确定的第一目标区域中的显示内容在确定的第二目标区域进行显示。Operation 530: Display the display content in the determined first target area in the determined second target area.
操作540、如果检测到作用在第二目标区域上的第一触发操作,则根据如下公式计算第一触发操作对应的触摸点坐标在所述第一目标区域中的实际响应点坐标:
操作550、如果检测到作用在除第二目标区域之外的其他各个子主屏区域上的第二触发操作,则将所检测到的第二触发操作对应的触摸点坐标作为实际响应点坐标,并基于该实际响应点坐标执行与第二触发操作对应的触控响应操作。Operation 550: If a second trigger operation acting on each sub-main screen area except the second target area is detected, use the touch point coordinates corresponding to the detected second trigger operation as the actual response point coordinates, and A touch response operation corresponding to the second trigger operation is performed based on the actual response point coordinates.
其中,xr为实际响应点的横坐标,yr为实际响应点的纵坐标,x为触摸点的横坐标,y为触摸点的纵坐标,TH为调整后的水平平移参数值,TV为调整后的垂直平移参数值,W为主屏幕宽度,H为主屏幕高度。Among them, x r is the abscissa of the actual response point, y r is the ordinate of the actual response point, x is the abscissa of the touch point, y is the ordinate of the touch point, T H is the adjusted horizontal translation parameter value, T V is the adjusted vertical translation parameter value, W is the width of the main screen, and H is the height of the main screen.
对操作520的详细技术细节可参见上述实施例二中关于在触控面板包括第一子面板区域、第二子面板区域和第三子面板区域(如图2E),主屏幕包括第一个子主屏区域、第二个子主屏区域、第三个子主屏区域以及第四个子主屏区域(如图2D)的应用场景下所阐述的相关内容,在此不再赘述。For detailed technical details of operation 520, please refer to the above-mentioned second embodiment about the touch panel including the first sub-panel area, the second sub-panel area and the third sub-panel area (as shown in Figure 2E), and the main screen including the first sub-panel area Relevant content described in the application scenarios of the main screen area, the second sub-main screen area, the third sub-main screen area and the fourth sub-main screen area (as shown in FIG. 2D ) will not be repeated here.
在本实施例中,将当前主屏幕中第M个子主屏区域上的显示内容在第N个子主屏区域上进行显示,包括:In this embodiment, the display content on the Mth sub-main screen area of the current main screen is displayed on the Nth sub-main screen area, including:
检测与当前主屏幕中第M个子主屏区域相邻的子主屏区域上是否存在截图窗口;Detect whether there is a screenshot window on the sub-main screen area adjacent to the Mth sub-main screen area in the current main screen;
如果是,则判断所述截图窗口内容为当前主屏幕中第M个子主屏区域的显示内容,将所述截图窗口平移至当前主屏幕中第N个子主屏区域进行显示,并隐藏或删除所检测到的截图窗口;If yes, then determine that the screenshot window content is the display content of the Mth sub-main screen area in the current main screen, translate the screenshot window to the Nth sub-main screen area in the current main screen for display, and hide or delete the detected screenshot window;
如果否,则创建并呈现用于覆盖当前主屏幕中第N个子主屏区域的截图窗口,其中所创建的截图窗口内容为当前主屏幕中第M个子主屏区域上的显示内容;If not, create and present a screenshot window for covering the Nth sub-main screen area in the current main screen, wherein the content of the created screenshot window is the display content on the Mth sub-main screen area in the current main screen;
其中,所述M和N均可为一、二、三和四中的任一,且所述M和N不等。Wherein, said M and N can be any one of one, two, three and four, and said M and N are not equal.
为更清楚的阐述本实施例所述的技术方案,现在进行举例说明。如图5B所示,主屏幕上的第一个子主屏区域、第二个子主屏区域、第三个子主屏区域以及第四个子主屏区域分别对应显示有A、B、C和D四个图标。预先将水平平移参数值和垂直平移参数值均初始化为0,然后:In order to more clearly illustrate the technical solution described in this embodiment, an example is now given. As shown in FIG. 5B , four icons A, B, C and D are correspondingly displayed in the first sub-main screen area, the second sub-main screen area, the third sub-main screen area and the fourth sub-main screen area on the main screen. Initialize both the horizontal translation parameter value and the vertical translation parameter value to 0 in advance, then:
(1)获取到当前作用在触控面板上的一个双击操作;(1) Obtain a double-click operation currently acting on the touch panel;
(2)检测所获取到的双击操作所对应的子面板区域为第一子面板区域,对当前的水平平移参数值和垂直平移参数值作如下调整:将当前的水平平移参数值调整为1,垂直平移参数值保持不变,仍为0;(2) Detect that the sub-panel area corresponding to the obtained double-click operation is the first sub-panel area, and adjust the current horizontal translation parameter value and vertical translation parameter value as follows: adjust the current horizontal translation parameter value to 1, The vertical translation parameter value remains unchanged, still 0;
(3)确定当前主屏幕中的第一目标区域为第一个子主屏区域和第三个子主屏区域,第二目标区域为第二个子主屏区域和第四个子主屏区域;(3) Determine that the first target area in the current main screen is the first sub-main screen area and the third sub-main screen area, and the second target area is the second sub-main screen area and the fourth sub-main screen area;
(4)检测与当前主屏幕中第二个子主屏区域相邻的子主屏区域上是否存在截图窗口,与当前主屏幕中第四个子主屏区域相邻的子主屏区域上是否存在截图窗口;(4) Detect whether there is a screenshot window on the sub-main screen area adjacent to the second sub-main screen area in the current main screen, and whether there is a screenshot window on the sub-main screen area adjacent to the fourth sub-main screen area in the current main screen;
检测到与当前主屏幕中第二个子主屏区域相邻的子主屏区域上不存在截图窗口,创建并呈现用于覆盖当前主屏幕中第二个子主屏区域的截图窗口,其中所创建的截图窗口内容为当前主屏幕中第一个子主屏区域上的显示内容,以实现将第一个子主屏区域的显示内容在第二个子主屏区域进行显示(如图5C);Detect that there is no screenshot window on the sub-main screen area adjacent to the second sub-main screen area in the current main screen, create and present a screenshot window used to cover the second sub-main screen area in the current main screen, and the content of the created screenshot window It is the display content on the first sub-main screen area of the current main screen, so as to realize displaying the display content of the first sub-main screen area on the second sub-main screen area (as shown in Figure 5C);
检测到与当前主屏幕中第四个子主屏区域相邻的子主屏区域上不存在截图窗口,创建并呈现用于覆盖当前主屏幕中第四个子主屏区域的截图窗口,其中所创建的截图窗口内容为当前主屏幕中第三个子主屏区域上的显示内容,以实现将第三个子主屏区域的显示内容在第四个子主屏区域进行显示(如图5C);Detect that there is no screenshot window on the sub-main screen area adjacent to the fourth sub-main screen area in the current main screen, create and present a screenshot window used to cover the fourth sub-main screen area in the current main screen, and the content of the created screenshot window It is the display content on the third sub-main screen area in the current main screen, so as to display the display content in the third sub-main screen area in the fourth sub-main screen area (as shown in Figure 5C);
(5)获取到当前作用在触控面板上的另一个双击操作;(5) Obtain another double-click operation currently acting on the touch panel;
(6)检测所获取到的双击操作所对应的子面板区域为第三子面板区域,对当前的水平平移参数值和垂直平移参数值作如下调整:将当前的垂直平移参数值调整为1,水平平移参数值保持不变,仍为1;(6) Detect that the sub-panel area corresponding to the obtained double-click operation is the third sub-panel area, and adjust the current horizontal translation parameter value and vertical translation parameter value as follows: adjust the current vertical translation parameter value to 1, The horizontal translation parameter value remains unchanged, still 1;
(7)确定当前主屏幕中的第一目标区域为第一个子主屏区域,第二目标区域为第四个子主屏区域;(7) Determine that the first target area in the current main screen is the first sub-main screen area, and the second target area is the fourth sub-main screen area;
(8)检测到与当前主屏幕中第四个子主屏区域相邻的第二个子主屏区域上存在截图窗口,则判断所述截图窗口内容为当前主屏幕中第一个子主屏区域的显示内容,将所述截图窗口平移至当前主屏幕中第四个子主屏区域进行显示,并隐藏或删除所检测到的截图窗口,以实现将第一个子主屏区域的显示内容在第四个子主屏区域进行显示(如图5D);(8) detecting that there is a screenshot window on the second sub-main screen area adjacent to the fourth sub-main screen area in the current main screen, then judging that the content of the screenshot window is the display content of the first sub-main screen area in the current main screen, Translate the screenshot window to the fourth sub-main screen area of the current main screen for display, and hide or delete the detected screenshot window, so as to display the display content of the first sub-main screen area in the fourth sub-main screen area (as shown in Figure 5D);
(9)检测到作用在第四个子主屏区域上的第一触发操作,根据如下公式计算第一触发操作对应的触摸点坐标在第一个子主屏区域中的实际响应点坐标:并基于实际响应点坐标执行与第一触发操作对应的触控响应操作。(9) The first trigger operation acting on the fourth sub-main screen area is detected, and the actual response point coordinates of the touch point coordinates corresponding to the first trigger operation in the first sub-main screen area are calculated according to the following formula: And the touch response operation corresponding to the first trigger operation is executed based on the actual response point coordinates.
(10)如果检测到作用在除第四个子主屏区域之外的其他各个子主屏区域上的第二触发操作,则将所检测到的第二触发操作对应的触摸点坐标作为实际响应点坐标,并基于该实际响应点坐标执行与第二触发操作对应的触控响应操作。(10) If a second trigger operation acting on each sub-main screen area except the fourth sub-main screen area is detected, the touch point coordinates corresponding to the detected second trigger operation are used as the actual response point coordinates, And based on the actual coordinates of the response point, the touch response operation corresponding to the second trigger operation is executed.
本实施例提出的技术方案,使得用户在通过对背部触控面板的点击操作将主屏幕中第一目标区域上的显示内容在第二目标区域进行显示之后,可以进一步通过触摸第二目标区域来完成对第一目标区域相应坐标点的触控响应。这样,在第一目标区域为用户单手不可触及的主屏幕区域,第二目标区域为用户单手可触及的主屏幕区域的情况下,用户仅使用单手便可实现对终端主屏幕不可触及区域的触发。与通过对背部触控面板的滑动操作来触发终端主屏幕相应区域的方案相比,本实施例不仅能够达到可以单手触摸终端的主屏幕的技术效果,而且对背部触控面板的操作仅为简单的点击操作,其出错率低,无需用户多次定位,能够延长终端电池的续航能力。The technical solution proposed in this embodiment enables the user to display the display content on the first target area in the main screen in the second target area by clicking on the back touch panel, and then further touch the second target area to The touch response to the corresponding coordinate point of the first target area is completed. In this way, when the first target area is the main screen area that cannot be touched by the user with one hand, and the second target area is the main screen area that the user can touch with one hand, the user can realize that the main screen of the terminal cannot be touched by using only one hand. Region triggers. Compared with the solution of triggering the corresponding area of the main screen of the terminal by sliding the touch panel on the back, this embodiment can not only achieve the technical effect that the main screen of the terminal can be touched with one hand, but also the operation on the touch panel on the back is only The simple click operation has a low error rate, does not require the user to locate multiple times, and can extend the battery life of the terminal.
实施例五Embodiment five
图6是本发明实施例五提供的一种触控实现装置的结构示意图。本实施例可适用于对背部触控式终端主屏幕的触控情况。该装置可以被内置在包含有触控面板和主屏幕的背部触控式终端中。参见图6,该触控实现装置的具体结构如下:FIG. 6 is a schematic structural diagram of a device for realizing touch control provided by Embodiment 5 of the present invention. This embodiment is applicable to the situation of touching the main screen of the back touch terminal. The device can be built into a back touch terminal including a touch panel and a main screen. Referring to Figure 6, the specific structure of the touch control device is as follows:
显示模块610,用于根据作用在触控面板上的点击操作,将当前主屏幕中第一目标区域上的显示内容在主屏幕中的第二目标区域进行显示,其中所述触控面板位于所在终端的背部,所述主屏幕位于所在终端的前部;The display module 610 is configured to display the display content in the first target area of the current main screen on the second target area of the main screen according to the click operation on the touch panel, where the touch panel is located the back of the terminal, the main screen being located on the front of the terminal on which it is located;
第一响应模块620,用于如果检测到作用在所述第二目标区域上的第一触发操作,则计算所述第一触发操作对应的触摸点坐标在所述第一目标区域中的实际响应点坐标,并基于所述实际响应点坐标执行与所述第一触发操作对应的触控响应操作。The first response module 620 is configured to calculate an actual response of the touch point coordinates corresponding to the first trigger operation in the first target area if a first trigger operation acting on the second target area is detected point coordinates, and perform a touch response operation corresponding to the first trigger operation based on the actual response point coordinates.
进一步的,所述触控面板包括多个子面板区域;所述主屏幕包括多个子主屏区域;Further, the touch panel includes multiple sub-panel areas; the main screen includes multiple sub-main screen areas;
所述显示模块610,包括:The display module 610 includes:
点击操作获取单元611,用于获取当前作用在所述触控面板上的点击操作;A click operation acquiring unit 611, configured to acquire a click operation currently acting on the touch panel;
目标区域确定单元612,用于检测所述点击操作所对应的子面板区域,根据检测结果调整水平平移参数值和垂直平移参数值,并根据调整后的水平平移参数值和垂直平移参数值,确定当前主屏幕中的第一目标区域和第二目标区域;其中第一目标区域和第二目标区域分别包括至少一个子主屏区域,并且第一目标区域和第二目标区域包括的子主屏区域不存在交集;The target area determination unit 612 is configured to detect the sub-panel area corresponding to the click operation, adjust the horizontal translation parameter value and the vertical translation parameter value according to the detection result, and determine the horizontal translation parameter value and the vertical translation parameter value according to the adjusted horizontal translation parameter value and vertical translation parameter value. The first target area and the second target area in the current home screen; wherein the first target area and the second target area respectively include at least one sub-home screen area, and the sub-home screen area included in the first target area and the second target area does not exist intersection;
目标内容显示单元613,用于将确定的第一目标区域中的显示内容在确定的第二目标区域进行显示。The target content display unit 613 is configured to display the display content in the determined first target area in the determined second target area.
进一步的,所述触控面板包括第一子面板区域、第二子面板区域和第三子面板区域;所述主屏幕包括第一个子主屏区域、第二个子主屏区域、第三个子主屏区域以及第四个子主屏区域;Further, the touch panel includes a first sub-panel area, a second sub-panel area and a third sub-panel area; the main screen includes a first sub-main screen area, a second sub-main screen area, and a third sub-main screen area and the fourth sub-main screen area;
所述目标内容显示单元613,具体用于:The target content display unit 613 is specifically used for:
如果所确定的第一目标区域为第一个子主屏区域和第二个子主屏区域,第二目标区域为第三个子主屏区域和第四个子主屏区域,则将当前主屏幕中第一个子主屏区域上的显示内容在第三个子主屏区域上进行显示,将当前主屏幕中第二个子主屏区域上的显示内容在第四个子主屏区域上进行显示;If the determined first target area is the first sub-main screen area and the second sub-main screen area, and the second target area is the third sub-main screen area and the fourth sub-main screen area, then the first sub-main screen area in the current main screen will be The display content on the area is displayed on the third sub-main screen area, and the display content on the second sub-main screen area of the current main screen is displayed on the fourth sub-main screen area;
如果所确定的第一目标区域为第一个子主屏区域和第三个子主屏区域,第二目标区域为第二个子主屏区域和第四个子主屏区域,则将当前主屏幕中第一个子主屏区域上的显示内容在第二个子主屏区域上进行显示,将当前主屏幕中第三个子主屏区域上的显示内容在第四个子主屏区域上进行显示;If the determined first target area is the first sub-main screen area and the third sub-main screen area, and the second target area is the second sub-main screen area and the fourth sub-main screen area, then the first sub-main screen area in the current main screen will be The display content on the area is displayed on the second sub-main screen area, and the display content on the third sub-main screen area of the current main screen is displayed on the fourth sub-main screen area;
如果所确定的第一目标区域为第二个子主屏区域和第四个子主屏区域,第二目标区域为第一个子主屏区域和第三个子主屏区域,则将当前主屏幕中第二个子主屏区域上的显示内容在第一个子主屏区域上进行显示,将当前主屏幕中第四个子主屏区域上的显示内容在第三个子主屏区域上进行显示;If the determined first target area is the second sub-main screen area and the fourth sub-main screen area, and the second target area is the first sub-main screen area and the third sub-main screen area, then the second sub-main screen area in the current main screen Display content on the first sub-main screen area, and display content on the fourth sub-main screen area of the current main screen on the third sub-main screen area;
如果所确定的第一目标区域为第一个子主屏区域,第二目标区域为第四个子主屏区域,则将当前主屏幕中第一个子主屏区域上的显示内容在第四个子主屏区域上进行显示;If the determined first target area is the first sub-main screen area and the second target area is the fourth sub-main screen area, display the content displayed on the first sub-main screen area in the current main screen on the fourth sub-main screen area to display;
如果所确定的第一目标区域为第二个子主屏区域,第二目标区域为第三个子主屏区域,则将当前主屏幕中第二个子主屏区域上的显示内容在第三个子主屏区域上进行显示。If the determined first target area is the second sub-main screen area, and the second target area is the third sub-main screen area, display the content displayed on the second sub-main screen area in the current main screen on the third sub-main screen area .
进一步的,所述目标区域确定单元612,包括:参数调整子单元6121和区域确定子单元6122;其中,Further, the target area determination unit 612 includes: a parameter adjustment subunit 6121 and an area determination subunit 6122; wherein,
所述参数调整子单元6121,用于:The parameter adjustment subunit 6121 is configured to:
如果所检测到的子面板区域为所述第一子面板区域,且当前的水平平移参数值小于1,则将当前的水平平移参数值加1;If the detected sub-panel area is the first sub-panel area, and the current horizontal translation parameter value is less than 1, then add 1 to the current horizontal translation parameter value;
如果所检测到的子面板区域为所述第二子面板区域,且当前的水平平移参数值大于0,则将当前的水平平移参数值减1;If the detected sub-panel area is the second sub-panel area, and the current horizontal translation parameter value is greater than 0, then decrement the current horizontal translation parameter value by 1;
如果所检测到的子面板区域为所述第三子面板区域,且当前的垂直平移参数值不等于1,则将当前的垂直平移参数值加1;If the detected sub-panel area is the third sub-panel area, and the current vertical translation parameter value is not equal to 1, then add 1 to the current vertical translation parameter value;
如果所检测到的子面板区域为所述第三子面板区域,且当前的垂直平移参数值等于1,则将当前的垂直平移参数值减1;If the detected sub-panel area is the third sub-panel area, and the current vertical translation parameter value is equal to 1, then decrement the current vertical translation parameter value by 1;
其中,所述水平平移参数值和垂直平移参数值的初始值均为0;Wherein, the initial values of the horizontal translation parameter value and the vertical translation parameter value are both 0;
所述区域确定子单元6122,用于:The area determination subunit 6122 is configured to:
如果调整后的水平平移参数值为1,垂直平移参数值为0,确定当前主屏幕中的第一目标区域为第一个子主屏区域和第三个子主屏区域,第二目标区域为第二个子主屏区域和第四个子主屏区域;If the adjusted horizontal translation parameter value is 1 and the vertical translation parameter value is 0, determine that the first target area in the current main screen is the first sub-main screen area and the third sub-main screen area, and the second target area is the second sub-main screen area. The main screen area and the fourth sub-home screen area;
如果调整后的水平平移参数值为-1,垂直平移参数值为0,确定当前主屏幕中的第一目标区域为第二个子主屏区域和第四个子主屏区域,第二目标区域为第一个子主屏区域和第三个子主屏区域;If the adjusted horizontal translation parameter value is -1 and the vertical translation parameter value is 0, determine that the first target area in the current main screen is the second sub-main screen area and the fourth sub-main screen area, and the second target area is the first A sub-home area and a third sub-home area;
如果调整后的水平平移参数值为0,垂直平移参数值为1,确定当前主屏幕中的第一目标区域为第一个子主屏区域和第二个子主屏区域,第二目标区域为第三个子主屏区域和第四个子主屏区域;If the adjusted horizontal translation parameter value is 0 and the vertical translation parameter value is 1, determine that the first target area in the current main screen is the first sub-main screen area and the second sub-main screen area, and the second target area is the third sub-main screen area. The main screen area and the fourth sub-home screen area;
如果调整后的水平平移参数值为1,垂直平移参数值为1,确定当前主屏幕中的第一目标区域为第一个子主屏区域,第二目标区域为第四个子主屏区域;If the adjusted horizontal translation parameter value is 1 and the vertical translation parameter value is 1, determine that the first target area in the current main screen is the first sub-main screen area, and the second target area is the fourth sub-main screen area;
如果调整后的水平平移参数值为-1,垂直平移参数值为1,确定当前主屏幕中的第一目标区域为第二个子主屏区域,第二目标区域为第三个子主屏区域。If the adjusted horizontal translation parameter value is -1 and the vertical translation parameter value is 1, it is determined that the first target area in the current main screen is the second sub-main screen area, and the second target area is the third sub-main screen area.
进一步的,所述第一个子主屏区域位于主屏幕的左上角,所述第二个子主屏区域位于主屏幕的右上角,所述第三个子主屏区域位于主屏幕的左下角,所述第四个子主屏区域位于主屏幕的右下角;所述第一个子主屏区域、第二个子主屏区域、第三个子主屏区域以及第四个子主屏区域均为尺寸相等的矩形区域,且所有子主屏区域的面积之和为主屏幕的面积;Further, the first sub-main screen area is located in the upper left corner of the main screen, the second sub-main screen area is located in the upper right corner of the main screen, the third sub-main screen area is located in the lower left corner of the main screen, and the fourth sub-main screen area is located in the upper left corner of the main screen. The first sub-main screen area is located at the lower right corner of the main screen; the first sub-main screen area, the second sub-main screen area, the third sub-main screen area and the fourth sub-main screen area are all rectangular areas of equal size, and all sub-main screen areas The sum of the areas is the area of the main screen;
则所述第一响应模块620,具体用于:Then the first response module 620 is specifically used for:
根据如下公式计算所述第一触发操作对应的触摸点坐标在所述第一目标区域中的实际响应点坐标:Calculate the actual response point coordinates of the touch point coordinates corresponding to the first trigger operation in the first target area according to the following formula:
其中,xr为实际响应点的横坐标,yr为实际响应点的纵坐标,x为触摸点的横坐标,y为触摸点的纵坐标,TH为调整后的水平平移参数值,TV为调整后的垂直平移参数值,W为主屏幕宽度,H为主屏幕高度。Among them, x r is the abscissa of the actual response point, y r is the ordinate of the actual response point, x is the abscissa of the touch point, y is the ordinate of the touch point, T H is the adjusted horizontal translation parameter value, T V is the adjusted vertical translation parameter value, W is the width of the main screen, and H is the height of the main screen.
在上述技术方案的基础上,所述目标内容显示单元613,具体用于:On the basis of the above technical solution, the target content display unit 613 is specifically used for:
隐藏当前主屏幕中第N个子主屏区域的显示内容,将当前主屏幕中第M个子主屏区域上的显示内容作为当前主屏幕中第N个子主屏区域的显示内容进行显示;或者,Hide the display content of the Nth sub-main screen area of the current main screen, and display the display content of the M-th sub-main screen area of the current main screen as the display content of the Nth sub-main screen area of the current main screen; or,
检测与当前主屏幕中第M个子主屏区域相邻的子主屏区域上是否存在截图窗口;如果是,则判断所述截图窗口内容为当前主屏幕中第M个子主屏区域的显示内容,将所述截图窗口平移至当前主屏幕中第N个子主屏区域进行显示,并隐藏或删除所检测到的截图窗口;如果否,则创建并呈现用于覆盖当前主屏幕中第N个子主屏区域的截图窗口,其中所创建的截图窗口内容为当前主屏幕中第M个子主屏区域上的显示内容;Detect whether there is a screenshot window on the sub-main screen area adjacent to the Mth sub-main screen area in the current main screen; The screenshot window is shifted to the Nth sub-main screen area of the current main screen for display, and the detected screenshot window is hidden or deleted; if not, a screenshot window for covering the Nth sub-main screen area of the current main screen is created and presented, The content of the screenshot window created is the display content on the Mth sub-main screen area of the current main screen;
其中,所述M和N均可为一、二、三和四中的任一,且所述M和N不等。Wherein, said M and N can be any one of one, two, three and four, and said M and N are not equal.
在上述技术方案的基础上,所述触控实现装置还包括:On the basis of the above technical solution, the touch control device further includes:
显示内容隐藏模块630,用于在所述目标区域确定单元612确定当前主屏幕中的第一目标区域和第二目标区域之后,隐藏用于覆盖当前主屏幕中除所述第一目标区域和第二目标区域之外的其他子主屏区域的显示内容。The display content hiding module 630 is configured to hide the target area used to cover the current main screen except for the first target area and the second target area after the target area determining unit 612 determines the first target area and the second target area in the current main screen. 2. The display content of other sub-main screen areas other than the target area.
在上述技术方案的基础上,所述触控实现装置还包括:On the basis of the above technical solution, the touch control device further includes:
第二响应模块640,用于在所述目标内容显示单元613将当前主屏幕中第一目标区域上的当前显示内容在第二目标区域进行显示之后,如果检测到作用在除所述第二目标区域之外的其他各个子主屏区域上的第二触发操作,则将所检测到的第二触发操作对应的触摸点坐标作为实际响应点坐标,并基于该实际响应点坐标执行与所述第二触发操作对应的触控响应操作。The second response module 640 is configured to, after the target content display unit 613 displays the current display content on the first target area in the current main screen in the second target area, if it is detected For the second trigger operation on other sub-main screen areas outside the area, the touch point coordinates corresponding to the detected second trigger operation are used as the actual response point coordinates, and based on the actual response point coordinates, the second trigger operation is performed. The touch response operation corresponding to the trigger operation.
上述触控实现装置这一产品可执行本发明任意实施例所提供的方法,具备执行方法相应的功能模块和有益效果。未在本实施例中详尽描述的技术细节,参见上述任意实施例所提供的方法,在此不再赘述。The above-mentioned touch control implementation device is a product that can execute the method provided by any embodiment of the present invention, and has corresponding functional modules and beneficial effects for executing the method. For technical details that are not described in detail in this embodiment, refer to the method provided in any of the foregoing embodiments, and details are not repeated here.
注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments of the present invention and applied technical principles. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present invention, and the present invention The scope is determined by the scope of the appended claims.
Claims (16)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410407734.1A CN104166508B (en) | 2014-08-18 | 2014-08-18 | A kind of touch-control implementation method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410407734.1A CN104166508B (en) | 2014-08-18 | 2014-08-18 | A kind of touch-control implementation method and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN104166508A true CN104166508A (en) | 2014-11-26 |
| CN104166508B CN104166508B (en) | 2017-10-20 |
Family
ID=51910351
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201410407734.1A Expired - Fee Related CN104166508B (en) | 2014-08-18 | 2014-08-18 | A kind of touch-control implementation method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN104166508B (en) |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105912252A (en) * | 2016-03-31 | 2016-08-31 | 宇龙计算机通信科技(深圳)有限公司 | Text erasing method and device |
| CN106020623A (en) * | 2015-03-31 | 2016-10-12 | 三星电子株式会社 | Electronic device and method of displaying same |
| CN109218514A (en) * | 2017-07-07 | 2019-01-15 | 中兴通讯股份有限公司 | A kind of control method, device and equipment |
| CN112463002A (en) * | 2020-11-13 | 2021-03-09 | 维沃移动通信有限公司 | Electronic device and one-handed operation method |
| CN115033091A (en) * | 2021-03-03 | 2022-09-09 | 上海艾为电子技术股份有限公司 | Method and device for reducing power consumption of handheld mobile equipment |
Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20090167696A1 (en) * | 2007-12-31 | 2009-07-02 | Sony Ericsson Mobile Communications Ab | Mobile terminals including multiple user interfaces on different faces thereof configured to be used in tandem and related methods of operation |
| CN102681779A (en) * | 2012-04-25 | 2012-09-19 | 中兴通讯股份有限公司南京分公司 | Method and device for operating touch screen |
| CN102830926A (en) * | 2012-08-10 | 2012-12-19 | 北京三星通信技术研究有限公司 | Mobile terminal and operating method thereof |
| WO2013033309A1 (en) * | 2011-09-01 | 2013-03-07 | Google Inc. | Receiving input at a computing device |
| CN103257826A (en) * | 2013-05-17 | 2013-08-21 | 广东欧珀移动通信有限公司 | Method and system for mobile terminal to realize navigation key function based on fingerprint recognition |
| CN103279294A (en) * | 2013-05-02 | 2013-09-04 | 深圳市金立通信设备有限公司 | Terminal operating method and terminal |
| CN103472996A (en) * | 2013-09-17 | 2013-12-25 | 深圳市佳创软件有限公司 | Method and device for receiving touch in mobile device |
| CN103488419A (en) * | 2013-08-26 | 2014-01-01 | 宇龙计算机通信科技(深圳)有限公司 | Operating method of communication terminal and communication terminal |
-
2014
- 2014-08-18 CN CN201410407734.1A patent/CN104166508B/en not_active Expired - Fee Related
Patent Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20090167696A1 (en) * | 2007-12-31 | 2009-07-02 | Sony Ericsson Mobile Communications Ab | Mobile terminals including multiple user interfaces on different faces thereof configured to be used in tandem and related methods of operation |
| WO2013033309A1 (en) * | 2011-09-01 | 2013-03-07 | Google Inc. | Receiving input at a computing device |
| CN102681779A (en) * | 2012-04-25 | 2012-09-19 | 中兴通讯股份有限公司南京分公司 | Method and device for operating touch screen |
| CN102830926A (en) * | 2012-08-10 | 2012-12-19 | 北京三星通信技术研究有限公司 | Mobile terminal and operating method thereof |
| CN103279294A (en) * | 2013-05-02 | 2013-09-04 | 深圳市金立通信设备有限公司 | Terminal operating method and terminal |
| CN103257826A (en) * | 2013-05-17 | 2013-08-21 | 广东欧珀移动通信有限公司 | Method and system for mobile terminal to realize navigation key function based on fingerprint recognition |
| CN103488419A (en) * | 2013-08-26 | 2014-01-01 | 宇龙计算机通信科技(深圳)有限公司 | Operating method of communication terminal and communication terminal |
| CN103472996A (en) * | 2013-09-17 | 2013-12-25 | 深圳市佳创软件有限公司 | Method and device for receiving touch in mobile device |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106020623A (en) * | 2015-03-31 | 2016-10-12 | 三星电子株式会社 | Electronic device and method of displaying same |
| CN105912252A (en) * | 2016-03-31 | 2016-08-31 | 宇龙计算机通信科技(深圳)有限公司 | Text erasing method and device |
| CN109218514A (en) * | 2017-07-07 | 2019-01-15 | 中兴通讯股份有限公司 | A kind of control method, device and equipment |
| CN112463002A (en) * | 2020-11-13 | 2021-03-09 | 维沃移动通信有限公司 | Electronic device and one-handed operation method |
| CN115033091A (en) * | 2021-03-03 | 2022-09-09 | 上海艾为电子技术股份有限公司 | Method and device for reducing power consumption of handheld mobile equipment |
| CN115033091B (en) * | 2021-03-03 | 2023-08-11 | 上海艾为电子技术股份有限公司 | Method and device for reducing power consumption of handheld mobile device |
Also Published As
| Publication number | Publication date |
|---|---|
| CN104166508B (en) | 2017-10-20 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN102929535B (en) | A kind of method and terminal of the control of suspension window position | |
| US10338705B2 (en) | Method and apparatus of controlling user interface using touch screen | |
| US10929013B2 (en) | Method for adjusting input virtual keyboard and input apparatus | |
| CN103838456B (en) | A kind of control method and system of desktop icons display location | |
| US9304656B2 (en) | Systems and method for object selection on presence sensitive devices | |
| US20150199125A1 (en) | Displaying an application image on two or more displays | |
| CN110347317B (en) | A window switching method, device, storage medium and interactive smart tablet | |
| CN107977141B (en) | Interaction control method and device, electronic equipment and storage medium | |
| US11112959B2 (en) | Linking multiple windows in a user interface display | |
| CN106020678A (en) | Method and device for implementing touch operation in mobile equipment | |
| CN111857509A (en) | Split-screen display method, device and electronic device | |
| AU2011369360A1 (en) | Edge gesture | |
| AU2011369359A1 (en) | Edge gesture | |
| TWI616803B (en) | Screen zooming and operation method, device and computer program product | |
| US20120218307A1 (en) | Electronic device with touch control screen and display control method thereof | |
| CN113918260A (en) | Application program display method and device and electronic equipment | |
| US20140015785A1 (en) | Electronic device | |
| CN103488419A (en) | Operating method of communication terminal and communication terminal | |
| CN111831182A (en) | Application icon control method, device and electronic device | |
| CN104166508B (en) | A kind of touch-control implementation method and device | |
| WO2022121790A1 (en) | Split-screen display method and apparatus, electronic device, and readable storage medium | |
| CN107329644A (en) | A kind of icon moving method and device | |
| CN104461312A (en) | Display control method and electronic equipment | |
| CN114779977A (en) | Interface display method and device, electronic equipment and storage medium | |
| CN102314287A (en) | Interactive display system and method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CP01 | Change in the name or title of a patent holder |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
| CP01 | Change in the name or title of a patent holder | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20171020 |
|
| CF01 | Termination of patent right due to non-payment of annual fee |