CN115657917A - Control method, device and smart device for display interface - Google Patents
Control method, device and smart device for display interface Download PDFInfo
- Publication number
- CN115657917A CN115657917A CN202211273329.6A CN202211273329A CN115657917A CN 115657917 A CN115657917 A CN 115657917A CN 202211273329 A CN202211273329 A CN 202211273329A CN 115657917 A CN115657917 A CN 115657917A
- Authority
- CN
- China
- Prior art keywords
- touch
- display interface
- display
- control instruction
- touch event
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
本申请涉及电子屏技术领域,尤其涉及一种显示界面的控制方法、装置和智能设备。该控制方法应用于电子显示屏,所述控制方法包括:监测用户对所述电子显示屏上显示界面的触摸事件;获取所述触摸事件的触摸类型,以及所述显示界面的当前界面显示模式;根据所述触摸事件的触摸类型与所述当前界面显示模式,判断所述触摸事件是否满足显示界面控制指令的触发条件;若满足所述触发条件,则基于所述显示界面控制指令,控制所述显示界面的缩放。采用该方法可有效控制大尺寸显示屏上显示界面的缩放,有利于用户对大尺寸显示屏上显示界面的交互操作。
The present application relates to the technical field of electronic screens, and in particular to a display interface control method, device and smart device. The control method is applied to an electronic display screen, and the control method includes: monitoring a user's touch event on a display interface on the electronic display screen; acquiring the touch type of the touch event, and the current interface display mode of the display interface; According to the touch type of the touch event and the current interface display mode, it is judged whether the touch event satisfies the trigger condition of the display interface control instruction; if the trigger condition is met, then based on the display interface control instruction, control the The scaling of the display interface. The method can effectively control the scaling of the display interface on the large-size display screen, and is beneficial to the user's interactive operation on the display interface on the large-size display screen.
Description
技术领域technical field
本申请涉及电子屏技术领域,尤其涉及一种显示界面的控制方法、装置和智能设备。The present application relates to the technical field of electronic screens, in particular to a display interface control method, device and smart device.
背景技术Background technique
LED显示屏依靠其显示清晰、色彩饱和度高、立体感强等优势,被广泛应用于各个领域和场景,尤其是近年来,随着COB(Chip On Board))集成封装技术的不断发展成熟,大尺寸甚至超大尺寸的COB-LED显示屏越来越受到市场青睐,但由于尺寸限制或者应用场景限制,用户无法通过触摸对全屏幕进行操作,对于位置较高,较远等无法直接接触的显示区域,触摸操作会比较困难,严重影响了用户的实际使用体验。Relying on its advantages of clear display, high color saturation and strong three-dimensional effect, LED display is widely used in various fields and scenes, especially in recent years, with the continuous development and maturity of COB (Chip On Board) integrated packaging technology, Large-size or even super-large-size COB-LED displays are more and more popular in the market, but due to size restrictions or application scene restrictions, users cannot operate the full screen by touch. area, the touch operation will be more difficult, seriously affecting the user's actual experience.
发明内容Contents of the invention
有鉴于此,本申请实施例提供了一种显示界面的控制方法、装置和智能设备,可有效控制大尺寸显示屏上显示界面的缩放,有利于用户对大尺寸显示屏上显示界面的交互操作,从而提高用户与电子显示屏交互的有效性,增强用户体验。In view of this, the embodiments of the present application provide a display interface control method, device, and smart device, which can effectively control the scaling of the display interface on a large-size display screen, and facilitate the user's interactive operation of the display interface on the large-size display screen. , thereby improving the effectiveness of user interaction with the electronic display and enhancing user experience.
本申请实施例的第一方面提供了一种显示界面的控制方法,包括:The first aspect of the embodiments of the present application provides a method for controlling a display interface, including:
监测用户对所述电子显示屏上显示界面的触摸事件;Monitoring the user's touch event on the display interface on the electronic display screen;
获取所述触摸事件的触摸类型,以及所述显示界面的当前界面显示模式;Obtain the touch type of the touch event, and the current interface display mode of the display interface;
根据所述触摸事件的触摸类型与所述当前界面显示模式,判断所述触摸事件是否满足显示界面控制指令的触发条件;According to the touch type of the touch event and the current interface display mode, determine whether the touch event satisfies the trigger condition of the display interface control instruction;
若满足所述触发条件,则基于所述显示界面控制指令,控制所述显示界面的缩放。If the triggering condition is met, the scaling of the display interface is controlled based on the display interface control instruction.
在第一方面的一种可能的实现方式中,所述显示界面控制指令包括第一显示界面控制指令、第二显示界面控制指令以及第三显示界面控制指令,所述基于所述显示界面控制指令,控制所述显示界面的缩放,包括:In a possible implementation manner of the first aspect, the display interface control instruction includes a first display interface control instruction, a second display interface control instruction, and a third display interface control instruction, and the , to control the scaling of the display interface, including:
基于所述第一显示界面控制指令,控制所述显示界面缩小;Controlling the display interface to shrink based on the first display interface control instruction;
基于所述第二显示界面控制指令,控制所述显示界面放大;controlling the zooming in of the display interface based on the second display interface control instruction;
基于所述第三显示界面控制指令,控制调整所述显示界面的缩放尺寸。Based on the third display interface control instruction, control and adjust the scaling size of the display interface.
在第一方面的一种可能的实现方式中,所述根据所述触摸事件的触摸类型与所述当前界面显示模式,判断所述触摸事件是否满足显示界面控制指令的触发条件,包括:In a possible implementation manner of the first aspect, the determining whether the touch event satisfies a trigger condition of a display interface control instruction according to the touch type of the touch event and the current interface display mode includes:
当所述触摸事件的触摸类型为单指连续触摸,且所述当前界面显示模式为全屏显示时,获取所述触摸事件中的触摸轨迹以及指定触摸点停留时长;When the touch type of the touch event is single-finger continuous touch, and the current interface display mode is full-screen display, acquire the touch track in the touch event and the dwell time of the specified touch point;
将所述触摸轨迹与预设轨迹进行比对,并根据比对结果判断所述触摸轨迹与所述预设轨迹是否匹配;comparing the touch track with a preset track, and judging whether the touch track matches the preset track according to the comparison result;
若所述触摸轨迹与所述预设轨迹匹配,则判断所述指定触摸点停留时长是否大于或者等于预设停留时长阈值;If the touch track matches the preset track, it is judged whether the dwell time of the specified touch point is greater than or equal to a preset stay time threshold;
当所述指定触摸点停留时长大于或者等于所述预设停留时长阈值时,确定所述触摸事件触发第一显示界面控制指令。When the dwell time of the designated touch point is greater than or equal to the preset dwell time threshold, it is determined that the touch event triggers a first display interface control instruction.
在第一方面的一种可能的实现方式中,所述根据所述触摸事件的触摸类型与所述当前界面显示模式,判断所述触摸事件是否满足显示界面控制指令的触发条件,还包括:In a possible implementation manner of the first aspect, the determining whether the touch event satisfies a trigger condition of a display interface control instruction according to the touch type of the touch event and the current interface display mode further includes:
若所述触摸轨迹与所述预设轨迹不匹配,则对所述触摸轨迹进行校正,得到校正轨迹;If the touch track does not match the preset track, correcting the touch track to obtain a corrected track;
将所述校正轨迹与预设轨迹进行比对,并根据比对结果判断所述校正轨迹与所述预设轨迹是否匹配;Comparing the correction trajectory with a preset trajectory, and judging whether the correction trajectory matches the preset trajectory according to the comparison result;
若所述校正轨迹与所述预设轨迹匹配,则判断所述指定触摸点停留时长是否大于或者等于预设停留时长阈值;If the corrected track matches the preset track, it is judged whether the dwell time of the designated touch point is greater than or equal to a preset dwell time threshold;
当所述指定触摸点停留时长大于或者等于所述预设停留时长阈值时,确定所述触摸事件触发第一显示界面控制指令。When the dwell time of the designated touch point is greater than or equal to the preset dwell time threshold, it is determined that the touch event triggers a first display interface control instruction.
在第一方面的一种可能的实现方式中,所述基于所述第一显示界面控制指令,控制所述显示界面缩小,包括:In a possible implementation manner of the first aspect, the controlling the shrinking of the display interface based on the first display interface control instruction includes:
获取所述电子显示屏的尺寸、屏幕分辨率以及点间距;Obtaining the size, screen resolution and dot pitch of the electronic display screen;
根据所述电子显示屏的尺寸、所述屏幕分辨率以及所述点间距,确定目标缩小尺寸;Determine the target reduction size according to the size of the electronic display screen, the screen resolution and the dot pitch;
获取所述触摸轨迹的中心位置;Obtain the center position of the touch track;
根据所述中心位置,确定目标中心位置,所述目标中心位置为所述显示界面缩小后目标显示区域的中心位置;Determine the center position of the target according to the center position, the center position of the target being the center position of the target display area after the display interface is reduced;
根据所述目标缩小尺寸与所述目标中心位置,将所述显示界面缩小至所述目标显示区域。The display interface is reduced to the target display area according to the reduced size of the target and the center position of the target.
在第一方面的一种可能的实现方式中,所述根据所述触摸事件的触摸类型与所述当前界面显示模式,判断所述触摸事件是否满足显示界面控制指令的触发条件,包括:In a possible implementation manner of the first aspect, the determining whether the touch event satisfies a trigger condition of a display interface control instruction according to the touch type of the touch event and the current interface display mode includes:
当所述触摸事件的触摸类型为单点触摸,且所述当前界面显示模式为非全屏显示时,获取所述触摸事件的触摸位置;When the touch type of the touch event is single touch, and the current interface display mode is non-full screen display, acquire the touch position of the touch event;
若所述触摸位置在所述显示界面之外的任意区域,则确定所述触摸事件触发第二显示界面控制指令。If the touch position is in any area outside the display interface, it is determined that the touch event triggers a second display interface control instruction.
在第一方面的一种可能的实现方式中,所述根据所述触摸事件的触摸类型与所述当前界面显示模式,判断所述触摸事件是否满足显示界面控制指令的触发条件,包括:In a possible implementation manner of the first aspect, the determining whether the touch event satisfies a trigger condition of a display interface control instruction according to the touch type of the touch event and the current interface display mode includes:
当所述触摸事件的触摸类型为双指触摸,且所述当前界面显示模式为非全屏显示时,获取第一触摸位置与第二触摸位置,所述第一触摸位置为第一手指触摸所述电子显示屏的位置,所述第二触摸位置为第二手指触摸所述电子显示屏的位置;When the touch type of the touch event is two-finger touch, and the current interface display mode is non-full-screen display, the first touch position and the second touch position are obtained, and the first touch position is when the first finger touches the The position of the electronic display screen, the second touch position is the position where the second finger touches the electronic display screen;
若所述第一触摸位置与所述第二触摸位置均在所述显示界面内,且所述第一触摸位置与所述第二触摸位置之间的距离基于所述第一手指与所述第二手指的触摸滑动而发生变化,则确定所述触摸事件触发第三显示界面控制指令。If both the first touch position and the second touch position are within the display interface, and the distance between the first touch position and the second touch position is based on the first finger and the second touch position If the touch and slide of the two fingers changes, it is determined that the touch event triggers the third display interface control instruction.
在第一方面的一种可能的实现方式中,所述基于所述第三显示界面控制指令,控制调整所述显示界面的缩放尺寸,包括:In a possible implementation manner of the first aspect, the controlling and adjusting the scaling size of the display interface based on the third display interface control instruction includes:
记录所述第一触摸位置与所述第二触摸位置之间的实时距离;recording the real-time distance between the first touch position and the second touch position;
根据所述实时距离,计算目标缩放尺寸;Calculate the target scaling size according to the real-time distance;
根据所述目标缩放尺寸,调整所述显示界面的缩放尺寸。Adjust the zoom size of the display interface according to the target zoom size.
本申请实施例的第二方面提供了一种显示界面的控制装置,应用于电子显示屏,所述控制装置包括:The second aspect of the embodiment of the present application provides a control device for a display interface, which is applied to an electronic display screen, and the control device includes:
触摸事件监测单元,用于监测用户对所述电子显示屏上显示界面的触摸事件;A touch event monitoring unit, configured to monitor a user's touch event on the display interface on the electronic display screen;
类型及模式获取单元,用于获取所述触摸事件的触摸类型,以及所述显示界面的当前界面显示模式;A type and mode acquisition unit, configured to acquire the touch type of the touch event and the current interface display mode of the display interface;
界面控制判断单元,用于根据所述触摸事件的触摸类型与所述当前界面显示模式,判断所述触摸事件是否满足显示界面控制指令的触发条件;An interface control judging unit, configured to judge whether the touch event satisfies a trigger condition of a display interface control instruction according to the touch type of the touch event and the current interface display mode;
界面控制单元,用于若满足所述触发条件,则基于所述显示界面控制指令,控制所述显示界面的缩放。The interface control unit is configured to control the scaling of the display interface based on the display interface control instruction if the trigger condition is met.
本申请实施例的第三方面提供了一种智能设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如本申请实施例的第一方面提供的显示界面的控制方法的步骤。The third aspect of the embodiments of the present application provides a smart device, including a memory, a processor, and a computer program stored in the memory and operable on the processor, when the processor executes the computer program The steps of the method for controlling a display interface as provided in the first aspect of the embodiments of the present application are implemented.
本申请实施例的第四方面提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现如本申请实施例的第一方面提供的显示界面的控制方法的步骤。The fourth aspect of the embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, it implements the method provided in the first aspect of the embodiment of the present application. The steps of the control method of the display interface.
本申请实施例的第五方面提供了一种计算机程序产品,当计算机程序产品在终端设备上运行时,使得终端设备执行本申请实施例的第一方面所述的显示界面的控制方法的步骤。A fifth aspect of the embodiments of the present application provides a computer program product that, when the computer program product is run on a terminal device, causes the terminal device to execute the steps of the method for controlling a display interface described in the first aspect of the embodiments of the present application.
本申请实施例中,通过监测用户对所述电子显示屏上显示界面的触摸事件,然后获取所述触摸事件的触摸类型,以及所述显示界面的当前界面显示模式,再根据所述触摸事件的触摸类型与所述当前界面显示模式,判断所述触摸事件是否满足显示界面控制指令的触发条件,若满足所述触发条件,则基于所述显示界面控制指令,控制所述显示界面的缩放,可有效实现对大尺寸电子显示屏上显示界面的缩放,有利于用户对大尺寸显示屏上显示界面的交互操作,从而提高用户与电子显示屏交互的有效性,增强用户体验。In the embodiment of the present application, by monitoring the user's touch event on the display interface on the electronic display screen, and then obtaining the touch type of the touch event and the current interface display mode of the display interface, and then according to the touch event The touch type and the current interface display mode determine whether the touch event satisfies the trigger condition of the display interface control instruction, and if the trigger condition is met, then control the scaling of the display interface based on the display interface control instruction, which can be Effectively realizing the scaling of the display interface on the large-size electronic display screen is beneficial to the user's interactive operation on the display interface on the large-size display screen, thereby improving the effectiveness of the user's interaction with the electronic display screen and enhancing user experience.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the accompanying drawings that need to be used in the descriptions of the embodiments or the prior art will be briefly introduced below. Obviously, the accompanying drawings in the following description are only for the present application For some embodiments, those of ordinary skill in the art can also obtain other drawings based on these drawings without paying creative efforts.
图1是本申请实施例提供的显示界面的控制方法的实现流程图;Fig. 1 is the implementation flowchart of the control method of the display interface provided by the embodiment of the present application;
图2是本申请实施例提供的显示界面的控制方法中步骤S103的一种具体实现流程图;Fig. 2 is a specific implementation flowchart of step S103 in the display interface control method provided by the embodiment of the present application;
图2.1是本申请实施例提供的显示界面的控制方法中在触摸轨迹与预设轨迹不匹配时确定所述触摸事件触发第一显示界面控制指令的一种具体实现流程图;Fig. 2.1 is a specific implementation flowchart of determining that the touch event triggers the first display interface control instruction when the touch track does not match the preset track in the display interface control method provided by the embodiment of the present application;
图3是本申请实施例提供的显示界面的控制方法中步骤S103的另一种具体实现流程图;FIG. 3 is another specific implementation flowchart of step S103 in the display interface control method provided by the embodiment of the present application;
图4是本申请实施例提供的显示界面的控制方法中步骤S103的再一种具体实现流程图;FIG. 4 is another specific implementation flowchart of step S103 in the display interface control method provided by the embodiment of the present application;
图5是本申请实施例提供的显示界面的控制方法中基于所述显示界面控制指令,控制所述显示界面的缩放的一种具体实现流程图;Fig. 5 is a specific implementation flowchart of controlling the scaling of the display interface based on the display interface control instruction in the display interface control method provided by the embodiment of the present application;
图6是本申请实施例提供的显示界面的控制方法中基于所述第一显示界面控制指令,控制所述显示界面缩小的一种具体实现流程图;Fig. 6 is a specific implementation flow chart of controlling the shrinking of the display interface based on the first display interface control instruction in the display interface control method provided by the embodiment of the present application;
图7是本申请实施例提供的显示界面的控制方法中基于所述第三显示界面控制指令,控制调整所述显示界面的缩放尺寸的一种具体实现流程图;Fig. 7 is a specific implementation flow chart of controlling and adjusting the scaling size of the display interface based on the third display interface control instruction in the display interface control method provided by the embodiment of the present application;
图8是本申请实施例提供的显示界面的控制装置的结构框图;Fig. 8 is a structural block diagram of a control device for a display interface provided by an embodiment of the present application;
图9是本申请实施例提供的一种智能设备的示意图。Fig. 9 is a schematic diagram of a smart device provided by an embodiment of the present application.
具体实施方式Detailed ways
以下描述中,为了说明而不是为了限定,提出了诸如特定装置结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的装置、系统、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。In the following description, for the purpose of illustration rather than limitation, specific details such as specific device structures and techniques are presented so as to thoroughly understand the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known devices, systems, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
另外,在本申请说明书和所附权利要求书的描述中,术语“第一”、“第二”、“第三”等仅用于区分描述,而不能理解为指示或暗示相对重要性。In addition, in the description of the specification and appended claims of the present application, the terms "first", "second", "third" and so on are only used to distinguish descriptions, and should not be understood as indicating or implying relative importance.
在本申请说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。Reference to "one embodiment" or "some embodiments" or the like in the specification of the present application means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in other embodiments," etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean "one or more but not all embodiments" unless specifically stated otherwise. The terms "including", "comprising", "having" and variations thereof mean "including but not limited to", unless specifically stated otherwise.
应当理解,本申请各个方法实施例提供了一种显示界面的控制方法适用于需要执行数据同步的各种类型智能设备,具体可以为与多个服务器集群通信连接的中间设备、云服务器等。It should be understood that each method embodiment of the present application provides a method for controlling a display interface, which is applicable to various types of smart devices that need to perform data synchronization, specifically, intermediate devices and cloud servers that are communicatively connected to multiple server clusters.
下面结合具体实施例对本申请提供的显示界面的控制方法进行示例性的说明。The method for controlling the display interface provided by the present application will be described exemplarily below in conjunction with specific embodiments.
图1示出了本申请实施例提供的显示界面的控制方法的实现流程,本申请实施例的执行端可为智能设备。该方法流程可以包括如下步骤S101至S104。Fig. 1 shows the implementation process of the display interface control method provided by the embodiment of the present application, and the execution end of the embodiment of the present application may be a smart device. The method flow may include the following steps S101 to S104.
S101:监测用户对所述电子显示屏上显示界面的触摸事件。S101: Monitor a user's touch event on a display interface on the electronic display screen.
本申请实施例中,实时监测用户对所述电子显示屏上显示界面的触摸事件。所述触摸事件是指用户对所述显示界面的触摸操作。In the embodiment of the present application, the user's touch event on the display interface on the electronic display screen is monitored in real time. The touch event refers to a user's touch operation on the display interface.
S102:获取所述触摸事件的触摸类型,以及所述显示界面的当前界面显示模式。S102: Obtain a touch type of the touch event and a current interface display mode of the display interface.
根据触摸类型的不同,所述触摸事件包括单指连续触摸、单点触摸和双指触摸。According to different touch types, the touch events include single-finger continuous touch, single-point touch and two-finger touch.
对于不同触摸类型的触摸事件,其包含的触摸信息可能存在不同。例如,当所述触摸事件为单指连续触摸时,所述触摸事件对应的触摸信息包括触摸轨迹、指定触摸点停留时长;当所述触摸事件为单点触摸时,所述触摸事件对应的触摸信息包括触摸位置;当所述触摸事件为双指触摸时,所述触摸事件对应的触摸信息包括双指分别对应的触摸位置。For touch events of different touch types, the touch information contained therein may be different. For example, when the touch event is a single-finger continuous touch, the touch information corresponding to the touch event includes the touch track and the duration of the specified touch point; when the touch event is a single-point touch, the touch information corresponding to the touch event The information includes a touch position; when the touch event is a two-finger touch, the touch information corresponding to the touch event includes touch positions respectively corresponding to the two fingers.
所述显示界面的显示模式包括全屏显示和非全屏显示。当前界面显示模式是指在检测到触摸事件时显示界面所处的显示模式。The display modes of the display interface include full-screen display and non-full-screen display. The current interface display mode refers to the display mode in which the interface is displayed when a touch event is detected.
S103:根据所述触摸事件的触摸类型与所述当前界面显示模式,判断所述触摸事件是否满足显示界面控制指令的触发条件。S103: According to the touch type of the touch event and the current interface display mode, determine whether the touch event satisfies a trigger condition of a display interface control instruction.
在本申请实施例中,根据触摸事件的触摸类型与当前界面显示模式,判断该触摸事件是否可触发显示界面控制指令。所述显示界面控制指令用于指示控制所述显示界面在所述电子显示屏上的缩放。若所述触摸事件满足所述显示界面控制指令的触发条件,则触发所述显示界面在所述电子显示屏上的缩放,即,缩小或者放到所述显示界面。若不满足,则不触发所述显示界面控制指令。In the embodiment of the present application, it is determined whether the touch event can trigger a display interface control instruction according to the touch type of the touch event and the current interface display mode. The display interface control instruction is used to instruct to control the scaling of the display interface on the electronic display screen. If the touch event satisfies the triggering condition of the display interface control instruction, trigger the scaling of the display interface on the electronic display screen, that is, zoom out or put it on the display interface. If not, the display interface control instruction is not triggered.
作为本申请一种可能的实施方式,图2示出了本申请实施例提供的方法中,所述根据所述触摸事件的触摸类型与所述当前界面显示模式,判断所述触摸事件是否满足显示界面控制指令的触发条件的一种具体实现流程,详述如下:As a possible implementation of the present application, FIG. 2 shows that in the method provided by the embodiment of the present application, according to the touch type of the touch event and the current interface display mode, it is judged whether the touch event meets the display requirements. A specific implementation process of the trigger condition of the interface control command is described in detail as follows:
A1:当所述触摸事件的触摸类型为单指连续触摸,且所述当前界面显示模式为全屏显示时,获取所述触摸事件中的触摸轨迹以及指定触摸点停留时长。其中,所述触摸事件中的触摸轨迹可以在所述显示界面上的任意位置。A1: When the touch type of the touch event is single-finger continuous touch, and the current interface display mode is full-screen display, obtain the touch track in the touch event and the dwell time of the specified touch point. Wherein, the touch track in the touch event may be at any position on the display interface.
所述指定触摸点是指单指连续触摸结束前所在触摸点,所述指定触摸点停留时长即为单指连续触摸结束时在最后的触摸点停留的时长。通过所述指定触摸点停留时长可识别用户的真实意图。若所述指定触摸点停留时长大于或者等于所述预设停留时长阈值,则可确定用户确实意图触发第一显示界面控制指令;若所述指定触摸点停留时长小于预设触摸时长,则确定该次触摸事件为误触摸。The specified touch point refers to the touch point where the single-finger continuous touch ends, and the specified touch point stay time is the duration of stay at the last touch point when the single-finger continuous touch ends. The real intention of the user can be identified through the dwell time of the designated touch point. If the dwell time of the specified touch point is greater than or equal to the preset dwell time threshold, it can be determined that the user really intends to trigger the first display interface control instruction; A touch event is a false touch.
A2:将所述触摸轨迹与预设轨迹进行比对,并根据比对结果判断所述触摸轨迹与所述预设轨迹是否匹配。A2: Compare the touch track with the preset track, and judge whether the touch track matches the preset track according to the comparison result.
一些实施方式中,获取所述触摸轨迹对应的轨迹特征信息,以及所述预设轨迹的预设特征信息,根据所述轨迹特征信息与所述预设特征信息,计算所述触摸轨迹与所述预设轨迹的第一相似度;若所述第一相似度大于或者等于预设相似度阈值,则确定所述触摸轨迹与所述预设轨迹匹配。若所述第一相似度小于所述预设相似度阈值,则确定所述触摸轨迹与所述预设轨迹不匹配。In some embodiments, the track feature information corresponding to the touch track and the preset feature information of the preset track are obtained, and the touch track and the preset feature information are calculated according to the track feature information and the preset feature information. A first similarity of a preset track; if the first similarity is greater than or equal to a preset similarity threshold, it is determined that the touch track matches the preset track. If the first similarity is smaller than the preset similarity threshold, it is determined that the touch track does not match the preset track.
A3:若所述触摸轨迹与所述预设轨迹匹配,则判断所述指定触摸点停留时长是否大于或者等于预设停留时长阈值。所述预设轨迹可以为闭合形状,例如,矩形、三角形。所述预设轨迹可以为可确定轨迹中心位置的非闭合形状,例如,三天边的类矩形。A3: If the touch track matches the preset track, determine whether the dwell time of the specified touch point is greater than or equal to a preset stay time threshold. The preset trajectory may be a closed shape, for example, a rectangle or a triangle. The preset track may be an open shape that can determine the position of the center of the track, for example, a rectangle-like shape with three sides.
A4:当所述指定触摸点停留时长大于或者等于所述预设停留时长阈值时,确定所述触摸事件触发第一显示界面控制指令。所述第一显示界面控制指令用于控制缩小所述电子显示屏的显示界面。A4: When the dwell time of the specified touch point is greater than or equal to the preset dwell time threshold, it is determined that the touch event triggers the first display interface control instruction. The first display interface control instruction is used to control the shrinking of the display interface of the electronic display screen.
本申请实施例中,当所述触摸事件的触摸类型为单指连续触摸,且所述当前界面显示模式为全屏显示时,先判断触摸轨迹是否与预设轨迹匹配,在匹配的情形下,再判断指定触摸点停留时长是否大于或者等于预设停留时长阈值,在确定指定触摸点停留时长大于或者等于预设停留时长阈值时,即满足第一显示界面控制指令的触发条件。In the embodiment of the present application, when the touch type of the touch event is single-finger continuous touch, and the current interface display mode is full-screen display, first judge whether the touch track matches the preset track, and if they match, then Judging whether the dwell time of the designated touch point is greater than or equal to the preset dwell time threshold, and when it is determined that the dwell time of the designated touch point is greater than or equal to the preset dwell time threshold, the trigger condition of the first display interface control instruction is satisfied.
示例性地,以一个应用场景为例,当用户在当前全屏显示的显示界面任意位置通过单指连续触摸画了一个矩形,且在触摸结束前最后的触摸点停留时长达到2s,则可确定触发控制缩小所述电子显示屏的显示界面。Exemplarily, taking an application scenario as an example, when the user draws a rectangle with one finger continuous touch anywhere on the current full-screen display interface, and the last touch point stays for 2s before the end of the touch, the trigger can be determined and controlling to shrink the display interface of the electronic display screen.
作为本申请一种可能的实施方式,如图2.1所示,所述根据所述触摸事件的触摸类型与所述当前界面显示模式,判断所述触摸事件是否满足显示界面控制指令的触发条件,还包括:As a possible implementation of the present application, as shown in Figure 2.1, according to the touch type of the touch event and the current interface display mode, it is judged whether the touch event satisfies the trigger condition of the display interface control instruction, and include:
A5:若所述触摸轨迹与所述预设轨迹不匹配,则对所述触摸轨迹进行校正,得到校正轨迹。A5: If the touch track does not match the preset track, correct the touch track to obtain a corrected track.
在一种可能的实施方式中,为提高轨迹校正的有效性,仅针对与所述预设轨迹不匹配、但满足一定条件的触摸轨迹进行校正。In a possible implementation manner, in order to improve the effectiveness of trajectory correction, correction is only performed on touch trajectories that do not match the preset trajectories but satisfy certain conditions.
具体地,若所述触摸轨迹与所述预设轨迹的相似度小于所述预设相似度阈值,但所述预设相似度阈值与所述相似度的差值在预设差值范围内,则对所述触摸轨迹进行轨迹矫正,得到矫正轨迹。反之,若所述触摸轨迹与所述预设轨迹的相似度小于所述预设相似度阈值,但所述预设相似度阈值与所述相似度的差值不在预设差值范围内,则不对所述触摸轨迹进行轨迹矫正。进一步地,提示用户此次触摸事件无效。Specifically, if the similarity between the touch track and the preset track is less than the preset similarity threshold, but the difference between the preset similarity threshold and the similarity is within a preset difference range, Then perform track correction on the touch track to obtain the corrected track. Conversely, if the similarity between the touch track and the preset track is less than the preset similarity threshold, but the difference between the preset similarity threshold and the similarity is not within the preset difference range, then Track correction is not performed on the touch track. Further, the user is prompted that the touch event is invalid.
例如,所述预设差值范围为[1%,10%],所述预设相似度阈值为85%,若所述触摸轨迹与所述预设轨迹的相似度为82%,两者相似度差值在所述预设差值范围内,则对该触摸轨迹进行校正。若所述触摸轨迹与所述预设轨迹的相似度为82%,两者相似度差值不在所述预设差值范围内,则不对该触摸轨迹进行校正。For example, the preset difference range is [1%, 10%], the preset similarity threshold is 85%, if the similarity between the touch track and the preset track is 82%, they are similar If the degree difference is within the preset difference range, then the touch track is corrected. If the similarity between the touch track and the preset track is 82%, and the similarity difference between the two is not within the preset difference range, the touch track is not corrected.
A6:将所述校正轨迹与预设轨迹进行比对,并根据比对结果判断所述校正轨迹与所述预设轨迹是否匹配。A6: Compare the corrected trajectory with the preset trajectory, and judge whether the corrected trajectory matches the preset trajectory according to the comparison result.
A7:若所述校正轨迹与所述预设轨迹匹配,则判断所述指定触摸点停留时长是否大于或者等于预设停留时长阈值。A7: If the corrected trajectory matches the preset trajectory, it is judged whether the dwell time of the designated touch point is greater than or equal to a preset dwell time threshold.
A8:当所述指定触摸点停留时长大于或者等于所述预设停留时长阈值时,确定所述触摸事件触发第一显示界面控制指令。A8: When the dwell time of the specified touch point is greater than or equal to the preset dwell time threshold, it is determined that the touch event triggers the first display interface control instruction.
上述步骤A6至A8参照前述步骤A2至A4,此处不再赘述。The above-mentioned steps A6 to A8 refer to the above-mentioned steps A2 to A4, which will not be repeated here.
作为本申请一种可能的实施方式,图3示出了本申请实施例提供的方法中,所述根据所述触摸事件的触摸类型与所述当前界面显示模式,判断所述触摸事件是否满足显示界面控制指令的触发条件的另一种具体实现流程,详述如下:As a possible implementation of the present application, FIG. 3 shows that in the method provided by the embodiment of the present application, according to the touch type of the touch event and the current interface display mode, it is judged whether the touch event meets the display requirements. Another specific implementation process of the trigger condition of the interface control command is described in detail as follows:
B1:当所述触摸事件为单点触摸,且所述当前界面显示模式为非全屏显示时,获取所述触摸事件的触摸位置。B1: Acquire the touch position of the touch event when the touch event is a single touch and the current interface display mode is non-full-screen display.
B2:若所述触摸位置在所述显示界面之外的任意区域,则确定所述触摸事件触发第二显示界面控制指令。所述第二显示界面控制指令用于控制放大所述电子显示屏的显示界面至全屏。B2: If the touch position is in any area outside the display interface, determine that the touch event triggers a second display interface control instruction. The second display interface control instruction is used to control the enlargement of the display interface of the electronic display screen to a full screen.
示例性地,以一个应用场景为例,在当前界面显示模式为非全屏显示时,用户通过单点触摸电子显示屏上除显示界面之外的任意区域,即可将显示界面切换为全屏显示。Exemplarily, taking an application scenario as an example, when the current interface display mode is non-full-screen display, the user can switch the display interface to full-screen display by single-touching any area on the electronic display screen except the display interface.
作为本申请一种可能的实施方式,图4示出了本申请实施例提供的方法中,所述根据所述触摸事件的触摸类型与所述当前界面显示模式,判断所述触摸事件是否满足显示界面控制指令的触发条件的再一种具体实现流程,详述如下:As a possible implementation of the present application, FIG. 4 shows that in the method provided by the embodiment of the present application, according to the touch type of the touch event and the current interface display mode, it is judged whether the touch event meets the display requirements. Another specific implementation process of the trigger condition of the interface control command is described in detail as follows:
C1:当所述触摸事件为双指触摸,且所述当前界面显示模式为非全屏显示时,获取第一触摸位置与第二触摸位置,所述第一触摸位置为第一手指触摸所述电子显示屏的位置,所述第二触摸位置为第二手指触摸所述电子显示屏的位置。所述第一触摸位置与所述第二触摸位置是动态变化的,所述第一触摸位置跟随所述第一手指的触摸滑动而变化,所述第二触摸位置跟随所述第二手指的触摸滑动而变化。C1: When the touch event is a two-finger touch and the current interface display mode is non-full-screen display, obtain the first touch position and the second touch position, and the first touch position is when the first finger touches the electronic The position of the display screen, the second touch position is the position where the second finger touches the electronic display screen. The first touch position and the second touch position change dynamically, the first touch position changes following the touch sliding of the first finger, and the second touch position follows the touch of the second finger Swipe to change.
C2:若所述第一触摸位置与所述第二触摸位置均在所述显示界面内,且所述第一触摸位置与所述第二触摸位置之间的距离基于所述第一手指与所述第二手指的触摸滑动而发生变化,则确定所述触摸事件触发第三显示界面控制指令。需说明的是,所述显示界面内包括在所述显示界面的边界。所述第三显示界面控制指令用于调整显示界面的缩放尺寸。C2: If both the first touch position and the second touch position are within the display interface, and the distance between the first touch position and the second touch position is based on the distance between the first finger and the If the touch slide of the second finger changes, it is determined that the touch event triggers a third display interface control instruction. It should be noted that, the display interface includes a boundary of the display interface. The third display interface control instruction is used to adjust the scaling size of the display interface.
其中,所述第一手指与所述第二手指的触摸滑动包括相对靠近与相对远离。所述第一触摸位置与所述第二触摸位置之间的距离为坐标距离。Wherein, the touch sliding of the first finger and the second finger includes relative approach and relative distance. The distance between the first touch position and the second touch position is a coordinate distance.
示例性地,以一个应用场景为例,在当前界面显示模式为非全屏显示时,用户通过显示界面内双指触摸相对滑动或者反向滑动,调整显示界面的缩放尺寸。Illustratively, taking an application scenario as an example, when the current interface display mode is non-full-screen display, the user adjusts the zoom size of the display interface by touching two fingers in the display interface to slide relative to each other or slide backward.
S104:若满足所述触发条件,则基于所述显示界面控制指令,控制所述显示界面的缩放。S104: If the trigger condition is met, control the scaling of the display interface based on the display interface control instruction.
在本申请实施例中,所述显示界面控制指令包括第一显示界面控制指令、第二显示界面控制指令以及第三显示界面控制指令。In the embodiment of the present application, the display interface control instruction includes a first display interface control instruction, a second display interface control instruction, and a third display interface control instruction.
作为本申请一种可能的实施方式,如图5所示,所述基于所述显示界面控制指令,控制所述显示界面的缩放,具体包括:As a possible implementation manner of the present application, as shown in FIG. 5 , the controlling the scaling of the display interface based on the display interface control instruction specifically includes:
D1:基于所述第一显示界面控制指令,控制所述显示界面缩小。D1: Control the display interface to shrink based on the first display interface control instruction.
D2:基于所述第二显示界面控制指令,控制所述显示界面放大。D2: Control the zooming in of the display interface based on the second display interface control instruction.
D3:基于所述第三显示界面控制指令,控制调整所述显示界面的缩放尺寸。D3: Based on the third display interface control instruction, control and adjust the scaling size of the display interface.
作为本申请一种可能的实施方式,图6示出了本申请实施例提供的方法实施例中,基于所述第一显示界面控制指令,控制所述显示界面缩小的一种具体实现流程,详述如下:As a possible implementation of the present application, FIG. 6 shows a specific implementation process of controlling the shrinking of the display interface based on the first display interface control instruction in the method embodiment provided in the embodiment of the present application. Details as follows:
D11:获取所述电子显示屏的尺寸、屏幕分辨率以及点间距。D11: Obtain the size, screen resolution and dot pitch of the electronic display screen.
D12:根据所述电子显示屏的尺寸、所述屏幕分辨率以及所述点间距,确定目标缩小尺寸。例如,分辨率为1820x1080、点间距1.5的电子显示屏,大小为138寸,可以缩放成860x540。D12: Determine a target reduction size according to the size of the electronic display screen, the screen resolution, and the dot pitch. For example, an electronic display screen with a resolution of 1820x1080 and a dot pitch of 1.5 can be scaled to 860x540 with a size of 138 inches.
D13:获取所述触摸轨迹的中心位置。D13: Obtain the center position of the touch track.
D14:根据所述中心位置,确定目标中心位置,所述目标中心位置为所述显示界面缩小后目标显示区域的中心位置。D14: Determine a target center position according to the center position, where the target center position is a center position of the target display area after the display interface is reduced.
D15:根据所述目标缩小尺寸与所述目标中心位置,将所述显示界面缩小至所述目标显示区域。D15: Reduce the display interface to the target display area according to the reduced size of the target and the center position of the target.
在一种可能的实施方式中,根据所述目标中心位置的坐标与目标缩小尺寸,确定所述目标显示区域各个角的坐标。例如,目标中心位置的坐标为(x,y)目标缩小尺寸是w×h,屏幕分辨率为W×H,计算目标显示区域左上角坐标(x1,y2),x1=x-w/2;if(x1<0)x1=0else if(x1+w>W)x1=W-w;同理可计算出y1的坐标。In a possible implementation manner, the coordinates of each corner of the target display area are determined according to the coordinates of the center position of the target and the reduced size of the target. For example, the coordinates of the center of the target are (x, y), the reduced size of the target is w×h, and the screen resolution is W×H. Calculate the coordinates of the upper left corner of the target display area (x1, y2), x1=x-w/2; if( x1<0) x1=0 else if (x1+w>W)x1=W-w; similarly, the coordinate of y1 can be calculated.
本实施例中,将显示界面缩放至所述目标显示区域后,需要进行坐标映射,将显示界面的物理坐标映射成画面缩放后显示的虚拟坐标,以便用户基于缩放后显示界面进行交互操作。In this embodiment, after zooming the display interface to the target display area, coordinate mapping is required to map the physical coordinates of the display interface to virtual coordinates displayed after zooming the screen, so that users can perform interactive operations based on the zoomed display interface.
作为本申请一种可能的实施方式,图7示出了本申请实施例提供的方法实施例中,基于所述第三显示界面控制指令,控制调整所述显示界面的缩放尺寸的一种具体实现流程,详述如下:As a possible implementation of the present application, FIG. 7 shows a specific implementation of controlling and adjusting the scaling size of the display interface based on the third display interface control instruction in the method embodiment provided by the embodiment of the present application. The process is detailed as follows:
D31:记录所述第一触摸位置与所述第二触摸位置之间的实时距离。所述实时距离包括所述第一触摸位置与所述第二触摸位置的初始距离,即初始检测到第一手指与第二手指触摸时的距离,以及所述第一触摸位置与所述第二触摸位置基于所述第一手指与所述第二手指的触摸滑动而发生变化后的距离。D31: Recording the real-time distance between the first touch position and the second touch position. The real-time distance includes an initial distance between the first touch position and the second touch position, that is, the distance between the first finger and the second finger when the touch is initially detected, and the distance between the first touch position and the second touch position. The touch position is based on the distance after the touch sliding of the first finger and the second finger changes.
D32:根据所述实时距离,计算目标缩放尺寸。D32: Calculate the target scaling size according to the real-time distance.
D33:根据所述目标缩放尺寸,调整所述显示界面的缩放尺寸。在所述触摸事件结束时,所述缩放尺寸的调整也随之结束。D33: Adjust the scaling size of the display interface according to the target scaling size. When the touch event ends, the adjustment of the scaling size also ends accordingly.
示例性地,在检测到双指触摸时,记录双指之间的初始距离s0,当双指滑动时,实时记录指间的距离s1,目标缩放尺寸为s1/s0。Exemplarily, when the two-finger touch is detected, the initial distance s0 between the two fingers is recorded, and when the two fingers slide, the distance s1 between the fingers is recorded in real time, and the target zoom size is s1/s0.
本实施例中,用户可通过双指触摸显示界面,并通过双指相对滑动或者反向滑动对显示界面缩放尺寸的调整,实现对所述显示界面在一定范围内的缩小或者放大,从而提高缩放的有效性,增强用户体验。In this embodiment, the user can touch the display interface with two fingers, and adjust the zoom size of the display interface by sliding the two fingers relative to each other or in the opposite direction, so as to realize the reduction or enlargement of the display interface within a certain range, thereby improving the zoom. effectiveness and enhance user experience.
在本申请实施例中,通过监测用户对所述电子显示屏上显示界面的触摸事件,然后获取所述触摸事件的触摸类型,以及所述显示界面的当前界面显示模式,再根据所述触摸事件的触摸类型与所述当前界面显示模式,判断所述触摸事件是否满足显示界面控制指令的触发条件,若满足所述触发条件,则基于所述显示界面控制指令,控制所述显示界面的缩放,可有效实现对大尺寸电子显示屏上显示界面的缩放,有利于用户对大尺寸显示屏上显示界面的交互操作,从而提高用户与电子显示屏交互的有效性,增强用户体验。In this embodiment of the application, by monitoring the user's touch event on the display interface on the electronic display screen, and then obtaining the touch type of the touch event and the current interface display mode of the display interface, and then according to the touch event touch type and the current interface display mode, determine whether the touch event satisfies the trigger condition of the display interface control instruction, if the trigger condition is met, then control the zooming of the display interface based on the display interface control instruction, It can effectively realize the scaling of the display interface on the large-size electronic display screen, which is beneficial to the user's interactive operation on the display interface on the large-size display screen, thereby improving the effectiveness of the user's interaction with the electronic display screen and enhancing user experience.
应理解,上述各个实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the sequence numbers of the steps in the above embodiments do not mean the order of execution, and the execution order of each process should be determined by its functions and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application .
对应于上文实施例所述的显示界面的控制方法,图8示出了本申请实施例提供的显示界面的控制装置的结构框图,为了便于说明,仅示出了与本申请实施例相关的部分。Corresponding to the control method of the display interface described in the above embodiment, Fig. 8 shows a structural block diagram of the control device of the display interface provided by the embodiment of the present application. part.
参照图8,该控制装置应用于电子显示屏,该控制装置包括:触摸事件监测单元81,类型及模式获取单元82,界面控制判断单元83,界面控制单元84,其中:Referring to FIG. 8, the control device is applied to an electronic display screen, and the control device includes: a touch
触摸事件监测单元81,用于监测用户对所述电子显示屏上显示界面的触摸事件;A touch
类型及模式获取单元82,用于获取所述触摸事件的触摸类型,以及所述显示界面的当前界面显示模式;A type and
界面控制判断单元83,用于根据所述触摸事件的触摸类型与所述当前界面显示模式,判断所述触摸事件是否满足显示界面控制指令的触发条件;The interface
界面控制单元84,用于若满足所述触发条件,则基于所述显示界面控制指令,控制所述显示界面的缩放。The
作为本申请一种可能的实施方式,所述显示界面控制指令包括第一显示界面控制指令、第二显示界面控制指令以及第三显示界面控制指令,所述界面控制单元84包括:As a possible implementation manner of the present application, the display interface control instruction includes a first display interface control instruction, a second display interface control instruction, and a third display interface control instruction, and the
缩小控制模块,用于基于所述第一显示界面控制指令,控制所述显示界面缩小。A zoom-out control module, configured to control the zoom-out of the display interface based on the first display interface control instruction.
放到控制模块,用于基于所述第二显示界面控制指令,控制所述显示界面放大。Put it in the control module, for controlling the enlargement of the display interface based on the second display interface control instruction.
调整控制模块,用于基于所述第三显示界面控制指令,控制调整所述显示界面的缩放尺寸。An adjustment control module, configured to control and adjust the scaling size of the display interface based on the third display interface control instruction.
作为本申请一种可能的实施方式,所述界面控制判断单元83包括第一判断模块,所述第一判断模块用于:As a possible implementation manner of the present application, the interface
当所述触摸事件的触摸类型为单指连续触摸,且所述当前界面显示模式为全屏显示时,获取所述触摸事件中的触摸轨迹以及指定触摸点停留时长;When the touch type of the touch event is single-finger continuous touch, and the current interface display mode is full-screen display, acquire the touch track in the touch event and the dwell time of the specified touch point;
将所述触摸轨迹与预设轨迹进行比对,并根据比对结果判断所述触摸轨迹与所述预设轨迹是否匹配;comparing the touch track with a preset track, and judging whether the touch track matches the preset track according to the comparison result;
若所述触摸轨迹与所述预设轨迹匹配,则判断所述指定触摸点停留时长是否大于或者等于预设停留时长阈值;If the touch track matches the preset track, it is judged whether the dwell time of the specified touch point is greater than or equal to a preset stay time threshold;
当所述指定触摸点停留时长大于或者等于所述预设停留时长阈值时,确定所述触摸事件触发第一显示界面控制指令。When the dwell time of the designated touch point is greater than or equal to the preset dwell time threshold, it is determined that the touch event triggers a first display interface control instruction.
作为本申请一种可能的实施方式,所述第一判断模块还用于:As a possible implementation manner of the present application, the first judging module is further configured to:
若所述触摸轨迹与所述预设轨迹不匹配,则对所述触摸轨迹进行校正,得到校正轨迹;If the touch track does not match the preset track, correcting the touch track to obtain a corrected track;
将所述校正轨迹与预设轨迹进行比对,并根据比对结果判断所述校正轨迹与所述预设轨迹是否匹配;Comparing the correction trajectory with a preset trajectory, and judging whether the correction trajectory matches the preset trajectory according to the comparison result;
若所述校正轨迹与所述预设轨迹匹配,则判断所述指定触摸点停留时长是否大于或者等于预设停留时长阈值;If the corrected track matches the preset track, it is judged whether the dwell time of the designated touch point is greater than or equal to a preset dwell time threshold;
当所述指定触摸点停留时长大于或者等于所述预设停留时长阈值时,确定所述触摸事件触发第一显示界面控制指令。When the dwell time of the designated touch point is greater than or equal to the preset dwell time threshold, it is determined that the touch event triggers a first display interface control instruction.
作为本申请一种可能的实施方式,所述缩小控制模块包括:As a possible implementation manner of the present application, the shrinking control module includes:
显示屏信息获取子模块,用于获取所述电子显示屏的尺寸、屏幕分辨率以及点间距;The display screen information acquisition sub-module is used to obtain the size, screen resolution and dot pitch of the electronic display screen;
目标比例确定子模块,用于根据所述电子显示屏的尺寸、所述屏幕分辨率以及所述点间距,确定目标缩小尺寸;A target ratio determination submodule, configured to determine a target reduction size according to the size of the electronic display screen, the screen resolution and the dot pitch;
中心位置获取子模块,用于获取所述触摸轨迹的中心位置;A center position acquiring submodule, configured to acquire the center position of the touch track;
目标中心位置确定子模块,用于根据所述中心位置,确定目标中心位置,所述目标中心位置为所述显示界面缩小后目标显示区域的中心位置;The target center position determining submodule is used to determine the target center position according to the center position, and the target center position is the center position of the target display area after the display interface is reduced;
缩小控制子模块,用于根据所述目标缩小尺寸与所述目标中心位置,将所述显示界面缩小至所述目标显示区域。The zoom-out control submodule is configured to shrink the display interface to the target display area according to the target zoom-out size and the target center position.
作为本申请一种可能的实施方式,所述界面控制判断单元83包括第二判断模块,所述第二判断模块具体用于:As a possible implementation manner of the present application, the interface
当所述触摸事件的触摸类型为单点触摸,且所述当前界面显示模式为非全屏显示时,获取所述触摸事件的触摸位置;When the touch type of the touch event is single touch, and the current interface display mode is non-full screen display, acquire the touch position of the touch event;
若所述触摸位置在所述显示界面之外的任意区域,则确定所述触摸事件触发第二显示界面控制指令。If the touch position is in any area outside the display interface, it is determined that the touch event triggers a second display interface control instruction.
作为本申请一种可能的实施方式,所述界面控制判断单元83包括第三判断模块,所述第三判断模块具体用于:As a possible implementation manner of the present application, the interface
当所述触摸事件的触摸类型为双指触摸,且所述当前界面显示模式为非全屏显示时,获取第一触摸位置与第二触摸位置,所述第一触摸位置为第一手指触摸所述电子显示屏的位置,所述第二触摸位置为第二手指触摸所述电子显示屏的位置;When the touch type of the touch event is two-finger touch, and the current interface display mode is non-full-screen display, the first touch position and the second touch position are obtained, and the first touch position is when the first finger touches the The position of the electronic display screen, the second touch position is the position where the second finger touches the electronic display screen;
若所述第一触摸位置与所述第二触摸位置均在所述显示界面内,且所述第一触摸位置与所述第二触摸位置之间的距离基于所述第一手指与所述第二手指的触摸滑动而发生变化,则确定所述触摸事件触发第三显示界面控制指令。If both the first touch position and the second touch position are within the display interface, and the distance between the first touch position and the second touch position is based on the first finger and the second touch position If the touch and slide of the two fingers changes, it is determined that the touch event triggers the third display interface control instruction.
作为本申请一种可能的实施方式,所述调整控制模块包括:As a possible implementation manner of the present application, the adjustment control module includes:
实时距离记录子模块,用于记录所述第一触摸位置与所述第二触摸位置之间的实时距离;A real-time distance recording submodule, configured to record the real-time distance between the first touch position and the second touch position;
目标缩放尺寸确定子模块,用于根据所述实时距离,计算目标缩放尺寸;The target zoom size determination submodule is used to calculate the target zoom size according to the real-time distance;
缩放调整子模块,用于根据所述目标缩放尺寸,调整所述显示界面的缩放尺寸。The zoom adjustment submodule is configured to adjust the zoom size of the display interface according to the target zoom size.
本申请实施例中,通过监测用户对所述电子显示屏上显示界面的触摸事件,然后获取所述触摸事件的触摸类型,以及所述显示界面的当前界面显示模式,再根据所述触摸事件的触摸类型与所述当前界面显示模式,判断所述触摸事件是否满足显示界面控制指令的触发条件,若满足所述触发条件,则基于所述显示界面控制指令,控制所述显示界面的缩放,可有效实现对大尺寸电子显示屏上显示界面的缩放,有利于用户对大尺寸显示屏上显示界面的交互操作,从而提高用户与电子显示屏交互的有效性,增强用户体验。In the embodiment of the present application, by monitoring the user's touch event on the display interface on the electronic display screen, and then obtaining the touch type of the touch event and the current interface display mode of the display interface, and then according to the touch event The touch type and the current interface display mode determine whether the touch event satisfies the trigger condition of the display interface control instruction, and if the trigger condition is met, then control the scaling of the display interface based on the display interface control instruction, which can be Effectively realizing the scaling of the display interface on the large-size electronic display screen is beneficial to the user's interactive operation on the display interface on the large-size display screen, thereby improving the effectiveness of the user's interaction with the electronic display screen and enhancing user experience.
本申请实施例还提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现如图1至图7表示的任意一种显示界面的控制方法的步骤。The embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, any display interface as shown in Figure 1 to Figure 7 is realized. The steps of the control method.
本申请实施例还提供一种电子设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如图1至图7表示的任意一种显示界面的控制方法的步骤。An embodiment of the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and operable on the processor. When the processor executes the computer program, the computer program shown in Figure 1 is realized. Steps to any one of the display interface control methods shown in FIG. 7 .
本申请实施例还提供一种计算机程序产品,当该计算机程序产品在终端设备上运行时,使得终端设备执行实现如图1至图7表示的任意一种显示界面的控制方法的步骤。The embodiment of the present application also provides a computer program product. When the computer program product is run on a terminal device, the terminal device is executed to implement the steps of any display interface control method as shown in FIGS. 1 to 7 .
图9是本申请一实施例提供的智能设备的示意图。如图9所示,该实施例的智能设备9包括:处理器90、存储器91以及存储在所述存储器91中并可在所述处理器90上运行的计算机程序92。所述处理器90执行所述计算机程序92时实现上述各个显示界面的控制方法的实施例中的步骤,例如图1所示的步骤S101至S104。或者,所述处理器90执行所述计算机程序92时实现上述各装置实施例中各模块/单元的功能,例如图8所示单元81至84的功能。Fig. 9 is a schematic diagram of a smart device provided by an embodiment of the present application. As shown in FIG. 9 , the smart device 9 of this embodiment includes: a
所述计算机程序92可以被分割成一个或多个模块/单元,所述一个或者多个模块/单元被存储在所述存储器91中,并由所述处理器90执行,以完成本申请。所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述所述计算机程序92在所述智能设备9中的执行过程。The
所称处理器90可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The so-called
所述存储器91可以是所述智能设备9的内部存储单元,例如智能设备9的硬盘或内存。所述存储器91也可以是所述智能设备9的外部存储设备,例如所述智能设备9上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述存储器91还可以既包括所述智能设备9的内部存储单元也包括外部存储设备。所述存储器91用于存储所述计算机程序以及所述智能设备所需的其他程序和数据。所述存储器91还可以用于暂时地存储已经输出或者将要输出的数据。The
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述装置中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of description, only the division of the above-mentioned functional units and modules is used for illustration. In practical applications, the above-mentioned functions can be assigned to different functional units, Completion of modules means that the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment may be integrated into one processing unit, or each unit may exist separately physically, or two or more units may be integrated into one unit, and the above-mentioned integrated units may adopt hardware It can also be implemented in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the present application. For the specific working process of the units and modules in the above device, reference may be made to the corresponding process in the foregoing method embodiments, and details are not repeated here.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working process of the above-described devices and units can refer to the corresponding process in the foregoing method embodiments, and details are not repeated here.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the above-mentioned embodiments, the descriptions of each embodiment have their own emphases, and for parts that are not detailed or recorded in a certain embodiment, refer to the relevant descriptions of other embodiments.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。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 application.
在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。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 modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be Incorporation or may be integrated into another device, or some features may be omitted, 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 application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,RandomAccess Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括是电载波信号和电信信号。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments in the present application can also be completed by instructing related hardware through computer programs. The computer programs can be stored in a computer-readable storage medium, and the computer When the program is executed by the processor, the steps in the above-mentioned various method embodiments can be realized. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM, Read-Only Memory) , random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, computer-readable media Excluding electrical carrier signals and telecommunication signals.
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still implement the foregoing embodiments Modifications to the technical solutions described in the examples, or equivalent replacements for some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the application, and should be included in the Within the protection scope of this application.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211273329.6A CN115657917A (en) | 2022-10-18 | 2022-10-18 | Control method, device and smart device for display interface |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211273329.6A CN115657917A (en) | 2022-10-18 | 2022-10-18 | Control method, device and smart device for display interface |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN115657917A true CN115657917A (en) | 2023-01-31 |
Family
ID=84989314
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202211273329.6A Pending CN115657917A (en) | 2022-10-18 | 2022-10-18 | Control method, device and smart device for display interface |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN115657917A (en) |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20100315438A1 (en) * | 2009-06-10 | 2010-12-16 | Horodezky Samuel J | User interface methods providing continuous zoom functionality |
| CN102314280A (en) * | 2010-06-29 | 2012-01-11 | 鸿富锦精密工业(深圳)有限公司 | Touch electronic device and control method of touch event thereof |
| CN107077295A (en) * | 2015-11-25 | 2017-08-18 | 华为技术有限公司 | A kind of method, device, electronic equipment, display interface and the storage medium of quick split screen |
| CN111124338A (en) * | 2019-12-18 | 2020-05-08 | 青岛海信商用显示股份有限公司 | Screen control method and touch display device |
-
2022
- 2022-10-18 CN CN202211273329.6A patent/CN115657917A/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20100315438A1 (en) * | 2009-06-10 | 2010-12-16 | Horodezky Samuel J | User interface methods providing continuous zoom functionality |
| CN102314280A (en) * | 2010-06-29 | 2012-01-11 | 鸿富锦精密工业(深圳)有限公司 | Touch electronic device and control method of touch event thereof |
| CN107077295A (en) * | 2015-11-25 | 2017-08-18 | 华为技术有限公司 | A kind of method, device, electronic equipment, display interface and the storage medium of quick split screen |
| CN111124338A (en) * | 2019-12-18 | 2020-05-08 | 青岛海信商用显示股份有限公司 | Screen control method and touch display device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP3951721B1 (en) | Method and apparatus for determining occluded area of virtual object | |
| JP7181375B2 (en) | Target object motion recognition method, device and electronic device | |
| CN110850961B (en) | Calibration method of head-mounted display device and head-mounted display device | |
| US11693544B2 (en) | Mobile terminal display picture control method, apparatus, and device and storage medium | |
| CN112954193B (en) | Shooting method, shooting device, electronic equipment and medium | |
| CN107222737A (en) | The processing method and mobile terminal of a kind of depth image data | |
| CN105824553A (en) | Touch method and mobile terminal | |
| CN110853488A (en) | POI (Point of interest) label display method, device and equipment | |
| CN115657917A (en) | Control method, device and smart device for display interface | |
| CN115657893A (en) | A display control method, a display control device, and an intelligent device | |
| CN109407955B (en) | User interface interaction method, computer device and computer readable storage medium | |
| CN110442314A (en) | Display method, terminal and computer readable storage medium | |
| CN115738264A (en) | Operation control method and device of virtual object and electronic equipment | |
| WO2024113841A1 (en) | Screen control method, electronic device and storage medium | |
| CN113941142B (en) | Virtual model control method, device, storage medium and electronic device | |
| CN112068759B (en) | Track-based terminal control method, device, terminal and readable storage medium | |
| CN117111742A (en) | Image interaction method, device, electronic equipment and storage medium | |
| CN110750227B (en) | Processing method and device of projection picture, terminal equipment and storage medium | |
| CN114327715A (en) | Interface display method, interface display device, electronic equipment and readable storage medium | |
| CN107680486B (en) | Terminal, display screen and method for controlling display of display screen | |
| CN118981267B (en) | Method, system, device and storage medium for switching between horizontal and vertical screens in software | |
| CN116483221A (en) | Touch positioning method, device, terminal equipment and storage medium | |
| CN115268723B (en) | Control method and device | |
| WO2020029555A1 (en) | Method and device for seamlessly switching among planes, and computer readable storage medium | |
| CN111905365B (en) | Method and device for dragging game scene and electronic equipment |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |
