CN118193092A - Display method and electronic equipment - Google Patents
Display method and electronic equipment Download PDFInfo
- Publication number
- CN118193092A CN118193092A CN202211608702.9A CN202211608702A CN118193092A CN 118193092 A CN118193092 A CN 118193092A CN 202211608702 A CN202211608702 A CN 202211608702A CN 118193092 A CN118193092 A CN 118193092A
- Authority
- CN
- China
- Prior art keywords
- window
- electronic device
- screen
- interface
- application
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- 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/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
- G06F3/04842—Selection of displayed objects or displayed text elements
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Description
技术领域Technical Field
本申请实施例涉及终端设备领域,更具体地,涉及一种显示方法和电子设备。The embodiments of the present application relate to the field of terminal devices, and more specifically, to a display method and an electronic device.
背景技术Background technique
随着电子通信技术的发展,电子设备的功能和应用日益丰富和人性化,为了满足用户的个性化需求,越来越多的电子设备支持多窗口模式,即在一个显示屏上显示并运行多个应用程序。With the development of electronic communication technology, the functions and applications of electronic devices are becoming increasingly rich and user-friendly. In order to meet the personalized needs of users, more and more electronic devices support multi-window mode, that is, displaying and running multiple applications on one display screen.
在一些情况下,用户可能需要获得应用界面的内容或与界面内容相关的信息并进一步分享或记录,例如通过截屏、录屏或屏幕识别等功能获取应用界面的信息或内容,保存在本地或分享给其他用户,但是现有的截屏、录屏或屏幕识别等功能都是针对整个屏幕的,且操作过程繁琐,降低了用户体验。In some cases, users may need to obtain the content of the application interface or information related to the interface content and further share or record it. For example, they can obtain the information or content of the application interface through functions such as screenshot, screen recording, or screen recognition, save it locally, or share it with other users. However, existing functions such as screenshot, screen recording, or screen recognition are all for the entire screen, and the operation process is cumbersome, which reduces the user experience.
发明内容Summary of the invention
本申请实施例提供一种显示方法和电子设备,能够使得多窗口模式下,用户需要通过其中一个窗口分享或记录其他窗口的信息或内容时,提高操作的便捷性与用户的体验感。The embodiments of the present application provide a display method and an electronic device, which can improve the convenience of operation and the user experience when a user needs to share or record information or content of other windows through one window in a multi-window mode.
第一方面,提供了一种显示方法,该显示方法应用于电子设备,该方法包括:显示第一界面,所述第一界面包括第一窗口和第二窗口,所述第一窗口是允许信息插入的窗口;接收用户对所述第一窗口的第一用户输入;根据所述第一用户输入,对所述第二窗口执行第一操作;将与所述第一操作的执行结果对应的信息插入所述第一窗口。In a first aspect, a display method is provided, which is applied to an electronic device, the method comprising: displaying a first interface, the first interface comprising a first window and a second window, the first window being a window allowing information insertion; receiving a first user input to the first window; performing a first operation on the second window according to the first user input; and inserting information corresponding to the execution result of the first operation into the first window.
在该实施例中,电子设备显示的第一界面包括第一窗口和第二窗口,当用户对第一窗口进行第一用户输入时,电子设备可以确定第一用户输入的目标窗口为第二窗口,并对该第二窗口执行第一操作,之后可以将该第一操作的执行结果对应的信息插入到第一窗口中。第一操作的执行结果对应的信息可以为文字、链接或文件,由于第一操作的执行结果对应的信息直接插入到该窗口中,减少了用户操作的步骤,提高了便捷性。In this embodiment, the first interface displayed by the electronic device includes a first window and a second window. When the user performs a first user input on the first window, the electronic device can determine that the target window of the first user input is the second window, and perform a first operation on the second window, and then insert information corresponding to the execution result of the first operation into the first window. The information corresponding to the execution result of the first operation can be text, a link or a file. Since the information corresponding to the execution result of the first operation is directly inserted into the window, the steps of user operation are reduced and the convenience is improved.
在一些实施例中,第一窗口可以包括输入框,当第一操作的执行结果对应的信息为文字或链接时,该文字或链接可以直接被插入该输入框中;当第一操作的执行结果对应的信息为文件时,该文件的图标可以被插入到输入框中,或者该文件的图标也可以在该界面上显示。In some embodiments, the first window may include an input box. When the information corresponding to the execution result of the first operation is text or a link, the text or link can be directly inserted into the input box; when the information corresponding to the execution result of the first operation is a file, the icon of the file can be inserted into the input box, or the icon of the file can also be displayed on the interface.
在另一些实施例中,该第一窗口可以不包括输入框,但是该窗口可以允许插入文件。示意性的,该窗口可以为文件压缩应用的窗口,用户一般情况下可以通过拖动文件或者从文件库中选择文件,将文件放入待压缩区并进行压缩。对于本申请实施例的分屏场景,用户进行第一操作后,电子设备可以直接将第一操作的目标窗口确定为第二窗口,并将第一操作的执行结果对应的文件插入到该待压缩区内,用户后续可以直接点击压缩。In other embodiments, the first window may not include an input box, but the window may allow files to be inserted. Schematically, the window may be a window of a file compression application, and the user can generally drag the file or select the file from the file library to place the file in the area to be compressed and compress it. For the split-screen scenario of the embodiment of the present application, after the user performs the first operation, the electronic device can directly determine the target window of the first operation as the second window, and insert the file corresponding to the execution result of the first operation into the area to be compressed, and the user can directly click to compress it later.
除了第一窗口的应用可以为文件压缩应用,该第一窗口还可以为邮件应用,例如第一窗口显示的是邮件应用的主界面,该主界面上可以没有输入框,但是用户可以通过拖动等方式到主界面的各个功能区,例如拖动到收件箱,可以触发打开新邮件编辑界面,并直接将该文件插入到该新邮件编辑窗口。对于本申请实施例的分屏场景,当用户进行第一操作时,邮件应用可以默认打开新邮件编辑界面,并直接将该第一操作的执行结果对应的文件插入到该第一窗口中的新邮件编辑界面中。In addition to the application in the first window being a file compression application, the first window can also be an email application. For example, the first window displays the main interface of the email application. There may be no input box on the main interface, but the user can trigger the opening of a new email editing interface by dragging to various functional areas of the main interface, such as dragging to the inbox, and directly insert the file into the new email editing window. For the split-screen scenario of the embodiment of the present application, when the user performs the first operation, the email application can open the new email editing interface by default, and directly insert the file corresponding to the execution result of the first operation into the new email editing interface in the first window.
应理解,该第一窗口的应用还可以为其他允许信息插入的应用,此处不再赘述。It should be understood that the application of the first window may also be other applications that allow information insertion, which will not be described in detail here.
示例性的,第一用户输入可以为对控件的点击输入或者在第一窗口的界面上进行的手势输入等,第一操作可以为截屏操作、录屏操作或屏幕识别操作,电子设备可以在接收到用户的输入后,直接将截屏图片文件、录屏视频文件或屏幕识别的文字、链接或文件直接插入到第一窗口中,便于用户的记录或后续的分享,另外,由于该第一操作是直接针对用户所需的第二窗口的,减少了用户的其他编辑动作(例如对截屏图片的裁剪等),提高了用户的体验感。结合第一方面,在第一方面的某些实现方式中,所述第一操作为截屏操作、录屏操作、屏幕识别操作或声音识别操作中的任意一项或多项;当所述第一操作是截屏操作时,所述第一操作的执行结果对应的信息是根据所述截屏操作获得的图片文件;或者,当所述第一操作是录屏操作时,所述第一操作的执行结果对应的信息是根据所述录屏操作获得的视频文件;或者,当所述第一操作是屏幕识别操作时,所述第一操作的执行结果对应的信息是根据所述屏幕识别操作获得的文字或链接中的至少一项,所述屏幕识别操作包括文字识别或对象识别;或者,当所述第一操作是所述声音识别操作时,所述第一操作的执行结果对应的信息是根据所述声音识别操作获得的音乐文件或文字信息中的至少一项。Exemplarily, the first user input may be a click input on a control or a gesture input on the interface of the first window, and the first operation may be a screenshot operation, a screen recording operation, or a screen recognition operation. After receiving the user's input, the electronic device may directly insert the screenshot image file, the screen recording video file, or the screen-recognized text, link, or file into the first window to facilitate the user's recording or subsequent sharing. In addition, since the first operation is directly targeted at the second window required by the user, other editing actions of the user (such as cropping of the screenshot image, etc.) are reduced, thereby improving the user experience. In combination with the first aspect, in some implementations of the first aspect, the first operation is any one or more of a screenshot operation, a screen recording operation, a screen recognition operation, or a sound recognition operation; when the first operation is a screenshot operation, the information corresponding to the execution result of the first operation is a picture file obtained according to the screenshot operation; or, when the first operation is a screen recording operation, the information corresponding to the execution result of the first operation is a video file obtained according to the screen recording operation; or, when the first operation is a screen recognition operation, the information corresponding to the execution result of the first operation is at least one of text or links obtained according to the screen recognition operation, and the screen recognition operation includes text recognition or object recognition; or, when the first operation is the sound recognition operation, the information corresponding to the execution result of the first operation is at least one of music files or text information obtained according to the sound recognition operation.
当第一操作是对第二窗口的音乐识别操作时,第一操作的执行结果对应的信息也可以为音乐的链接。When the first operation is a music recognition operation on the second window, the information corresponding to the execution result of the first operation may also be a link to the music.
结合第一方面,在第一方面的某些实现方式中,第一窗口包括第一控件,所述第一用户输入是对所述第一控件的点击操作。In combination with the first aspect, in some implementations of the first aspect, the first window includes a first control, and the first user input is a click operation on the first control.
在该实施例中,第一控件设置在第一窗口的应用界面上,用户点击该控件时,第一窗口的应用或者电子设备的操作系统可以确定用户点击该控件进行操作的目标窗口为第二窗口。例如,可以由第一窗口的应用根据第一窗口的坐标确定第一操作的目标窗口的坐标,并向电子设备的操作系统传递该坐标,操作系统的相应模块可以根据该坐标对第二窗口进行第一操作,并将该第一操作的执行结果对应的信息直接插入第一窗口或第一窗口的输入框中,提高了用户的体验感。或者,可以由电子设备的操作系统根据第一窗口的位置或坐标确定第二窗口的位置或坐标,并对第二窗口进行第一操作;也可以由电子设备的操作系统直接根据窗口管理的相关信息确定该第二窗口的位置或坐标。In this embodiment, the first control is set on the application interface of the first window. When the user clicks the control, the application of the first window or the operating system of the electronic device can determine that the target window for the user to click the control to operate is the second window. For example, the application of the first window can determine the coordinates of the target window of the first operation according to the coordinates of the first window, and transmit the coordinates to the operating system of the electronic device. The corresponding module of the operating system can perform the first operation on the second window according to the coordinates, and directly insert the information corresponding to the execution result of the first operation into the first window or the input box of the first window, thereby improving the user experience. Alternatively, the operating system of the electronic device can determine the position or coordinates of the second window according to the position or coordinates of the first window, and perform the first operation on the second window; the operating system of the electronic device can also directly determine the position or coordinates of the second window according to the relevant information of window management.
结合第一方面,在第一方面的某些实现方式中,所述第一用户输入是在所述第一窗口的界面上的手势输入。In combination with the first aspect, in some implementations of the first aspect, the first user input is a gesture input on an interface of the first window.
可选的,第一用户输入还可以为电子设备上与第一操作对应的快捷键、下拉框等,本申请不限制与第一操作对应的第一用户输入的形式。Optionally, the first user input may also be a shortcut key, a drop-down box, etc. corresponding to the first operation on the electronic device. The present application does not limit the form of the first user input corresponding to the first operation.
结合第一方面,在第一方面的某些实现方式中,所述第一界面仅包括两个窗口且所述第一窗口和所述第二窗口为所述电子设备的分屏界面的两个窗口。In combination with the first aspect, in some implementations of the first aspect, the first interface includes only two windows, and the first window and the second window are two windows of a split-screen interface of the electronic device.
结合第一方面,在第一方面的某些实现方式中,在所述对所述第二窗口执行所述第一操作之前,所述方法还包括:根据所述第一窗口的位置,确定所述第二窗口的位置;其中,所述对所述第二窗口执行所述第一操作,包括:根据所述第二窗口的位置,对所述第二窗口执行所述第一操作。In combination with the first aspect, in certain implementations of the first aspect, before performing the first operation on the second window, the method also includes: determining the position of the second window based on the position of the first window; wherein performing the first operation on the second window includes: performing the first operation on the second window based on the position of the second window.
在该实施例中,当第一界面上包括两个窗口时,可以根据其中一个窗口的坐标确定另一个窗口的坐标。确定第二窗口的位置这一操作可以由第一窗口的应用或电子设备的操作系统执行,这样第一窗口的应用可以将第二窗口的位置或者坐标传递给电子设备的操作系统,继而由操作系统对第二窗口执行第一操作。In this embodiment, when the first interface includes two windows, the coordinates of the other window can be determined according to the coordinates of one of the windows. The operation of determining the position of the second window can be performed by the application of the first window or the operating system of the electronic device, so that the application of the first window can transmit the position or coordinates of the second window to the operating system of the electronic device, and then the operating system performs the first operation on the second window.
结合第一方面,在第一方面的某些实现方式中,所述第一界面还包括第三窗口,在所述对所述第二窗口执行第一操作之前,所述方法还包括:提示用户确定所述第一操作的目标窗口;接收用户的第二用户输入,所述第二用户输入用于确定所述目标窗口为所述第二窗口。In combination with the first aspect, in certain implementations of the first aspect, the first interface also includes a third window, and before performing the first operation on the second window, the method also includes: prompting the user to determine the target window of the first operation; receiving a second user input from the user, the second user input being used to determine that the target window is the second window.
在该实施例中,当电子设备显示的第一界面包括两个以上窗口时,电子设备可以在用户进行第一用户输入之后,向用户提示确定第一操作的目标窗口,用户可以进行第二用户输入从而确定第一操作的目标窗口为第二窗口。因此,本申请实施例的技术方案可以应用在多窗口场景下,应用范围较广。In this embodiment, when the first interface displayed by the electronic device includes more than two windows, the electronic device can prompt the user to determine the target window of the first operation after the user performs the first user input, and the user can perform the second user input to determine that the target window of the first operation is the second window. Therefore, the technical solution of the embodiment of the present application can be applied in a multi-window scenario and has a wide range of applications.
结合第一方面,在第一方面的某些实现方式中,所述第一窗口对应的应用为笔记应用或备忘录应用。In combination with the first aspect, in some implementations of the first aspect, the application corresponding to the first window is a note application or a memo application.
在该实施例中,第一窗口的应用为笔记应用或备忘录应用,第一窗口的应用还可以为文档应用、聊天应用等,这样用户使用这一类应用时,可以便捷地在应用中记录或分享其他窗口的信息,例如其他窗口的截屏文件、视频等,提高了记录的快捷性与用户的体验感。In this embodiment, the application of the first window is a note application or a memo application. The application of the first window can also be a document application, a chat application, etc., so that when the user uses this type of application, he can conveniently record or share information of other windows in the application, such as screenshots and videos of other windows, thereby improving the speed of recording and the user experience.
结合第一方面,在第一方面的某些实现方式中,所述第二窗口对应的应用为视频应用或文档应用。In combination with the first aspect, in some implementations of the first aspect, the application corresponding to the second window is a video application or a document application.
第二方面,提供了一种电子设备,包括:显示单元,用于显示第一界面,所述第一界面包括第一窗口和第二窗口,所述第一窗口是允许信息插入的窗口;处理单元,用于:接收用户对所述第一窗口的第一用户输入;根据所述第一用户输入,对所述第二窗口执行第一操作;将与所述第一操作的执行结果对应的信息插入所述第一窗口。In a second aspect, an electronic device is provided, comprising: a display unit, used to display a first interface, the first interface comprising a first window and a second window, the first window being a window allowing information insertion; a processing unit, used to: receive a first user input to the first window; perform a first operation on the second window according to the first user input; and insert information corresponding to the execution result of the first operation into the first window.
结合第二方面,在第二方面的某些实现方式中,所述第一操作为截屏操作、录屏操作、屏幕识别操作或声音识别操作中的任意一项或多项;当所述第一操作是截屏操作时,所述第一操作的执行结果对应的信息是根据所述截屏操作获得的图片文件;或者,当所述第一操作是录屏操作时,所述第一操作的执行结果对应的信息是根据所述录屏操作获得的视频文件;或者,当所述第一操作是屏幕识别操作时,所述第一操作的执行结果对应的信息是根据所述屏幕识别操作获得的文字或链接中的至少一项,所述屏幕识别操作包括文字识别或对象识别;或者,当所述第一操作是所述声音识别操作时,所述第一操作的执行结果对应的信息是根据所述声音是被获得的音乐文件或文字信息中的至少一项。In combination with the second aspect, in some implementations of the second aspect, the first operation is any one or more of a screenshot operation, a screen recording operation, a screen recognition operation, or a sound recognition operation; when the first operation is a screenshot operation, the information corresponding to the execution result of the first operation is a picture file obtained according to the screenshot operation; or, when the first operation is a screen recording operation, the information corresponding to the execution result of the first operation is a video file obtained according to the screen recording operation; or, when the first operation is a screen recognition operation, the information corresponding to the execution result of the first operation is at least one of text or links obtained according to the screen recognition operation, and the screen recognition operation includes text recognition or object recognition; or, when the first operation is the sound recognition operation, the information corresponding to the execution result of the first operation is at least one of a music file or text information obtained according to the sound.
结合第二方面,在第二方面的某些实现方式中,所述第一窗口包括第一控件,所述第一用户输入是对所述第一控件的点击操作。In combination with the second aspect, in some implementations of the second aspect, the first window includes a first control, and the first user input is a click operation on the first control.
结合第二方面,在第二方面的某些实现方式中,所述第一用户输入是在所述第一窗口的界面上的手势输入。In combination with the second aspect, in some implementations of the second aspect, the first user input is a gesture input on the interface of the first window.
结合第二方面,在第二方面的某些实现方式中,所述第一界面仅包括两个窗口且所述第一窗口和所述第二窗口为所述电子设备的分屏界面的两个窗口。In combination with the second aspect, in some implementations of the second aspect, the first interface includes only two windows, and the first window and the second window are two windows of a split-screen interface of the electronic device.
结合第二方面,在第二方面的某些实现方式中,所述处理单元,还用于:根据所述第一窗口的位置,确定所述第二窗口的位置;所述处理单元,具体用于:根据所述第二窗口的位置,对所述第二窗口执行所述第一操作。In combination with the second aspect, in some implementations of the second aspect, the processing unit is further used to: determine the position of the second window based on the position of the first window; the processing unit is specifically used to: perform the first operation on the second window based on the position of the second window.
结合第二方面,在第二方面的某些实现方式中,所述第一界面还包括第三窗口,所述处理单元,还用于:提示用户确定所述第一操作的目标窗口;接收用户的第二用户输入,所述第二用户输入用于确定所述目标窗口为所述第二窗口。In combination with the second aspect, in certain implementations of the second aspect, the first interface also includes a third window, and the processing unit is further used to: prompt the user to determine the target window of the first operation; receive the user's second user input, and the second user input is used to determine that the target window is the second window.
结合第二方面,在第二方面的某些实现方式中,所述第一窗口对应的应用为笔记应用或备忘录应用。In combination with the second aspect, in some implementations of the second aspect, the application corresponding to the first window is a note application or a memo application.
结合第二方面,在第二方面的某些实现方式中,所述第二窗口对应的应用为视频应用或文档应用。In combination with the second aspect, in some implementations of the second aspect, the application corresponding to the second window is a video application or a document application.
第三方面,提供了一种计算机存储介质,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如第一方面或第一方面任一种实现方式所述的方法。According to a third aspect, a computer storage medium is provided. When the computer instructions are executed on an electronic device, the electronic device executes the method according to the first aspect or any one of the implementations of the first aspect.
第四方面,提供了一种电子设备,包括:存储器,用于存储计算机指令;处理器,用于执行所述存储器中存储的计算机指令,以使所述电子设备执行如第一方面或第一方面任一种实现方式所述的方法。In a fourth aspect, an electronic device is provided, comprising: a memory for storing computer instructions; and a processor for executing the computer instructions stored in the memory, so that the electronic device executes the method described in the first aspect or any one of the implementations of the first aspect.
第五方面,提供了一种芯片系统,其特征在于,包括至少一个处理器,当程序指令在所述至少一个处理器中执行时,使得所述至少一个处理器执行如第一方面或第一方面任一种实现方式所述的方法。In a fifth aspect, a chip system is provided, characterized in that it comprises at least one processor, and when program instructions are executed in the at least one processor, the at least one processor executes the method described in the first aspect or any one implementation of the first aspect.
第六方面,提供了一种芯片,所述芯片包括处理器与数据接口,所述处理器通过所述数据接口读取存储器上存储的指令,执行上述第一方面以及第一方面的任一种可能实现方式所述的方法。In a sixth aspect, a chip is provided, comprising a processor and a data interface, wherein the processor reads instructions stored in a memory through the data interface to execute the method described in the first aspect and any possible implementation of the first aspect.
可选地,作为一种实现方式,所述芯片还可以包括存储器,所述存储器中存储有指令,Optionally, as an implementation, the chip may further include a memory, wherein the memory stores instructions.
所述处理器用于执行所述存储器上存储的指令,当所述指令被执行时,所述处理器用于执行上述第一方面以及第一方面的任一种可能实现方式所述的方法。The processor is used to execute instructions stored in the memory. When the instructions are executed, the processor is used to execute the method described in the first aspect and any possible implementation manner of the first aspect.
上述芯片具体可以是现场可编程门阵列或者专用集成电路。The above chip may specifically be a field programmable gate array or a dedicated integrated circuit.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1是本申请实施例适用的电子设备的硬件结构示意图。FIG1 is a schematic diagram of the hardware structure of an electronic device to which an embodiment of the present application is applicable.
图2是本申请实施例适用的电子设备的软件结构示意图。FIG. 2 is a schematic diagram of the software structure of an electronic device to which an embodiment of the present application is applicable.
图3示出了多窗口场景下,用户通过笔记应用记录视频窗口内容的示意性界面图。FIG3 shows a schematic interface diagram of a user recording video window content through a note application in a multi-window scenario.
图4示出本申请实施例提供的显示方法的示意性流程图。FIG. 4 shows a schematic flow chart of a display method provided in an embodiment of the present application.
图5示出了本申请实施例提供的多窗口场景的示意图。FIG5 shows a schematic diagram of a multi-window scenario provided in an embodiment of the present application.
图6示出了本申请实施例提供的显示方法的用户界面的示意图。FIG6 shows a schematic diagram of a user interface of a display method provided in an embodiment of the present application.
图7示出了本申请实施例提供的显示方法的另一种用户界面的示意图。FIG. 7 shows a schematic diagram of another user interface of the display method provided in an embodiment of the present application.
图8示出了本申请实施例提供的电子设备的窗口坐标的示意图。FIG. 8 shows a schematic diagram of window coordinates of an electronic device provided in an embodiment of the present application.
图9示出了本申请实施例提供的显示方法的一种用户界面的示意图。FIG. 9 shows a schematic diagram of a user interface of a display method provided in an embodiment of the present application.
图10示出了本申请实施例提供的显示方法的另一种用户界面的示意图。FIG. 10 shows a schematic diagram of another user interface of the display method provided in an embodiment of the present application.
图11示出了本申请实施例提供的显示方法的另一种用户界面的示意图。FIG. 11 shows a schematic diagram of another user interface of the display method provided in an embodiment of the present application.
图12示出了本申请实施例提供的一种电子设备的示意性框图。FIG. 12 shows a schematic block diagram of an electronic device provided in an embodiment of the present application.
图13示出了本申请实施例提供的另一种电子设备的示意性框图。FIG. 13 shows a schematic block diagram of another electronic device provided in an embodiment of the present application.
具体实施方式Detailed ways
下面将结合附图,对本申请实施例中的技术方案进行描述。The technical solutions in the embodiments of the present application will be described below in conjunction with the accompanying drawings.
以下实施例中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为对本申请的限制。如在本申请的说明书和所附权利要求书中所使用的那样,单数表达形式“一个”、“一种”、“所述”、“上述”、“该”和“这一”旨在也包括例如“一个或多个”这种表达形式,除非其上下文中明确地有相反指示。还应当理解,在本申请以下各实施例中,“至少一个”、“一个或多个”是指一个、两个或两个以上。术语“和/或”,用于描述关联对象的关联关系,表示可以存在三种关系;例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A、B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。The terms used in the following embodiments are only for the purpose of describing specific embodiments, and are not intended to be used as limitations on the present application. As used in the specification and the appended claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include expressions such as "one or more", unless there is a clear contrary indication in the context. It should also be understood that in the following embodiments of the present application, "at least one", "one or more" refer to one, two or more. The term "and/or" is used to describe the association relationship of associated objects, indicating that three relationships may exist; for example, A and/or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character "/" generally indicates that the objects associated before and after are in an "or" relationship.
在本说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。References to "one embodiment" or "some embodiments" etc. described in this specification mean that a particular feature, structure or characteristic described in conjunction with the embodiment is included in one or more embodiments of the present application. Thus, the phrases "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. appearing in different places in this specification do not necessarily all refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
本申请实施例提供的方法应用于电子设备,电子设备包括但不限于手机、平板电脑、车载设备、可穿戴设备、增强现实(augmented reality,AR)/虚拟现实(virtualreality,VR)设备、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)、智慧屏以及其他具有显示屏的电子设备。本申请实施例对电子设备的具体类型不作任何限制。The method provided in the embodiments of the present application is applied to electronic devices, including but not limited to mobile phones, tablet computers, vehicle-mounted devices, wearable devices, augmented reality (AR)/virtual reality (VR) devices, laptop computers, ultra-mobile personal computers (UMPC), netbooks, personal digital assistants (PDA), smart screens, and other electronic devices with display screens. The embodiments of the present application do not impose any restrictions on the specific types of electronic devices.
示例性的,图1示出了本申请实施例提供的一种电子设备的硬件结构示意图。Illustratively, FIG1 shows a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application.
如图1所示,电子设备100可以包括:处理器110,存储器120,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,摄像头191,显示屏192,按键193等。As shown in Figure 1, the electronic device 100 may include: a processor 110, a memory 120, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a camera 191, a display screen 192, a button 193, etc.
处理器110可以包括一个或多个处理单元。例如,处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processingunit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and/or a neural-network processing unit (NPU). Different processing units may be independent devices or integrated into one or more processors.
其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从该存储器中直接调用,避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory, thereby avoiding repeated access, reducing the waiting time of the processor 110, and thus improving the efficiency of the system.
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuitsound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purposeinput/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (SIM) interface, and/or a universal serial bus (USB) interface, etc.
例如,处理器110与触摸传感器180E可以通过I2C总线接口通信,实现电子设备100的触摸功能。处理器110和摄像头191可以通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏192可以通过DSI接口通信,实现电子设备100的显示功能。For example, the processor 110 and the touch sensor 180E can communicate through an I2C bus interface to implement the touch function of the electronic device 100. The processor 110 and the camera 191 can communicate through a CSI interface to implement the shooting function of the electronic device 100. The processor 110 and the display screen 192 can communicate through a DSI interface to implement the display function of the electronic device 100.
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
充电管理模块140用于从充电器接收充电输入。电源管理模块141用于连接电池142。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备100供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态等参数。The charging management module 140 is used to receive charging input from the charger. The power management module 141 is used to connect to the battery 142. While the charging management module 140 is charging the battery 142, the power management module 141 can also be used to power the electronic device 100. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, and battery health status.
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 can provide solutions for wireless communications including 2G/3G/4G/5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wirelesslocal area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
电子设备100通过GPU,显示屏192,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏192和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 100 implements the display function through a GPU, a display screen 192, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 192 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
显示屏192用于显示图像,视频等。显示屏192包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emittingdiode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrixorganic light emitting diode,AMOLED),柔性发光二极管(flex light-emittingdiode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot lightemitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏192,N为大于1的正整数。The display screen 192 is used to display images, videos, etc. The display screen 192 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light emitting diode or an active-matrix organic light emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 192, where N is a positive integer greater than 1.
电子设备100可以通过ISP,摄像头191,视频编解码器,GPU,显示屏192以及应用处理器等实现拍摄功能。ISP用于处理摄像头191反馈的数据。摄像头191用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(chargecoupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。在一些实施例中,电子设备100可以包括1个或N个摄像头191,N为大于1的正整数。The electronic device 100 can realize the shooting function through ISP, camera 191, video codec, GPU, display screen 192 and application processor. ISP is used to process the data fed back by camera 191. Camera 191 is used to capture static images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal oxide semiconductor (CMOS) phototransistor. In some embodiments, the electronic device 100 may include 1 or N cameras 191, where N is a positive integer greater than 1.
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital videos. The electronic device 100 may support one or more video codecs. Thus, the electronic device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
存储器120用于存储数据和/或指令。The memory 120 is used to store data and/or instructions.
存储器120可以包括内部存储器。内部存储器用于存储计算机可执行程序代码,该可执行程序代码包括指令。处理器110通过运行存储在内部存储器的指令,从而执行电子设备100的各种功能应用以及数据处理。内部存储器可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统;该存储程序区还可以存储一个或多个应用程序(比如图库、联系人等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如图像,联系人等)等。此外,内部存储器可以包括高速随机存取存储器,还可以包括非易失性存储器,例如一个或多个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。在一些实施例中,处理器110可以通过运行存储在内部存储器的指令,和/或存储在设置于处理器110中的存储器的指令,使得电子设备100执行本申请实施例中所提供的卡片分享方法。The memory 120 may include an internal memory. The internal memory is used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory. The internal memory may include a program storage area and a data storage area. Among them, the program storage area may store an operating system; the program storage area may also store one or more applications (such as a gallery, contacts, etc.). The data storage area may store data (such as images, contacts, etc.) created during the use of the electronic device 100. In addition, the internal memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more disk storage devices, flash memory devices, universal flash storage (UFS), etc. In some embodiments, the processor 110 may execute instructions stored in the internal memory, and/or instructions stored in a memory provided in the processor 110, so that the electronic device 100 executes the card sharing method provided in the embodiment of the present application.
存储器120还可以包括外部存储器,例如Micro SD卡,以扩展电子设备100的存储能力。外部存储器可以通过外部存储器接口与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储器中。The memory 120 may also include an external memory, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory may communicate with the processor 110 via an external memory interface to implement a data storage function, such as storing music, video and other files in the external memory.
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音频播放,录音等。The electronic device 100 can implement audio functions such as audio playback and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,加速度传感器180C,距离传感器180D,触摸传感器180E以及其他的一些传感器等。The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an acceleration sensor 180C, a distance sensor 180D, a touch sensor 180E, and some other sensors.
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏192。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏192,电子设备100根据压力传感器180A检测触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the display screen 192. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 192, the electronic device 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 can also calculate the touch position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
陀螺仪传感器180B又称角速度传感器,可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景,例如陀螺仪能够完整监测游戏者手的位移,从而实现各种游戏操作效果,如横屏改竖屏、赛车游戏拐弯等等。The gyroscope sensor 180B is also called an angular velocity sensor, which can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyroscope sensor 180B. The gyroscope sensor 180B can be used for anti-shake shooting. The gyroscope sensor 180B can also be used for navigation and somatosensory game scenes. For example, the gyroscope can fully monitor the displacement of the player's hand, thereby achieving various game operation effects, such as changing the horizontal screen to the vertical screen, turning in a racing game, and so on.
加速度传感器180C可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。加速度传感器180C还可以用于识别电子设备100的姿态,应用于横竖屏切换,计步器等应用。The acceleration sensor 180C can detect the magnitude of the acceleration of the electronic device 100 in all directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. The acceleration sensor 180C can also be used to identify the posture of the electronic device 100, and is applied to applications such as horizontal and vertical screen switching, pedometers, etc.
距离传感器180D,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180D测距以实现快速对焦。The distance sensor 180D is used to measure the distance. The electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180D to measure the distance to achieve fast focusing.
触摸传感器180E,也称“触控面板”。触摸传感器180E可以设置于显示屏192,由触摸传感器180E与显示屏192组成触摸屏,也称“触控屏”。触摸传感器180E用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏192提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180E也可以设置于电子设备的表面,与显示屏192所处的位置不同。The touch sensor 180E is also called a "touch panel". The touch sensor 180E can be set on the display screen 192, and the touch sensor 180E and the display screen 192 form a touch screen, also called a "touch screen". The touch sensor 180E is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 192. In other embodiments, the touch sensor 180E can also be set on the surface of the electronic device, which is different from the position of the display screen 192.
应理解,本申请实施例中,对于传感器模块180包括的传感器类型并不作限定,传感器模块180可以包括更多或者更少的传感器,具体可以根据实际需要而定,在此不再详述。It should be understood that in the embodiment of the present application, there is no limitation on the type of sensors included in the sensor module 180, and the sensor module 180 may include more or fewer sensors, depending on actual needs, which will not be described in detail here.
按键193可以包括开机键,音量键等。按键193可以是机械按键,也可以是触摸式按键。电子设备100可接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。The key 193 may include a power key, a volume key, etc. The key 193 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.
可以理解的是,本申请实施例示意的结构并不构成对电子设备的具体限定。在本申请另一些实施例中,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件、软件或软件和硬件的组合实现。It is to be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device. In other embodiments of the present application, the electronic device may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
以上介绍了电子设备100可能的硬件结构示意图。电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的系统为例,示例性说明电子设备100的软件结构。The above describes a possible hardware structure diagram of the electronic device 100. The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. Taking the system as an example, the software structure of the electronic device 100 is exemplified.
图2示出了本申请实施例提供的一种电子设备的软件结构框图。如图2所示,分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将系统分为四层,从上至下分别为应用程序层,应用程序框架层,系统运行库层(包括系统库和安卓运行时(Android runtime))以及内核层。内核层之下则为硬件层。FIG2 shows a software structure diagram of an electronic device provided in an embodiment of the present application. As shown in FIG2, the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, The system is divided into four layers, from top to bottom: application layer, application framework layer, system runtime layer (including system library and Android runtime) and kernel layer. Below the kernel layer is the hardware layer.
应用程序层可以包括一系列应用程序(application,APP)包。如图2所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。The application layer may include a series of application (APP) packages. As shown in FIG2 , the application package may include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.
应用程序框架层为应用程序层的应用程序提供应用编程接口(applicationprogramming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。如图2所示,应用程序框架层可以包括窗口管理器,内容提供器,电话管理器,资源管理器,通知管理器、视图系统、卡片服务引擎等。The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions. As shown in Figure 2, the application framework layer may include a window manager, a content provider, a phone manager, a resource manager, a notification manager, a view system, a card service engine, etc.
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including connecting, hanging up, etc.).
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,终端设备振动,指示灯闪烁等。The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, the terminal device vibrates, the indicator light flashes, etc.
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
系统运行库层(libraries)可以分成两部分,分别是系统库和Android运行时。The system runtime library layer (libraries) can be divided into two parts: system libraries and Android runtime.
安卓运行时(Android runtime)即Android运行环境,包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。Android runtime is the Android operating environment, including the core library and virtual machine. Android runtime is responsible for the scheduling and management of the Android system. The core library consists of two parts: one is the function that the Java language needs to call, and the other is the Android core library.
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
系统库是应用程序框架的支撑,可包括多个功能模块,例如:表面管理器(surfacemanager),媒体库(media libraries),二维图形引擎(例如SGL)、三维图形处理库(例如OpenGL ES)、图像处理库等。The system library is the support of the application framework and can include multiple functional modules, such as: surface manager, media libraries, 2D graphics engine (such as SGL), 3D graphics processing library (such as OpenGL ES), image processing library, etc.
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
三维图形处理库用于实现三维图形绘图,图像渲染,合成和图层处理等。The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis and layer processing, etc.
二维图形引擎是2D绘图的绘图引擎。A 2D graphics engine is a drawing engine for 2D drawings.
内核层是硬件和软件之间的层,用于提供操作系统的本质功能例如文件管理、内存管理、进程管理、网络协议栈等。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动、蓝牙驱动等。The kernel layer is the layer between hardware and software, which is used to provide essential functions of the operating system such as file management, memory management, process management, network protocol stack, etc. The kernel layer includes at least display driver, camera driver, audio driver, sensor driver, Bluetooth driver, etc.
为方便理解,本申请以下实施例将以具有图1和图2所示结构的电子设备为例,结合附图和应用场景,对本申请实施例提供的显示方法进行具体阐述。For ease of understanding, the following embodiments of the present application will take an electronic device having the structure shown in Figures 1 and 2 as an example, and combine the accompanying drawings and application scenarios to specifically explain the display method provided in the embodiments of the present application.
随着电子设备技术的不断发展,电子设备例如手机、平板电脑等的屏幕尺寸越来越大,电子设备上安装的应用(application,App)也越来越多。为了满足用户的个性化需求,越来越多的电子设备支持多窗口模式(也叫多屏模式或分屏功能),即在一个屏幕上能够同时运行并显示多个应用程序。电子设备的多窗口模式打开以后,用户可以将电子设备的屏幕进行分屏,例如将竖长的屏幕分成上下两个窗口,或者将横长的屏幕分成左右两个窗口,其中每个窗口中独立运行一个应用程序,两个应用程序互不影响。With the continuous development of electronic equipment technology, the screen size of electronic devices such as mobile phones and tablets is getting larger and larger, and the number of applications (applications, Apps) installed on electronic devices is also increasing. In order to meet the personalized needs of users, more and more electronic devices support multi-window mode (also called multi-screen mode or split-screen function), that is, multiple applications can be run and displayed on one screen at the same time. After the multi-window mode of the electronic device is turned on, the user can split the screen of the electronic device, for example, divide the vertical screen into two upper and lower windows, or divide the horizontal screen into two left and right windows, where each window runs an application independently, and the two applications do not affect each other.
当电子设备处于多窗口模式时,应用窗口的显示方式包括全屏显示、分屏显示、悬浮显示。When the electronic device is in multi-window mode, the display modes of the application window include full-screen display, split-screen display, and floating display.
全屏显示,也称全屏模式,指的是屏幕上只显示一个应用窗口,并且该应用的界面填满整个屏幕。本申请实施例中,当某个窗口全屏显示时,定义该窗口的状态为全屏状态,相应地,定义该窗口所显示的应用为全屏显示应用。Full screen display, also known as full screen mode, means that only one application window is displayed on the screen, and the interface of the application fills the entire screen. In the embodiment of the present application, when a window is displayed in full screen, the state of the window is defined as the full screen state, and accordingly, the application displayed in the window is defined as the full screen display application.
分屏显示,也称分屏模式,指的是两个或两个以上的应用窗口分别占据屏幕的一部分,任意两个应用窗口之间不重叠,每个应用窗口可以改变大小,应用窗口的位置或者不可移动,或者仅能实现固定位置的移动,例如交换两个应用窗口的位置。本申请实施例中,当某个窗口分屏显示时,定义该窗口的状态为分屏状态,相应地,定义该窗口所显示的应用为分屏显示应用。Split-screen display, also known as split-screen mode, refers to two or more application windows occupying a portion of the screen respectively, no two application windows overlap, each application window can change size, and the position of the application window is either immovable or can only be moved to a fixed position, such as swapping the positions of two application windows. In the embodiment of the present application, when a window is split-screen displayed, the state of the window is defined as the split-screen state, and accordingly, the application displayed by the window is defined as the split-screen display application.
悬浮显示,也称悬浮模式,指的是至少一个应用窗口悬浮显示于其他第一界面之上,并部分覆盖其他第一界面,在用户未对悬浮显示的应用窗口进行操作的情况下,该悬浮显示的应用窗口保持在固定位置且不随其他第一界面的改变而改变。该至少一个应用窗口在屏幕上层叠显示,应用窗口之间可以部分或全部覆盖,每个应用窗口既可以改变大小,也可以移动。本申请实施例中,当某个窗口悬浮显示时,例如悬浮在全屏显示的窗口之上或悬浮在分屏显示的窗口之上,定义该窗口的状态为悬浮状态,相应地,定义该窗口所显示的应用为悬浮显示应用。Floating display, also known as floating mode, refers to at least one application window being displayed floating above other first interfaces and partially covering other first interfaces. When the user does not operate the floating application window, the floating application window remains in a fixed position and does not change with changes in other first interfaces. The at least one application window is displayed in layers on the screen, and the application windows may partially or fully overlap each other. Each application window can be resized and moved. In an embodiment of the present application, when a window is displayed in a floating state, for example, floating above a window displayed in full screen or above a window displayed in split screen, the state of the window is defined as a floating state, and accordingly, the application displayed by the window is defined as a floating display application.
用户在使用多窗口模式时,可能需要获取某一个窗口界面的信息,窗口界面的信息例如可以为窗口界面的截屏图像、窗口界面的视频或窗口界面经过进一步处理之后得到的信息,例如进行窗口界面识别获得的文字,或者该窗口界面的内容转成的文字等,之后用户可以将获得的窗口界面的信息记录在其他应用的窗口中或者通过其他应用分享。When using the multi-window mode, the user may need to obtain information about a certain window interface. The window interface information may be, for example, a screenshot of the window interface, a video of the window interface, or information obtained after further processing of the window interface, such as text obtained by window interface recognition, or text converted from the content of the window interface, etc. The user can then record the obtained window interface information in the windows of other applications or share it through other applications.
以图3为例,用户在一个窗口看视频,另一个窗口记笔记,用户想要截取当前视频界面的图片并将该图片插入笔记应用的界面中(将视频窗口界面的信息记录在笔记应用的窗口中)。用户可以通过当前界面或下拉框上的截屏控件、手势或电子设备的快捷按键(例如,同时按住音量键与电源键)等方式对当前电子设备的界面310进行截屏操作,则截屏图像的缩略图311会显示在界面310上,如图3的(a)所示。用户可以点击该截屏图像的缩略图311,显示屏上会出现编辑截屏图像的界面320,如图3的(b)所示,用户可以通过移动截屏图像边缘的控件321将截屏图像剪切为合适的大小,用户可以移动控件321使得截屏图像被裁剪成如图3的(c)中331所示的大小,即仅保留截屏图像中视频窗口的部分331,裁剪结束后,用户可以点击界面330上的控件332保存裁剪后的截屏图像。之后,用户可以在如图3的(d)所示的界面340上点击控件341,并在弹出的选项框342中点击“从相册选择”,从相册的缩略图中选中裁剪后的截屏图像,从而在笔记类应用中插入视频窗口的截屏图像。Taking Figure 3 as an example, the user is watching a video in one window and taking notes in another window. The user wants to capture a picture of the current video interface and insert the picture into the interface of the note application (record the information of the video window interface in the window of the note application). The user can take a screenshot of the interface 310 of the current electronic device through the screenshot control on the current interface or drop-down box, gestures, or shortcut keys of the electronic device (for example, pressing the volume key and the power key at the same time), and then the thumbnail 311 of the screenshot image will be displayed on the interface 310, as shown in Figure 3 (a). The user can click on the thumbnail 311 of the screenshot image, and the interface 320 for editing the screenshot image will appear on the display screen, as shown in Figure 3 (b), the user can cut the screenshot image to a suitable size by moving the control 321 on the edge of the screenshot image, and the user can move the control 321 so that the screenshot image is cropped to the size shown in 331 in Figure 3 (c), that is, only the part 331 of the video window in the screenshot image is retained. After the cropping is completed, the user can click the control 332 on the interface 330 to save the cropped screenshot image. Afterwards, the user can click the control 341 on the interface 340 shown in (d) of Figure 3, and click "Select from Album" in the pop-up option box 342 to select the cropped screenshot image from the thumbnails in the album, thereby inserting the screenshot image of the video window into the note-taking application.
上述以截屏为例说明了用户在多窗口模式下,获取与一个窗口有关的信息(截屏图片)并将该信息插入另一个窗口的应用的过程,当用户需要获取的是该窗口的录屏文件、或者窗口界面进行文本识别或对象识别的文字或信息时,过程与上述操作类似。整个过程步骤较多,且对于其中一些信息,例如录屏文件,由于还需要专门的视频剪辑软件才能将录屏文件进行裁剪,用户需要退出该分屏界面使用视频裁剪的软件进一步处理录屏文件,影响了用户的体验感。The above uses screenshots as an example to illustrate the process of a user obtaining information related to one window (screenshot image) and inserting the information into another window application in multi-window mode. When the user needs to obtain the screen recording file of the window, or the text or information for text recognition or object recognition in the window interface, the process is similar to the above operation. The whole process has many steps, and for some of the information, such as screen recording files, since special video editing software is required to crop the screen recording files, the user needs to exit the split-screen interface and use the video cropping software to further process the screen recording files, which affects the user experience.
本申请实施例提供了一种显示方法,能够使得多窗口模式下,用户需要在一个窗口的应用中记录或分享与另一个窗口有关的信息时,操作的便捷性得到提升,增强用户的体验感。The embodiment of the present application provides a display method, which can improve the convenience of operation and enhance the user experience when a user needs to record or share information related to another window in an application in one window in a multi-window mode.
如图4所示,该方法包括:As shown in FIG. 4 , the method includes:
S410,显示第一界面,第一界面包括第一窗口和第二窗口,第一窗口是允许信息插入的窗口。S410, displaying a first interface, the first interface including a first window and a second window, the first window being a window allowing information insertion.
S420,接收用户对第一窗口的第一用户输入。S420: Receive a first user input to the first window.
S430,根据第一用户输入,对第二窗口执行第一操作。S430: Execute a first operation on the second window according to the first user input.
S440,将与第一操作执行结果对应的信息插入第一窗口。S440: Insert information corresponding to the first operation execution result into the first window.
在S410中,第一界面包括第一窗口和第二窗口。在一些实施例中,第一窗口和第二窗口中可以包括全屏显示的窗口。如图5的(a)所示,例如第一窗口是全屏显示的窗口511,第二窗口是悬浮窗口512。悬浮窗口512上可以包括一些用于对窗口操作的控件,例如,用户点击控件5121可以将窗口512由悬浮窗口变为全屏显示的窗口;用户点击控件5122可以将窗口512最小化,最小化后可以在显示屏的侧边显示该窗口的应用的图标,从而减小该窗口对于全屏显示的窗口511的影响,用户点击该图标时,该窗口512可以重新以悬浮窗口的形式显示在界面上;用户点击控件5123时,可以将该悬浮窗口512关闭。In S410, the first interface includes a first window and a second window. In some embodiments, the first window and the second window may include a full-screen window. As shown in (a) of Figure 5, for example, the first window is a full-screen window 511, and the second window is a floating window 512. The floating window 512 may include some controls for window operations. For example, the user clicks on the control 5121 to change the window 512 from a floating window to a full-screen window; the user clicks on the control 5122 to minimize the window 512, and after minimization, the icon of the application of the window can be displayed on the side of the display screen, thereby reducing the impact of the window on the full-screen window 511. When the user clicks on the icon, the window 512 can be displayed on the interface again as a floating window; when the user clicks on the control 5123, the floating window 512 can be closed.
在另一些实施例中,第一窗口和第二窗口可以不包括全屏显示的窗口。如图5的(b)所示,显示屏上包括分屏获得的窗口和悬浮窗口。其中,分屏获得的窗口可以包括窗口521、窗口522和窗口523,分屏的窗口之间有如5211所示的控件,用户可以通过移动该控件改变各个分屏窗口的大小;悬浮窗口可以包括窗口524和窗口525,每个悬浮窗口上仍然可以包括前文介绍的一些控件。例如,第一窗口可以为窗口521,第二窗口可以为窗口522,也就是说,第一窗口和第二窗口均为分屏窗口。再如,第一窗口可以为窗口521,第二窗口可以为窗口524,也就是说,第一窗口和第二窗口分别为分屏窗口和悬浮窗口。又如,第一窗口可以为窗口524,第二窗口可以为窗口525,也就是说,第一窗口和第二窗口都是悬浮窗口。In other embodiments, the first window and the second window may not include a full-screen window. As shown in (b) of FIG. 5 , the display screen includes a window obtained by splitting the screen and a floating window. Among them, the window obtained by splitting the screen may include window 521, window 522, and window 523, and there are controls as shown in 5211 between the split-screen windows. The user can change the size of each split-screen window by moving the control; the floating window may include window 524 and window 525, and each floating window may still include some of the controls described above. For example, the first window may be window 521, and the second window may be window 522, that is, the first window and the second window are both split-screen windows. For another example, the first window may be window 521, and the second window may be window 524, that is, the first window and the second window are respectively a split-screen window and a floating window. For another example, the first window may be window 524, and the second window may be window 525, that is, the first window and the second window are both floating windows.
应理解,上述仅以图5介绍了第一窗口和第二窗口的类型,电子设备显示屏界面中还可以包括更多或更少的窗口,例如,图5的(a)中还可以包括其他悬浮窗口,而图5的(b)中还可以包括其他分屏窗口和/或悬浮窗口。另外,第一窗口和第二窗口的类型可以互换,例如对于图5的(a),第一窗口可以为悬浮窗口512,第二窗口可以为全屏显示的窗口511。It should be understood that the above only introduces the types of the first window and the second window with FIG. 5, and the electronic device display screen interface may also include more or fewer windows. For example, FIG. 5 (a) may also include other floating windows, and FIG. 5 (b) may also include other split-screen windows and/or floating windows. In addition, the types of the first window and the second window may be interchangeable. For example, for FIG. 5 (a), the first window may be a floating window 512, and the second window may be a full-screen window 511.
第一窗口是允许信息插入的窗口,信息可以为文字、链接或文件,也就是说,第一窗口允许插入文字、链接或文件。The first window is a window that allows information to be inserted, and the information may be text, a link or a file, that is, the first window allows text, a link or a file to be inserted.
在一些实施例中,该第一窗口包括输入框,该输入框可以为应用的输入框,例如聊天应用的输入框;也可以为其他应用,例如笔记类应用的输入框,笔记类应用可以包括备忘录、记事本、文档以及其他笔记类应用等;该输入框还可以为例如对用户或服务进行评论的输入框等。该输入框中可以插入文字、链接、文件的图标和/或名称。或者该窗口虽然包括输入框,但插入文件时,文件的图标或名称并不显示在输入框中,而是显示在第一窗口的其他位置,例如显示在输入框的下方。In some embodiments, the first window includes an input box, which may be an input box of an application, such as an input box of a chat application; or other applications, such as an input box of a note-taking application, which may include memos, notepads, documents, and other note-taking applications; the input box may also be, for example, an input box for commenting on a user or service. Text, links, icons and/or names of files may be inserted into the input box. Alternatively, although the window includes an input box, when a file is inserted, the icon or name of the file is not displayed in the input box, but is displayed in other locations of the first window, such as below the input box.
在另一些实施例中,该第一窗口可以不包括输入框,但是允许文件的插入。例如该第一窗口显示文件压缩应用的界面,插入文件时,文件的图标和/或名称会显示在文件压缩应用的待压缩区。或者该第一窗口显示的是邮件应用的主界面,当插入文件时,文件的图标和/或名称可以显示在默认打开的新邮件编辑窗口中,作为新邮件的附件。In other embodiments, the first window may not include an input box, but allows the insertion of files. For example, the first window displays the interface of a file compression application, and when a file is inserted, the icon and/or name of the file will be displayed in the area to be compressed of the file compression application. Or the first window displays the main interface of an email application, and when a file is inserted, the icon and/or name of the file may be displayed in the default new email editing window as an attachment to the new email.
在S420和S430中,电子设备接收用户对第一窗口的第一用户输入,并根据第一用户输入,对第二窗口进行第一操作。In S420 and S430, the electronic device receives a first user input from a user on the first window, and performs a first operation on the second window according to the first user input.
第一用户输入可以与第一操作对应,第一用户输入可以是用户在第一窗口的应用的界面上的输入,第一用户输入可以为多种形式。下面以用户的第一用户输入对应截屏指令,而第一操作为电子设备对第二窗口进行截屏为例,介绍第一用户输入的各种形式。The first user input may correspond to the first operation, and the first user input may be an input by the user on the interface of the application in the first window, and the first user input may be in various forms. The following takes the case where the first user input of the user corresponds to a screenshot instruction, and the first operation is that the electronic device takes a screenshot of the second window as an example to introduce various forms of the first user input.
在一些实施例中,第一窗口的应用中设置第一控件,第一用户输入是用户对第一控件的点击输入。具体的,对于截屏操作,第一窗口的界面上有截屏控件,第一用户输入是用户对该截屏控件的点击输入,例如,如图6的(a)所示,第一界面610上可以包括第一窗口601和第二窗口602,第一窗口601运行的是笔记类应用,应用的界面上有输入框(输入框是指允许用户输入的位置),该输入框可以处于激活状态,用户可以点击第一窗口601应用界面上的截屏控件611,从而电子设备可以根据用户对该截屏控件的点击输入进行后续的截屏操作。In some embodiments, a first control is set in the application of the first window, and the first user input is a click input of the user to the first control. Specifically, for the screenshot operation, there is a screenshot control on the interface of the first window, and the first user input is a click input of the user to the screenshot control. For example, as shown in (a) of FIG6 , the first interface 610 may include a first window 601 and a second window 602. The first window 601 runs a note-taking application, and there is an input box on the interface of the application (the input box refers to a location that allows user input). The input box may be in an activated state, and the user may click the screenshot control 611 on the application interface of the first window 601, so that the electronic device may perform subsequent screenshot operations according to the user's click input to the screenshot control.
在另一些实施例中,用户可以在第一窗口的界面上进行手势输入。对于截屏操作,该手势输入可以对应第一窗口的应用的截屏指令,例如用户可以在第一窗口的应用的界面上进行手指/指关节敲击或者手指按照预设方式和/或轨迹在屏幕上滑动从而触发第一窗口的应用的截屏指令。例如用户可以在图7的(a)所示的第一窗口701的界面上进行指关节敲击,从而电子设备会进行后续的截屏操作。In other embodiments, the user may perform gesture input on the interface of the first window. For the screenshot operation, the gesture input may correspond to the screenshot instruction of the application of the first window, for example, the user may perform finger/knuckle tapping on the interface of the application of the first window or slide the finger on the screen in a preset manner and/or trajectory to trigger the screenshot instruction of the application of the first window. For example, the user may perform finger knuckle tapping on the interface of the first window 701 shown in (a) of FIG. 7 , so that the electronic device will perform a subsequent screenshot operation.
电子设备接收该第一用户输入后会确定执行与第一用户输入对应的第一操作的目标窗口(第二窗口)的位置或坐标。After receiving the first user input, the electronic device determines the position or coordinates of the target window (second window) for performing the first operation corresponding to the first user input.
当第一界面上只有两个窗口时,电子设备可以将接收第一用户输入的第一窗口以外的窗口作为目标窗口,也就是将第二窗口作为第一操作的目标窗口,例如第一窗口和第二窗口是第一界面进行分屏形成的两个窗口时,电子设备可以确定目标窗口是第二窗口。又如第一窗口是如图5的(a)所示的全屏显示的窗口511时,可以确定第二窗口是悬浮窗口512;而如果第一窗口是悬浮窗口512时,可以确定第二窗口的全屏显示的窗口511。When there are only two windows on the first interface, the electronic device can use a window other than the first window that receives the first user input as the target window, that is, the second window as the target window of the first operation. For example, when the first window and the second window are two windows formed by splitting the first interface, the electronic device can determine that the target window is the second window. For another example, when the first window is a full-screen window 511 as shown in (a) of FIG5 , it can be determined that the second window is a floating window 512; and if the first window is a floating window 512, it can be determined that the second window is a full-screen window 511.
对于第一窗口和第二窗口是分屏界面上的两个窗口且第一界面仅包括两个窗口的情况,电子设备可以根据第一窗口的位置或坐标确定第二窗口的位置或坐标,继而根据第二窗口的位置或坐标对第二窗口执行第一操作。When the first window and the second window are two windows on a split-screen interface and the first interface includes only two windows, the electronic device can determine the position or coordinates of the second window based on the position or coordinates of the first window, and then perform the first operation on the second window based on the position or coordinates of the second window.
在一些实施例中,由于第一用户输入是对第一窗口的输入,可以预设第一窗口的应用在接收到该第一用户输入后,能够知道该第一用户输入对应针对其他窗口进行第一操作的指令。可以由第一窗口的应用根据第一窗口的位置或坐标中的至少一个确定第二窗口的位置或坐标,从而电子设备可以根据第二窗口的位置或坐标对第二窗口执行第一操作。如图8所示,可以以电子设备的显示界面的左上角为坐标原点O建立坐标系,以与时间显示方向平行的方向作为x轴方向,以与时间显示方向垂直的方向为y轴方向(电子设备横屏模式或竖屏模式时坐标轴根据屏幕状态旋转)。In some embodiments, since the first user input is an input to the first window, it can be preset that the application of the first window can know that the first user input corresponds to an instruction for performing a first operation on other windows after receiving the first user input. The application of the first window can determine the position or coordinates of the second window according to at least one of the position or coordinates of the first window, so that the electronic device can perform the first operation on the second window according to the position or coordinates of the second window. As shown in Figure 8, a coordinate system can be established with the upper left corner of the display interface of the electronic device as the coordinate origin O, with the direction parallel to the time display direction as the x-axis direction, and the direction perpendicular to the time display direction as the y-axis direction (the coordinate axis rotates according to the screen state when the electronic device is in landscape mode or portrait mode).
如果显示界面如图8的(a)所示时,假设显示界面的较长边的长度为h,较短边的长度为w,分屏控件801的宽度为d。If the display interface is as shown in (a) of FIG8 , assuming that the length of the longer side of the display interface is h, the length of the shorter side is w, and the width of the split-screen control 801 is d.
如果第一窗口为窗口810,该第一窗口810的位置或坐标为:左上角顶点(x1,0),右下角顶点(h,w)。当用户对窗口810进行第一用户输入时,第一窗口810的应用可以接收该第一用户输入,并根据第一窗口的810的坐标确定需要截屏的第二窗口820的坐标,第二窗口820的坐标为:左上角顶点(0,0),右下角顶点(x1-d,w)。第一窗口810的应用可以向电子设备的操作系统发送截屏指令,该指令可以携带第二窗口820的位置(坐标),操作系统的截屏模块接收到该截屏指令后,可以根据第二窗口820的坐标,进行截屏。If the first window is window 810, the position or coordinates of the first window 810 are: upper left vertex (x1, 0), lower right vertex (h, w). When the user performs a first user input on window 810, the application of the first window 810 can receive the first user input and determine the coordinates of the second window 820 that needs to be captured based on the coordinates of the first window 810. The coordinates of the second window 820 are: upper left vertex (0, 0), lower right vertex (x1-d, w). The application of the first window 810 can send a screenshot instruction to the operating system of the electronic device. The instruction can carry the position (coordinates) of the second window 820. After receiving the screenshot instruction, the screenshot module of the operating system can take a screenshot based on the coordinates of the second window 820.
如果第一窗口为窗口820,该第一窗口820的位置或坐标为:左上角顶点(0,0),右下角顶点(x2,w)。第一窗口820的应用可以根据第一窗口820的坐标,确定截屏的目标窗口第二窗口810位于第一窗口820的右侧,且第二窗口810的位置或坐标为:左上角顶点(x2+d,0),右下角顶点(h,w),第一窗口820可以将第二窗口810的位置或坐标携带在截屏指令中,向截屏模块发送相应的指令。If the first window is window 820, the position or coordinates of the first window 820 are: upper left vertex (0, 0), lower right vertex (x2, w). The application of the first window 820 can determine that the target window of the screenshot, the second window 810, is located on the right side of the first window 820 according to the coordinates of the first window 820, and the position or coordinates of the second window 810 are: upper left vertex (x2+d, 0), lower right vertex (h, w). The first window 820 can carry the position or coordinates of the second window 810 in the screenshot instruction and send the corresponding instruction to the screenshot module.
如果显示界面如图8的(b)所示时,假设显示界面的较长边的长度为h,较短边的长度为w,分屏控件801的宽度为d。If the display interface is as shown in (b) of FIG8 , assuming that the length of the longer side of the display interface is h, the length of the shorter side is w, and the width of the split-screen control 801 is d.
如果第一窗口为窗口830,该第一窗口830的位置或坐标为:左上角顶点(0,0),右下角顶点(w,y1)。第一窗口830的应用可以根据第一窗口830的坐标,确定截屏的目标窗口第二窗口840位于第一窗口830的下方,且第二窗口840的位置或坐标为:左上角顶点(0,y1+d),右下角顶点(w,h),第一窗口830可以将第二窗口840的位置或坐标携带在截屏指令中,向截屏模块发送相应的指令。If the first window is window 830, the position or coordinates of the first window 830 are: upper left vertex (0, 0), lower right vertex (w, y1). The application of the first window 830 can determine that the target window of the screenshot, the second window 840, is located below the first window 830 according to the coordinates of the first window 830, and the position or coordinates of the second window 840 are: upper left vertex (0, y1+d), lower right vertex (w, h). The first window 830 can carry the position or coordinates of the second window 840 in the screenshot instruction and send the corresponding instruction to the screenshot module.
如果第一窗口为窗口840,该第一窗口840的位置或坐标为:左上角顶点(0,y2),右下角顶点(w,h)。第一窗口840的应用可以根据第一窗口840的坐标,确定截屏的目标窗口第二窗口830位于第一窗口840的上方,且第二窗口830的位置或坐标为:左上角顶点(0,0),右下角顶点(w,y2-d),第一窗口830可以将第二窗口840的位置或坐标携带在截屏指令中,向截屏模块发送相应的指令。If the first window is window 840, the position or coordinates of the first window 840 are: upper left vertex (0, y2), lower right vertex (w, h). The application of the first window 840 can determine that the target window of the screenshot, the second window 830, is located above the first window 840 according to the coordinates of the first window 840, and the position or coordinates of the second window 830 are: upper left vertex (0, 0), lower right vertex (w, y2-d). The first window 830 can carry the position or coordinates of the second window 840 in the screenshot instruction and send the corresponding instruction to the screenshot module.
应理解,对于图8,图8的(a)的横屏场景下,以左右分屏介绍了第二窗口的位置或坐标的确定方法,当在横屏模式下,上下分屏时,第二窗口的位置或坐标的确定方法类似。图8的(b)的竖屏场景下,以上下分屏为例介绍了第二窗口的位置或坐标的确定方法类似,当竖屏场景的左右分屏场景下,第二窗口的位置或坐标的确定方法类似,此处不再赘述。当屏幕旋转时,坐标轴可以根据屏幕适应性旋转,使得x轴时钟与时间的显示方向平行。It should be understood that for Figure 8, in the horizontal screen scenario of Figure 8 (a), the method for determining the position or coordinates of the second window is introduced by splitting the screen left and right. When the screen is split up and down in the horizontal screen mode, the method for determining the position or coordinates of the second window is similar. In the vertical screen scenario of Figure 8 (b), the method for determining the position or coordinates of the second window is introduced by taking the split screen up and down as an example. When the vertical screen is split up and down, the method for determining the position or coordinates of the second window is similar and will not be repeated here. When the screen rotates, the coordinate axis can be rotated according to the screen adaptability so that the x-axis clock is parallel to the display direction of time.
在另一些实施例中,可以由电子设备的操作系统确定第二窗口的位置或坐标。如果电子设备的显示界面上仅包括两个窗口,当接收到第一用户输入后,电子设备的操作系统可以直接将第一窗口以外的窗口作为第一操作的目标窗口。具体的,当用户在第一窗口进行第一用户输入时,第一窗口的应用可以向操作系统发送第一操作的指令。可以由第一窗口的应用或者操作系统预设在多窗口场景下且第一窗口的输入框处于激活状态时,用户的第一用户输入用于对第一窗口以外的窗口进行第一操作。例如,第一窗口的应用接收到该第一用户输入时,向操作系统发送第一操作的指令,并指示操作系统对另一个窗口执行第一操作。或者,第一应用发送第一操作的指令,由电子设备的操作系统确定第一操作的目标窗口为第二窗口。因此电子设备的显示屏上仅包括两个窗口时,电子设备的操作系统可以确定第二窗口的位置或坐标,根据第二窗口的位置或坐标对第二窗口进行第一操作,例如截屏、录屏、屏幕识别等操作。In other embodiments, the position or coordinates of the second window may be determined by the operating system of the electronic device. If the display interface of the electronic device includes only two windows, after receiving the first user input, the operating system of the electronic device may directly use the window other than the first window as the target window of the first operation. Specifically, when the user performs the first user input in the first window, the application of the first window may send the instruction of the first operation to the operating system. The first user input of the user may be preset by the application of the first window or the operating system in a multi-window scenario and when the input box of the first window is in an activated state, and the first user input of the user is used to perform the first operation on the window other than the first window. For example, when the application of the first window receives the first user input, it sends the instruction of the first operation to the operating system and instructs the operating system to perform the first operation on another window. Alternatively, the first application sends the instruction of the first operation, and the operating system of the electronic device determines that the target window of the first operation is the second window. Therefore, when the display screen of the electronic device includes only two windows, the operating system of the electronic device may determine the position or coordinates of the second window, and perform the first operation on the second window according to the position or coordinates of the second window, such as screenshot, screen recording, screen recognition and other operations.
如果第一窗口为悬浮窗口且第二窗口为全屏显示的窗口时,可以预设或由第一窗口的应用指示电子设备的操作系统进行第一操作时隐藏或显示第一窗口。例如,第一操作为截屏或录屏时,可以在进行截屏或录屏时隐藏悬浮的第一窗口,从而不影响第二窗口的应用的界面。If the first window is a floating window and the second window is a full-screen window, the first window can be preset or instructed by the application of the first window to hide or display the first window when the operating system of the electronic device performs the first operation. For example, when the first operation is screenshot or screen recording, the floating first window can be hidden when the screenshot or screen recording is performed, so as not to affect the interface of the application of the second window.
如果电子设备上包括两个以上窗口,在电子设备对第二窗口执行第一操作之前,可以向用户提示确定第一操作的目标窗口,电子设备可以接收第二用户输入,并根据第二用户输入确定第一操作的目标窗口(第二窗口)。例如,电子设备可以通过弹窗等方式提示用户选择目标窗口,从而用户可以点击其中一个窗口,电子设备可以将用户点击的窗口作为目标窗口,并对该窗口执行第一操作。If the electronic device includes more than two windows, before the electronic device performs the first operation on the second window, the user may be prompted to determine the target window of the first operation, and the electronic device may receive the second user input and determine the target window (the second window) of the first operation according to the second user input. For example, the electronic device may prompt the user to select a target window by means of a pop-up window, so that the user may click on one of the windows, and the electronic device may use the window clicked by the user as the target window and perform the first operation on the window.
以上,介绍了不同场景下,电子设备确定第一操作的目标窗口的步骤。电子设备确定第一操作的目标窗口(第二窗口)后,即可以将第一操作的执行节点对应的信息插入到第一窗口中,如图6的(b)和图7的(b)所示,与第一操作对应的信息是截屏的图片,电子设备可以直接将截屏图片621和721插入第一窗口的输入框中,从而减少用户的操作,提高用户的体验感。The above describes the steps for the electronic device to determine the target window of the first operation in different scenarios. After the electronic device determines the target window (second window) of the first operation, the information corresponding to the execution node of the first operation can be inserted into the first window. As shown in FIG6(b) and FIG7(b), the information corresponding to the first operation is a screenshot image. The electronic device can directly insert the screenshot images 621 and 721 into the input box of the first window, thereby reducing the user's operations and improving the user's experience.
应理解,上述以第一用户输入是针对第一窗口为例(第一用户输入是是对第一窗口的控件的点击操作或者在第一窗口的手势操作)介绍了本申请实施例的技术方案。在一些实施例中,用户点击的与第一操作相关的控件可以为电子设备位于电子设备的下拉框中、侧边框附近或者位于用于辅助用户操作的悬浮按键上。It should be understood that the above takes the first user input as an example of the first window (the first user input is a click operation on the control of the first window or a gesture operation on the first window) to introduce the technical solution of the embodiment of the present application. In some embodiments, the control clicked by the user and related to the first operation can be located in a drop-down box of the electronic device, near a side frame, or on a floating button for assisting user operation.
仍然以第一操作为截屏或录屏操作为例,用户或操作系统可以预设多窗口模式下截屏或录屏操作时,默认按窗口进行截屏或录屏操作。当用户点击电子设备的下拉框上的截屏或录屏操作的控件时,如果电子设备确定当前处于多窗口模式下,可以提示用户确定截屏或录屏的目标窗口,如果电子设备确定用户在进行第一用户输入(点击截屏或录屏控件)之前,第一窗口或第一窗口的输入框处于激活状态,可以在用户确定截屏或录屏的目标窗口后直接将该截屏或录屏对应的文件插入到该第一窗口中,从而提高用户操作的便捷性。或者,可以不考虑窗口或输入框的激活状态,直接提示用户确定截屏或录屏对应的文件的插入窗口,也就是说,电子设备可以提示用户确定截屏或录屏操作的目标窗口(第二窗口)以及截屏或录屏操作的文件的目标插入窗口(第一窗口)。Still taking the first operation as a screenshot or screen recording operation as an example, the user or operating system can preset the screenshot or screen recording operation in the multi-window mode, and the screenshot or screen recording operation is performed by window by default. When the user clicks the screenshot or screen recording operation control on the drop-down box of the electronic device, if the electronic device determines that it is currently in the multi-window mode, the user can be prompted to determine the target window for the screenshot or screen recording. If the electronic device determines that the first window or the input box of the first window is in an activated state before the user performs the first user input (clicks the screenshot or screen recording control), the file corresponding to the screenshot or screen recording can be directly inserted into the first window after the user determines the target window for the screenshot or screen recording, thereby improving the convenience of user operation. Alternatively, the activation state of the window or input box can be ignored, and the user can be directly prompted to determine the insertion window of the file corresponding to the screenshot or screen recording, that is, the electronic device can prompt the user to determine the target window (second window) of the screenshot or screen recording operation and the target insertion window (first window) of the file of the screenshot or screen recording operation.
在本申请实施例中,第一操作为截屏操作、录屏操作、屏幕识别操作或声音识别操作中的任意一项或多项;第一操作可以是截屏操作,第一操作的执行结果对应的信息是根据截屏操作获得的图片文件;或者,第一操作可以是录屏操作,第一操作的执行结果对应的信息是根据录屏操作获得的视频文件;或者,第一操作可以是屏幕识别操作,第一操作的执行结果对应的信息是根据屏幕识别操作获得的文字或链接,屏幕识别操作包括文字识别或对象识别;或者,第一操作可以是声音识别操作,第一操作的执行结果对应的信息是根据声音识别操作获得的音乐文件或文字信息中的至少一项。In an embodiment of the present application, the first operation is any one or more of a screenshot operation, a screen recording operation, a screen recognition operation, or a sound recognition operation; the first operation may be a screenshot operation, and the information corresponding to the execution result of the first operation is a picture file obtained according to the screenshot operation; or, the first operation may be a screen recording operation, and the information corresponding to the execution result of the first operation is a video file obtained according to the screen recording operation; or, the first operation may be a screen recognition operation, and the information corresponding to the execution result of the first operation is text or a link obtained according to the screen recognition operation, and the screen recognition operation includes text recognition or object recognition; or, the first operation may be a sound recognition operation, and the information corresponding to the execution result of the first operation is at least one of a music file or text information obtained according to the sound recognition operation.
下面通过图9至图11介绍不同的第一操作以及第一操作的执行结果对应的信息。Different first operations and information corresponding to the execution results of the first operations are introduced below with reference to FIGS. 9 to 11 .
如图9所示,窗口902为视频窗口,窗口901为笔记类应用的窗口,如图9的(a)所示,用户可以点击界面屏幕识别控件911,第一窗口的应用接收到用户的点击操作之后,可以根据窗口901的坐标,确定屏幕识别的目标窗口902的坐标,并根据该窗口的坐标,向电子设备的操作系统发送屏幕识别请求,并在请求中携带窗口902的坐标。电子设备的操作系统接收到该请求后,即可以自动识别窗口902,并将识别出的文字自动插入窗口901的输入框中,如图9的(b)所示。As shown in FIG9 , window 902 is a video window, and window 901 is a window of a note-taking application. As shown in FIG9 (a), the user can click on the interface screen recognition control 911. After the application of the first window receives the user's click operation, it can determine the coordinates of the target window 902 for screen recognition according to the coordinates of window 901, and send a screen recognition request to the operating system of the electronic device according to the coordinates of the window, and carry the coordinates of window 902 in the request. After receiving the request, the operating system of the electronic device can automatically recognize window 902 and automatically insert the recognized text into the input box of window 901, as shown in FIG9 (b).
应理解,在图9中,屏幕识别是对文字的识别,在其他场景下,可以进行对象识别,例如进行商品识别,并允许用户在输入框中插入商品链接等。It should be understood that in FIG. 9 , screen recognition is recognition of text, and in other scenarios, object recognition may be performed, such as commodity recognition, and allowing the user to insert a commodity link in an input box.
如图10所示,窗口1001为聊天窗口,窗口1002为视频窗口,用户可以点击界面1010上的录屏控件1011,从而电子设备可以对窗口1002进行录屏,用户可以点击录屏状态控件1012结束录屏,从而录屏的文件无需用户其他操作便被直接插入到窗口1001中,该文件对应的图标和名称显示在输入框的下方,如图10的(b)所示,用户后续可以点击界面1020上的“发送”控件,从而将录屏后的文件分享给别人。As shown in Figure 10, window 1001 is a chat window, and window 1002 is a video window. The user can click the screen recording control 1011 on the interface 1010 so that the electronic device can record the window 1002. The user can click the screen recording status control 1012 to end the screen recording, so that the recorded file is directly inserted into the window 1001 without any other user operation. The icon and name corresponding to the file are displayed below the input box, as shown in (b) of Figure 10. The user can then click the "Send" control on the interface 1020 to share the recorded file with others.
如图11所示,电子设备的显示屏上包括四个窗口,其中窗口1111、窗口1112和窗口1113为分屏窗口,窗口1114为悬浮窗口,窗口1113目前可以处于激活状态。用户可以点击电子设备的悬浮按键上的截屏控件1115,此时,界面1110上可以出现提示用户输入的提示框1116,提示用户选择截屏窗口(截屏的目标窗口)。用户可以选择界面1110上四个窗口中的任意一个窗口进行截屏,示意性的,用户可以点击窗口1114的界面,从而窗口1114的边框上会出现1126控件(图11的(b)的界面1120),提示用户选择的目标窗口为窗口1114,之后电子设备可以将窗口1114的截屏图片文件插入到窗口1113中(例如该窗口的输入框中),如图11的(c)的界面1130所示,用户可以点击界面1130上的“发送”控件将该截屏文件分享给其他人。As shown in FIG11 , the display screen of the electronic device includes four windows, among which window 1111, window 1112 and window 1113 are split-screen windows, window 1114 is a floating window, and window 1113 can be currently in an activated state. The user can click on the screenshot control 1115 on the floating button of the electronic device, at which time, a prompt box 1116 prompting the user to input can appear on the interface 1110, prompting the user to select a screenshot window (the target window for the screenshot). The user can select any one of the four windows on the interface 1110 for screenshot. Schematically, the user can click on the interface of window 1114, so that a control 1126 will appear on the border of window 1114 (interface 1120 of (b) of FIG11 ), prompting the user to select the target window as window 1114, and then the electronic device can insert the screenshot image file of window 1114 into window 1113 (for example, in the input box of the window), as shown in interface 1130 of (c) of FIG11 , the user can click on the "Send" control on the interface 1130 to share the screenshot file with others.
以上通过图4至图11介绍了本申请实施例提供的显示方法,下面以图12和图13介绍本申请实施例提供的电子设备。The display method provided by the embodiment of the present application is introduced above with reference to FIGS. 4 to 11 , and the electronic device provided by the embodiment of the present application is introduced below with reference to FIGS. 12 and 13 .
图12示出了本申请实施例提供的一种电子设备1200,该电子设备1200包括显示单元1210和处理单元1220。FIG. 12 shows an electronic device 1200 provided in an embodiment of the present application. The electronic device 1200 includes a display unit 1210 and a processing unit 1220 .
该电子设备1200可以包括用于执行图4的方法的单元。并且,该电子设备1200中的各单元和上述其他操作和/或功能分别为了实现图4的方法实施例的相应流程。The electronic device 1200 may include a unit for executing the method of Fig. 4. Moreover, each unit in the electronic device 1200 and the above-mentioned other operations and/or functions are respectively for implementing the corresponding processes of the embodiment of the method of Fig. 4.
具体的,该电子设备1200包括:显示单元1210,用于显示第一界面,所述第一界面包括第一窗口和第二窗口,所述第一窗口是允许信息插入的窗口;处理单元1220,用于:接收用户对所述第一窗口的第一用户输入;根据所述第一用户输入,对所述第二窗口执行第一操作;将与所述第一操作的执行结果对应的信息插入所述第一窗口。Specifically, the electronic device 1200 includes: a display unit 1210, used to display a first interface, the first interface includes a first window and a second window, the first window is a window that allows information insertion; a processing unit 1220, used to: receive a first user input from a user to the first window; perform a first operation on the second window according to the first user input; and insert information corresponding to the execution result of the first operation into the first window.
在本申请实施例中,所述第一操作为截屏操作、录屏操作、屏幕识别操作或声音识别操作中的任意一项或多项;当所述第一操作是截屏操作时,所述第一操作的执行结果对应In the embodiment of the present application, the first operation is any one or more of a screenshot operation, a screen recording operation, a screen recognition operation, or a sound recognition operation; when the first operation is a screenshot operation, the execution result of the first operation corresponds to
的信息是根据截屏操作获得的图片文件;或者,当所述第一操作是录屏操作时,所述第一5操作的执行结果对应的信息是根据录屏操作获得的视频文件;或者,当所述第一操作是屏The information corresponding to the execution result of the first operation is a picture file obtained according to the screen capture operation; or, when the first operation is a screen recording operation, the information corresponding to the execution result of the first operation is a video file obtained according to the screen recording operation; or, when the first operation is a screen
幕识别操作,所述第一操作的执行结果对应的信息是根据屏幕识别操作获得的文字或链接,所述屏幕识别操作包括文字识别或对象识别;或者,当所述第一操作是所述声音识别操作时,所述第一操作的执行结果对应的信息是根据所述声音是被获得的音乐文件或文字信息中的至少一项。When the first operation is a screen recognition operation, the information corresponding to the execution result of the first operation is text or a link obtained according to the screen recognition operation, and the screen recognition operation includes text recognition or object recognition; or, when the first operation is the sound recognition operation, the information corresponding to the execution result of the first operation is at least one of a music file or text information obtained according to the sound.
0在本申请实施例中,所述第一窗口包括第一控件,所述第一用户输入是对所述第一控In the embodiment of the present application, the first window includes a first control, and the first user input is an input to the first control.
件的点击操作。Click operation of the item.
在本申请实施例中,所述第一用户输入是在所述第一窗口的界面上的手势输入。In the embodiment of the present application, the first user input is a gesture input on the interface of the first window.
在本申请实施例中,所述第一窗口和所述第二窗口为所述电子设备的分屏界面的两个窗口。In the embodiment of the present application, the first window and the second window are two windows of the split-screen interface of the electronic device.
5在本申请实施例中,所述处理单元1220,还用于:根据所述第一窗口的位置,确定In the embodiment of the present application, the processing unit 1220 is further configured to: determine, according to the position of the first window,
所述第二窗口的位置;所述处理单元1220,具体用于:根据所述第二窗口的位置,对所述第二窗口执行所述第一操作。The position of the second window; the processing unit 1220 is specifically used to: perform the first operation on the second window according to the position of the second window.
在本申请实施例中,所述第一界面还包括第三窗口,所述处理单元1220,还用于:In the embodiment of the present application, the first interface further includes a third window, and the processing unit 1220 is further configured to:
提示用户确定所述第一操作的目标窗口;接收用户的第二用户输入,所述第二用户输入用0于确定所述目标窗口为所述第二窗口。Prompting the user to determine a target window for the first operation; and receiving a second user input from the user, where the second user input is used to determine that the target window is the second window.
在本申请实施例中,所述第一窗口对应的应用为笔记应用或备忘录应用。In an embodiment of the present application, the application corresponding to the first window is a note application or a memo application.
在本申请实施例中,所述第二窗口对应的应用为视频应用或文档应用。In an embodiment of the present application, the application corresponding to the second window is a video application or a document application.
图13示出了本申请实施例提供的一种电子设备1300。图13所示的电子设备1300可FIG13 shows an electronic device 1300 provided in an embodiment of the present application. The electronic device 1300 shown in FIG13 can
对应于前文描述的电子设备,具体地,电子设备1300可以是图1中的电子设备具体的例5子。电子设备1300包括:处理器1320。在本申请的实施例中,处理器1320用于实现相Corresponding to the electronic device described above, specifically, the electronic device 1300 may be a specific example of the electronic device in FIG. 1. The electronic device 1300 includes: a processor 1320. In the embodiment of the present application, the processor 1320 is used to implement the corresponding
应的控制管理操作,例如,处理器1320用于支持电子设备1300执行前述实施例的方法或操作或功能。可选的,电子设备1300还可以包括:存储器1310和通信接口1330;处理器1320、通信接口1330以及存储器1310可以相互连接或者通过总线1340相互连接。其The processor 1320 is used to support the electronic device 1300 in executing the method, operation or function of the above-mentioned embodiment. Optionally, the electronic device 1300 may further include: a memory 1310 and a communication interface 1330; the processor 1320, the communication interface 1330 and the memory 1310 may be connected to each other or connected to each other through a bus 1340.
中,通信接口1330用于支持该电子设备与其他设备等进行通信,存储器1310用于存储电0子设备的程序代码和数据。处理器1320调用存储器1310中存储的代码或者数据实现相应的操作。该存储器1310可以跟处理器耦合在一起,也可以不耦合在一起。本申请实施例中的耦合是电子设备、单元或模块之间的间接耦合或通信连接,可以是电性,机械或其它的形式,用于电子设备、单元或模块之间的信息交互。In the embodiment of the present invention, the communication interface 1330 is used to support the electronic device to communicate with other devices, and the memory 1310 is used to store the program code and data of the electronic device. The processor 1320 calls the code or data stored in the memory 1310 to implement the corresponding operation. The memory 1310 can be coupled with the processor or not. The coupling in the embodiment of the present application is an indirect coupling or communication connection between electronic devices, units or modules, which can be electrical, mechanical or other forms, and is used for information exchange between electronic devices, units or modules.
其中,处理器1320可以是中央处理器单元,通用处理器,数字信号处理器,专用集5成电路,现场可编程门阵列或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其The processor 1320 may be a central processing unit, a general-purpose processor, a digital signal processor, a dedicated integrated circuit, a field programmable gate array or other programmable logic device, a transistor logic device, a hardware component or the like.
任意组合。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。所述处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,数字信号处理器和微处理器的组合等等。通信接口1330可以是收发器、电路、总线、模块或其它类型的通信接口。总线1340可以是外设部件互连标准(peripheral componentinterconnect,PCI)总线或扩展工业标准结构(extended industry standardarchitecture,EISA)总线等。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图13中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。Any combination. It can implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. The processor can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a digital signal processor and a microprocessor, and the like. The communication interface 1330 can be a transceiver, a circuit, a bus, a module, or other types of communication interfaces. The bus 1340 can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, and the like. The bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is used in FIG. 13, but it does not mean that there is only one bus or one type of bus.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims (20)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211608702.9A CN118193092A (en) | 2022-12-14 | 2022-12-14 | Display method and electronic equipment |
PCT/CN2023/135028 WO2024125301A1 (en) | 2022-12-14 | 2023-11-29 | Display method and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211608702.9A CN118193092A (en) | 2022-12-14 | 2022-12-14 | Display method and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN118193092A true CN118193092A (en) | 2024-06-14 |
Family
ID=91393581
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211608702.9A Pending CN118193092A (en) | 2022-12-14 | 2022-12-14 | Display method and electronic equipment |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN118193092A (en) |
WO (1) | WO2024125301A1 (en) |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114816209B (en) * | 2019-06-25 | 2024-11-22 | 华为技术有限公司 | Full-screen display method and device for mobile terminal |
CN114281439A (en) * | 2020-09-18 | 2022-04-05 | 华为技术有限公司 | Screen splitting method and device and electronic equipment |
CN112306607B (en) * | 2020-10-30 | 2024-09-24 | 维沃移动通信有限公司 | Screenshot method and device, electronic equipment and readable storage medium |
-
2022
- 2022-12-14 CN CN202211608702.9A patent/CN118193092A/en active Pending
-
2023
- 2023-11-29 WO PCT/CN2023/135028 patent/WO2024125301A1/en active Pending
Also Published As
Publication number | Publication date |
---|---|
WO2024125301A1 (en) | 2024-06-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11922005B2 (en) | Screen capture method and related device | |
CN112394811B (en) | Interaction method of air-separation gestures and electronic equipment | |
WO2022022495A1 (en) | Cross-device object dragging method and device | |
WO2021036571A1 (en) | Desktop editing method and electronic device | |
CN114115619B (en) | Application program interface display method and electronic equipment | |
WO2021103981A1 (en) | Split-screen display processing method and apparatus, and electronic device | |
CN117908733A (en) | Display control method of system navigation bar, graphical user interface and electronic equipment | |
WO2021190524A1 (en) | Screenshot processing method, graphic user interface and terminal | |
WO2021115194A1 (en) | Application icon display method and electronic device | |
US12429992B2 (en) | Operation method and electronic device for displaying content of an application in an accessible window | |
CN115185440A (en) | A control display method and related equipment | |
CN115801943B (en) | Display method, electronic device and storage medium | |
CN114816200A (en) | A display method and electronic device | |
JP7677592B2 (en) | Home screen sharing method and electronic device | |
WO2023030198A1 (en) | Annotation method and electronic device | |
CN118502625A (en) | Information display method, electronic device and readable storage medium | |
CN115033333A (en) | A floating window display method, electronic device and storage medium | |
CN114461312B (en) | Display method, electronic device and storage medium | |
WO2024037542A1 (en) | Touch input method, system, electronic device, and storage medium | |
WO2024109220A1 (en) | Widget display method, electronic device, and readable storage medium | |
CN117130516A (en) | A display method and electronic device | |
CN117348953A (en) | Display method and related device | |
CN116204254A (en) | Annotating page generation method, electronic equipment and storage medium | |
WO2024125301A1 (en) | Display method and electronic device | |
US20250264976A1 (en) | Display method, display apparatus, and electronic device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |