WO2023078211A1 - Application control method and device, terminal, storage medium, and computer program product - Google Patents
Application control method and device, terminal, storage medium, and computer program product Download PDFInfo
- Publication number
- WO2023078211A1 WO2023078211A1 PCT/CN2022/128686 CN2022128686W WO2023078211A1 WO 2023078211 A1 WO2023078211 A1 WO 2023078211A1 CN 2022128686 W CN2022128686 W CN 2022128686W WO 2023078211 A1 WO2023078211 A1 WO 2023078211A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- screen area
- screen
- touch
- application
- 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.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/16—Constructional details or arrangements
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/16—Constructional details or arrangements
- G06F1/1613—Constructional details or arrangements for portable computers
- G06F1/1633—Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
- G06F1/1637—Details related to the display arrangement, including those related to the mounting of the display in the housing
- G06F1/1641—Details related to the display arrangement, including those related to the mounting of the display in the housing the display being formed by a plurality of foldable display components
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
- G06F3/04883—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
- G06F3/1423—Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
Definitions
- FIG. 1 shows a structural block diagram of a terminal provided by an exemplary embodiment of the present application
- the folding screen terminal displays the application interface of the application in other states, and when the other state is switched to the hovering state, the folding screen terminal controls the second screen area to display the application interface of the application.
- other states may be unfolded state or collapsed state.
- the user can still directly perform touch operations on the second screen area to control the application.
- touch operations on the second screen area to control the application.
- the control of the application can be realized without blocking the application interface, making the user more comfortable.
- controlling the application based on the touch operation includes:
- the application interface of the application is displayed in the second screen area, including:
- the first screen area is a screen area in a flat posture in a hovering state
- the second screen area is a screen area in a vertical screen posture in a hovering state.
- the application interface continuously displayed in the second screen area is adapted so as to match the size of the second screen area and ensure the integrity of the displayed content.
- the first screen area 601 is in a flat state
- the second screen area 602 is in a vertical state.
- the folding screen terminal After turning over the folding screen terminal, if the first screen area that was originally in the horizontal position becomes the vertical screen state, and the second screen area that was originally in the vertical screen state becomes the flat state, the folding screen terminal exchanges the first screen area and the second screen area.
- the display state of the two screen areas is to display the application interface in the first screen area, and control the second screen area to stop displaying the application interface and enter the touch mapping mode.
- the folding screen terminal can support the application
- the display of the interface is adjusted, the first screen area 901 displays the application interface, and the second screen area 902 is controlled to stop displaying the application interface.
- the application is controlled based on the touch operation.
- mapping relationship between the first screen area and the second screen area of the folding screen terminal, and by establishing a mapping coordinate system between the first screen area and the second screen area, the first The touch event is converted, and a second touch event is determined according to the converted touch coordinates, wherein the second touch event is a touch event acting on the second screen area.
- the touch coordinates corresponding to the first touch event will also be converted according to the mapping relationship to obtain the touch coordinates corresponding to the second touch event, and the obtained touch coordinates in the second screen area.
- the device includes:
- the application interface of the application is displayed in the second screen area, and the auxiliary display screen is controlled to stop displaying the application interface of the application.
- a generating unit configured to generate a first touch event based on the touch operation
- the second switching module is configured to switch the touch mapping mode from a dormant state to an active state when an activation operation on the first screen area is received.
- the adapted application interface is displayed in the second screen area.
- the second control unit is configured to control the multimedia playing parameters of the multimedia application based on the sliding direction and the sliding distance of the vertical sliding operation in the case of receiving a vertical sliding operation on the first screen area, the multimedia
- the playback parameters include at least one of playback volume or display brightness; or,
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Computer Hardware Design (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Description
本申请要求于2021年11月08日提交的申请号为202111313561.3、发明名称为“应用控制方法、装置、终端、存储介质及计算机程序产品”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202111313561.3 and the title of the invention "application control method, device, terminal, storage medium and computer program product" filed on November 08, 2021, the entire contents of which are incorporated by reference in this application.
本申请实施例涉及人机交互领域,特别涉及一种应用控制方法、装置、终端、存储介质及计算机程序产品。The embodiments of the present application relate to the field of human-computer interaction, and in particular to an application control method, device, terminal, storage medium, and computer program product.
随着终端屏幕制造技术的不断发展,越来越多的折叠屏终端应运而生。由于折叠屏终端的屏幕具有可折叠性,因此其同时具备大屏显示以及便于携带等优点。With the continuous development of terminal screen manufacturing technology, more and more folding screen terminals have emerged as the times require. Since the screen of the folding screen terminal is foldable, it also has the advantages of large-screen display and portability.
然而,在使用折叠屏终端运行应用的过程中,应用控制的灵活性较差。However, in the process of running applications using a folding screen terminal, the flexibility of application control is relatively poor.
发明内容Contents of the invention
本申请实施例提供了一种应用控制方法、装置、终端、存储介质及计算机程序产品。所述技术方案如下:Embodiments of the present application provide an application control method, device, terminal, storage medium, and computer program product. Described technical scheme is as follows:
一方面,本申请实施例提供了一种应用控制方法,所述方法用于折叠屏终端,所述折叠屏终端的折叠屏包括第一屏幕区域和第二屏幕区域,所述方法包括:On the one hand, an embodiment of the present application provides an application control method, the method is used in a folding screen terminal, and the folding screen of the folding screen terminal includes a first screen area and a second screen area, and the method includes:
悬停状态下,在所述第二屏幕区域显示应用的应用界面,所述悬停状态下,所述第一屏幕区域和所述第二屏幕区域的夹角小于第一夹角阈值,且大于第二夹角阈值;In the hovering state, an application interface of the application is displayed in the second screen area, and in the hovering state, the angle between the first screen area and the second screen area is less than a first angle threshold and greater than The second included angle threshold;
在接收到对所述第一屏幕区域的触控操作的情况下,基于所述触控操作控制所述应用。If a touch operation on the first screen area is received, the application is controlled based on the touch operation.
另一方面,本申请实施例提供了一种应用控制装置,所述装置用于折叠屏终端,所述折叠屏终端的折叠屏包括第一屏幕区域和第二屏幕区域,所述装置包括:On the other hand, an embodiment of the present application provides an application control device, the device is used in a folding screen terminal, the folding screen of the folding screen terminal includes a first screen area and a second screen area, and the device includes:
显示模块,用于在悬停状态下,在所述第二屏幕区域显示应用的应用界面,所述悬停状态下,所述第一屏幕区域和所述第二屏幕区域的夹角小于第一夹角阈值,且大于第二夹角阈值;a display module, configured to display an application interface of an application in the second screen area in a hovering state, and in the hovering state, the included angle between the first screen area and the second screen area is smaller than the first The included angle threshold is greater than the second included angle threshold;
控制模块,用于在接收到对所述第一屏幕区域的触控操作的情况下,基于所述触控操作控制所述应用。A control module, configured to control the application based on the touch operation when the touch operation on the first screen area is received.
另一方面,本申请实施例提供了一种终端,所述终端包括处理器和存储器;所述存储器存储有至少一条指令,所述至少一条指令用于被所述处理器执行以实现如上述方面所述的应用控制方法。On the other hand, an embodiment of the present application provides a terminal, the terminal includes a processor and a memory; the memory stores at least one instruction, and the at least one instruction is used to be executed by the processor to implement the above aspects The application control method described above.
另一方面,提供了一种计算机可读存储介质,所述存储介质存储有至少一条指令,所述至少一条指令用于被处理器执行以实现如上述方面所述的应用控制方法。In another aspect, a computer-readable storage medium is provided, the storage medium stores at least one instruction, and the at least one instruction is used to be executed by a processor to implement the application control method as described in the above aspect.
另一方面,本申请实施例提供了一种计算机程序产品,该计算机程序产品包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述方面提供的应用控制方法。On the other hand, an embodiment of the present application provides a computer program product, where the computer program product includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the application control method provided by the above aspects.
图1示出了本申请一个示例性实施例提供的终端的结构方框图;FIG. 1 shows a structural block diagram of a terminal provided by an exemplary embodiment of the present application;
图2示出了本申请另一个示例性实施例提供的终端的结构方框图;Fig. 2 shows a structural block diagram of a terminal provided by another exemplary embodiment of the present application;
图3示出了本申请一个示例性实施例提供的折叠屏终端的结构示意图;Fig. 3 shows a schematic structural diagram of a folding screen terminal provided by an exemplary embodiment of the present application;
图4示出了本申请另一个示例性实施例提供的折叠屏终端的结构示意图;Fig. 4 shows a schematic structural diagram of a folding screen terminal provided by another exemplary embodiment of the present application;
图5是本申请一个示例性实施例示出的应用控制方法的流程图;Fig. 5 is a flowchart of an application control method shown in an exemplary embodiment of the present application;
图6是本申请一个示例性实施例示出的视频应用控制过程的实施示意图;Fig. 6 is an implementation schematic diagram of a video application control process shown in an exemplary embodiment of the present application;
图7是本申请一个示例性实施例示出的展开状态切换为悬停状态过程的实施示意图;Fig. 7 is an implementation schematic diagram of the process of switching from the expanded state to the hovering state shown in an exemplary embodiment of the present application;
图8是本申请一个示例性实施例示出的折叠状态切换为悬停状态过程的实施示意图;Fig. 8 is an implementation schematic diagram of the process of switching from the folded state to the hovering state shown in an exemplary embodiment of the present application;
图9是本申请一个示例性实施例示出的不同姿态下应用界面显示方式的示意图;Fig. 9 is a schematic diagram of an application interface display mode under different postures shown in an exemplary embodiment of the present application;
图10是本申请另一个示例性实施例示出的应用控制方法的流程图;Fig. 10 is a flowchart of an application control method shown in another exemplary embodiment of the present application;
图11是本申请一个示例性实施例示出的第一屏幕区域与第二屏幕区域间坐标映射关系的示意图;Fig. 11 is a schematic diagram of the coordinate mapping relationship between the first screen area and the second screen area shown in an exemplary embodiment of the present application;
图12是本申请一个示例性实施例示出的防误触区域的示意图;Fig. 12 is a schematic diagram of an anti-mistouch area shown in an exemplary embodiment of the present application;
图13是本申请一个示例性实施例示出的触控区域划分方式的示意图;Fig. 13 is a schematic diagram of a touch area division method shown in an exemplary embodiment of the present application;
图14是本申请一个示例性实施例示出的触控映射模式的状态切换过程的实施示意图;Fig. 14 is an implementation schematic diagram of a state switching process of a touch mapping mode shown in an exemplary embodiment of the present application;
图15出了本申请一个示例性实施例示出的应用界面适配过程的示意图;Fig. 15 is a schematic diagram of an application interface adaptation process shown in an exemplary embodiment of the present application;
图16示出了本申请一个示例性实施例提供的应用控制装置的结构框图。Fig. 16 shows a structural block diagram of an application control device provided by an exemplary embodiment of the present application.
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描 述。In order to make the purpose, technical solutions and advantages of the application clearer, the following will further describe the implementation of the application in detail in conjunction with the accompanying drawings.
参考图1和图2所示,其示出了本申请一个示例性实施例提供的终端100的结构方框图。该终端100可以是智能手机、平板电脑和电子书等等。本申请中的终端100可以包括一个或多个如下部件:处理器110、存储器120和显示屏130。Referring to FIG. 1 and FIG. 2 , it shows a structural block diagram of a
处理器110可以包括一个或者多个处理核心。处理器110利用各种接口和线路连接整个终端100内的各个部分,通过运行或执行存储在存储器120内的指令、程序、代码集或指令集,以及调用存储在存储器120内的数据,执行终端100的各种功能和处理数据。可选地,处理器110可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器110可集成中央处理器(Central Processing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责触摸显示屏130所需要显示的内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器110中,单独通过一块芯片进行实现。
存储器120可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory,ROM)。可选地,该存储器120包括非瞬时性计算机可读介质(non-transitory computer-readable storage medium)。存储器120可用于存储指令、程序、代码、代码集或指令集。存储器120可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等;存储数据区可存储根据终端100的使用所创建的数据(比如音频数据、电话本)等。The memory 120 may include random access memory (Random Access Memory, RAM), and may also include read-only memory (Read-Only Memory, ROM). Optionally, the memory 120 includes a non-transitory computer-readable storage medium. The memory 120 may be used to store instructions, programs, codes, sets of codes, or sets of instructions. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), Instructions and the like for implementing the following method embodiments; the storage data area can store data created according to the use of the terminal 100 (such as audio data, phonebook) and the like.
以操作系统为安卓(Android)系统为例,存储器120中存储的程序和数据如图1所示,存储器120中存储有Linux内核层220、系统运行库层240、应用框架层260和应用层280。Linux内核层220为终端100的各种硬件提供了底层的驱动,如显示驱动、音频驱动、摄像头驱动、蓝牙驱动、Wi-Fi驱动、电源管理等。系统运行库层240通过一些C/C++库来为Android系统提供了主要的特性支持。如SQLite库提供了数据库的支持,OpenGL/ES库提供了3D绘图的支持,Webkit库提供了浏览器内核的支持等。在系统运行库层240中还提供有安卓运行时库(Android Runtime),它主要提供了一些核心库,能够允许开发者使用Java语言来编写Android应用。应用框架层260提供了构建应用程序时可能用到的各种应用程序接口(Application Programming Interface,API),开发者也可以通过使用这些API来构建自己的应用程序,比如活动管理、窗口管理、视图管理、通知管理、内容提供者、包管理、通话管理、资源管理、定位管理。应用层280中运行有至少一个应用程序,这些应用程序可以是操作系统自带的联系人程序、短信程序、时钟程序、相机应用等;也可以是第三方开发者所开发的应用程序,比如即时通信程序、相片美化程序等。Taking the operating system as an Android system as an example, the programs and data stored in the memory 120 are as shown in Figure 1, and the memory 120 is stored with a Linux kernel layer 220, a system runtime layer 240, an application framework layer 260 and an application layer 280 . The Linux kernel layer 220 provides underlying drivers for various hardware of the
以操作系统为IOS系统为例,存储器120中存储的程序和数据如图2所示,IOS系统包括:核心操作系统层320(Core OS layer)、核心服务层340(Core Services layer)、媒体层360(Media layer)、可触摸层380(Cocoa Touch Layer)。核心操作系统层320包括了操作系统内核、驱动程序以及底层程序框架,这些底层程序框架提供更接近硬件的功能,以供位于核心服务层340的程序框架所使用。核心服务层340提供给应用程序所需要的系统服务和/或程序框架,比如基础(Foundation)框架、账户框架、广告框架、数据存储框架、网络连接框架、地理位置框架、运动框架等等。媒体层360为应用程序提供有关视听方面的接口,如图形图像相关的接口、音频技术相关的接口、视频技术相关的接口、音视频传输技术的无线播放(AirPlay)接口等。可触摸层380为应用程序开发提供了各种常用的界面相关的框架,可触摸层380负责用户在终端100上的触摸交互操作。比如本地通知服务、远程推送服务、广告框架、游戏工具框架、消息用户界面接口(User Interface,UI)框架、用户界面UIKit框架、地图框架等等。Taking the operating system as the IOS system as an example, the programs and data stored in the memory 120 are as shown in Figure 2, and the IOS system includes: a core operating system layer 320 (Core OS layer), a core service layer 340 (Core Services layer), a media layer 360 (Media layer), touchable layer 380 (Cocoa Touch Layer). The core operating system layer 320 includes an operating system kernel, drivers, and underlying program frameworks. These underlying program frameworks provide functions closer to hardware for use by the program frameworks located in the core service layer 340 . The core service layer 340 provides system services and/or program frameworks required by applications, such as foundation framework, account framework, advertisement framework, data storage framework, network connection framework, geographic location framework, exercise framework and so on. The media layer 360 provides audio-visual interfaces for applications, such as interfaces related to graphics and images, interfaces related to audio technology, interfaces related to video technology, and wireless playback (AirPlay) interfaces of audio and video transmission technologies. The touchable layer 380 provides various commonly used interface-related frameworks for application development, and the touchable layer 380 is responsible for the user's touch interaction operation on the
在图2所示出的框架中,与大部分应用程序有关的框架包括但不限于:核心服务层340中的基础框架和可触摸层380中的UIKit框架。基础框架提供许多基本的对象类和数据类型,为所有应用程序提供最基本的系统服务,和UI无关。而UIKit框架提供的类是基础的UI类库,用于创建基于触摸的用户界面,iOS应用程序可以基于UIKit框架来提供UI,所以它提供了应用程序的基础架构,用于构建用户界面,绘图、处理和用户交互事件,响应手势等等。In the framework shown in FIG. 2 , frameworks related to most applications include but not limited to: the basic framework in the core service layer 340 and the UIKit framework in the touchable layer 380 . The basic framework provides many basic object classes and data types, and provides the most basic system services for all applications, regardless of UI. The class provided by the UIKit framework is a basic UI class library for creating a touch-based user interface. iOS applications can provide UI based on the UIKit framework, so it provides the infrastructure of the application for building user interfaces, drawing , Handle and user interaction events, respond to gestures, and more.
显示屏130用于显示各个应用程序的应用界面;当显示屏130还具有触控功能时,其还用于接收用户使用手指、触摸笔等任何适合的物体在其上或附近的触摸操作。The
本申请实施例中,显示屏130为折叠屏,包括第一屏幕区域和第二屏幕区域。可选的,当终端为内折叠屏终端时,第一屏幕区域与第二屏幕区域为内折叠屏的两个屏幕区域。内折叠屏终端处于展开状态时,第一屏幕区域和第二屏幕区域均外露,内折叠屏终端处于折叠状态时,第一屏幕区域和第二屏幕区域均不外露。In the embodiment of the present application, the
本申请实施例中的悬停状态为展开状态与折叠状态之间的中间状态。在一些应用场景下,处于悬停状 态的折叠屏终端通常一侧屏幕区域对应的壳体水平放置,而另一侧屏幕区域对应的壳体则处于竖直状态,即两侧的屏幕区域具有一夹角,该夹角可以是大于0度且小于180度的一个角度。The hovering state in the embodiment of the present application is an intermediate state between the expanded state and the folded state. In some application scenarios, a folding screen terminal in a hovering state is usually placed horizontally with the housing corresponding to the screen area on one side, while the housing corresponding to the screen area on the other side is in a vertical state, that is, the screen areas on both sides have a An included angle, the included angle may be an angle greater than 0 degrees and less than 180 degrees.
在一种可能的实施方式中,折叠屏终端可以通过设置在转轴处的铰链控制折叠屏保持任意角度或特定角度,从而保持悬停状态。In a possible implementation manner, the folding screen terminal can control the folding screen to maintain an arbitrary angle or a specific angle through a hinge provided at the rotating shaft, so as to maintain a hovering state.
示意性的,如图3所示,当内折叠屏终端处于展开状态时,第一屏幕区域301与第二屏幕区域302均处于外露状态;当内折叠屏终端处于折叠状态时,第一屏幕区域301和第二屏幕区域302处于闭合状态;当第一屏幕区域301与第二屏幕区域302之间的夹角为120°时,折叠屏终端处于悬停状态。用户可以根据自己的使用需求使可折叠屏在展开状态与折叠状态之间进行切换。例如,当用户不存在终端使用需求时,可以使终端处于折叠状态,使得终端更加便携。再例如,当用户需要观看视频时,可以使终端处于展开状态或悬停状态。Schematically, as shown in Figure 3, when the inner folding screen terminal is in the unfolded state, both the
在一种可能的实施方式中,折叠屏终端除了包括折叠屏外,还包括独立于折叠屏的辅显示屏。在一些实施例中,辅显示屏与折叠屏背对设置,辅显示屏的尺寸小于折叠屏在展开状态的尺寸,且辅显示屏不支持折叠。比如,辅显示屏与折叠屏的第一屏幕区域背对设置,或者,与折叠屏的第二屏幕区域背对设置,且辅显示屏的尺寸小于等于第一屏幕区域或第二屏幕区域的尺寸。In a possible implementation manner, besides the folding screen, the folding screen terminal further includes an auxiliary display screen independent of the folding screen. In some embodiments, the auxiliary display screen is arranged opposite to the folding screen, the size of the auxiliary display screen is smaller than the size of the folding screen in an unfolded state, and the auxiliary display screen does not support folding. For example, the auxiliary display screen is set opposite to the first screen area of the folding screen, or is set opposite to the second screen area of the folding screen, and the size of the auxiliary display screen is smaller than or equal to the size of the first screen area or the second screen area .
可选的,辅显示屏在不同状态下均处于外露状态。示意性的,如图4所示,当折叠屏终端处于展开状态时,第一屏幕区域401、第二屏幕区域402以及辅显示屏403均处于外露状态;当折叠屏终端处于折叠状态时,第一屏幕区域401和第二屏幕区域402处于闭合状态,辅显示屏403外露。Optionally, the auxiliary display screen is exposed in different states. Schematically, as shown in FIG. 4, when the folding screen terminal is in the unfolded state, the
可选的,折叠屏和辅显示屏支持独立显示。在一些实施例中,当折叠屏终端处于折叠状态时,可以通过辅显示屏进行图像显示(折叠屏不进行显示);当折叠屏终端处于展开状态或悬停状态时,可以折叠屏进行图像显示(辅显示屏不进行显示)。为了实现显示屏折叠,在一种可能的实施方式中,折叠屏采用柔性材料(具有一定的伸缩延展性)制成,或者,折叠屏的弯折区域采用柔性材料制成。Optionally, the folding screen and the secondary display support independent display. In some embodiments, when the folding screen terminal is in the folded state, images can be displayed on the auxiliary display screen (the folding screen does not display); when the folding screen terminal is in the unfolded state or hovering state, images can be displayed on the folding screen (Auxiliary display does not display). In order to realize the folding of the display screen, in a possible implementation manner, the folding screen is made of a flexible material (with a certain stretchability), or the bending area of the folding screen is made of a flexible material.
图3和图4中,仅对显示屏130的形态(对折)进行了示意性说明,在另一些可能的实现方式中,显示屏130可以包含n(n≥3)个屏幕区域,从而实现n-1折结构的折叠屏终端,本实施例对此不加以限定。In Fig. 3 and Fig. 4, only the form (folded in half) of the
可选的,终端100中还设置有至少一种其他部件,该至少一种其他部件包括:摄像头、指纹传感器、接近光传感器、距离传感器等。在一些实施例中,至少一种其他部件设置在终端100的正面、侧边或背面,比如将指纹传感器设置在背盖或侧边、将摄像头设置在显示屏130的一侧。Optionally, at least one other component is further disposed in the terminal 100, and the at least one other component includes: a camera, a fingerprint sensor, a proximity light sensor, a distance sensor, and the like. In some embodiments, at least one other component is disposed on the front, side or back of the terminal 100 , such as disposing the fingerprint sensor on the back cover or the side, and disposing the camera on one side of the
在另一些实施例中,至少一种其他部件可以集成在显示屏130的内部或下层。在一些实施例中,将骨传导式的听筒设置在终端100的内部;将传统终端的前面板上的其他部件集成在显示屏130的全部区域或部分区域中,比如将摄像头中的感光元件拆分为多个感光像素后,将每个感光像素集成在显示屏130中每个显示像素中的黑色区域中,使得显示屏130具备图像采集功能。由于将至少一种其他部件集成在了显示屏130的内部或下层,因此终端100具有更高的屏占比。In other embodiments, at least one other component may be integrated inside or under the
除此之外,本领域技术人员可以理解,上述附图所示出的终端100的结构并不构成对终端100的限定,终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。比如,终端100中还包括射频电路、输入单元、音频电路、无线保真(Wireless Fidelity,WiFi)模块、电源、蓝牙模块等部件,在此不再赘述。In addition, those skilled in the art can understand that the structure of the terminal 100 shown in the above drawings does not constitute a limitation on the terminal 100, and the terminal may include more or less components than those shown in the figure, or combine some components, or different component arrangements. For example, the terminal 100 also includes components such as a radio frequency circuit, an input unit, an audio circuit, a wireless fidelity (Wireless Fidelity, WiFi) module, a power supply, and a Bluetooth module, which will not be repeated here.
请参考图5,其示出了本申请一个实施例示出的应用控制方法的流程图,本实施例以应用控制方法用于折叠屏终端,且折叠屏终端的折叠屏包括第一屏幕区域和第二屏幕区域为例进行说明,该方法包括如下步骤。Please refer to FIG. 5 , which shows a flowchart of an application control method shown in an embodiment of the present application. This embodiment uses the application control method for a folding screen terminal, and the folding screen of the folding screen terminal includes a first screen area and a second screen area. The second screen area is taken as an example for description, and the method includes the following steps.
步骤501,悬停状态下,在第二屏幕区域显示应用的应用界面,悬停状态下,第一屏幕区域和第二屏幕区域的夹角小于第一夹角阈值,且大于第二夹角阈值。
在一种可能的实施方式中,折叠屏终端在其他状态下显示应用的应用界面,当由其他状态切换为悬停状态时,折叠屏终端控制第二屏幕区域显示应用的应用界面。其中,其他状态可以为展开状态或折叠状态。In a possible implementation manner, the folding screen terminal displays the application interface of the application in other states, and when the other state is switched to the hovering state, the folding screen terminal controls the second screen area to display the application interface of the application. Wherein, other states may be unfolded state or collapsed state.
在一种可能实施方式中,悬停状态下,折叠屏终端一部分可以平放于桌面等地,另一部分竖起,即这两部分具有一夹角,该夹角可以是大于0度且小于180度的一个角度,此时,折叠屏终端在竖起部分显示应用界面,平放部分不显示应用界面。通常折叠屏终端将竖起部分的屏幕区域认定为第二屏幕区域,将平放部分的屏幕区域认定为第一屏幕区域。In a possible implementation, in the hovering state, a part of the folding screen terminal can be placed flat on a desktop or other places, and the other part can be erected, that is, the two parts have an included angle, and the included angle can be greater than 0 degrees and less than 180 degrees. At this time, the folding screen terminal displays the application interface on the upright part, and does not display the application interface on the horizontal part. Generally, the folding screen terminal identifies the screen area of the upright part as the second screen area, and identifies the screen area of the horizontal part as the first screen area.
可选的,该应用可以是任意应用程序,也可以是支持在悬停状态下显示的应用程序,且应用的应用类型可以为视频播放类型、音乐播放类型、相册类型、阅读类型等等,本申请实施例对此不做限定。Optionally, the application can be any application, or an application that supports display in the hover state, and the application type of the application can be video playback type, music playback type, photo album type, reading type, etc. The embodiment of the application does not limit this.
在一些实施例中,当第一屏幕区域和第二屏幕区域之间的夹角大于或等于第一夹角阈值时,折叠屏终端处于展开状态;当第一屏幕区域和第二屏幕区域之间的夹角小于或等于第二夹角阈值时,折叠屏终端处于折叠状态;当第一屏幕区域和第二屏幕区域之间的夹角大于第二夹角阈值且小于第一夹角阈值时,折叠屏终端处于悬停状态。比如,第一夹角阈值为120°或150°等等,第二夹角阈值为60°、30°等等,本 申请实施例并不对此进行限定。In some embodiments, when the angle between the first screen area and the second screen area is greater than or equal to the first angle threshold, the folding screen terminal is in the unfolded state; when the angle between the first screen area and the second screen area When the included angle is less than or equal to the second included angle threshold, the folding screen terminal is in the folded state; when the included angle between the first screen area and the second screen area is greater than the second included angle threshold and smaller than the first included angle threshold, The folding screen terminal is in the hovering state. For example, the first included angle threshold is 120° or 150°, etc., and the second included angle threshold is 60°, 30°, etc., which is not limited in this embodiment of the present application.
可选的,第一屏幕区域和第二屏幕区域之间的夹角可以是通过连接两块屏幕区域的铰链中的角度传感器测得,也可以是通过引入红外测量装置测得,本申请实施例对此不做限定。Optionally, the angle between the first screen area and the second screen area may be measured by an angle sensor in the hinge connecting the two screen areas, or by introducing an infrared measuring device. In the embodiment of the present application, There is no limit to this.
步骤502,在接收到对第一屏幕区域的触控操作的情况下,基于触控操作控制应用。
相关技术中,当用户想对应用进行控制时,需要在显示应用的屏幕区域进行触控操作。悬停状态下,显示应用的第二屏幕区域为竖屏状态,直接对该第二屏幕区域进行操作容易造成折叠屏终端的倾倒,影响用户的使用体验,而平放部分的第一屏幕区域比较稳定,对该第一屏幕区域进行触控操作不容易造成折叠屏终端的倾倒。因此,本申请实施例中,折叠屏终端能够通过第一屏幕区域接收触控操作,并将接收到的触控操作映射至第二屏幕区域,从而实现通过第一屏幕区域内的触控操作控制第二屏幕区域内的应用。In related technologies, when a user wants to control an application, a touch operation needs to be performed on a screen area where the application is displayed. In the hovering state, the second screen area of the display application is in a vertical screen state. Direct operations on the second screen area may easily cause the folding screen terminal to topple and affect the user experience, while the first screen area of the horizontal part is relatively Stable, the touch operation on the first screen area is not easy to cause the folding screen terminal to fall. Therefore, in the embodiment of the present application, the folding screen terminal can receive the touch operation through the first screen area, and map the received touch operation to the second screen area, so as to realize the control through the touch operation in the first screen area. Apps in the second screen area.
此外,用户仍旧可以直接对第二屏幕区域进行触控操作,实现对应用的控制。通过两种触控操作的响应方式,可以满足不同用户的需用,提高了应用控制的灵活性,且在悬停状态下,可以在不遮挡应用界面的同时实现对应用的控制,使用户更加倾向于使用悬停状态下的折叠屏终端。In addition, the user can still directly perform touch operations on the second screen area to control the application. Through the two response modes of touch operation, it can meet the needs of different users and improve the flexibility of application control. In the hovering state, the control of the application can be realized without blocking the application interface, making the user more comfortable. Tend to use the folding screen terminal in the hover state.
可选的,该触控操作可以是点击,长按,滑动等触控操作,本申请实施例对此不做限定。Optionally, the touch operation may be touch operations such as click, long press, and slide, which are not limited in this embodiment of the present application.
需要说明的是,不同于笔记本电脑等设备的触控板用于控制显示屏中的特定对象,如控制光标的移动,点击等,本申请实施例中,是将第二屏幕区域的触控功能复制并转移到第一屏幕区域,并将第一屏幕区域内的触控操作映射为第二屏幕区域内的触控操作,而非基于第一屏幕区域内的触控操作控制特定对象。此外,不同于触控板中位于不同触控区域的同一触控操作实现相同功能,即触控操作所控制的功能与触控区域无关,本申请实施例中,触控操作所控制的功能与触控区域相关,即位于第一屏幕区域中不同触控区域的同一触控操作可能实现不同功能。It should be noted that, unlike the touchpad of a laptop computer, it is used to control a specific object in the display screen, such as controlling the movement of the cursor, clicking, etc. In the embodiment of this application, the touch function of the second screen area is Copy and transfer to the first screen area, and map the touch operation in the first screen area to the touch operation in the second screen area, instead of controlling a specific object based on the touch operation in the first screen area. In addition, different from the same touch operation located in different touch areas on the touch panel to achieve the same function, that is, the function controlled by the touch operation has nothing to do with the touch area. In the embodiment of the present application, the function controlled by the touch operation is different from The touch area is related, that is, the same touch operation located in different touch areas in the first screen area may implement different functions.
在一些实施例中,当应用为多媒体应用时,折叠屏终端在接收到对第一屏幕区域的横向滑动操作的情况下,折叠屏终端基于横向滑动操作的滑动方向以及滑动距离控制多媒体应用的多媒体播放进度。可选的,当滑动方向为第一横向滑动方向时(比如与进度条的前进方向一致),折叠屏终端控制多媒体应用快进,当滑动方向为第二横向滑动方向时(与第一横向滑动方向相反),折叠屏终端控制多媒体应用快退;并且,快进时长或快退时长与滑动距离呈正相关关系。In some embodiments, when the application is a multimedia application, when the folding screen terminal receives a horizontal sliding operation on the first screen area, the folding screen terminal controls the multimedia content of the multimedia application based on the sliding direction and sliding distance of the horizontal sliding operation. playback progress. Optionally, when the sliding direction is the first horizontal sliding direction (for example, it is consistent with the forward direction of the progress bar), the folding screen terminal controls the multimedia application to fast forward; when the sliding direction is the second horizontal sliding direction (same as the first horizontal sliding direction), opposite direction), the folding screen terminal controls the multimedia application to rewind; and, the fast-forward duration or rewind duration is positively correlated with the sliding distance.
在接收到对第一屏幕区域的纵向滑动操作的情况下,折叠屏终端基于纵向滑动操作的滑动方向以及滑动距离控制多媒体应用的多媒体播放参数,多媒体播放参数包括播放音量或显示亮度中的至少一种。可选的,当纵向滑动操作位于第一屏幕区域的第一子区域(比如左侧区域),该纵向滑动操作用于控制播放音量;当纵向滑动操作位于第一屏幕区域的第二子区域(比如右侧区域),该纵向滑动操作用于控制显示亮度,且播放参数的调节幅度与滑动距离呈正相关关系。In the case of receiving a vertical sliding operation on the first screen area, the folding screen terminal controls the multimedia playback parameters of the multimedia application based on the sliding direction and the sliding distance of the vertical sliding operation, and the multimedia playback parameters include at least one of playback volume or display brightness. kind. Optionally, when the vertical sliding operation is located in the first sub-area (such as the left area) of the first screen area, the vertical sliding operation is used to control the playback volume; when the vertical sliding operation is located in the second sub-area of the first screen area ( For example, the right area), the vertical sliding operation is used to control the display brightness, and the adjustment range of the playback parameters is positively correlated with the sliding distance.
在接收到对第一屏幕区域的点击操作的情况下,折叠屏终端基于点击操作控制多媒体状态,多媒体状态包括播放状态和暂停状态。其中,当多媒体应用处于播放状态,折叠屏终端基于点击操作将多媒体应用设置为暂停状态;当多媒体应用处于暂停状态,折叠屏终端基于点击操作将多媒体应用设置为播放状态。In the case of receiving a click operation on the first screen area, the folding screen terminal controls the multimedia state based on the click operation, and the multimedia state includes a play state and a pause state. Wherein, when the multimedia application is in the playing state, the folding screen terminal sets the multimedia application to the pause state based on the click operation; when the multimedia application is in the pause state, the folding screen terminal sets the multimedia application to the playing state based on the click operation.
在接收到对第一屏幕区域的长按操作的情况下,折叠屏终端基于长按操作控制多媒体播放速度。可选的,折叠屏终端可以按照固定比例调整多媒体播放速度,比如,将多媒体播放速度调整为3倍;或者,折叠屏终端可以根据长按时长动态调整多媒体播放速度的变化比例。In the case of receiving a long press operation on the first screen area, the folding screen terminal controls the multimedia playback speed based on the long press operation. Optionally, the folding screen terminal can adjust the multimedia playback speed according to a fixed ratio, for example, adjust the multimedia playback speed to 3 times; or, the folding screen terminal can dynamically adjust the change ratio of the multimedia playback speed according to the duration of the long press.
示意性的,如图6所示,当应用为视频类应用时,在第一屏幕区域601左侧进行上下滑动可以对第二屏幕区域602中显示视频的亮度进行调整;在第一屏幕区域601右侧进行上下滑动可以对第二屏幕区域602中显示视频的音量进行调整;在第一屏幕区域601进行左右滑动可以对第二屏幕区域602中显示视频的进度进行调节。Schematically, as shown in FIG. 6, when the application is a video application, sliding up and down on the left side of the
需要说明的是,上述触控操作以及触控功能仅用于示例性说明,相同触控操作在不同类型的应用中可以实现不同的触控功能,且不同类型的应用可以对应不同的触控操作,本实施例对此不作限定。It should be noted that the above touch operations and touch functions are for illustrative purposes only, the same touch operation can implement different touch functions in different types of applications, and different types of applications can correspond to different touch operations , which is not limited in this embodiment.
综上所述,本申请实施例中,折叠屏终端处于悬停状态时,终端控制应用的应用界面仅在第二屏幕区域进行显示,并接收作用于第一屏幕区域的触控操作,从而基于该触控操作对第二屏幕区域显示的应用进行控制。采用本申请实施例提供的方案,用户无需在显示应用界面的屏幕区域进行触控操作,也可以实现应用控制,提高了应用控制的灵活性;并且,相较于直接在第二屏幕区域进行触控操作,在第一屏幕区域进行触控操作有助于提高悬停状态下折叠屏终端的稳定性,降低触控过程中折叠屏终端倾倒的概率。To sum up, in the embodiment of the present application, when the folding screen terminal is in the hovering state, the application interface of the terminal control application is only displayed in the second screen area, and receives touch operations acting on the first screen area, so that based on The touch operation controls the applications displayed in the second screen area. By adopting the solution provided by the embodiment of the present application, the user can realize application control without performing touch operations on the screen area where the application interface is displayed, which improves the flexibility of application control; and, compared with directly performing touch operations on the second screen area Touch operation in the first screen area helps to improve the stability of the folding screen terminal in the hovering state, and reduces the probability of the folding screen terminal tipping over during the touch process.
可选的,在接收到对第一屏幕区域的触控操作的情况下,基于触控操作控制应用,包括:Optionally, in the case of receiving a touch operation on the first screen area, controlling the application based on the touch operation includes:
在接收到对第一屏幕区域的触控操作,且触控操作位于防误触区域外的情况下,基于触控操作控制应用,防误触区域位于第一屏幕区域的边缘区域。When a touch operation on the first screen area is received and the touch operation is located outside the false touch prevention area, the application is controlled based on the touch operation, and the false touch prevention area is located at an edge area of the first screen area.
可选的,该方法还包括:Optionally, the method also includes:
在接收到对第一屏幕的触控操作,且触控操作位于防误触区域内的情况下,屏蔽触控操作。When a touch operation on the first screen is received and the touch operation is located in the false touch prevention area, the touch operation is shielded.
可选的,在接收到对第一屏幕区域的触控操作,且触控操作位于防误触区域外的情况下,基于触控操 作控制应用,包括:Optionally, when a touch operation on the first screen area is received and the touch operation is outside the false touch prevention area, controlling the application based on the touch operation includes:
在接收到对第一屏幕区域的触控操作,且触控操作位于防误触区域外的情况下,确定触控操作所作用操作区域对应的目标操作类型,目标操作类型为操作区域内支持响应的操作类型;When a touch operation on the first screen area is received and the touch operation is located outside the false touch prevention area, determine the target operation type corresponding to the operation area on which the touch operation is applied, and the target operation type is support response in the operation area type of operation;
在触控操作的操作类型属于目标操作类型的情况下,基于触控操作控制应用。When the operation type of the touch operation belongs to the target operation type, the application is controlled based on the touch operation.
可选的,该方法还包括:Optionally, the method also includes:
在触控操作的操作类型不属于目标操作类型的情况下,屏蔽触控操作。When the operation type of the touch operation does not belong to the target operation type, the touch operation is shielded.
可选的,在接收到对第一屏幕区域的触控操作,且触控操作位于防误触区域外的情况下,基于触控操作控制应用,包括:Optionally, when a touch operation on the first screen area is received and the touch operation is outside the false touch prevention area, controlling the application based on the touch operation includes:
在接收到对第一屏幕区域的触控操作,且触控操作位于防误触区域以及事件屏蔽区域外的情况下,基于触控操作控制应用,事件屏蔽区域与第二屏幕区域中控件的显示区域相对应。When a touch operation on the first screen area is received, and the touch operation is located outside the false touch prevention area and the event shielding area, control the application based on the touch operation, and display the controls in the event shielding area and the second screen area corresponding to the region.
可选的,该方法包括:Optionally, the method includes:
展开状态下,在第一屏幕区域和第二屏幕区域显示应用的应用界面,展开状态下,第一屏幕区域与第二屏幕区域的夹角大于第一夹角阈值;In the expanded state, the application interface of the application is displayed on the first screen area and the second screen area, and in the expanded state, the angle between the first screen area and the second screen area is greater than the first angle threshold;
悬停状态下,在第二屏幕区域显示应用的应用界面,包括:In the hovering state, the application interface of the application is displayed in the second screen area, including:
在由展开状态切换为悬停状态的情况下,在第二屏幕区域显示应用的应用界面,并控制第一屏幕区域停止显示应用的应用界面。In the case of switching from the expanded state to the hovering state, the application interface of the application is displayed in the second screen area, and the first screen area is controlled to stop displaying the application interface of the application.
可选的,折叠屏终端还包括辅显示屏,辅显示屏独立于折叠屏;Optionally, the folding screen terminal also includes an auxiliary display screen, and the auxiliary display screen is independent of the folding screen;
该方法包括:The method includes:
折叠状态下,在辅显示屏显示应用的应用界面,折叠状态下,辅显示屏外露,第一屏幕区域与第二屏幕的夹角小于第二夹角阈值;In the folded state, the application interface of the application is displayed on the auxiliary display screen, in the folded state, the auxiliary display screen is exposed, and the angle between the first screen area and the second screen is smaller than the second angle threshold;
悬停状态下,在第二屏幕区域显示应用的应用界面,包括:In the hovering state, the application interface of the application is displayed in the second screen area, including:
在由折叠状态切换为悬停状态的情况下,在第二屏幕区域显示应用的应用界面,并控制辅显示屏停止显示应用的应用界面。In the case of switching from the folded state to the hovering state, the application interface of the application is displayed in the second screen area, and the auxiliary display screen is controlled to stop displaying the application interface of the application.
可选的,基于触控操作控制应用,包括:Optionally, control applications based on touch operations, including:
基于触控操作生成第一触控事件;generating a first touch event based on a touch operation;
基于第一屏幕区域与第二屏幕区域的映射关系,将第一触控事件转换为第二触控事件;converting the first touch event into a second touch event based on the mapping relationship between the first screen area and the second screen area;
基于第二触控事件控制应用。The application is controlled based on the second touch event.
可选的,第一触控事件中包含触控操作的触控坐标;Optionally, the first touch event includes touch coordinates of the touch operation;
基于第一屏幕区域与第二屏幕区域的映射关系,将第一触控事件转换为第二触控事件,包括:Converting the first touch event into a second touch event based on the mapping relationship between the first screen area and the second screen area includes:
基于第一屏幕区域与第二屏幕区域的映射关系,对第一触控事件中的触控坐标进行坐标转换,并根据转换得到的触控坐标确定第二触控事件,其中,转换后的触控坐标位于第二屏幕区域。Based on the mapping relationship between the first screen area and the second screen area, coordinate conversion is performed on the touch coordinates in the first touch event, and the second touch event is determined according to the converted touch coordinates, wherein the converted touch Control coordinates are located in the second screen area.
可选的,第一屏幕区域具有触控映射模式,触控映射模式下第一屏幕区域的触控操作被映射至第二屏幕区域,以实现基于第一屏幕区域的触控操作控制应用;该方法还包括:Optionally, the first screen area has a touch mapping mode, in which touch operations on the first screen area are mapped to the second screen area, so as to realize the touch operation control application based on the first screen area; Methods also include:
悬停状态下,将第一屏幕区域的触控映射模式设置为激活状态。In the hovering state, set the touch mapping mode of the first screen area to active state.
可选的,将第一屏幕区域的触控映射模式设置为激活状态之后,该方法还包括:Optionally, after setting the touch mapping mode of the first screen area to an active state, the method further includes:
若在预设时长内未接收到对第一屏幕区域的触控操作,则将触控映射模式由激活状态切换为休眠状态。If no touch operation on the first screen area is received within a preset time period, the touch mapping mode is switched from an active state to a dormant state.
可选的,将触控映射模式由激活状态切换为休眠状态之后,还包括:Optionally, after the touch mapping mode is switched from the active state to the dormant state, it also includes:
在接收到对第一屏幕区域的激活操作的情况下,将触控映射模式由休眠状态切换为激活状态。When the activation operation on the first screen area is received, the touch mapping mode is switched from the dormant state to the active state.
可选的,在第二屏幕区域显示应用的应用界面,包括:Optionally, the application interface of the application is displayed in the second screen area, including:
获取横屏状态下的应用界面;Get the application interface in the horizontal screen state;
基于第二屏幕区域的尺寸对横屏状态下的应用界面进行适配处理,得到适配后的应用界面;Adapting the application interface in the horizontal screen state based on the size of the second screen area to obtain an adapted application interface;
在第二屏幕区域显示适配后的应用界面。The adapted application interface is displayed in the second screen area.
可选的,悬停状态下,第一屏幕区域处于熄屏状态;或,显示目标界面,目标界面不同于应用界面。Optionally, in the hovering state, the first screen area is in a screen-off state; or, a target interface is displayed, and the target interface is different from the application interface.
可选的,第一屏幕区域为悬停状态下处于平放姿态的屏幕区域,且第二屏幕区域为悬停状态下处于竖屏姿态的屏幕区域。Optionally, the first screen area is a screen area in a flat posture in a hovering state, and the second screen area is a screen area in a vertical screen posture in a hovering state.
可选的,该方法还包括:Optionally, the method also includes:
在第一屏幕区域切换为竖屏姿态,且第二屏幕区域切换为平放姿态的情况下,在第一屏幕区域显示应用的应用界面;In the case that the first screen area is switched to the portrait orientation, and the second screen area is switched to the horizontal orientation, displaying the application interface of the application in the first screen area;
在接收到对第二屏幕区域的触控操作的情况下,基于触控操作控制应用。In the case of receiving a touch operation on the second screen area, the application is controlled based on the touch operation.
可选的,该应用为多媒体应用;Optionally, the application is a multimedia application;
在接收到对第一屏幕区域的触控操作的情况下,基于触控操作控制应用,包括:In the case of receiving a touch operation on the first screen area, controlling the application based on the touch operation includes:
在接收到对第一屏幕区域的横向滑动操作的情况下,基于横向滑动操作的滑动方向以及滑动距离控制 多媒体应用的多媒体播放进度;或,In the case of receiving a horizontal sliding operation on the first screen area, controlling the multimedia playback progress of the multimedia application based on the sliding direction and sliding distance of the horizontal sliding operation; or,
在接收到对第一屏幕区域的纵向滑动操作的情况下,基于纵向滑动操作的滑动方向以及滑动距离控制多媒体应用的多媒体播放参数,多媒体播放参数包括播放音量或显示亮度中的至少一种;或,In the case of receiving a vertical sliding operation on the first screen area, control multimedia playback parameters of the multimedia application based on the sliding direction and sliding distance of the vertical sliding operation, where the multimedia playback parameters include at least one of playback volume or display brightness; or ,
在接收到对第一屏幕区域的点击操作的情况下,基于点击操作控制多媒体状态,多媒体状态包括播放状态和暂停状态;或,In the case of receiving a click operation on the first screen area, controlling the multimedia state based on the click operation, where the multimedia state includes a play state and a pause state; or,
在接收到对第一屏幕区域的长按操作的情况下,基于长按操作控制多媒体播放速度。In the case of receiving a long press operation on the first screen area, the multimedia playback speed is controlled based on the long press operation.
在一种可能的应用场景下,当折叠屏终端的折叠屏为内折叠屏时,展开状态下,折叠屏终端在第一屏幕区域和第二屏幕区域显示应用的应用界面,其中,展开状态下,第一屏幕区域与第二屏幕区域的夹角大于第一夹角阈值。In a possible application scenario, when the folding screen of the folding screen terminal is an inner folding screen, in the unfolded state, the folding screen terminal displays the application interface of the application in the first screen area and the second screen area, wherein, in the unfolded state , the angle between the first screen area and the second screen area is greater than a first angle threshold.
在由展开状态切换为悬停状态的情况下,由于悬停状态下,第一屏幕区域与第二屏幕区域不在同一平面,若继续全屏显示应用界面将会造成画面变形,因此在检测到切换为悬停状态时,折叠屏终端控制第二屏幕区域继续显示应用的应用界面,并控制第一屏幕区域停止显示应用的应用画面(即折叠屏终端仅半屏显示应用界面)。In the case of switching from the unfolded state to the hovering state, since the first screen area and the second screen area are not on the same plane in the hovering state, if the application interface continues to be displayed in full screen, the screen will be deformed. In the hovering state, the folding screen terminal controls the second screen area to continue displaying the application interface of the application, and controls the first screen area to stop displaying the application screen of the application (that is, the folding screen terminal only displays the application interface on half the screen).
需要说明的是,在第二屏幕区域继续显示的应用界面经过适配,从而与第二屏幕区域的尺寸相匹配,并保证显示内容的完整性。It should be noted that the application interface continuously displayed in the second screen area is adapted so as to match the size of the second screen area and ensure the integrity of the displayed content.
示意性的,如图7所示,展开状态下,折叠屏的第一屏幕区域601和第二屏幕区域602全屏显示视频播放界面;当用户将折叠屏由展开状态折叠为悬停状态时,第二屏幕区域602继续显示视频播放界面,而第一屏幕区域601则停止显示视频播放界面。Schematically, as shown in FIG. 7, in the unfolded state, the
在另一种可能的应用场景下,当折叠屏终端除了设置有折叠屏外,还设置有独立于折叠屏的辅显示屏。其中,折叠状态下,在辅显示屏显示应用的应用界面,折叠状态下,辅显示屏外露,且第一屏幕区域与第二屏幕的夹角小于第二夹角阈值。In another possible application scenario, in addition to the folding screen, the folding screen terminal is also provided with an auxiliary display screen independent of the folding screen. Wherein, in the folded state, the application interface of the application is displayed on the auxiliary display screen, and in the folded state, the auxiliary display screen is exposed, and the angle between the first screen area and the second screen is smaller than the second angle threshold.
在由折叠状态切换为悬停状态的情况下,表明用户期望通过折叠屏查看内容,而非通过辅显示屏查看内容,因此折叠屏终端在第二屏幕区域显示应用界面,并控制辅显示屏停止显示应用界面。In the case of switching from the folding state to the hovering state, it indicates that the user expects to view the content through the folding screen instead of viewing the content through the auxiliary display screen, so the folding screen terminal displays the application interface in the second screen area and controls the auxiliary display screen to stop Display the application interface.
示意性的,如图8所示,折叠状态下,折叠屏的第一屏幕区域601和第二屏幕区域602不外露,折叠屏终端通过辅显示屏603显示视频播放界面。当用户户将折叠屏终端由折叠状态展开为悬停状态时,第二屏幕区域602继续显示视频播放界面,第一屏幕区域601不显示视频播放界面,而辅显示屏603则处于熄屏状态。Schematically, as shown in FIG. 8 , in the folded state, the
在一种可能的实施方式中,第一屏幕区域为悬停状态下处于平放姿态的屏幕区域,而第二屏幕区域为悬停状态处于竖屏姿态的屏幕区域。相应的,在悬停状态下,折叠屏终端需要根据当前姿态,确定用于显示应用界面的屏幕区域,以及用于进行触控的屏幕区域。可选的,折叠屏终端确定界面显示以及触控映射的屏幕区域的过程可以包括如下步骤。In a possible implementation manner, the first screen area is a screen area in a horizontal position in a hovering state, and the second screen area is a screen area in a vertical position in a hovering state. Correspondingly, in the hovering state, the folding screen terminal needs to determine the screen area for displaying the application interface and the screen area for touching according to the current posture. Optionally, the process for the folding screen terminal to determine the screen area for interface display and touch mapping may include the following steps.
1、悬停状态下,获取第一屏幕区域的姿态以及第二屏幕区域的姿态。1. In the hovering state, obtain the posture of the first screen area and the posture of the second screen area.
在一种可能的实施方式中,折叠屏终端可以根据内置重力传感器采集到的重力加速度数据,分别确定第一屏幕区域以及第二屏幕区域各自的姿态(比如根据重力加速度方向确定姿态),该姿态可以是竖屏姿态,或者是平放姿态。本申请实施例并不对屏幕区域姿态的确定方式进行限定。In a possible implementation manner, the folding screen terminal can determine the attitudes of the first screen area and the second screen area respectively (for example, determine the attitude according to the direction of the acceleration of gravity) according to the acceleration of gravity data collected by the built-in gravity sensor. It can be in a portrait posture or a flat posture. The embodiment of the present application does not limit the manner of determining the attitude of the screen area.
其中,平放姿态是屏幕区域与平面之间夹角小于夹角阈值(比如10°)的状态,而竖屏状态则是与屏幕区域与平面之间夹角大于夹角阈值的状态。Among them, the flat posture is a state in which the angle between the screen area and the plane is smaller than the angle threshold (for example, 10°), and the vertical screen state is a state in which the angle between the screen area and the plane is greater than the angle threshold.
示意性的,如图7或8所示,悬停状态下,第一屏幕区域601为平放状态,而第二屏幕区域602为竖屏状态。Schematically, as shown in FIG. 7 or 8 , in the hovering state, the
2、在第一屏幕区域处于为平放姿态,且第二屏幕区域处于竖屏姿态的情况下,在第二屏幕区域显示应用的应用界面。2. When the first screen area is in the horizontal position and the second screen area is in the vertical position, display the application interface of the application on the second screen area.
用户在使用处于悬停状态的折叠屏终端时,通常希望折叠屏终端通过竖屏状态的屏幕区域进行内容展示,因此当检测到第一屏幕区域处于平放姿态,而第二屏幕区域处于竖屏姿态时,终端在第二屏幕区域显示应用界面(经过界面适配)。When users use a folding screen terminal in the hovering state, they usually hope that the folding screen terminal displays content through the screen area in the vertical screen state. gesture, the terminal displays the application interface (after interface adaptation) in the second screen area.
如图7或8所示,折叠屏终端检测到第一屏幕区域601处于平放姿态,第二屏幕区域602处于竖屏姿态,从而控制第二屏幕区域602显示视频播放界面,并控制第一屏幕区域601停止显示视频播放界面。As shown in Figure 7 or 8, the folding screen terminal detects that the
在一种可能的场景下,用户可能会对处于悬停状态的折叠屏终端进行翻转,导致第一屏幕区域和第二屏幕区域的姿态发生变化,相应的,折叠屏终端需要根据屏幕区域的姿态变化情况,动态切换屏幕区域的显示状态,可选的,该方法还可以包括如下步骤:In a possible scenario, the user may flip the folding screen terminal in the hovering state, resulting in changes in the postures of the first screen area and the second screen area. Correspondingly, the folding screen terminal needs to Changes, dynamically switching the display state of the screen area, optionally, the method may also include the following steps:
1、在第一屏幕区域切换为竖屏姿态,且第二屏幕区域切换为平放姿态的情况下,在第一屏幕区域显示应用的应用界面,以及将第二屏幕区域设置为触控映射模式。1. When the first screen area is switched to the portrait posture and the second screen area is switched to the horizontal posture, display the application interface of the application in the first screen area, and set the second screen area to touch mapping mode .
翻转折叠屏终端后,若原先处于平放姿态的第一屏幕区域变为竖屏状态,而原先处于竖屏状态的第二 屏幕区域变为平放状态,折叠屏终端交换第一屏幕区域和第二屏幕区域的显示状态,即在第一屏幕区域显示应用界面,以及控制第二屏幕区域停止显示应用界面,并进入触控映射模式。After turning over the folding screen terminal, if the first screen area that was originally in the horizontal position becomes the vertical screen state, and the second screen area that was originally in the vertical screen state becomes the flat state, the folding screen terminal exchanges the first screen area and the second screen area. The display state of the two screen areas is to display the application interface in the first screen area, and control the second screen area to stop displaying the application interface and enter the touch mapping mode.
示意性的,如图9所示,当第一屏幕区域901由平放姿态切换为竖屏姿态时,第二屏幕区域902对应的竖屏姿态切换为平放姿态时,折叠屏终端可以对应用界面的显示进行调整,由第一屏幕区域901显示应用界面,并控制第二屏幕区域902停止显示应用界面。Schematically, as shown in FIG. 9 , when the
2、在接收到对第二屏幕区域的触控操作的情况下,基于触控操作控制应用。2. When a touch operation on the second screen area is received, the application is controlled based on the touch operation.
屏幕区域的显示状态发生变化后,对应用的控制方式也相应发生变化。除了能够通过第一屏幕区域直接对应用进行触控操作外,还可以通过第二屏幕区域对应用进行触控操作。After the display status of the screen area changes, the control method of the application also changes accordingly. In addition to being able to directly perform a touch operation on the application through the first screen area, it is also possible to perform a touch operation on the application through the second screen area.
在一种可能的实施方式中,折叠屏终端通过第二屏幕区域接收触控操作,并通过映射将接收到的触控操作映射至第一屏幕区域,从而实现通过第二屏幕区域内的触控操作控制第一屏幕区域内的应用。In a possible implementation manner, the folding screen terminal receives the touch operation through the second screen area, and maps the received touch operation to the first screen area through mapping, so as to realize the touch operation in the second screen area. Actions control apps within the first screen area.
请参考图10,其示出了本申请另一个实施例示出的应用控制方法的流程图。Please refer to FIG. 10 , which shows a flowchart of an application control method according to another embodiment of the present application.
步骤1001,悬停状态下,在第二屏幕区域显示应用的应用界面,悬停状态下,第一屏幕区域和第二屏幕区域的夹角小于第一夹角阈值,且大于第二夹角阈值。
此步骤同上述步骤501,本申请实施例在此不再赘述。This step is the same as the above-mentioned
步骤1002,在接收到对第一屏幕区域的触控操作的情况下,基于触控操作生成第一触控事件。
在一种可能的实施方式中,当第一屏幕区域接收到触控操作,折叠屏终端会根据接收到的触控操作生成第一触控事件,该事件作用于第一屏幕区域。其中,第一触控事件中包括该触控操作的触控坐标。In a possible implementation manner, when the first screen area receives a touch operation, the folding screen terminal generates a first touch event according to the received touch operation, and the event acts on the first screen area. Wherein, the first touch event includes touch coordinates of the touch operation.
可选的,第一触控事件中还可以包括该触控操作的操作类型、触控点数量以及触控时刻等信息,本实施例对此不作限定。Optionally, the first touch event may further include information such as the operation type of the touch operation, the number of touch points, and the touch time, which is not limited in this embodiment.
步骤1003,基于第一屏幕区域与第二屏幕区域的映射关系,将第一触控事件转换为第二触控事件。Step 1003: Convert the first touch event into a second touch event based on the mapping relationship between the first screen area and the second screen area.
在一种可能的实施方式中,折叠屏终端的第一屏幕区域和第二屏幕区域存在一定的映射关系,通过建立第一屏幕区域和第二屏幕区域之间的映射坐标系,可以对第一触控事件进行转换,并根据转换得到的触控坐标确定第二触控事件,其中,该第二触控事件为作用于第二屏幕区域的触控事件。其中,在对第一触控事件进行转换时,第一触控事件所对应的触控坐标也会根据映射关系进行转换,得到第二触控事件对应的触控坐标,且得到的触控坐标位于第二屏幕区域。In a possible implementation manner, there is a certain mapping relationship between the first screen area and the second screen area of the folding screen terminal, and by establishing a mapping coordinate system between the first screen area and the second screen area, the first The touch event is converted, and a second touch event is determined according to the converted touch coordinates, wherein the second touch event is a touch event acting on the second screen area. Wherein, when converting the first touch event, the touch coordinates corresponding to the first touch event will also be converted according to the mapping relationship to obtain the touch coordinates corresponding to the second touch event, and the obtained touch coordinates in the second screen area.
可选的,第一触控事件和第二触控事件中触控操作的触控类型相同。Optionally, the touch types of the touch operations in the first touch event and the second touch event are the same.
示意性的,如图11所示,第一屏幕区域1101和第二屏幕区域1102为显示屏1100的两块显示区域。当用户想要通过第一屏幕区域1101对第二屏幕区域1102正在播放的影视进行控制,则折叠屏终端可以基于第一屏幕区域1101与第二屏幕区域1102之间的映射坐标系,将第一触控事件中的触控坐标进行映射为第二屏幕区域1102内的触控坐标,从而得到第二触控事件。例如,触控操作作用于第一屏幕区域1101的坐标为(x,y),当第一屏幕区域1101与第二屏幕区域1102的尺寸相同时(即第一屏幕区域1101的高度等于第二屏幕区域1102的高度,第一屏幕区域1101的宽度等于第二屏幕区域的宽度),根据映射关系,在第二屏幕区域1102可以得到该触控操作的映射点坐标(x1,y1),即第二触控事件对应的触控坐标为(x1,y1),其中,x1=x,y1=y-h,h为第一屏幕区域1101或第二屏幕区域1102的高度。Schematically, as shown in FIG. 11 , the
需要说明的是,当第一屏幕区域与第二屏幕区域的高度不同时,比如,第一屏幕区域的高度为h1,第二屏幕区域的高度为h2时,若触控操作作用于第一屏幕区域的坐标为(x,y),则第二屏幕区域中映射点的坐标为(x2,y2),其中,x2=x1,y2=h2(y-h2)/h1。It should be noted that when the heights of the first screen area and the second screen area are different, for example, when the height of the first screen area is h1 and the height of the second screen area is h2, if the touch operation acts on the first screen The coordinates of the area are (x, y), and the coordinates of the mapping point in the second screen area are (x2, y2), where x2=x1, y2=h2(y−h2)/h1.
步骤1004,基于第二触控事件控制应用。
在一种可能的实施方式中,折叠屏终端基于第二触控事件,在第二屏幕区域内模拟第一屏幕区域内的触控操作,从而实现对应用的控制。In a possible implementation manner, based on the second touch event, the folding screen terminal simulates the touch operation in the first screen area in the second screen area, so as to realize the control of the application.
示意性的,当应用为视频播放应用时,若第二触控事件指示的操作类型上滑,且触控坐标位于第二屏幕区域的左侧显示区域,折叠屏终端基于该第二触控事件提高视频亮度;若第二触控事件指示的操作类型上滑,且触控坐标位于第二屏幕区域的右侧显示区域时,折叠屏终端基于该第二触控事件提高视频音量。Schematically, when the application is a video playback application, if the operation type indicated by the second touch event slides up, and the touch coordinates are located in the left display area of the second screen area, the folding screen terminal based on the second touch event Increase the brightness of the video; if the operation type indicated by the second touch event slides up, and the touch coordinates are located in the right display area of the second screen area, the folding screen terminal increases the video volume based on the second touch event.
在悬停状态下使用折叠屏终端可能会存在误触的情况,比如:清除屏幕区域遮挡物时误触屏幕区域,拿起或放下折叠屏终端时误触屏幕区域等。所以,为了避免误触情况的发生,本申请实施例引入了防误触机制,在接收到对第一屏幕区域的触控操作时,折叠屏终端会进一步确定该触控操作是否为误触操作,若该触控操作是误触操作,则不响应该触控操作;若该触控操作不是误触操作,则根据该触控操作对第二屏幕区域显示的应用进行控制。When using the folding screen terminal in the hovering state, there may be accidental touches, such as: accidentally touching the screen area when clearing the screen area block, accidentally touching the screen area when picking up or putting down the folding screen terminal, etc. Therefore, in order to avoid false touches, the embodiment of the present application introduces an anti-mistouch mechanism. When receiving a touch operation on the first screen area, the folding screen terminal will further determine whether the touch operation is a false touch operation. , if the touch operation is a false touch operation, then do not respond to the touch operation; if the touch operation is not a false touch operation, control the application displayed in the second screen area according to the touch operation.
在一种可能的实施方式中,在接收到对第一屏幕区域的触控操作,且触控操作位于防误触区域外的情况下,折叠屏终端基于触控操作控制应用,该防误触区域位于第一屏幕区域的边缘区域。In a possible implementation manner, when a touch operation on the first screen area is received and the touch operation is outside the false touch prevention area, the folding screen terminal controls the application based on the touch operation. The area is located at the edge area of the first screen area.
由于对屏幕的误操作通常位于屏幕边缘,因此本实施例中,第一屏幕区域的边缘区域被设置为防误触区域。比如,该防误触区域可以为预设宽度的矩形框区域。本申请实施例并不对防误触区域的形态、位置 以及尺寸进行限定。Since the misoperation of the screen is usually located at the edge of the screen, in this embodiment, the edge area of the first screen area is set as an anti-mistouch area. For example, the false touch prevention area may be a rectangular frame area with a preset width. The embodiment of the present application does not limit the shape, position and size of the false touch prevention area.
可选的,防误触区域可以由折叠屏终端默认设置,也可以基于用户使用习惯进行设定,本申请实施例对此不做限定。Optionally, the anti-mistouch area can be set by default by the folding screen terminal, or can be set based on the user's usage habits, which is not limited in this embodiment of the present application.
可选的,在接收到对第一屏幕的触控操作,且触控操作位于防误触区域内的情况下,折叠屏终端即屏蔽触控操作,即不对该触控操作进行响应。Optionally, when a touch operation on the first screen is received and the touch operation is located in the false touch prevention area, the folding screen terminal shields the touch operation, that is, does not respond to the touch operation.
在一些实施例中,当触控操作位于防误触区域外时,折叠屏终端基于触控操作生成第一触控事件,以便后续基于第一触控事件生成第二触控事件;当触控操作位于防误触区域内时,折叠屏终端则不会基于触控操作生成第一触控事件。In some embodiments, when the touch operation is outside the false touch prevention area, the folding screen terminal generates a first touch event based on the touch operation, so as to subsequently generate a second touch event based on the first touch event; When the operation is within the false touch prevention area, the folding screen terminal will not generate the first touch event based on the touch operation.
关于确定触控操作是否位于防误触区域的具体方式,在一种可能的实施方式中,响应于对第一屏幕区域的触控操作,折叠屏终端获取触控操作的触控坐标,并检测触控坐标是否位于防误触区域对应的防误触坐标范围内。Regarding the specific method of determining whether the touch operation is located in the false touch prevention area, in a possible implementation manner, in response to the touch operation on the first screen area, the folding screen terminal acquires the touch coordinates of the touch operation, and detects Whether the touch coordinates are within the range of anti-mis-touch coordinates corresponding to the anti-mis-touch area.
针对不同类型的触控操作,折叠屏终端基于触控坐标进行误触识别的方式也不同。在一种可能的实施方式中,当触控操作为点击类触控操作时,若该触控操作的触控坐标位于防误触区域外,则确定触控操作不属于误触操作;若该触控操作的触控坐标位于防误触区域内,则确定触控操作属于误触操作。For different types of touch operations, the folding screen terminal has different ways of identifying false touches based on touch coordinates. In a possible implementation manner, when the touch operation is a click touch operation, if the touch coordinates of the touch operation are outside the false touch prevention area, it is determined that the touch operation is not a false touch operation; If the touch coordinates of the touch operation are within the false touch prevention area, it is determined that the touch operation is a false touch operation.
当触控操作为滑动类触控操作时,若该触控操作的触控起点坐标位于防误触区域外,则确定触控操作不属于误触操作;若该触控操作的触控起点坐标位于防误触区域内,则确定触控操作属于误触操作。When the touch operation is a sliding touch operation, if the coordinates of the touch starting point of the touch operation are outside the false touch prevention area, it is determined that the touch operation is not a false touch operation; if the coordinates of the touch starting point of the touch operation are If it is located in the false touch prevention area, it is determined that the touch operation is a false touch operation.
当然,在其他可能的实施方式中,若触控操作的触控坐标与防误触区域存在交集,折叠屏终端即确定该触控操作为误触操作,本实施例对此不作限定。Of course, in other possible implementation manners, if the touch coordinates of the touch operation overlap with the false touch prevention area, the folding screen terminal determines that the touch operation is a false touch operation, which is not limited in this embodiment.
示意性的,如图12所示,位于第一屏幕区域1201边缘的矩形框区域为防误触区域1202。若点击操作的触控位置位于防误触区域1202,折叠屏终端将该点击操作确定为误触操作,不生成触控事件;若滑动操作的触控起点位于防误触区域1202,折叠屏终端将该滑动操作确定为误触操作,不生成触控事件。Schematically, as shown in FIG. 12 , the rectangular frame area located at the edge of the
由于用户通常在特定的区域执行特定类型的触控操作,比如,在屏幕左侧滑动手指以控制音量,点击屏幕中部以控制视频播放或暂停,因此为了进一步降低误触概率,在一种可能的实施方式中,第一屏幕区域中防误触区域以外的区域被进一步细分为若干个子区域,且各个子区域仅支持响应特定类型的触控操作。Since the user usually performs a specific type of touch operation in a specific area, for example, sliding the finger on the left side of the screen to control the volume, and tapping the middle of the screen to control the playback or pause of the video, in order to further reduce the probability of false touches, in a possible In the implementation manner, the areas outside the false touch prevention area in the first screen area are further subdivided into several sub-areas, and each sub-area only supports a specific type of touch operation.
在一种可能的实施方式中,在接收到对第一屏幕区域的触控操作,且触控操作位于防误触区域外的情况下,折叠屏终端确定触控操作所作用操作区域对应的目标操作类型,该目标操作类型为操作区域内支持响应的操作类型。In a possible implementation manner, when a touch operation on the first screen area is received and the touch operation is outside the false touch prevention area, the folding screen terminal determines the target corresponding to the operation area on which the touch operation is applied. Operation type, the target operation type is the operation type that supports the response in the operation area.
在触控操作的操作类型属于目标操作类型的情况下,折叠屏终端基于该触控操作控制应用;在触控操作的操作类型不属于目标操作类型的情况下,折叠屏终端则屏蔽该触控操作。If the operation type of the touch operation belongs to the target operation type, the folding screen terminal controls the application based on the touch operation; if the operation type of the touch operation does not belong to the target operation type, the folding screen terminal blocks the touch operate.
可选的,基于触控坐标确定触控操作并非误触操作后,折叠屏终端需要进一步确定触控操作所作用的区域是否支持响应该触控操作。在一些实施例中,折叠屏终端基于触控坐标确定触控操作所作用的目标区域,并基于区域与操作类型之间的对应关系,确定目标区域所支持响应的目标操作类型。其中,区域与操作类型之间的对应关系可以为终端默认设置,也可以由用户根据自身需求自定义,也可以基于应用自身的触控操作支持情况设置,本实施例对此不作限定。Optionally, after determining that the touch operation is not a false touch operation based on the touch coordinates, the folding screen terminal needs to further determine whether the area on which the touch operation is applied supports responding to the touch operation. In some embodiments, the folding screen terminal determines the target area on which the touch operation acts based on the touch coordinates, and determines the target operation type supported by the target area based on the correspondence between the area and the operation type. Wherein, the corresponding relationship between the region and the operation type may be set by default by the terminal, or may be customized by the user according to the user's own needs, or may be set based on the touch operation support of the application itself, which is not limited in this embodiment.
可选的,当触控操作的操作类型属于目标操作类型时,折叠屏终端基于触控操作生成第一触控事件,以便后续基于第一触控事件生成第二触控事件;当触控操作的操作类型不属于目标操作类型时,折叠屏终端则不会基于触控操作生成第一触控事件。Optionally, when the operation type of the touch operation belongs to the target operation type, the folding screen terminal generates a first touch event based on the touch operation, so as to subsequently generate a second touch event based on the first touch event; when the touch operation When the operation type does not belong to the target operation type, the folding screen terminal will not generate the first touch event based on the touch operation.
示意性的,如图13所示,第一屏幕区域1301被划分为防误触区域1302、滑动响应区域1303以及全局响应区域1304,其中,滑动响应区域1303仅支持响应滑动操作,全局响应区域1304支持响应所有类型的触控操作(包括滑动操作、点击操作、长按操作等等)。Schematically, as shown in FIG. 13 , the
当用户在滑动响应区域1303进行点击操作时,由于滑动响应区域1303不支持响应点击操作,因此不会生成点击触控事件;当用户在滑动响应区域1303进行滑动操作时,由于滑动响应区域1303支持响应滑动操作,因此折叠屏终端生成滑动触控事件。当用户在全局响应区域1304进行点击操作或滑动操作时,由于全局响应区域1304支持各种类型的触控操作,因此折叠屏终端生成对应的点击触控事件或滑动触控事件。When the user performs a click operation on the
需要说明的是,上述实施例仅对区域划分方式以及区域所支持响应的触控操作进行示意性说明,但并不对此构成限定。It should be noted that, the above-mentioned embodiment only schematically illustrates the area division method and the corresponding touch operations supported by the area, but does not constitute a limitation thereto.
可选的,当折叠屏终端无法基于第一屏幕区域内的触控操作控制应用时,可以在第一屏幕区域内显示提示信息(误触或在触控区域内执行了不支持的触控操作),提示用户如何正确在第一屏幕区域内进行触控操作。Optionally, when the folding screen terminal cannot control the application based on the touch operation in the first screen area, a prompt message may be displayed in the first screen area (incorrect touch or an unsupported touch operation performed in the touch area ), prompting the user how to correctly perform touch operations in the first screen area.
本实施例中,通过在第一屏幕区域的边缘位置设置防误触区域,并对防误触区域内的触控操作进行屏蔽,避免用户误触对应用的影响,提高了人机交互的准确性。In this embodiment, by setting an anti-mistouch area at the edge of the first screen area, and shielding touch operations in the anti-mistouch area, the influence of user mistouch on the application is avoided, and the accuracy of human-computer interaction is improved. sex.
并且,通过对第一屏幕区域进行区域划分,并为各个区域设置各自支持的响应操作类型,从而实现对触控区域内特定操作的响应,进一步降低响应用户误操作的概率,提高应用控制的准确性。In addition, by dividing the first screen area and setting the type of response operation supported by each area, the response to specific operations in the touch area is realized, the probability of responding to user misoperation is further reduced, and the accuracy of application control is improved. sex.
由于第一屏幕区域并未显示应用界面,因此在第一屏幕区域仅能够实现一些简单手势操作,无法实现对第二屏幕区域内显示内容的精准操作(比如点击第二屏幕区域内显示的具体控件)。为了避免误操作,折叠屏终端需要进一步对第一屏幕区域内的特定操作进行屏蔽。Since the application interface is not displayed in the first screen area, only some simple gesture operations can be realized in the first screen area, and precise operations on the content displayed in the second screen area cannot be realized (such as clicking on specific controls displayed in the second screen area) ). In order to avoid misoperations, the folding screen terminal needs to further shield specific operations in the first screen area.
在一种可能的实施方式中,在接收到对第一屏幕区域的触控操作,且触控操作位于防误触区域以及事件屏蔽区域外的情况下,折叠屏终端基于触控操作控制应用,事件屏蔽区域与第二屏幕区域中控件的显示区域相对应。若触控操作位于事件屏区域内,折叠屏终端则不响应该触控操作。In a possible implementation manner, when a touch operation on the first screen area is received, and the touch operation is located outside the false touch prevention area and the event shielding area, the folding screen terminal controls the application based on the touch operation, The event mask area corresponds to the display area of the controls in the second screen area. If the touch operation is within the event screen area, the folding screen terminal will not respond to the touch operation.
可选的,事件屏蔽区域可以是固定的静态区域,也可以是非固定的动态区域,本申请实施例对此不做限定。Optionally, the event shielding area may be a fixed static area or a non-fixed dynamic area, which is not limited in this embodiment of the present application.
当事件屏蔽区域为动态区域时,折叠屏终端需要根据第二屏幕区域中控件对应的触控区域,确定映射到第一屏幕区域中对应的触控区域,进而将映射得到的触控区域确定事件屏蔽区域。When the event shielding area is a dynamic area, the folding screen terminal needs to determine the corresponding touch area mapped to the first screen area according to the touch area corresponding to the control in the second screen area, and then determine the event for the mapped touch area shielded area.
可选的,当应用为视频播放应用时,该控件可以为选集控件、点赞控件、打赏控件等等;当应用为音乐播放应用时,该控件可以为下一曲控件、下载控件、循环播放控件等等,本申请实施例并不对控件的具体类型进行限定。Optionally, when the application is a video playback application, the control can be a selection control, a like control, a reward control, etc.; when the application is a music playback application, the control can be a next song control, a download control, a cycle Playing controls, etc., the embodiment of the present application does not limit the specific types of controls.
比如,当第二屏幕区域显示有跳转控件(点击后跳转播放下一集内容)时,折叠屏终端确定跳转控件在第二屏幕区域内的显示区域,并将该显示区域在第一屏幕区域内的对应区域确定为事件屏蔽区域,并设置屏蔽该事件屏蔽区域内的触控操作(比如屏蔽点击操作)。后续若用户在该事件屏蔽区域内执行点击操作,折叠屏终端将不会生成触控事件(用户可能仅仅是想停止播放,若生成了触控事件,应用响应该触控事件会导致跳转播放下一集)。For example, when a jump control is displayed in the second screen area (click to jump to play the next episode), the folding screen terminal determines the display area of the jump control in the second screen area, and sets the display area in the first screen area. A corresponding area in the screen area is determined as an event shielding area, and touch operations in the event shielding area are set to be shielded (for example, click operations are shielded). In the future, if the user performs a click operation in the event shielding area, the folding screen terminal will not generate a touch event (the user may just want to stop the playback, if a touch event is generated, the application responds to the touch event and will cause jump playback next episode).
在一种可能的实施方式中,第一屏幕区域具有触控映射模式,触控映射模式下第一屏幕区域的触控操作被映射至第二屏幕区域,以实现基于第一屏幕区域内的触控操作控制应用。并且,该触控映射模式具有激活状态和休眠状态,悬停状态下,折叠屏终端将第一屏幕区域的触控映射模式设置为激活状态。In a possible implementation manner, the first screen area has a touch mapping mode, and in the touch mapping mode, touch operations on the first screen area are mapped to the second screen area, so as to realize control application. Moreover, the touch mapping mode has an active state and a dormant state, and in the hovering state, the folding screen terminal sets the touch mapping mode of the first screen area to the active state.
可选的,触控映射模式处于激活状态时,第一屏幕区域的触控功能处于开启状态,且第一屏幕区域的显示功能处于关闭状态,即第一屏幕区域熄屏,或者,第二屏幕区域的触控以及显示功能均处于开启状态,且第一屏幕区域显示的内容不同于第二屏幕区域显示的应用界面。Optionally, when the touch mapping mode is activated, the touch function of the first screen area is on, and the display function of the first screen area is off, that is, the screen of the first screen area is off, or the second screen area Both the touch and display functions of the area are turned on, and the content displayed on the first screen area is different from the application interface displayed on the second screen area.
本申请实施例中,触控映射模式下,折叠屏终端通过第一屏幕区域接收触控操作,且第一屏幕区域的触控操作会被映射至第二屏幕区域。简单来讲,第二屏幕区域的触控功能被转移至第一屏幕区域(第二屏幕区域的触控功能仍旧有效),用户在第一屏幕区域上执行触控操作,即相当于在第二屏幕区域上执行触控操作。In the embodiment of the present application, in the touch mapping mode, the folding screen terminal receives touch operations through the first screen area, and the touch operations in the first screen area will be mapped to the second screen area. To put it simply, the touch function of the second screen area is transferred to the first screen area (the touch function of the second screen area is still valid), and the user performs a touch operation on the first screen area, which is equivalent to the touch operation in the second screen area. Perform touch operations on the screen area.
将第一屏幕区域的触控映射模式设置为激活状态之后,用户可能长时间未通过第一屏幕区域控制应用。为了降低折叠屏终端的功耗以及避免误触,第一屏幕区域的触控映射模式可被切换为休眠状态,且用户可以通过激活操作重新将触控映射模式切换为激活状态,该过程如下:After setting the touch mapping mode of the first screen area to active state, the user may not control the application through the first screen area for a long time. In order to reduce the power consumption of the folding screen terminal and avoid false touches, the touch mapping mode of the first screen area can be switched to the dormant state, and the user can switch the touch mapping mode to the active state again through the activation operation. The process is as follows:
一,若在预设时长内未接收到对第一屏幕区域的触控操作,则将触控映射模式由激活状态切换为休眠状态。One, if no touch operation on the first screen area is received within a preset time period, the touch mapping mode is switched from an active state to a dormant state.
在一种可能的实施方式中,当第一屏幕区域的触控映射模式被设置为激活状态,且预设时长内未接收到触控操作时,为了降低功耗,折叠屏终端将第一屏幕区域的触控映射模式由激活状态切换为休眠状态。In a possible implementation manner, when the touch mapping mode of the first screen area is set to the active state and no touch operation is received within a preset period of time, in order to reduce power consumption, the folding screen terminal uses the first screen area The touch mapping mode of the area is switched from the active state to the dormant state.
可选的,触控映射模式处于休眠状态时,第一屏幕区域的触控功能关闭,无法响应第一屏幕区域内的任何触控操作(此时激活触控映射模式的激活操作为非触控操作);或者,第一屏幕的触控功能开启,但仅能够响应第一屏幕区域内的特定触控操作(比如特定触控手势的激活操作)。Optionally, when the touch mapping mode is in the dormant state, the touch function of the first screen area is turned off, and cannot respond to any touch operation in the first screen area (at this time, the activation operation for activating the touch mapping mode is non-touch operation); or, the touch function of the first screen is turned on, but it can only respond to a specific touch operation in the area of the first screen (such as an activation operation of a specific touch gesture).
示意性的,当第一屏幕区域处于触控映射模式且在被激活后一分钟内未接收到触控操作,则触控映射模式由激活状态切换为休眠状态。Schematically, when the first screen area is in the touch mapping mode and does not receive a touch operation within one minute after being activated, the touch mapping mode is switched from the active state to the dormant state.
可选的,预设时长可以由系统进行设定,也可以由用户根据自身习惯进行设定,本申请实施例对此不做限定。Optionally, the preset duration can be set by the system, or can be set by the user according to their own habits, which is not limited in this embodiment of the present application.
二,在接收到对第一屏幕区域的激活操作的情况下,将触控映射模式由休眠状态切换为激活状态。Second, when an activation operation on the first screen area is received, the touch mapping mode is switched from a dormant state to an active state.
在一种可能的实施方式中,在休眠状态下,用户无法通过对第一屏幕区域进行触控操作实现对第二屏幕区域的控制。当用户想要通过第一屏幕区域的触控操作实现对第二屏幕区域显示的应用进行控制时,需要先对第一屏幕区域进行激活操作,将第一屏幕区域的触控映射模式由休眠状态切换成激活状态。In a possible implementation manner, in the sleep state, the user cannot control the second screen area by performing a touch operation on the first screen area. When the user wants to control the application displayed in the second screen area through the touch operation of the first screen area, it is necessary to activate the first screen area first, and change the touch mapping mode of the first screen area from the dormant state to Switch to active state.
可选的,当第一屏幕区域由休眠状态切换为激活状态时,第一屏幕区域可以显示一个切换画面,用以提示用户第一屏幕区域已被激活;当第一屏幕区域由休眠状态切换至激活状态后,第一屏幕区域可以显示为触控板背景,用以提示用户此状态下,第一屏幕区域可以作为触控板进行使用。Optionally, when the first screen area is switched from the dormant state to the active state, the first screen area may display a switching screen to prompt the user that the first screen area has been activated; when the first screen area is switched from the dormant state to After the activated state, the first screen area can be displayed as a touchpad background to remind the user that in this state, the first screen area can be used as a touchpad.
可选的,对第一屏幕区域的激活操作是第一屏幕区域内的预设触控手势,例如:双击,三指滑动等。 或者,用户还可以是通过语音或者物理按键激活第一屏幕区域的触控映射模式,本申请实施例对此不做限定。Optionally, the activation operation on the first screen area is a preset touch gesture in the first screen area, for example: double-tap, three-finger slide, and the like. Alternatively, the user may also activate the touch mapping mode of the first screen area through voice or physical keys, which is not limited in this embodiment of the present application.
可选的,切换画面和触控板背景可以是折叠屏终端默认设定,也可以是用户根据自己的喜好进行设定,本申请实施例对此不做限定。Optionally, the switching screen and the background of the touchpad may be the default setting of the folding screen terminal, or may be set by the user according to his own preference, which is not limited in this embodiment of the present application.
示意性的,请参考图14,悬停状态下第二屏幕区域1402显示应用界面,第一屏幕区域1401处于休眠状态(熄屏)。当用户想要通过第一屏幕区域1401对应用界面进行控制时,可以在第一屏幕区域1401内进行双指双击,激活第一屏幕区域1401。激活状态下的第一屏幕区域1401中显示有触控操作提示信息(提示不同区域的触控功能)。若第一屏幕区域1401在被激活后一分钟内未接收到触控操作,则第一屏幕区域1401会重新切换为休眠状态。Schematically, please refer to FIG. 14 , in the hovering state, the
在一种可能的实施方式中,折叠屏终端在展开状态下是以全屏显示(包括横屏和竖屏)应用界面,而在悬停状态下,折叠屏终端只使用第一屏幕区域或第二屏幕区域显示应用界面,两种显示方式之间存在差异,对应用界面的显示比例也有所不同。因此,需要对应用界面进行处理,使之可以适配于悬停状态下的显示需求,具体步骤如下:In a possible implementation manner, the folding screen terminal displays the application interface in full screen (including horizontal screen and vertical screen) in the unfolded state, while in the hovering state, the folding screen terminal only uses the first screen area or the second screen area. The screen area displays the application interface, and there are differences between the two display methods, and the display ratio of the application interface is also different. Therefore, it is necessary to process the application interface so that it can adapt to the display requirements in the hovering state. The specific steps are as follows:
一,获取横屏状态下的应用界面。1. Obtain the application interface in the horizontal screen state.
二,基于第二屏幕区域的尺寸对横屏状态下的应用界面进行适配处理,得到适配后的应用界面。Second, based on the size of the second screen area, the application interface in the horizontal screen state is adapted to obtain an adapted application interface.
在一种可能的实施方式中,在对悬停状态下应用界面进行适配之前,折叠屏终端获取该应用界面在全屏显示(包括横屏和竖屏)时的尺寸大小,然后对该应用界面进行适配,即,根据第二屏幕区域的尺寸对该应用界面进行等比例缩放,得到适配于悬停状态下第二屏幕区域显示的应用界面,进而在第二屏幕区域对适配后的应用界面进行显示。In a possible implementation, before adapting the application interface in the hovering state, the folding screen terminal obtains the size of the application interface when it is displayed in full screen (including horizontal screen and vertical screen), and then the application interface Perform adaptation, that is, scale the application interface proportionally according to the size of the second screen area to obtain an application interface adapted to be displayed in the second screen area in the hovering state, and then adjust the adapted application interface in the second screen area The application interface is displayed.
在一些实施例中,在对应用界面进行适配时,折叠屏终端的第二屏幕区域会显示适配提示,用于提示用户折叠屏终端由展开状态切换为悬停状态,应用界面正在进行适应性调整。In some embodiments, when adapting the application interface, the second screen area of the folding screen terminal will display an adaptation prompt, which is used to prompt the user to switch the folding screen terminal from the expanded state to the hovering state, and the application interface is adapting. sexual adjustment.
三,在第二屏幕区域显示适配后的应用界面。Third, the adapted application interface is displayed in the second screen area.
在一种可能的实施方式中,悬停状态下,在第二屏幕区域显示适配后的应用界面,第一屏幕区域停止显示应用界面,折叠屏终端可以控制第一屏幕区域处于熄屏状态或者控制第一屏幕区域显示目标界面(不同于应用的应用界面)。其中,控制第一屏幕区域处于熄屏状态可以降低折叠屏终端功耗。In a possible implementation manner, in the hovering state, the adapted application interface is displayed on the second screen area, and the first screen area stops displaying the application interface, and the folding screen terminal can control the first screen area to be in a screen-off state or The first screen area is controlled to display a target interface (an application interface different from an application). Wherein, controlling the first screen area to be in a screen-off state can reduce the power consumption of the folding screen terminal.
可选的,第一屏幕区域显示目标界面可以包含预设图案的界面或者纯色界面,本申请实施例对此不做限定。Optionally, the target interface displayed in the first screen area may include an interface with a preset pattern or a solid color interface, which is not limited in this embodiment of the present application.
示意性的,如图15所示,对用户折叠处于竖屏展开状态的折叠屏终端,使其处于悬停状态时,折叠屏终端获取应用在横屏状态下的显示尺寸,然后基于第二屏幕区域1502的尺寸对横屏状态下的应用界面进行比例缩放,使横屏状态下的应用界面适配第二屏幕区域1502的区域尺寸,在进行适配时,第二屏幕区域1502会显示提示画面,提示用户终端正在对应用的应用界面进行悬停模式的适配。当应用界面适配完成后,第二屏幕区域1502会对适配后的应用界面进行显示,而第一屏幕区域1501则处于熄屏状态。Schematically, as shown in Figure 15, when the user folds the folding screen terminal in the vertical screen unfolded state so that it is in the hovering state, the folding screen terminal obtains the display size of the application in the horizontal screen state, and then based on the second screen The size of the
请参考图16,其示出了本申请一个实施例提供的应用控制装置的结构框图。该装置用于折叠屏终端,折叠屏终端的折叠屏包括第一屏幕区域和第二屏幕区域,装置包括:Please refer to FIG. 16 , which shows a structural block diagram of an application control device provided by an embodiment of the present application. The device is used in a folding screen terminal. The folding screen of the folding screen terminal includes a first screen area and a second screen area. The device includes:
显示模块1601,用于在悬停状态下,在所述第二屏幕区域显示应用的应用界面,所述悬停状态下,所述第一屏幕区域和所述第二屏幕区域的夹角小于第一夹角阈值,且大于第二夹角阈值;The
控制模块1602,用于在接收到对所述第一屏幕区域的触控操作的情况下,基于所述触控操作控制所述应用。The
可选的,所述控制模块1602,用于:Optionally, the
在接收到对所述第一屏幕区域的触控操作,且所述触控操作位于防误触区域外的情况下,基于所述触控操作控制所述应用,所述防误触区域位于所述第一屏幕区域的边缘区域。When a touch operation on the first screen area is received and the touch operation is located outside the false touch prevention area, the application is controlled based on the touch operation, and the false touch prevention area is located in the false touch prevention area. edge area of the first screen area.
可选的,所述装置还包括:Optionally, the device also includes:
屏蔽模块,用于在接收到对所述第一屏幕的触控操作,且所述触控操作位于所述防误触区域内的情况下,屏蔽所述触控操作。The shielding module is configured to shield the touch operation when the touch operation on the first screen is received and the touch operation is located in the false touch prevention area.
可选的,所述控制模块1602,还用于:Optionally, the
在接收到对所述第一屏幕区域的触控操作,且所述触控操作位于所述防误触区域外的情况下,确定所述触控操作所作用操作区域对应的目标操作类型,所述目标操作类型为操作区域内支持响应的操作类型;When a touch operation on the first screen area is received and the touch operation is located outside the false touch prevention area, determine a target operation type corresponding to the operation area on which the touch operation is applied, and The target operation type mentioned above is the operation type that supports the response in the operation area;
在所述触控操作的操作类型属于所述目标操作类型的情况下,基于所述触控操作控制所述应用。When the operation type of the touch operation belongs to the target operation type, the application is controlled based on the touch operation.
可选的,所述装置还包括:Optionally, the device also includes:
屏蔽模块,用于在所述触控操作的操作类型不属于所述目标操作类型的情况下,屏蔽所述触控操作。A shielding module, configured to shield the touch operation when the operation type of the touch operation does not belong to the target operation type.
可选的,所述控制模块1602,还用于:Optionally, the
在接收到对所述第一屏幕区域的触控操作,且所述触控操作位于所述防误触区域以及事件屏蔽区域外 的情况下,基于所述触控操作控制所述应用,所述事件屏蔽区域与所述第二屏幕区域中控件的显示区域相对应。When a touch operation on the first screen area is received, and the touch operation is located outside the false touch prevention area and the event shielding area, control the application based on the touch operation, the The event shielding area corresponds to the display area of the controls in the second screen area.
可选的,所述装置包括:Optionally, the device includes:
全屏显示模块,用于在展开状态下,在所述第一屏幕区域和所述第二屏幕区域显示所述应用的应用界面,所述展开状态下,所述第一屏幕区域与所述第二屏幕区域的夹角大于所述第一夹角阈值;A full-screen display module, configured to display the application interface of the application in the first screen area and the second screen area in the expanded state, and in the expanded state, the first screen area and the second screen area The included angle of the screen area is greater than the first included angle threshold;
所述显示模块1601,还用于:The
在由所述展开状态切换为所述悬停状态的情况下,在所述第二屏幕区域显示所述应用的应用界面,并控制所述第一屏幕区域停止显示所述应用的应用界面。When switching from the expanded state to the hovering state, display the application interface of the application in the second screen area, and control the first screen area to stop displaying the application interface of the application.
可选的,所述折叠屏终端还包括辅显示屏,所述辅显示屏独立于所述折叠屏;Optionally, the folding screen terminal further includes an auxiliary display screen, and the auxiliary display screen is independent of the folding screen;
所述装置还包括:The device also includes:
折叠显示模块,用于在折叠状态下,在所述辅显示屏显示所述应用的应用界面,所述折叠状态下,所述辅显示屏外露,所述第一屏幕区域与所述第二屏幕的夹角小于所述第二夹角阈值;The folding display module is configured to display the application interface of the application on the auxiliary display screen in the folded state, the auxiliary display screen is exposed in the folded state, and the first screen area and the second screen area The included angle is smaller than the second included angle threshold;
所述显示模块1601,还用于:The
在由所述折叠状态切换为所述悬停状态的情况下,在所述第二屏幕区域显示所述应用的应用界面,并控制所述辅显示屏停止显示所述应用的应用界面。In the case of switching from the folded state to the hovering state, the application interface of the application is displayed in the second screen area, and the auxiliary display screen is controlled to stop displaying the application interface of the application.
可选的,所述控制模块1602,包括:Optionally, the
生成单元,用于基于所述触控操作生成第一触控事件;a generating unit, configured to generate a first touch event based on the touch operation;
转换单元,用于基于所述第一屏幕区域与所述第二屏幕区域的映射关系,将所述第一触控事件转换为第二触控事件;a conversion unit, configured to convert the first touch event into a second touch event based on the mapping relationship between the first screen area and the second screen area;
控制单元,用于基于所述第二触控事件控制所述应用。A control unit, configured to control the application based on the second touch event.
可选的,所述第一触控事件中包含所述触控操作的触控坐标;Optionally, the first touch event includes touch coordinates of the touch operation;
所述转换单元,用于:The conversion unit is used for:
基于所述第一屏幕区域与所述第二屏幕区域的映射关系,对所述第一触控事件中的所述触控坐标进行坐标转换,并根据转换得到的触控坐标确定所述第二触控事件,其中,转换后的触控坐标位于所述第二屏幕区域。Based on the mapping relationship between the first screen area and the second screen area, perform coordinate conversion on the touch coordinates in the first touch event, and determine the second touch coordinates according to the converted touch coordinates. A touch event, wherein the converted touch coordinates are located in the second screen area.
可选的,所述第一屏幕区域具有触控映射模式,所述触控映射模式下所述第一屏幕区域的触控操作被映射至所述第二屏幕区域,以实现基于所述第一屏幕区域的触控操作控制所述应用;所述装置还包括:Optionally, the first screen area has a touch mapping mode, and in the touch mapping mode, touch operations on the first screen area are mapped to the second screen area, so as to realize The touch operation of the screen area controls the application; the device also includes:
设置模块,用于在所述悬停状态下,将所述第一屏幕区域的触控映射模式设置为激活状态。A setting module, configured to set the touch mapping mode of the first screen area to an active state in the hovering state.
可选的,所述装置还包括:Optionally, the device also includes:
第一切换模块,用于若在预设时长内未接收到对所述第一屏幕区域的所述触控操作,则将所述触控映射模式由激活状态切换为休眠状态。The first switching module is configured to switch the touch mapping mode from an active state to a dormant state if the touch operation on the first screen area is not received within a preset time period.
可选的,所述装置还包括:Optionally, the device also includes:
第二切换模块,用于在接收到对所述第一屏幕区域的激活操作的情况下,将所述触控映射模式由休眠状态切换为激活状态。The second switching module is configured to switch the touch mapping mode from a dormant state to an active state when an activation operation on the first screen area is received.
可选的,所述显示模块1601,用于:Optionally, the
获取横屏状态下的所述应用界面;Obtain the application interface in the horizontal screen state;
基于所述第二屏幕区域的尺寸对横屏状态下的所述应用界面进行适配处理,得到适配后的所述应用界面;Adapting the application interface in the horizontal screen state based on the size of the second screen area to obtain the adapted application interface;
在所述第二屏幕区域显示适配后的所述应用界面。The adapted application interface is displayed in the second screen area.
可选的,所述悬停状态下,所述第一屏幕区域处于熄屏状态;或,显示目标界面,所述目标界面不同于所述应用界面。Optionally, in the hovering state, the first screen area is in a screen-off state; or, a target interface is displayed, and the target interface is different from the application interface.
可选的,所述第一屏幕区域为所述悬停状态下处于平放姿态的屏幕区域,且所述第二屏幕区域为所述悬停状态下处于竖屏姿态的屏幕区域。Optionally, the first screen area is a screen area in a flat posture in the hovering state, and the second screen area is a screen area in a vertical screen posture in the hovering state.
可选的,所述显示模块1601,还用于:Optionally, the
在所述第一屏幕区域切换为竖屏姿态,且所述第二屏幕区域切换为平放姿态的情况下,在所述第一屏幕区域显示所述应用的应用界面;When the first screen area is switched to a vertical screen posture, and the second screen area is switched to a flat posture, displaying the application interface of the application on the first screen area;
所述控制模块1602,还用于在接收到对所述第二屏幕区域的触控操作的情况下,基于所述触控操作控制所述应用。The
可选的,所述应用为多媒体应用;Optionally, the application is a multimedia application;
所述控制模块1602,包括:The
第一控制单元,用于在接收到对所述第一屏幕区域的横向滑动操作的情况下,基于所述横向滑动操作的滑动方向以及滑动距离控制所述多媒体应用的多媒体播放进度;或,A first control unit, configured to control the multimedia playing progress of the multimedia application based on the sliding direction and the sliding distance of the horizontal sliding operation when receiving a horizontal sliding operation on the first screen area; or,
第二控制单元,用于在接收到对所述第一屏幕区域的纵向滑动操作的情况下,基于所述纵向滑动操作的滑动方向以及滑动距离控制所述多媒体应用的多媒体播放参数,所述多媒体播放参数包括播放音量或显示亮度中的至少一种;或,The second control unit is configured to control the multimedia playing parameters of the multimedia application based on the sliding direction and the sliding distance of the vertical sliding operation in the case of receiving a vertical sliding operation on the first screen area, the multimedia The playback parameters include at least one of playback volume or display brightness; or,
第三控制单元,用于在接收到对所述第一屏幕区域的点击操作的情况下,基于所述点击操作控制多媒体状态,所述多媒体状态包括播放状态和暂停状态;或,A third control unit, configured to, in the case of receiving a click operation on the first screen area, control a multimedia state based on the click operation, where the multimedia state includes a play state and a pause state; or,
第四控制单元,用于在接收到对所述第一屏幕区域的长按操作的情况下,基于所述长按操作控制多媒体播放速度。The fourth control unit is configured to, in the case of receiving a long press operation on the first screen area, control the multimedia playback speed based on the long press operation.
综上所述,本申请实施例中,折叠屏终端处于悬停状态时,终端控制应用的应用界面仅在第二屏幕区域进行显示,并接收作用于第一屏幕区域的触控操作,从而基于该触控操作对第二屏幕区域显示的应用进行控制。采用本申请实施例提供的方案,用户无需在显示应用界面的屏幕区域进行触控操作,也可以实现应用控制,提高了应用控制的灵活性;并且,相较于直接在第二屏幕区域进行触控操作,在第一屏幕区域进行触控操作有助于提高悬停状态下折叠屏终端的稳定性,降低触控过程中折叠屏终端倾倒的概率。To sum up, in the embodiment of the present application, when the folding screen terminal is in the hovering state, the application interface of the terminal control application is only displayed in the second screen area, and receives touch operations acting on the first screen area, so that based on The touch operation controls the applications displayed in the second screen area. By adopting the solution provided by the embodiment of the present application, the user can realize application control without performing touch operations on the screen area where the application interface is displayed, which improves the flexibility of application control; and, compared with directly performing touch operations on the second screen area Touch operation in the first screen area helps to improve the stability of the folding screen terminal in the hovering state, and reduces the probability of the folding screen terminal tipping over during the touch process.
本申请实施例还提供了一种计算机可读介质,该计算机可读介质存储有至少一条指令,所述至少一条指令由处理器加载并执行以实现如上各个实施例所述的应用控制方法。The embodiment of the present application also provides a computer-readable medium, the computer-readable medium stores at least one instruction, and the at least one instruction is loaded and executed by a processor to implement the application control method described in each of the above embodiments.
本申请实施例提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述方面提供的应用控制方法。An embodiment of the present application provides a computer program product or computer program, where the computer program product or computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the application control method provided by the above aspect.
本领域技术人员应该可以意识到,在上述一个或多个示例中,本申请实施例所描述的功能可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些功能存储在计算机可读介质中或者作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。Those skilled in the art should be aware that, in the foregoing one or more examples, the functions described in the embodiments of the present application may be implemented by hardware, software, firmware or any combination thereof. When implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
以上所述仅为本申请的可选实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above are only optional embodiments of the application, and are not intended to limit the application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the application shall be included in the protection of the application. within range.
Claims (22)
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111313561.3A CN116107482B (en) | 2021-11-08 | 2021-11-08 | Application control methods, devices, terminals, storage media, and computer program products |
| CN202111313561.3 | 2021-11-08 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2023078211A1 true WO2023078211A1 (en) | 2023-05-11 |
Family
ID=86240649
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2022/128686 Ceased WO2023078211A1 (en) | 2021-11-08 | 2022-10-31 | Application control method and device, terminal, storage medium, and computer program product |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN116107482B (en) |
| WO (1) | WO2023078211A1 (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2025251317A1 (en) * | 2024-06-07 | 2025-12-11 | 荣耀终端股份有限公司 | Touch operation response method, electronic device and readable storage medium |
| CN121387169A (en) * | 2024-07-12 | 2026-01-23 | 荣耀终端股份有限公司 | Display method, folding screen device, storage medium, and program product |
| CN120723355A (en) * | 2025-05-15 | 2025-09-30 | 华为技术有限公司 | Window switching display method and electronic device |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20160132074A1 (en) * | 2014-11-10 | 2016-05-12 | Lg Electronics Inc. | Mobile terminal and method for controlling the same |
| CN110389802A (en) * | 2019-06-05 | 2019-10-29 | 华为技术有限公司 | Display method of flexible screen and electronic equipment |
| WO2021082564A1 (en) * | 2019-10-31 | 2021-05-06 | 华为技术有限公司 | Operation prompt method and electronic device |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20130227472A1 (en) * | 2012-02-29 | 2013-08-29 | Joseph W. Sosinski | Device, Method, and Graphical User Interface for Managing Windows |
| JP6559403B2 (en) * | 2014-05-19 | 2019-08-14 | シャープ株式会社 | Content display device, content display method, and program |
| CN108459790A (en) * | 2018-05-01 | 2018-08-28 | 苏州鸥鹄智能科技有限公司 | A kind of electronic equipment touch-control exchange method |
| CN111831198B (en) * | 2019-04-22 | 2022-01-25 | 成都鼎桥通信技术有限公司 | Double-screen touch method and device |
| CN115297199B (en) * | 2019-08-30 | 2025-02-14 | 华为技术有限公司 | A touch control method for a device with a folding screen and a folding screen device |
-
2021
- 2021-11-08 CN CN202111313561.3A patent/CN116107482B/en active Active
-
2022
- 2022-10-31 WO PCT/CN2022/128686 patent/WO2023078211A1/en not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20160132074A1 (en) * | 2014-11-10 | 2016-05-12 | Lg Electronics Inc. | Mobile terminal and method for controlling the same |
| CN110389802A (en) * | 2019-06-05 | 2019-10-29 | 华为技术有限公司 | Display method of flexible screen and electronic equipment |
| CN113157130A (en) * | 2019-06-05 | 2021-07-23 | 华为技术有限公司 | Display method of flexible screen and electronic equipment |
| CN113268196A (en) * | 2019-06-05 | 2021-08-17 | 华为技术有限公司 | Display method of flexible screen and electronic equipment |
| WO2021082564A1 (en) * | 2019-10-31 | 2021-05-06 | 华为技术有限公司 | Operation prompt method and electronic device |
Also Published As
| Publication number | Publication date |
|---|---|
| CN116107482B (en) | 2026-04-03 |
| CN116107482A (en) | 2023-05-12 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN109164964B (en) | Content sharing method and device, terminal and storage medium | |
| US20210342045A1 (en) | User Interface Display Method, Terminal and Non-Transitory Computer-Readable Storage Medium | |
| CN107728901B (en) | Interface display method and device and terminal | |
| CN107831999B (en) | Screen control method and device and terminal | |
| WO2019233306A1 (en) | Icon display method, device and terminal | |
| WO2021203821A1 (en) | Page manipulation method and device, storage medium, and terminal | |
| WO2019174477A1 (en) | User interface display method and device, and terminal | |
| WO2023078211A1 (en) | Application control method and device, terminal, storage medium, and computer program product | |
| WO2019047147A1 (en) | Icon moving method and device | |
| US11061558B2 (en) | Touch operation response method and device | |
| CN108804190A (en) | User interface display method, device, terminal and storage medium | |
| CN107589900A (en) | Split-screen display method, device, terminal and storage medium | |
| CN107562361A (en) | Message processing method and device and terminal | |
| CN108762619A (en) | buoy display method, device, terminal and storage medium | |
| CN107728810B (en) | Terminal control method, device, terminal and storage medium | |
| CN114779987B (en) | Method, device, terminal and storage medium for displaying content | |
| CN107562316A (en) | Interface display method, device and terminal | |
| CN107656578A (en) | terminal control method, device, terminal and storage medium | |
| US11086442B2 (en) | Method for responding to touch operation, mobile terminal, and storage medium | |
| CN107608551B (en) | Touch operation response method and device | |
| CN106095309A (en) | Terminal operation control method and device | |
| CN107577415A (en) | Touch operation response method and device | |
| CN107608550A (en) | Touch operation response method and device | |
| WO2023030506A1 (en) | Content display method and apparatus, and terminal and storage medium | |
| US11194425B2 (en) | Method for responding to touch operation, mobile terminal, and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22889236 Country of ref document: EP Kind code of ref document: A1 |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 22889236 Country of ref document: EP Kind code of ref document: A1 |