[go: up one dir, main page]

CN114647351B - Interface element display method and device - Google Patents

Interface element display method and device Download PDF

Info

Publication number
CN114647351B
CN114647351B CN202210122687.0A CN202210122687A CN114647351B CN 114647351 B CN114647351 B CN 114647351B CN 202210122687 A CN202210122687 A CN 202210122687A CN 114647351 B CN114647351 B CN 114647351B
Authority
CN
China
Prior art keywords
floating
mobile phone
terminal
elements
interface
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.)
Active
Application number
CN202210122687.0A
Other languages
Chinese (zh)
Other versions
CN114647351A (en
Inventor
杨婉艺
刘丰恺
丁宁
周星辰
王海军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202210122687.0A priority Critical patent/CN114647351B/en
Publication of CN114647351A publication Critical patent/CN114647351A/en
Application granted granted Critical
Publication of CN114647351B publication Critical patent/CN114647351B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction 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
    • G06F3/04817Interaction 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 using icons
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction 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
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction 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/0486Drag-and-drop

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses an interface element display method and device, and relates to the field of electronic devices. The problems that when the information is checked or shared across applications, the interaction process is complicated, the operation steps are multiple, and the man-machine interaction performance is poor are solved. The specific scheme is as follows: the terminal displays a first interface comprising a first element on a display screen of the terminal; after receiving a drag operation on a first element, the terminal displays an animation of the first element moving along with the drag operation on a display screen of the terminal; after the terminal receives the drag release operation, a first floating element is displayed on a display screen of the terminal, and the content of the first floating element is the same as that of the first element.

Description

一种界面元素显示方法及设备Method and device for displaying interface elements

本申请是分案申请,原申请的申请号是202011564390.7,原申请日是2020年12月25日,原申请的全部内容通过引用结合在本申请中。This application is a divisional application, the application number of the original application is 202011564390.7, and the original application date is December 25, 2020. The entire content of the original application is incorporated in this application by reference.

技术领域technical field

本申请涉及电子设备领域,尤其涉及一种界面元素显示方法及设备。The present application relates to the field of electronic devices, in particular to a method and device for displaying interface elements.

背景技术Background technique

目前,手机等终端已成为人们日常生活及工作中使用频率较高的电子设备。通过在手机中安装应用程序(application,APP,以下简称为应用),可以完善手机功能,为用户提供更佳的使用体验。但在用户日常使用手机的过程中,如果需进行跨应用查看或分享信息,则会出现交互流程繁琐、操作步骤多的问题,人机交互性能差。At present, terminals such as mobile phones have become electronic devices that are frequently used in people's daily life and work. By installing an application program (application, APP, hereinafter referred to as an application) in a mobile phone, functions of the mobile phone can be improved and a better user experience can be provided for the user. However, in the process of daily use of mobile phones by users, if they need to view or share information across applications, there will be problems with cumbersome interaction processes, many operation steps, and poor human-computer interaction performance.

例如,用户1在使用手机的购物应用时,想给用户2分享当前浏览商品的图片,则需要先将该商品的图片保存到手机的图库应用中,然后打开手机的即时通信应用找到用户2,打开与用户2的聊天界面,之后通过聊天界面的快捷入口打开图库应用,选择保存的商品的图片,最后点击发送,才可通过即时通信应用将商品的图片分享给用户2。又例如,用户A使用手机中的购物应用购买了某商品,需要经过多个操作步骤才能查看到商品是否发货,商品的物流等信息。For example, when user 1 is using the shopping application of the mobile phone, and wants to share the picture of the currently browsed product with user 2, he needs to save the picture of the product in the gallery application of the mobile phone first, and then open the instant messaging application of the mobile phone to find user 2. Open the chat interface with user 2, then open the gallery application through the shortcut entry of the chat interface, select the saved product picture, and finally click send to share the product picture with user 2 through the instant messaging application. For another example, user A purchases a product using a shopping application in a mobile phone, and needs to go through multiple operation steps to check whether the product is shipped, the logistics of the product, and other information.

发明内容Contents of the invention

本申请实施例提供一种界面元素显示方法及设备,解决了跨应用查看或分享信息时,交互流程繁琐、操作步骤多,人机交互性能较差的问题。Embodiments of the present application provide a method and device for displaying interface elements, which solve the problems of cumbersome interaction process, many operation steps, and poor human-computer interaction performance when viewing or sharing information across applications.

为解决上述问题,本申请采用如下技术方案:In order to solve the above problems, the application adopts the following technical solutions:

第一方面,本申请实施例提供一种界面元素显示方法,应用于终端,该方法可以包括:终端在终端的显示屏上显示应用的第一界面,该第一界面包括第一元素;终端在接收到对第一元素的拖拽操作后,在终端的显示屏上显示第一元素随拖拽操作移动的动画;终端在接收到拖拽释放操作后,在终端的显示屏上显示第一浮动元素,第一浮动元素的内容与第一元素的内容相同。In a first aspect, an embodiment of the present application provides a method for displaying interface elements, which is applied to a terminal, and the method may include: the terminal displays a first interface of an application on a display screen of the terminal, and the first interface includes a first element; After receiving the drag operation on the first element, display on the display screen of the terminal the animation that the first element moves with the drag operation; after receiving the drag operation, the terminal displays the first floating element on the terminal screen element, the content of the first floated element is the same as the content of the first element.

采用以上技术方案,终端可根据用户操作,将界面上的任意元素以浮动元素的形式显示在终端屏幕上。之后,无论用户在应用内切换页面或退出该应用或打开其他应用,该浮动元素可继续显示在终端屏幕上,用于实现跨应用的信息查看,文件传输,信息分享等操作。With the above technical solution, the terminal can display any element on the interface in the form of floating elements on the terminal screen according to user operations. Afterwards, no matter whether the user switches pages in the application, exits the application or opens other applications, the floating element can continue to be displayed on the terminal screen for cross-application information viewing, file transfer, information sharing and other operations.

在一种可能的实现方式中,第一界面还包括在第一元素预设范围内的第二元素;第一浮动元素还包括第二元素的内容。这样,可根据用户操作,将第一界面中预定的元素以浮动元素的形式呈现在终端屏幕上,进一步的满足用户跨应用的信息查看,文件传输,信息分享等需求。In a possible implementation manner, the first interface further includes a second element within a preset range of the first element; the first floating element further includes content of the second element. In this way, according to user operations, the predetermined elements in the first interface can be presented on the terminal screen in the form of floating elements, which further meets the needs of users for cross-application information viewing, file transfer, and information sharing.

在另一种可能的实现方式中,第一元素为文本类元素,统一资源定位符(URL)网址,图片类元素,图标类元素,卡片类元素,列表联系人类元素,视频窗口类元素或文件资源类元素中的一种或多种。In another possible implementation, the first element is a text element, a Uniform Resource Locator (URL) website, an image element, an icon element, a card element, a list contact person element, a video window element or a file One or more of resource elements.

其中,第一元素为文本类元素时,第一浮动元素的内容可以为文本类元素中的全部或部分文本;第一元素为URL网址时,第一浮动元素的内容为链接图标,该连接图标用于链接到URL网址对应的网页;第一元素为图片类元素时,第一浮动元素的内容为图片类元素中的图片;第一元素为图标类元素时,第一浮动元素的内容为图标类元素中的图标;第一元素为列表类元素,第一浮动元素的内容为列表类元素包括的联系人头像;第一元素为文件资源类元素时,第一浮动元素的内容为链接图标,连接图标用于链接到文件资源。Wherein, when the first element is a text element, the content of the first floating element can be all or part of the text in the text element; when the first element is a URL, the content of the first floating element is a link icon, and the link icon Used to link to the web page corresponding to the URL; when the first element is an image element, the content of the first floating element is the picture in the image element; when the first element is an icon element, the content of the first floating element is an icon An icon in a class element; the first element is a list element, and the content of the first floating element is the contact avatar included in the list element; when the first element is a file resource element, the content of the first floating element is a link icon, The connection icon is used to link to file resources.

在另一种可能的实现方式中,在终端在显示屏上显示第一界面之后,该方法还可以包括:终端在接收到第一操作后,将第一界面中支持浮动显示的元素以第一形式显示,不支持浮动显示的元素以第二形式显示;第一元素为支持浮动显示的元素,第一形式与第二形式不同。这样,可以将界面中支持浮动显示的元素突出显示,方便用户查看哪些元素支持浮动显示,提高了用户体验。In another possible implementation manner, after the terminal displays the first interface on the display screen, the method may further include: after the terminal receives the first operation, displaying elements that support floating display in the first interface in the first Format display, elements that do not support floating display are displayed in the second format; the first element is an element that supports floating display, and the first format is different from the second format. In this way, the elements that support floating display in the interface can be highlighted, which is convenient for the user to check which elements support floating display, thereby improving user experience.

在另一种可能的实现方式中,第一操作为对预定功能控件的操作;或第一操作为对第一界面中支持浮动显示的元素的操作。In another possible implementation manner, the first operation is an operation on a predetermined function control; or the first operation is an operation on an element supporting floating display in the first interface.

在另一种可能的实现方式中,终端在终端的显示屏上显示第一浮动元素之后,该方法还可以包括:终端在终端的显示屏上显示第二界面,第二界面包括第三元素;终端在接收到对第三元素的第二操作后,在终端的显示屏上显示第二浮动元素,第二浮动元素的内容与第三元素的内容相同,第二浮动元素和第一浮动元素按照预设排列规则显示在终端的显示屏上。其中,第二操作包括拖拽操作和拖拽释放操作,或当第三元素为文本类元素或URL网址时,该第二操作还可以为复制操作。该技术方案支持在终端屏幕上同时显示多个浮动元素,满足用户的需求。另外,可根据生成时间的先后等排序规则显示各浮动元素。In another possible implementation manner, after the terminal displays the first floating element on the display screen of the terminal, the method may further include: the terminal displays a second interface on the display screen of the terminal, and the second interface includes the third element; After receiving the second operation on the third element, the terminal displays the second floating element on the display screen of the terminal, the content of the second floating element is the same as the content of the third element, and the second floating element and the first floating element follow the The preset arrangement rules are displayed on the display screen of the terminal. Wherein, the second operation includes a drag operation and a drag-and-drop operation, or when the third element is a text element or a URL, the second operation may also be a copy operation. The technical solution supports simultaneous display of multiple floating elements on the terminal screen, meeting the needs of users. In addition, each floating element can be displayed according to a sorting rule such as the order of generation time.

在另一种可能的实现方式中,终端在终端的显示屏上显示第二浮动元素之前,该方法还可以包括:终端确定终端的显示屏上显示的浮动元素的个数小于N,N为在显示屏上允许同时显示的浮动元素的最大个数。可以对终端屏幕上最多允许同时显示的浮动元素的个数进行限制,不仅可满足用户需求,而且不会因为界面中浮动元素个数过多影响用户使用体验。In another possible implementation manner, before the terminal displays the second floating element on the display screen of the terminal, the method may further include: the terminal determines that the number of floating elements displayed on the display screen of the terminal is less than N, where N is The maximum number of floating elements allowed to be displayed on the display at the same time. The maximum number of floating elements that can be displayed on the terminal screen at the same time can be limited, which not only meets the needs of users, but also does not affect the user experience due to the excessive number of floating elements in the interface.

在另一种可能的实现方式中,该方法还可以包括:终端在确定终端的显示屏上显示的浮动元素的个数等于N时,删除N个浮动元素中按照预设排列规则排在第一个的浮动UI元素,并显示第二浮动元素。在设置了允许同时显示的浮动元素的上限的情况下,当当前屏幕上浮动元素的个数已达到上限时,用户触发生成新的浮动元素,可以将最早生成的浮动元素删除,然后显示新生成的浮动元素。In another possible implementation, the method may further include: when the terminal determines that the number of floating elements displayed on the display screen of the terminal is equal to N, deleting the N floating elements ranked first according to the preset arrangement rules first floating UI element, and display the second floating element. When the upper limit of floating elements allowed to be displayed at the same time is set, when the number of floating elements on the current screen has reached the upper limit, the user triggers the generation of new floating elements, the earliest generated floating elements can be deleted, and then the newly generated elements can be displayed The floating element.

在另一种可能的实现方式中,终端在终端的显示屏上显示第二浮动元素之前,该方法还可以包括:终端确定终端的显示屏上显示的浮动元素中不存在与第二浮动元素类型相同的浮动元素。In another possible implementation manner, before the terminal displays the second floating element on the display screen of the terminal, the method may further include: the terminal determines that the floating elements displayed on the display screen of the terminal do not have the second floating element type Same for floated elements.

在另一种可能的实现方式中,该方法还可以包括:终端在确定终端的显示屏上显示的浮动元素中存在与第二浮动元素类型相同的第三浮动元素时,终端将第二浮动元素和第三浮动元素合并为浮动元素组后显示在终端的显示屏上。In another possible implementation manner, the method may further include: when the terminal determines that there is a third floating element of the same type as the second floating element among the floating elements displayed on the display screen of the terminal, the terminal sets the second floating element and the third floating element are combined into a floating element group and displayed on the display screen of the terminal.

在另一种可能的实现方式中,该方法还包括:终端在接收到对浮动元素组的第三操作后,在终端的显示屏上显示第二浮动元素和第三浮动元素。In another possible implementation manner, the method further includes: after the terminal receives the third operation on the floating element group, displaying the second floating element and the third floating element on a display screen of the terminal.

在用户触发生成新的浮动元素的情况下,如果当前界面中存在与该新生成的浮动元素同类型的元素,则可以自动将新生成的浮动元素与该元素合并为浮动元素组后显示。如果不存在,则显示该新的浮动元素。这样,可以自动将同类型的浮动元素归类显示,提高了用户的使用体验。并且支持将浮动元素组展开供用户查看。When the user triggers the generation of a new floating element, if there is an element of the same type as the newly generated floating element in the current interface, the newly generated floating element and the element can be automatically combined into a floating element group and displayed. If not present, this new floated element is displayed. In this way, floating elements of the same type can be automatically classified and displayed, which improves user experience. It also supports expanding the group of floating elements for users to view.

在另一种可能的实现方式中,该方法还可以包括:终端在接收到对第一浮动元素的第四操作后,删除第一浮动元素;或,终端在第一浮动元素在终端的显示屏上显示预设时长后,删除第一浮动元素。In another possible implementation manner, the method may further include: after the terminal receives the fourth operation on the first floating element, deleting the first floating element; or, the terminal deletes the first floating element on the display screen of the terminal After the preset duration is displayed on, delete the first floating element.

在另一种可能的实现方式中,第一浮动元素上显示有以下标识中的一个或多个:应用的标识,消息提醒信息,指示信息;指示信息用于指示第一浮动元素的类型。这样,便于用户获知浮动元素的来源于哪个应用,或其类型。In another possible implementation manner, one or more of the following identifiers are displayed on the first floating element: an application identifier, message reminder information, and indication information; the indication information is used to indicate the type of the first floating element. In this way, it is convenient for the user to know which application or type the floating element comes from.

在另一种可能的实现方式中,在第一元素为文本类元素,URL网址,图片类元素或文件资源类元素的情况下,终端在显示屏上显示第一浮动元素之后,该方法还可以包括:终端显示包括输入框的界面;终端在接收到对第一浮动元素的拖拽操作,并在输入框位置的释放拖拽操作后,终端将第一浮动元素对应的内容填充到输入框中。对于文本类,图片类,卡片类,文件资源类和视频窗口类的浮动元素可通过将浮动元素拖入输入框内,触发终端通过即时通信应用发送给好友。简化了跨应用分享信息时的交互流程和操作步骤,提高了人机交互性能。In another possible implementation, when the first element is a text element, a URL address, an image element or a file resource element, after the terminal displays the first floating element on the display screen, the method may also be Including: the terminal displays an interface including an input box; after the terminal receives a drag operation on the first floating element and releases the drag operation at the position of the input box, the terminal fills the content corresponding to the first floating element into the input box . For the floating elements of text, picture, card, file resource and video window, you can drag the floating element into the input box to trigger the terminal to send it to friends through the instant messaging application. It simplifies the interaction process and operation steps when sharing information across applications, and improves the performance of human-computer interaction.

在另一种可能的实现方式中,在第一元素为URL网址的情况下,终端在显示屏上显示第一浮动元素之后,该方法还可以包括:终端在接收到用户对第一浮动元素的操作后,显示URL网址对应的网页。这样,URL类的浮动UI元素支持直接点开跳转,提高了人机交互性能。In another possible implementation manner, in the case that the first element is a URL, after the terminal displays the first floating element on the display screen, the method may further include: after receiving the user's response to the first floating element, the terminal After the operation, the webpage corresponding to the URL is displayed. In this way, floating UI elements of the URL type support direct click and jump, which improves the performance of human-computer interaction.

在另一种可能的实现方式中,在第一元素为图标类元素或列表联系人类元素的情况下,终端在显示屏上显示第一浮动元素之后,该方法还可以包括:终端在接收到对第一浮动元素的第五操作后,终端执行第一功能,第一功能与终端接收到用户对第一元素的操作后执行的功能相同。这样,从不同应用的联系人列表中提取出来的代表特定联系人的浮动元素,根据具体业务场景支持发送文件、拨打电话等功能。简化了触发终端执行功能时交互流程和操作步骤,提高了人机交互性能。In another possible implementation, when the first element is an icon element or a list contact element, after the terminal displays the first floating element on the display screen, the method may further include: the terminal receives the After the fifth operation on the first floating element, the terminal executes the first function, and the first function is the same as the function executed after the terminal receives the user's operation on the first element. In this way, the floating elements representing specific contacts extracted from the contact lists of different applications support functions such as sending files and making calls according to specific business scenarios. It simplifies the interaction process and operation steps when triggering the terminal to execute functions, and improves the performance of human-computer interaction.

在另一种可能的实现方式中,在第一元素为列表联系人类元素的情况下,终端在显示屏上显示第一浮动元素之后,该方法还可以包括:终端在接收到对界面中文本,URL网址或图片的拖拽操作,并在第一浮动元素位置的释放拖拽操作后,终端将文本,URL网址或图片发送给第一浮动元素对应联系人的终端。文件,图片,文字和URL等内容通过拖拽至列表联系人类的浮动元素上可直接将该内容分享给对应联系人。简化了跨应用分享信息时的交互流程和操作步骤,提高了人机交互性能。In another possible implementation manner, in the case where the first element is a list contact person element, after the terminal displays the first floating element on the display screen, the method may further include: after the terminal receives the text in the interface, Drag and drop the URL or picture, and after releasing the drag operation at the position of the first floating element, the terminal sends the text, the URL or the picture to the terminal of the contact corresponding to the first floating element. Files, images, text, and URLs can be directly shared with the corresponding contacts by dragging and dropping content such as files, pictures, text, and URLs to the floating elements of the contact list. It simplifies the interaction process and operation steps when sharing information across applications, and improves the performance of human-computer interaction.

在其他一些实施例中,还可以通过其他操作触发中终端将界面中的元素以浮动元素的形式显示在终端屏幕上。如,终端在终端的显示屏上显示一界面;终端在接收到用户的截屏操作后,截取显示屏上显示的该界面的内容,生成截图;之后,终端在终端的显示屏上显示浮动元素,该浮动元素包括该截图。或者,终端在终端的显示屏上显示一界面;终端在接收到用户的截屏操作后,截取显示屏上显示的该界面的内容,生成截图并显示该截图;之后,终端在接收到用户对该截图的拖拽操作,后又释放拖拽的操作后,终端的显示屏上显示浮动元素,该浮动元素包括该截图。又如,终端的显示屏上显示一界面,该界面中包括预定按钮;终端在接收到用对该预定按钮的操作后,在显示屏上显示浮动元素,该浮动元素的内容与该界面中部分元素的内容相同。In some other embodiments, other operations may also be used to trigger the terminal to display the elements in the interface in the form of floating elements on the terminal screen. For example, the terminal displays an interface on the display screen of the terminal; after receiving the user's screenshot operation, the terminal intercepts the content of the interface displayed on the display screen to generate a screenshot; after that, the terminal displays floating elements on the display screen of the terminal, The floating element includes the screenshot. Or, the terminal displays an interface on the display screen of the terminal; after receiving the user's screen capture operation, the terminal intercepts the content of the interface displayed on the display screen, generates a screenshot and displays the screenshot; after that, the terminal receives the user's After dragging the screenshot and releasing the dragging operation, a floating element is displayed on the display screen of the terminal, and the floating element includes the screenshot. For another example, an interface is displayed on the display screen of the terminal, and the interface includes a predetermined button; after receiving an operation on the predetermined button, the terminal displays a floating element on the display screen, and the content of the floating element is the same as part of the interface. elements have the same content.

第二方面,本申请实施例提供一种界面元素显示方法,应用于终端,该方法可以包括:终端在终端的显示屏上显示第一界面,第一界面包括第一元素,第一元素为文本类元素或URL网址;终端在接收到对第一元素的复制操作后,在终端的显示屏上显示第一浮动元素,第一浮动元素的内容与第一元素的内容相同。In the second aspect, the embodiment of the present application provides a method for displaying interface elements, which is applied to a terminal, and the method may include: the terminal displays a first interface on the display screen of the terminal, the first interface includes a first element, and the first element is text A class element or a URL address; after receiving the copy operation of the first element, the terminal displays the first floating element on the display screen of the terminal, and the content of the first floating element is the same as that of the first element.

采用以上技术方案,终端可根据用户操作,将界面上的文本类元素或URL网址以浮动元素的形式显示在终端屏幕上。之后,无论用户在应用内切换页面或退出该应用或打开其他应用,该浮动元素可继续显示在终端屏幕上,用于实现跨应用的信息查看,文件传输,信息分享等操作。并且,结合系统现有的交互逻辑,如触发终端显示针对该元素的复制按钮后,用户通过对该复制按钮进行点击操作,便可触发文本类元素或URL网址以浮动元素的形式显示在终端屏幕上,提高了用户的使用体验。With the above technical solution, the terminal can display text elements or URLs on the interface in the form of floating elements on the terminal screen according to user operations. Afterwards, no matter whether the user switches pages in the application, exits the application or opens other applications, the floating element can continue to be displayed on the terminal screen for cross-application information viewing, file transfer, information sharing and other operations. Moreover, combined with the existing interaction logic of the system, for example, after the terminal is triggered to display the copy button for the element, the user can click the copy button to trigger the text element or URL to be displayed on the terminal screen in the form of a floating element In this way, the user experience is improved.

在一种可能的实现方式中,终端在显示屏上显示第一浮动元素之后,该方法还可以包括:终端显示包括输入框的界面;终端在接收到对第一浮动元素的拖拽操作,并在输入框位置的释放拖拽操作后,终端将第一浮动元素对应的内容填充到输入框中。简化了跨应用分享信息时的交互流程和操作步骤,提高了人机交互性能。In a possible implementation manner, after the terminal displays the first floating element on the display screen, the method may further include: the terminal displays an interface including an input box; the terminal receives a drag operation on the first floating element, and After releasing the drag operation at the position of the input box, the terminal fills the content corresponding to the first floating element into the input box. It simplifies the interaction process and operation steps when sharing information across applications, and improves the performance of human-computer interaction.

第三方面,本申请实施例提供一种显示装置,该显示装置可以应用于终端,该装置可以包括:显示单元,用于在终端的显示屏上显示应用的第一界面,第一界面包括第一元素;输入单元,用于接收对第一元素的拖拽操作;显示单元,还用于在终端的显示屏上显示第一元素随拖拽操作移动的动画;输入单元,还用于接收拖拽释放操作;显示单元,还用于在终端的显示屏上显示第一浮动元素,第一浮动元素的内容与第一元素的内容相同。In a third aspect, an embodiment of the present application provides a display device, which can be applied to a terminal, and the device can include: a display unit, configured to display a first interface of an application on a display screen of the terminal, the first interface includes a first An element; the input unit is used to receive the drag operation on the first element; the display unit is also used to display the animation of the first element moving with the drag operation on the display screen of the terminal; the input unit is also used to receive the drag operation drag and release operation; the display unit is further configured to display the first floating element on the display screen of the terminal, and the content of the first floating element is the same as the content of the first element.

在一种可能的实现方式中,第一界面还包括在第一元素预设范围内的第二元素;第一浮动元素还包括第二元素的内容。In a possible implementation manner, the first interface further includes a second element within a preset range of the first element; the first floating element further includes content of the second element.

在另一种可能的实现方式中,第一元素为文本类元素,URL网址,图片类元素,图标类元素,卡片类元素,列表联系人类元素,视频窗口类元素或文件资源类元素中的一种或多种。In another possible implementation manner, the first element is one of a text element, a URL address, an image element, an icon element, a card element, a list contact element, a video window element or a file resource element. one or more species.

在另一种可能的实现方式中,输入单元,还用于接收第一操作;显示单元,还用于将第一界面中支持浮动显示的元素以第一形式显示,不支持浮动显示的元素以第二形式显示;第一元素为支持浮动显示的元素,第一形式与第二形式不同。In another possible implementation manner, the input unit is further configured to receive the first operation; the display unit is further configured to display elements in the first interface that support floating display in a first form, and elements that do not support floating display display in a first form. The second form is displayed; the first element is an element that supports floating display, and the first form is different from the second form.

在另一种可能的实现方式中,第一操作为对预定功能控件的操作;或第一操作为对第一界面中支持浮动显示的元素的操作。In another possible implementation manner, the first operation is an operation on a predetermined function control; or the first operation is an operation on an element supporting floating display in the first interface.

在另一种可能的实现方式中,显示单元,还用于在终端的显示屏上显示第二界面,第二界面包括第三元素;输入单元,还用于接收对第三元素的第二操作;显示单元,还用于在终端的显示屏上显示第二浮动元素,第二浮动元素的内容与第三元素的内容相同,第二浮动元素和第一浮动元素按照预设排列规则显示在终端的显示屏上。其中,第二操作可以包括拖拽操作和拖拽释放操作,或第一元素为文本类元素或URL网址的情况下,第二操作可以为复制操作。In another possible implementation manner, the display unit is further configured to display a second interface on the display screen of the terminal, and the second interface includes a third element; the input unit is further configured to receive a second operation on the third element ; The display unit is also used to display the second floating element on the display screen of the terminal, the content of the second floating element is the same as the content of the third element, and the second floating element and the first floating element are displayed on the terminal according to a preset arrangement rule on the display. Wherein, the second operation may include a drag operation and a drag and drop operation, or when the first element is a text element or a URL address, the second operation may be a copy operation.

在另一种可能的实现方式中,该显示装置,还可以包括:确定单元,用于确定终端的显示屏上显示的浮动元素的个数小于N,N为在显示屏上允许同时显示的浮动元素的最大个数。In another possible implementation manner, the display device may further include: a determination unit, configured to determine that the number of floating elements displayed on the display screen of the terminal is less than N, where N is the number of floating elements that are allowed to be displayed simultaneously on the display screen The maximum number of elements.

在另一种可能的实现方式中,该显示装置还可以包括:删除单元,用于在确定单元确定终端的显示屏上显示的浮动元素的个数等于N时,删除N个浮动元素中按照预设排列规则排在第一个的浮动UI元素,并显示第二浮动元素。In another possible implementation, the display device may further include: a deleting unit, configured to delete N floating elements according to preset Set the arrangement rule to rank the first floating UI element, and display the second floating element.

在另一种可能的实现方式中,确定单元,还用于确定终端的显示屏上显示的浮动元素中不存在与第二浮动元素类型相同的浮动元素。In another possible implementation manner, the determining unit is further configured to determine that there is no floating element of the same type as the second floating element among the floating elements displayed on the display screen of the terminal.

在另一种可能的实现方式中,显示单元,还用于在确定单元确定终端的显示屏上显示的浮动元素中存在与第二浮动元素类型相同的第三浮动元素时,将第二浮动元素和第三浮动元素合并为浮动元素组后显示在终端的显示屏上。In another possible implementation manner, the display unit is further configured to, when the determining unit determines that there is a third floating element of the same type as the second floating element among the floating elements displayed on the and the third floating element are combined into a floating element group and displayed on the display screen of the terminal.

在另一种可能的实现方式中,输入单元,还用于接收对浮动元素组的第三操作;显示单元,用于在终端的显示屏上显示第二浮动元素和第三浮动元素。In another possible implementation manner, the input unit is further configured to receive a third operation on the floating element group; the display unit is configured to display the second floating element and the third floating element on a display screen of the terminal.

在另一种可能的实现方式中,输入单元,还用于接收对第一浮动元素的第四操作,删除单元,还用于删除第一浮动元素;或,删除单元,还用于在第一浮动元素在终端的显示屏上显示预设时长后,删除第一浮动元素。In another possible implementation manner, the input unit is also used to receive the fourth operation on the first floating element, and the delete unit is also used to delete the first floating element; or, the delete unit is also used to After the floating element is displayed on the display screen of the terminal for a preset period of time, the first floating element is deleted.

在另一种可能的实现方式中,第一浮动元素上显示有以下标识中的一个或多个:应用的标识,消息提醒信息,指示信息;指示信息用于指示第一浮动元素的类型。In another possible implementation manner, one or more of the following identifiers are displayed on the first floating element: an application identifier, message reminder information, and indication information; the indication information is used to indicate the type of the first floating element.

在另一种可能的实现方式中,在第一元素为文本类元素,URL网址,图片类元素或文件资源类元素的情况下,显示单元,还用于显示包括输入框的界面;输入单元,还用于接收对第一浮动元素的拖拽操作,并在输入框位置的释放拖拽操作;显示装置还可以包括:填充单元,用于将第一浮动元素对应的内容填充到输入框中。In another possible implementation, when the first element is a text element, a URL, an image element or a file resource element, the display unit is also used to display an interface including an input box; the input unit, It is also used for receiving a drag operation on the first floating element, and releasing the drag operation at the position of the input box; the display device may further include: a filling unit, configured to fill the content corresponding to the first floating element into the input box.

在另一种可能的实现方式中,在第一元素为图标类元素或列表联系人类元素的情况下,输入单元,还用于接收对第一浮动元素的第五操作;显示装置还可以包括:执行单元,用于执行第一功能,第一功能与终端接收到用户对第一元素的操作后执行的功能相同。In another possible implementation manner, when the first element is an icon element or a list contact element, the input unit is further configured to receive a fifth operation on the first floating element; the display device may further include: The execution unit is configured to execute a first function, where the first function is the same as the function executed by the terminal after receiving the user's operation on the first element.

在另一种可能的实现方式中,在第一元素为列表联系人类元素的情况下,输入单元,还用于接收对界面中文本,URL网址或图片的拖拽操作,并在第一浮动元素位置的释放拖拽操作;该显示装置还可以包括:发送单元,用于将文本,URL网址或图片发送给第一浮动元素对应联系人的终端。In another possible implementation, when the first element is a list contact person element, the input unit is also used to receive a drag operation on the text, URL or picture in the interface, and Release and drag operation of the position; the display device may further include: a sending unit, configured to send text, URL or picture to the terminal of the contact corresponding to the first floating element.

第四方面,本申请实施例提供一种显示装置,应用于终端,该显示装置可以包括:显示单元,用于在终端的显示屏上显示第一界面,第一界面包括第一元素,第一元素为文本类元素或统一资源定位符URL网址;输入单元,用于接收对第一元素的复制操作;显示单元,还用于在终端的显示屏上显示第一浮动元素,第一浮动元素的内容与第一元素的内容相同。In a fourth aspect, an embodiment of the present application provides a display device applied to a terminal, and the display device may include: a display unit configured to display a first interface on a display screen of the terminal, the first interface includes a first element, and the first The element is a text element or a Uniform Resource Locator URL; the input unit is used to receive the copy operation of the first element; the display unit is also used to display the first floating element on the display screen of the terminal, and the first floating element The content is the same as the content of the first element.

在一种可能的实现方式中,显示单元,还用于显示包括输入框的界面;输入单元,还用于接收对第一浮动元素的拖拽操作,并在输入框位置的释放拖拽操作;该显示装置还可以包括:填充单元,用于将第一浮动元素对应的内容填充到输入框中。In a possible implementation manner, the display unit is further configured to display an interface including an input box; the input unit is further configured to receive a drag operation on the first floating element, and release the drag operation at the position of the input box; The display device may further include: a filling unit, configured to fill the input box with content corresponding to the first floating element.

第五方面,本申请实施例提供一种显示装置,包括:处理器;用于存储处理器可执行指令的存储器;其中,处理器被配置为执行指令时使得显示装置实现如第一方面或第一方面可能的实现方式中任一项所述的方法,或者实现如第二方面或第二方面可能的实现方式中任一项所述的方法。In a fifth aspect, an embodiment of the present application provides a display device, including: a processor; a memory for storing processor-executable instructions; wherein, when the processor executes the instructions, the display device implements the first aspect or the second aspect. The method described in any one of the possible implementations of the first aspect, or the second aspect or the method described in any one of the possible implementations of the second aspect.

第六方面,本申请实施例提供一种计算机可读存储介质,其上存储有计算机程序指令,计算机程序指令被电子设备执行时使得电子设备实现如第一方面或第一方面可能的实现方式中任一项所述的方法,或者实现如第二方面或第二方面可能的实现方式中任一项所述的方法。In the sixth aspect, the embodiments of the present application provide a computer-readable storage medium, on which computer program instructions are stored. When the computer program instructions are executed by the electronic device, the electronic device implements the first aspect or the possible implementation manner of the first aspect. The method described in any one, or implement the method described in any one of the second aspect or possible implementation manners of the second aspect.

第七方面,本申请实施例提供一种电子设备(如上述终端),该电子设备包括显示屏,一个或多个处理器和存储器;显示屏,处理器和存储器耦合;存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,当计算机指令被电子设备执行时,使得该电子设备执行如第一方面或第一方面可能的实现方式中任一项所述的方法,或者执行如第二方面或第二方面可能的实现方式中任一项所述的方法。In the seventh aspect, the embodiment of the present application provides an electronic device (such as the above-mentioned terminal), the electronic device includes a display screen, one or more processors, and a memory; the display screen is coupled to the processor and the memory; the memory is used to store computer programs Code, the computer program code includes computer instructions, and when the computer instructions are executed by the electronic device, the electronic device executes the method described in any one of the first aspect or possible implementations of the first aspect, or executes the method described in the second aspect Or the method described in any one of the possible implementations of the second aspect.

第八方面,本申请实施例提供一种计算机程序产品,包括计算机可读代码,或者承载有计算机可读代码的非易失性计算机可读存储介质,当所述计算机可读代码在电子设备(如上述终端)中运行时,电子设备中的处理器执行第一方面或第一方面的可能的实现方式中任一项所述的方法,或者执行如第二方面或第二方面可能的实现方式中任一项所述的方法。In an eighth aspect, an embodiment of the present application provides a computer program product, including computer readable codes, or a non-volatile computer readable storage medium carrying computer readable codes, when the computer readable codes are stored in an electronic device ( When running in the above-mentioned terminal), the processor in the electronic device executes the method described in any one of the first aspect or the possible implementation manners of the first aspect, or executes the second aspect or the possible implementation manners of the second aspect any one of the methods described.

可以理解地,上述提供的第三方面及其任一种可能的实现方式所述的显示装置,第四方面及其任一种可能的实现方式所述的显示装置,第五方面所述的显示装置,第六方面所述的计算机可读存储介质,第七方面所述的电子设备,及第八方面所述的计算机程序产品所能达到的有益效果,可参考如第一方面及其任一种可能的实现方式中或第二方面及其任一种可能的实现方式中的有益效果,此处不再赘述。Understandably, the display device described in the third aspect and any possible implementation thereof provided above, the display device described in the fourth aspect and any possible implementation thereof, and the display device described in the fifth aspect For the beneficial effects that can be achieved by the device, the computer-readable storage medium described in the sixth aspect, the electronic device described in the seventh aspect, and the computer program product described in the eighth aspect, you can refer to the first aspect and any one thereof. One possible implementation manner or the beneficial effects of the second aspect and any possible implementation manner thereof, which will not be repeated here.

附图说明Description of drawings

图1为本申请实施例提供的一种相关技术中显示界面的示意图;FIG. 1 is a schematic diagram of a display interface in a related art provided by an embodiment of the present application;

图2为本申请实施例提供的另一种相关技术中显示界面的示意图;FIG. 2 is a schematic diagram of a display interface in another related art provided by an embodiment of the present application;

图3为本申请实施例提供的一种手机的结构示意图;FIG. 3 is a schematic structural diagram of a mobile phone provided by an embodiment of the present application;

图4为本申请实施例提供的一种终端的软件架构的组成示意图;FIG. 4 is a schematic composition diagram of a software architecture of a terminal provided in an embodiment of the present application;

图5A为本申请实施例提供的一种显示界面的示意图;FIG. 5A is a schematic diagram of a display interface provided by an embodiment of the present application;

图5B为本申请实施例提供的另一种显示界面的示意图;FIG. 5B is a schematic diagram of another display interface provided by the embodiment of the present application;

图6为本申请实施例提供的一种界面元素显示方法的流程示意图;FIG. 6 is a schematic flowchart of a method for displaying interface elements provided by an embodiment of the present application;

图7为本申请实施例提供的又一种显示界面的示意图;FIG. 7 is a schematic diagram of another display interface provided by the embodiment of the present application;

图8为本申请实施例提供的又一种显示界面的示意图;FIG. 8 is a schematic diagram of another display interface provided by the embodiment of the present application;

图9为本申请实施例提供的又一种显示界面的示意图;FIG. 9 is a schematic diagram of another display interface provided by the embodiment of the present application;

图10为本申请实施例提供的又一种显示界面的示意图;FIG. 10 is a schematic diagram of another display interface provided by the embodiment of the present application;

图11为本申请实施例提供的又一种显示界面的示意图;FIG. 11 is a schematic diagram of another display interface provided by the embodiment of the present application;

图12为本申请实施例提供的另一种界面元素显示方法的流程示意图;FIG. 12 is a schematic flowchart of another interface element display method provided by the embodiment of the present application;

图13A为本申请实施例提供的又一种显示界面的示意图;FIG. 13A is a schematic diagram of another display interface provided by the embodiment of the present application;

图13B为本申请实施例提供的又一种显示界面的示意图;FIG. 13B is a schematic diagram of another display interface provided by the embodiment of the present application;

图14为本申请实施例提供的又一种显示界面的示意图;FIG. 14 is a schematic diagram of another display interface provided by the embodiment of the present application;

图15为本申请实施例提供的又一种显示界面的示意图;Fig. 15 is a schematic diagram of another display interface provided by the embodiment of the present application;

图16为本申请实施例提供的又一种显示界面的示意图;Fig. 16 is a schematic diagram of another display interface provided by the embodiment of the present application;

图17为本申请实施例提供的又一种显示界面的示意图;Fig. 17 is a schematic diagram of another display interface provided by the embodiment of the present application;

图18为本申请实施例提供的又一种显示界面的示意图;FIG. 18 is a schematic diagram of another display interface provided by the embodiment of the present application;

图19为本申请实施例提供的又一种显示界面的示意图;FIG. 19 is a schematic diagram of another display interface provided by the embodiment of the present application;

图20为本申请实施例提供的又一种显示界面的示意图;FIG. 20 is a schematic diagram of another display interface provided by the embodiment of the present application;

图21为本申请实施例提供的又一种显示界面的示意图;Fig. 21 is a schematic diagram of another display interface provided by the embodiment of the present application;

图22为本申请实施例提供的又一种显示界面的示意图;Fig. 22 is a schematic diagram of another display interface provided by the embodiment of the present application;

图23为本申请实施例提供的又一种显示界面的示意图;Fig. 23 is a schematic diagram of another display interface provided by the embodiment of the present application;

图24为本申请实施例提供的又一种显示界面的示意图;Fig. 24 is a schematic diagram of another display interface provided by the embodiment of the present application;

图25为本申请实施例提供的又一种显示界面的示意图;Fig. 25 is a schematic diagram of another display interface provided by the embodiment of the present application;

图26为本申请实施例提供的又一种显示界面的示意图;Fig. 26 is a schematic diagram of another display interface provided by the embodiment of the present application;

图27为本申请实施例提供的又一种显示界面的示意图;Fig. 27 is a schematic diagram of another display interface provided by the embodiment of the present application;

图28为本申请实施例提供的又一种显示界面的示意图;Fig. 28 is a schematic diagram of another display interface provided by the embodiment of the present application;

图29为本申请实施例提供的又一种显示界面的示意图;Fig. 29 is a schematic diagram of another display interface provided by the embodiment of the present application;

图30为本申请实施例提供的又一种显示界面的示意图;FIG. 30 is a schematic diagram of another display interface provided by the embodiment of the present application;

图31为本申请实施例提供的又一种显示界面的示意图;Fig. 31 is a schematic diagram of another display interface provided by the embodiment of the present application;

图32为本申请实施例提供的一种显示装置的组成示意图;Fig. 32 is a schematic composition diagram of a display device provided by an embodiment of the present application;

图33为本申请实施例提供的一种芯片系统的组成示意图。FIG. 33 is a schematic diagram of a chip system provided by an embodiment of the present application.

具体实施方式Detailed ways

目前,可通过在手机等终端中安装应用,完善手机功能,为用户提供更佳的使用体验。但是,在日常使用手机的过程中,经常会遇到以下场景:给好友分享某商品的图片,需要先保存到图库应用中,然后从图库应用里点选图片,才能完成分享,交互非常麻烦;朋友分享的电话号码等内容,如果是通过图片分享的,则无法直接复制,如果利用(opticalcharacter recognition,OCR)识别后复制,OCR识别又不准确,用户只能在手机上来回切换打字界面和图片界面;给朋友发送某网站的网址,将该网址复制后,复制的内容只被保存在了粘贴板,对用户并不可见,且还需要切换多个应用才能分享给朋友,体验差;购买了某商品,需要经过多个操作步骤才能查看到商品是否发货,商品的物流等信息,交互流程长等等。这些场景均反映出用户日常使用手机等终端时,如果需进行跨应用查看或分享信息,则会出现交互流程繁琐,操作步骤多的问题,人机交互性能差。At present, by installing applications in terminals such as mobile phones, the functions of mobile phones can be improved to provide users with a better experience. However, in the process of daily use of mobile phones, the following scenarios are often encountered: to share a picture of a certain product with a friend, you need to save it in the gallery application first, and then click on the picture in the gallery application to complete the sharing, and the interaction is very troublesome; The phone number and other content shared by friends cannot be copied directly if they are shared through pictures. If they are copied after using (optical character recognition, OCR) recognition, the OCR recognition is not accurate, and the user can only switch back and forth between the typing interface and pictures on the mobile phone. Interface; send the URL of a certain website to a friend, and after copying the URL, the copied content is only saved on the clipboard, which is not visible to the user, and it is necessary to switch multiple applications to share with friends, which is a poor experience; purchased For a product, it takes multiple steps to check whether the product is shipped, the logistics of the product and other information, the interaction process is long, and so on. These scenarios all reflect that when users use mobile phones and other terminals on a daily basis, if they need to view or share information across applications, the interaction process will be cumbersome, the operation steps will be too many, and the human-computer interaction performance will be poor.

当前技术提供了一些方案,来解决上述问题。The current technology provides some solutions to solve the above problems.

相关技术一:华为定制了侧边(dock)栏功能。用户可通过执行从手机屏幕的左边缘或右边缘向手机屏幕中间区域的滑动操作,触发手机显示dock栏,该dock栏在手机屏幕上的显示位置不可挪动,用户点击dock栏外的其他区域时,dock栏被关闭。dock栏中包括一个或多个应用的图标,为用户提供快捷入口,以便能够快速打开对应应用,从而简化用户使用多个应用时的交互流程,提高使用效率。例如,结合图1,如图1中的(a)所示,手机显示备忘录界面101。用户想将备忘录中的内容通过微信TM分享给好友。用户可在手机屏幕上执行从屏幕的右边缘开始向手机屏幕中间区域的滑动操作。作为对该滑动操作的响应,手机可显示dock栏102,该dock栏102中包括一个或多个应用的图标,如包括微信TM的图标103。在用户对该dock栏102中的微信TM的图标103进行操作,如点击操作后,如图1中的(b)所示,手机可以自由(freeform)小窗104(或者称为浮窗)的形式显示微信TM的界面。之后,用户在微信TM的界面中选择好友,以将需要分享的内容通过微信TM分享出去。但是,dock栏仅提供了打开应用的快捷入口,用户仍需要经过较为繁琐的步骤才能将内容分享给好友,人机交互性能仍没得到较好的提升。Related technology 1: Huawei has customized the side (dock) bar function. The user can perform a sliding operation from the left or right edge of the mobile phone screen to the middle area of the mobile phone screen to trigger the mobile phone to display the dock bar. The display position of the dock bar on the mobile phone screen cannot be moved. When the user clicks on other areas outside the dock bar , the dock bar is closed. The dock bar includes icons of one or more applications, providing a quick entry for the user so that the corresponding application can be quickly opened, thereby simplifying the interaction process when the user uses multiple applications and improving usage efficiency. For example, referring to FIG. 1 , as shown in (a) in FIG. 1 , the mobile phone displays a memo interface 101 . The user wants to share the contents of the memo with friends through WeChat TM . The user can perform a sliding operation on the mobile phone screen from the right edge of the screen to the middle area of the mobile phone screen. As a response to the sliding operation, the mobile phone may display a dock bar 102 including icons of one or more applications, such as an icon 103 including WeChat . After the user operates the icon 103 of WeChat TM in the dock bar 102, as shown in (b) in Fig. The form displays the interface of WeChat TM . Afterwards, the user selects a friend in the interface of WeChat TM to share the content to be shared through WeChat TM . However, the dock bar only provides a quick entry to open the application, and users still need to go through cumbersome steps to share content with friends, and the human-computer interaction performance has not been improved.

相关技术二:微信TM定义了浮窗(或者说收藏栏)功能。该浮窗是小程序或文章链接暂存的入口。例如,结合图2,如图2中的(a)所示,用户浏览微信TM中某公众号的资讯页面201。用户可通过执行从手机屏幕左侧向右的滑动操作,以触发手机返回该资讯页面201的上一级页面。如图2中的(b)所示,随着用户手指的滑动,手机可显示资讯页面201的部分区域和资讯页面201的上一级页面的部分区域202。响应于用户的该滑动操作,手机还可在手机屏幕的右下角显示浮窗指示区域203。在用户将手指滑入该浮窗指示区域203后,如图2中的(c)所示,手机以收藏抽屉的形式显示浮窗204,并在用户松手后,浮窗204自动吸附在屏幕边缘,该浮窗204包括了资讯页面201的链接,也就是说资讯页面201被收录在了收藏栏中,用户点击收藏栏可查看收录的资讯页面201。其中,微信TM的浮窗中最多可同时暂存(或者说收藏)五个小程序或文章链接。当浮窗中收藏了多个小程序或文章链接时,用户点击该浮窗,可查看收藏列表。但是,浮窗仅在微信TM内一直显示,当微信TM退出后,浮窗不再显示。也就是说,在微信TM退出后,浮窗便无法起到快捷入口的作用,这样,也就无法解决跨应用查看或分享信息时人机交互性能差的问题。另外,微信TM的浮窗功能仅能将整个页面的链接以浮窗的形式暂存起来,不能支持页面中某些或某个元素以浮窗形式的暂存。Related technology 2: WeChat TM defines the floating window (or collection bar) function. This floating window is the entry point for temporary storage of applets or article links. For example, referring to FIG. 2 , as shown in (a) in FIG. 2 , the user browses the information page 201 of a public account in WeChat TM . The user can trigger the mobile phone to return to the previous page of the information page 201 by performing a sliding operation from the left side of the screen of the mobile phone to the right. As shown in (b) of FIG. 2 , with the sliding of the user's finger, the mobile phone can display a partial area of the information page 201 and a partial area 202 of the upper level page of the information page 201 . In response to the user's sliding operation, the mobile phone may also display a floating window indication area 203 at the lower right corner of the mobile phone screen. After the user slides his finger into the floating window indication area 203, as shown in (c) in FIG. , the floating window 204 includes a link to the information page 201, that is to say, the information page 201 is included in the favorite column, and the user can click the favorite column to view the included information page 201. Among them, up to five mini-programs or article links can be temporarily stored (or collected) in the floating window of WeChat TM at the same time. When multiple applets or article links are bookmarked in the floating window, the user can click the floating window to view the list of favorites. However, the floating window is only displayed in WeChat TM all the time, and when WeChat TM exits, the floating window will no longer be displayed. That is to say, after WeChat TM exits, the floating window cannot serve as a quick entry, so it cannot solve the problem of poor human-computer interaction performance when viewing or sharing information across applications. In addition, the floating window function of WeChat TM can only temporarily store the links of the entire page in the form of a floating window, and cannot support the temporary storage of some or a certain element in the page in the form of a floating window.

相关技术三:安卓TM提供了泡泡(bubble)功能。应用(如即时通信应用)通过调用该功能对应的接口,在接收到对应用户操作(如长按或左滑联系人列表,点击更多按钮,然后选择打开浮动聊天头像)后,可将该应用中联系人头像以泡泡的形式吸附显示在手机屏幕边缘。但是,安卓TM提供的泡泡功能仅用于提供联系人的聊天界面的快捷入口。即用户对以泡泡形式显示的联系人头像执行点击操作后,手机可显示该联系人的聊天界面,无其他功能,且不支持除联系人头像外的其他内容以泡泡形式的显示,且触发将联系人头像以泡泡的形式显示的操作步骤多,交互复杂,人机交互性能并不能得到很好的提升。Related technology 3: Android TM provides a bubble function. An application (such as an instant messaging application) can call the interface corresponding to this function, and after receiving the corresponding user operation (such as long pressing or left-swiping the contact list, clicking the More button, and then selecting to open the floating chat avatar), the application can be opened. The avatars of the contacts are displayed on the edge of the phone screen in the form of bubbles. However, the bubble function provided by Android is only used to provide a quick entry to the contact's chat interface. That is, after the user clicks on the contact's avatar displayed in the form of a bubble, the mobile phone can display the chat interface of the contact without other functions, and does not support the display of other content in the form of a bubble except the contact's avatar, and There are many steps involved in triggering the display of contact avatars in the form of bubbles, the interaction is complicated, and the human-computer interaction performance cannot be improved very well.

可以看到的是,以上相关技术提供的方案并不能很好地解决跨应用查看或分享信息时人机交互性能差的问题。It can be seen that the solutions provided by the above related technologies cannot well solve the problem of poor human-computer interaction performance when viewing or sharing information across applications.

本申请实施例提供一种界面元素显示方法,该方法可以应用于终端。采用本实施例提供的方法,终端在接收到用户对界面中任意元素的拖拽、复制等操作后,可将该元素转换为浮动用户界面(user interface,UI)元素后显示在终端屏幕上,如吸附显示在终端屏幕边缘。另外,无论用户在应用内切换页面,还是退出应用,该浮动UI元素可继续显示在终端屏幕上,且显示在界面的最上层。本实施例中的浮动UI元素可被移动位置,支持与其他界面元素的交互,在被点击后开启对应界面,接收用户拖入的内容并发送出去等功能。这样,能够帮助用户用更便捷的交互方式实现本地跨应用的文件传输,信息分享等操作。简化了跨应用交互时的交互流程,缩减了操作步骤,提高了人机交互性能。An embodiment of the present application provides a method for displaying an interface element, and the method can be applied to a terminal. Using the method provided in this embodiment, after the terminal receives operations such as dragging and copying any element in the interface from the user, it can convert the element into a floating user interface (user interface, UI) element and display it on the terminal screen. Such as snapping is displayed on the edge of the terminal screen. In addition, no matter whether the user switches pages in the application or exits the application, the floating UI element can continue to be displayed on the terminal screen and is displayed on the top layer of the interface. The floating UI element in this embodiment can be moved, supports interaction with other interface elements, opens the corresponding interface after being clicked, receives the content dragged in by the user and sends it out, and other functions. In this way, it can help users realize local cross-application file transfer, information sharing and other operations in a more convenient and interactive way. It simplifies the interaction process during cross-application interaction, reduces the operation steps, and improves the performance of human-computer interaction.

示例性的,本申请实施例中的终端可以为手机,平板电脑,手持计算机,PC,蜂窝电话,个人数字助理(personal digital assistant,PDA),可穿戴式设备(如智能手表),车载电脑,游戏机,以及增强现实(augmented reality,AR)\虚拟现实(virtual reality,VR)设备等,本实施例对终端的具体形式不做特殊限制。另外,本实施例提供的技术方案除了可以应用于上述终端(或者说移动终端)外,还可以应用于其他电子设备,如智能家居设备(如电视机)等。Exemplarily, the terminal in the embodiment of the present application may be a mobile phone, a tablet computer, a handheld computer, a PC, a cellular phone, a personal digital assistant (personal digital assistant, PDA), a wearable device (such as a smart watch), a vehicle-mounted computer, For game consoles, augmented reality (augmented reality, AR)/virtual reality (virtual reality, VR) devices, etc., this embodiment does not specifically limit the specific form of the terminal. In addition, the technical solutions provided in this embodiment can be applied to other electronic devices, such as smart home devices (such as television sets), in addition to the above-mentioned terminals (or mobile terminals).

下面将结合附图对本申请实施例的实施方式进行详细描述。The implementation of the embodiment of the present application will be described in detail below with reference to the accompanying drawings.

在本实施例中,以终端为手机为例。请参考图3,为本申请实施例提供的一种手机的结构示意图。以下实施例中的方法可以在具有上述硬件结构的手机中实现。In this embodiment, the terminal is a mobile phone as an example. Please refer to FIG. 3 , which is a schematic structural diagram of a mobile phone provided by an embodiment of the present application. The methods in the following embodiments can be implemented in a mobile phone with the above hardware structure.

如图3所示,手机可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193以及显示屏194等。可选的,手机还可以包括移动通信模块150,用户标识模块(subscriberidentification module,SIM)卡接口195等。As shown in Figure 3, the mobile phone may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1. Antenna 2, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193 and display 194, etc. Optionally, the mobile phone may further include a mobile communication module 150, a subscriber identification module (subscriber identification module, SIM) card interface 195, and the like.

其中,传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。Among them, the sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an environmental Light sensor 180L, bone conduction sensor 180M, etc.

可以理解的是,本实施例示意的结构并不构成对手机的具体限定。在另一些实施例中,手机可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structure shown in this embodiment does not constitute a specific limitation on the mobile phone. In other embodiments, the mobile phone may include more or fewer components than shown, or combine certain components, or separate certain components, or arrange different components. The illustrated components can be realized in hardware, software or a combination of software and hardware.

处理器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 (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor ( image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc. . Wherein, different processing units may be independent devices, or may be integrated in one or more processors.

控制器可以是手机的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller can be the nerve center and command center of the phone. The controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.

处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thereby 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)接口,SIM接口,和/或USB接口等。In some embodiments, processor 110 may include one or more interfaces. The interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuitsound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver (universal asynchronous receiver) /transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input/output (general-purpose input/output, GPIO) interface, SIM interface, and/or USB interface, etc.

充电管理模块140用于从充电器接收充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为手机供电。电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141也可接收电池142的输入为手机供电。The charging management module 140 is configured to receive a charging input from a charger. While the charging management module 140 is charging the battery 142 , it can also provide power for the mobile phone through the power management module 141 . The power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 . The power management module 141 can also receive the input of the battery 142 to provide power for the mobile phone.

手机的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the mobile phone can be realized by 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用于发射和接收电磁波信号。手机中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in a mobile phone can be used to cover single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.

当手机包括移动通信模块150时,移动通信模块150可以提供应用在手机上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。When the mobile phone includes the mobile communication module 150, the mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G applied on the mobile phone. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like. The mobile communication module 150 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation. The mobile communication module 150 can also amplify the signals modulated by the modem processor, and convert them into electromagnetic waves through the antenna 1 for radiation. In some embodiments, at least part of the functional modules of the mobile communication module 150 may be set in the processor 110 . In some embodiments, at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be set in the same device.

调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。A modem processor may include a modulator and a demodulator. Wherein, the modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator sends the demodulated low-frequency baseband signal to the baseband processor for processing. The low-frequency baseband signal is passed to the application processor after being processed by the baseband processor. The application processor outputs sound signals through audio equipment (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194 . In some embodiments, the modem processor may be a stand-alone device. In some other embodiments, the modem processor may be independent from the processor 110, and be set in the same device as the mobile communication module 150 or other functional modules.

无线通信模块160可以提供应用在手机上的包括无线局域网(wireless localarea networks,WLAN)(如Wi-Fi网络),蓝牙(bluetooth,BT),全球导航卫星系统(globalnavigation satellite system,GNSS),调频(frequency modulation,FM),NFC,红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide wireless local area network (wireless local area networks, WLAN) (such as Wi-Fi network), Bluetooth (bluetooth, BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation ( frequency modulation, FM), NFC, infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 . The wireless communication module 160 can also receive the signal to be sent from the processor 110 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.

在一些实施例中,手机的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得手机可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code divisionmultiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(globalnavigation satellite system,GLONASS),北斗卫星导航系统(beidou navigationsatellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the mobile phone is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the mobile phone can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and/or IR technology, etc. The GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (globalnavigation satellite system, GLONASS), a Beidou satellite navigation system (beidou navigationsatellite system, BDS), a quasi-zenith satellite system (quasi-zenith) satellite system (QZSS) and/or satellite based augmentation systems (SBAS).

手机通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The mobile phone realizes the display function through the GPU, the display screen 194, and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(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)等。在一些实施例中,手机可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display images, videos and the like. The display screen 194 includes a display panel. The display panel may 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 (active-matrix organic light emitting diode). , AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diodes (quantum dot light emitting diodes, QLED), etc. In some embodiments, the mobile phone may include 1 or N display screens 194, where N is a positive integer greater than 1.

手机可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。在一些实施例中,手机可以包括1个或N个摄像头193,N为大于1的正整数。The mobile phone can realize shooting function through ISP, camera 193 , video codec, GPU, display screen 194 and application processor. In some embodiments, the mobile phone may include 1 or N cameras 193, where N is a positive integer greater than 1.

外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展手机的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the mobile phone. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. Such as saving music, video and other files in the external memory card.

内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行手机的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储手机使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。The internal memory 121 may be used to store computer-executable program codes including instructions. The processor 110 executes various functional applications and data processing of the mobile phone by executing instructions stored in the internal memory 121 . The internal memory 121 may include an area for storing programs and an area for storing data. Wherein, the stored program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.) and the like. The storage data area can store data (such as audio data, phone book, etc.) created during the use of the mobile phone. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like.

手机可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The mobile phone can realize the audio function through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. Such as music playback, recording, etc.

压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。当有触摸操作作用于显示屏194,手机根据压力传感器180A检测所述触摸操作强度。手机也可以根据压力传感器180A的检测信号计算触摸的位置。The pressure sensor 180A is used to sense the pressure signal and convert the pressure signal into an electrical signal. In some embodiments, pressure sensor 180A may be disposed on display screen 194 . There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. When a touch operation acts on the display screen 194, the mobile phone detects the intensity of the touch operation according to the pressure sensor 180A. The mobile phone can also calculate the touched position according to the detection signal of the pressure sensor 180A.

陀螺仪传感器180B可以用于确定手机的运动姿态。气压传感器180C用于测量气压。磁传感器180D包括霍尔传感器。手机可以利用磁传感器180D检测翻盖皮套的开合。加速度传感器180E可检测手机在各个方向上(一般为三轴)加速度的大小。距离传感器180F,用于测量距离。手机可以利用接近光传感器180G检测用户手持手机贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。环境光传感器180L用于感知环境光亮度。指纹传感器180H用于采集指纹。手机可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。温度传感器180J用于检测温度。The gyroscope sensor 180B can be used to determine the motion posture of the mobile phone. The air pressure sensor 180C is used to measure air pressure. The magnetic sensor 180D includes a Hall sensor. The mobile phone can use the magnetic sensor 180D to detect the opening and closing of the flip holster. The acceleration sensor 180E can detect the acceleration of the mobile phone in various directions (generally three axes). The distance sensor 180F is used to measure the distance. The mobile phone can use the proximity light sensor 180G to detect that the user holds the mobile phone close to the ear to talk, so that the screen can be automatically turned off to save power. The proximity light sensor 180G can also be used in leather case mode, automatic unlock and lock screen in pocket mode. The ambient light sensor 180L is used for sensing ambient light brightness. The fingerprint sensor 180H is used to collect fingerprints. The mobile phone can use the fingerprint characteristics collected to unlock the fingerprint, access the application lock, take pictures with the fingerprint, answer the incoming call with the fingerprint, etc. The temperature sensor 180J is used to detect temperature.

触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于手机的表面,与显示屏194所处的位置不同。Touch sensor 180K, also known as "touch panel". The touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”. The touch sensor 180K is used to detect a touch operation 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 194 . In some other embodiments, the touch sensor 180K may also be disposed on the surface of the mobile phone, which is different from the position of the display screen 194 .

骨传导传感器180M可以获取振动信号。按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The bone conduction sensor 180M can acquire vibration signals. The keys 190 include a power key, a volume key and the like. The key 190 may be a mechanical key. It can also be a touch button. The motor 191 can generate a vibrating reminder. The motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. The indicator 192 can be an indicator light, and can be used to indicate charging status, power change, and can also be used to indicate messages, missed calls, notifications, and the like.

当手机包括SIM卡接口195时,SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和手机的接触和分离。手机可以支持1个或N个SIM卡接口,N为大于1的正整数。手机通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,手机采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在手机中,不能和手机分离。When the mobile phone includes a SIM card interface 195, the SIM card interface 195 is used for connecting a SIM card. The SIM card can be inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 to realize contact and separation with the mobile phone. The mobile phone can support 1 or N SIM card interfaces, and N is a positive integer greater than 1. The mobile phone interacts with the network through the SIM card to realize functions such as calling and data communication. In some embodiments, the mobile phone employs an eSIM, ie: an embedded SIM card. The eSIM card can be embedded in the mobile phone and cannot be separated from the mobile phone.

本申请实施例以终端的软件系统是Android系统为例,示例性说明终端的软件结构。请参考图4,为本申请实施例提供的一种终端的软件架构的组成示意图。In this embodiment of the present application, the software system of the terminal is taken as an example to illustrate the software structure of the terminal. Please refer to FIG. 4 , which is a schematic composition diagram of a software architecture of a terminal provided by an embodiment of the present application.

其中,终端的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。以终端的软件系统是分层架构为例。分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。Wherein, the software system of the terminal may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. Take the terminal software system as an example with a layered architecture. The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces.

在一些实施例中,如图4所示,终端可以包括应用层和框架层(framework,FWK)。应用层可以包括一系列应用程序包。例如,应用程序包可以包括设置,计算器,相机,导航,购物,短信息,视频播放器,音乐播放器,电话等应用。应用层包括的应用可以是终端的系统应用,也可以是第三方应用,本申请实施例在此不做具体限制。应用层还可以包括拖拽服务模块,元素控制模块(controller)。本实施例在此不做具体限制。In some embodiments, as shown in FIG. 4 , the terminal may include an application layer and a framework layer (framework, FWK). The application layer can include a series of application packages. For example, the application package may include settings, calculator, camera, navigation, shopping, SMS, video player, music player, phone and other applications. The applications included in the application layer may be system applications of the terminal or third-party applications, which are not specifically limited in this embodiment of the present application. The application layer may also include a drag-and-drop service module and an element control module (controller). This embodiment does not make specific limitations here.

框架层主要负责为应用层的应用提供应用编程接口(application programminginterface,API)和编程框架。框架层可以包括窗口管理器(window manager,WM)等。其中,管理管理器也可以称为窗口管理模块,本实施例在此不做具体限制。The framework layer is mainly responsible for providing an application programming interface (application programming interface, API) and a programming framework for applications in the application layer. The framework layer may include a window manager (window manager, WM) and the like. Wherein, the management manager may also be called a window management module, which is not specifically limited in this embodiment.

当然,终端还可以包括其他层,如内核层(图4中未示出)等。该内核层是硬件和软件之间的层。内核层至少可以包含显示驱动,摄像头驱动,音频驱动,传感器驱动等。Of course, the terminal may also include other layers, such as a kernel layer (not shown in FIG. 4 ) and so on. The kernel layer is the layer between hardware and software. The kernel layer can at least include display drivers, camera drivers, audio drivers, sensor drivers, etc.

在本申请实施例中,基于上述软件架构,终端当前显示某应用的界面时,在接收到用户对该界面中任意元素的拖拽或复制等操作后,可将该元素转换为浮动UI元素后显示在终端屏幕上,如吸附显示在终端屏幕边缘。之后,无论用户在应用内切换页面或退出该应用或打开其他应用,该浮动UI元素可继续显示在终端屏幕上,用于实现跨应用的信息查看,文件传输,信息分享等操作。In this embodiment of the application, based on the above software architecture, when the terminal is currently displaying an application interface, after receiving operations such as dragging or copying any element in the interface from the user, the element can be converted into a floating UI element Displayed on the terminal screen, such as snapping to the edge of the terminal screen. Afterwards, no matter whether the user switches pages in the application or exits the application or opens other applications, the floating UI element can continue to be displayed on the terminal screen for cross-application information viewing, file transfer, information sharing and other operations.

以下以终端为手机为例,结合附图对本申请实施例提供的界面元素显示方法进行详细介绍。其中,在本实施例中,支持以浮动UI元素显示的界面元素可以是界面中的任意元素。如,可以是文本类,图片类,图标类,卡片类,列表联系人类,视频窗口类,文件资源类等界面元素。Taking the terminal as a mobile phone as an example, the method for displaying interface elements provided by the embodiment of the present application will be described in detail below with reference to the accompanying drawings. Wherein, in this embodiment, the interface elements that support display as floating UI elements may be any elements in the interface. For example, it can be text, picture, icon, card, contact list, video window, file resource and other interface elements.

以下对不同类型的界面元素以浮动UI元素显示在手机屏幕上的过程进行举例介绍。The process of displaying different types of interface elements as floating UI elements on the screen of a mobile phone is described as an example below.

结合图5A,图5B和图6,对文本类元素以浮动UI元素的形式显示在手机屏幕上的过程进行举例说明。With reference to FIG. 5A , FIG. 5B and FIG. 6 , the process of displaying text elements on the mobile phone screen in the form of floating UI elements is illustrated.

其中,触发文本类元素以浮动UI元素的形式显示的操作可以是用户对文本类元素的拖拽操作,还可以是针对文本类元素的复制操作。Wherein, the operation that triggers the display of the text-type element in the form of a floating UI element may be a user's drag operation on the text-type element, or a copy operation on the text-type element.

例如,结合图5A,以触发文本类元素以浮动UI元素的形式显示的操作是用户对文本类元素的拖拽操作为例。如图5A中的(a)所示,手机当前显示某应用的资讯页面501。用户在想将资讯页面501中的某些文本以浮动UI元素的形式显示在手机屏幕上时,可针对该文本执行拖拽操作。在用户释放拖拽后,手机可将该文本以浮动UI元素的形式显示在手机屏幕上。For example, referring to FIG. 5A , it is taken as an example that the operation that triggers the display of a text-type element in the form of a floating UI element is a user's drag operation on the text-type element. As shown in (a) of FIG. 5A , the mobile phone currently displays an information page 501 of an application. When the user wants to display some text in the information page 501 on the screen of the mobile phone as a floating UI element, the user can perform a drag operation on the text. After the user releases the drag, the mobile phone can display the text as a floating UI element on the mobile phone screen.

其中,上述拖拽操作可以包括一个或多个操作。示例性的,拖拽操作可以包括触发文本浮起的操作和触发浮起文本移动的操作。Wherein, the above-mentioned drag operation may include one or more operations. Exemplarily, the drag operation may include an operation of triggering the floating of text and an operation of triggering the movement of the floating text.

例如,以触发文本浮起的操作为对文本的长按并选中的操作,触发浮起文本移动的操作为对浮起文本的按下并移动的操作为例。继续参考图5A中的(a)所示,用户可长按并选中资讯页面501中的文本502。资讯页面501可以为本申请实施例中的第一界面。文本502可以为本申请实施例中的第一元素。手机可接收到用户针对文本502的长按及选中操作。响应于该长按及选中操作,手机可将文本502显示为浮起的状态。如,如图5A中的(b)所示,手机可进行背景虚化处理,并显示浮起的文本502。之后,用户通过按下浮起的文本502并移动手指,可使得文本502在手机屏幕上跟随用户手指的移动而移动。例如,如图5A中的(b)所示,用户可使用手指对浮起的文本502执行按下操作,并移动手指,如向右移动手指。响应于用户的操作,手机可显示文本502随用户手指移动的动画,给用户以文本502被用户拖拽的视觉效果。之后,用户可松开手指,以释放拖拽。在用户松开手指后,手机可接收到用户的拖拽释放操作。在手机接收到该拖拽释放操作后,如图5A中的(c)所示,手机可在手机屏幕上显示浮动UI元素503,该浮动UI元素503中的内容与文本502相同,即被用户选中拖拽的文本以浮动UI元素的形式显示在手机屏幕上。如,浮动UI元素503可吸附显示在手机屏幕的边缘(如屏幕左边缘或屏幕右边缘,图5A中的(c)以吸附显示在屏幕右边缘为例示出)。浮动UI元素503可以为本申请实施例中的第一浮动元素。For example, an operation that triggers the floating of the text is an operation of long pressing and selecting the text, and an operation that triggers the movement of the floating text is an operation of pressing and moving the floating text. Continuing to refer to (a) in FIG. 5A , the user can long press and select the text 502 in the information page 501 . The information page 501 may be the first interface in this embodiment of the application. Text 502 may be the first element in this embodiment of the application. The mobile phone can receive the user's long press and selection operation on the text 502 . In response to the long press and selection operation, the mobile phone can display the text 502 in a floating state. For example, as shown in (b) in FIG. 5A , the mobile phone can perform background blur processing and display floating text 502 . Afterwards, by pressing the floating text 502 and moving the finger, the user can make the text 502 move on the screen of the mobile phone following the movement of the user's finger. For example, as shown in (b) of FIG. 5A , the user may use a finger to perform a pressing operation on the floating text 502 and move the finger, such as moving the finger to the right. In response to the user's operation, the mobile phone can display an animation in which the text 502 moves with the user's finger, giving the user a visual effect of the text 502 being dragged by the user. Afterwards, the user can lift the finger to release the drag. After the user releases the finger, the mobile phone can receive the user's drag and release operation. After the mobile phone receives the dragging and releasing operation, as shown in (c) in Figure 5A, the mobile phone can display a floating UI element 503 on the mobile phone screen. The selected and dragged text is displayed on the phone screen in the form of floating UI elements. For example, the floating UI element 503 can be displayed on the edge of the screen of the mobile phone (such as the left edge or the right edge of the screen, (c) in FIG. 5A is shown as an example of being displayed on the right edge of the screen). The floating UI element 503 may be the first floating element in this embodiment of the application.

又例如,结合图5B,以触发文本类元素以浮动UI元素的形式显示的操作是针对文本类元素复制操作为例。如图5B中的(a)所示,手机当前显示某应用的资讯页面601。用户在想将资讯页面601中的某些文本以浮动UI元素的形式显示在手机屏幕上时,可针对该文本执行复制操作。手机在接收到该复制操作后,可将该文本以浮动UI元素的形式显示在手机屏幕上。For another example, referring to FIG. 5B , it is taken as an example that the operation of triggering the display of a text-type element in the form of a floating UI element is a copy operation for a text-type element. As shown in (a) of FIG. 5B , the mobile phone currently displays an information page 601 of an application. When the user wants to display some text in the information page 601 on the screen of the mobile phone in the form of a floating UI element, the user can perform a copy operation on the text. After receiving the copy operation, the mobile phone can display the text on the screen of the mobile phone in the form of a floating UI element.

其中,针对文本的复制操作可以包括一个或多个操作。示例性的,针对文本的复制操作可以包括长按文本的操作和对复制按钮的操作。继续参考图5B中的(a)所示,用户可长按资讯页面601中的文本602。资讯页面601可以为本申请实施例中的第一界面。文本602可以为本申请实施例中的第一元素。如图5B中的(b)所示,响应于用户对文本602的长按操作,手机可显示操作菜单,该操作菜单中包括复制按钮603。手机在接收到用户对复制按钮603的操作,如点击操作后,如图5B中的(c)所示,手机可在手机屏幕上显示浮动UI元素604,该浮动UI元素604中的内容与文本602相同,即被用户复制的文本以浮动UI元素的形式显示在手机屏幕上。浮动UI元素604可以为本申请实施例中的第一浮动元素。Wherein, the copy operation for text may include one or more operations. Exemplarily, the copy operation for the text may include long pressing the text and an operation on the copy button. Continuing to refer to (a) in FIG. 5B , the user can long press the text 602 in the information page 601 . The information page 601 may be the first interface in this embodiment of the application. Text 602 may be the first element in this embodiment of the application. As shown in (b) of FIG. 5B , in response to the user's long press operation on the text 602 , the mobile phone can display an operation menu, which includes a copy button 603 . After the mobile phone receives the user's operation on the copy button 603, such as the click operation, as shown in (c) in Figure 5B, the mobile phone can display a floating UI element 604 on the mobile phone screen, and the content and text in the floating UI element 604 602 is the same, that is, the text copied by the user is displayed on the screen of the mobile phone in the form of floating UI elements. The floating UI element 604 may be the first floating element in this embodiment of the present application.

其中,上述拖拽操作和拖拽释放操作可以为本申请实施例中的第二操作。上述复制操作可以为本申请实施例中的第二操作。Wherein, the above-mentioned dragging operation and dragging and releasing operation may be the second operation in the embodiment of the present application. The above copying operation may be the second operation in the embodiment of the present application.

需要说明的是,以上图5A和图5B所示实施例,是以文本类元素是应用的资讯页面所包含的文本为例进行说明的。该应用可以是手机的系统应用,也可以是第三方应用,本实施例在此不做限制。另外,文本类元素也可以是其他页面所包含的文本,如,即时通信应用的聊天界面中的聊天内容,又如,购物应用的页面所包含的文本等,本实施例在此也不做具体限制。It should be noted that, the above embodiments shown in FIG. 5A and FIG. 5B are described by taking the text element contained in the information page of the application as an example. The application may be a system application of the mobile phone or a third-party application, which is not limited in this embodiment. In addition, the text element can also be the text contained in other pages, such as the chat content in the chat interface of the instant messaging application, and for example, the text contained in the page of the shopping application, etc. limit.

结合图4,如图6所示,作为一种示例,文本类元素以浮动UI元素呈现在手机屏幕上的具体实现过程可以是:手机,如手机应用层的应用接收到用户对文本的拖拽操作后,可触发针对该文本的拖拽,并获取拖拽事件发送给手机应用层的拖拽服务模块。如,手机应用层的应用获取拖拽事件的过程可以是:用户执行拖拽操作后,手机的框架层可监听到该拖拽操作(如具体可以是对浮起文本的长按操作),作为响应,手机的框架层可生成拖拽事件(DragEvent)。手机应用层的应用可通过回调获取到框架层生成的拖拽事件。其中,拖拽事件中可包括被拖拽文本的内容和被拖拽元素的类型(如文本类)。手机应用层的拖拽服务模块接收到拖拽事件后,可与手机应用层的元素控制模块配合根据拖拽事件中被拖拽元素的类型和文本的内容构造阴影(shadow)。如被拖拽元素的类型为文本类,则手机应用层的拖拽服务模块可将拖拽事件中包括的文本的内容传输给元素控制模块,元素控制模块可根据文本的内容生成shadow。之后,手机应用层的元素控制模块可将生成的shadow传输给手机框架层的窗口管理器,以便窗口管理器以浮动UI元素的形式显示该shadow。如,窗口管理器在手机屏幕上显示一个圆角文本框,该圆角文本框即为浮动UI元素,其中包括被用户拖拽的文本。类似的,手机应用层的应用接收到用户对文本的复制操作后,也可以触发手机的框架层将复制的文本的内容发送给手机应用层的拖拽服务模块,以便拖拽服务模块与元素控制模块配合构造shadow,并交由手机框架层的窗口管理器以浮动UI元素的形式显示该shadow,从而实现文本类元素以浮动UI元素的形式在手机屏幕上的呈现。Referring to Fig. 4, as shown in Fig. 6, as an example, the specific implementation process for text elements to be presented as floating UI elements on the screen of the mobile phone may be as follows: the mobile phone, for example, the application layer of the mobile phone receives the user's drag and drop of the text After the operation, the dragging of the text can be triggered, and the dragging event can be obtained and sent to the dragging service module of the application layer of the mobile phone. For example, the process for the application layer of the mobile phone to obtain the drag event may be: after the user performs the drag operation, the framework layer of the mobile phone can monitor the drag operation (for example, it can be a long press operation on the floating text), as In response, the framework layer of the mobile phone can generate a drag event (DragEvent). Applications in the mobile phone application layer can obtain drag events generated by the framework layer through callbacks. Wherein, the dragging event may include the content of the dragged text and the type of the dragged element (such as text class). After the drag service module of the mobile phone application layer receives the drag event, it can cooperate with the element control module of the mobile phone application layer to construct a shadow according to the type of the dragged element and the content of the text in the drag event. If the type of the dragged element is text, the drag service module of the mobile phone application layer can transmit the content of the text included in the drag event to the element control module, and the element control module can generate a shadow according to the content of the text. Afterwards, the element control module of the mobile phone application layer can transmit the generated shadow to the window manager of the mobile phone frame layer, so that the window manager can display the shadow in the form of floating UI elements. For example, the window manager displays a text box with rounded corners on the screen of the mobile phone, and the text box with rounded corners is a floating UI element, which includes the text dragged by the user. Similarly, after the application of the mobile application layer receives the user's copy operation of the text, it can also trigger the framework layer of the mobile phone to send the content of the copied text to the drag service module of the mobile application layer, so that the drag service module and element control The modules cooperate to construct a shadow, and the window manager of the mobile phone frame layer displays the shadow in the form of floating UI elements, so as to realize the presentation of text elements on the mobile phone screen in the form of floating UI elements.

采用以上图5A或图5B所示实施例的技术方案,对于文本类的界面元素,用户通过执行拖拽操作或复制操作,可将对应文本以浮动UI元素的形式显示在手机屏幕上,如吸附显示在终端屏幕边缘。即通过浮动UI元素可将用户拖拽或复制的文本显性的呈现在手机屏幕上。且在接收到用户在该应用内切换页面,或退出该应用,或开启其他应用的操作后,该浮动UI元素可继续显示在手机屏幕上,使得跨应用查看信息更加方便。且该浮动UI元素可被移动位置。如用户可对该浮动UI元素执行拖拽操作,如在浮动UI元素的显示位置按下并移动手指。响应于用户的拖拽操作,手机可显示该浮动UI元素在手机屏幕上移动的动画。另外,在用户想跨页面或跨应用使用该文本,如将该文本输入其他应用的输入框时,无需来回切换页面或应用,通过将该浮动UI元素拖拽到输入框内,便可实现该浮动UI元素中的文本到输入框内填充。具体的,作为一种示例,在手机在其屏幕上以浮动UI元素的形式显示文本后,手机(如手机的框架层)可将该浮动UI元素的标识与该文本的内容关联存储在手机中。之后,手机在显示包括输入框的某应用界面的情况下,在接收到用户对浮动UI元素的拖拽操作后,可显示该浮动UI元素移动的动画。在用户将该浮动UI元素拖拽到输入框的显示位置悬停并释放手指后,作为对该操作的响应,手机可将浮动UI元素中的文本填充到输入框中。如,在用户将该浮动UI元素拖拽到输入框的显示位置并悬停后,手机应用层的元素控制模块可通知手机的框架层将与该浮动UI元素对应的数据,即与该浮动UI元素的标识对应的文本的内容发送给该应用。之后,在用户松开手指,即释放拖拽后,手机应用层的该应用可接收手机框架层发送的文本的内容,并将该文本填充到输入框中。Using the technical solution of the embodiment shown in Figure 5A or Figure 5B above, for text interface elements, the user can display the corresponding text on the screen of the mobile phone in the form of a floating UI element by performing a drag operation or copy operation, such as adsorption Displayed at the edge of the terminal screen. That is, the text dragged or copied by the user can be explicitly presented on the screen of the mobile phone through floating UI elements. And after receiving the user's operation of switching pages in the application, or exiting the application, or opening other applications, the floating UI element can continue to be displayed on the screen of the mobile phone, making it more convenient to view information across applications. And the floating UI element can be moved. For example, the user may perform a drag operation on the floating UI element, such as pressing and moving a finger on the display position of the floating UI element. In response to the user's drag operation, the mobile phone can display an animation of the floating UI element moving on the mobile phone screen. In addition, when the user wants to use the text across pages or applications, such as inputting the text into the input box of other applications, there is no need to switch pages or applications back and forth, and this can be achieved by dragging the floating UI element into the input box. The text in the floating UI element fills the input box. Specifically, as an example, after the mobile phone displays text in the form of a floating UI element on its screen, the mobile phone (such as the frame layer of the mobile phone) can store the identifier of the floating UI element in association with the content of the text in the mobile phone . Afterwards, when the mobile phone is displaying an application interface including an input box, after receiving a user's drag operation on the floating UI element, it can display the animation of the floating UI element moving. After the user drags the floating UI element to the display position of the input box, hovers and releases the finger, as a response to the operation, the mobile phone may fill the text in the floating UI element into the input box. For example, after the user drags the floating UI element to the display position of the input box and hovers over it, the element control module of the mobile phone application layer can notify the frame layer of the mobile phone to transfer the data corresponding to the floating UI element, that is, the The content of the text corresponding to the identifier of the element is sent to the application. Afterwards, after the user releases the finger, that is, releases the drag, the application of the mobile phone application layer can receive the content of the text sent by the mobile phone framework layer, and fill the text into the input box.

结合图7和图8,对图片类元素以浮动UI元素的形式显示在手机屏幕上的过程进行举例说明。With reference to FIG. 7 and FIG. 8 , an example is given to illustrate the process of displaying picture elements on the mobile phone screen in the form of floating UI elements.

其中,触发图片类元素以浮动UI元素的形式显示的操作可以是用户对图片类元素的拖拽操作。Wherein, the operation that triggers the display of the image-type element in the form of a floating UI element may be a user's drag operation on the image-type element.

例如,结合图7,如图7中的(a)所示,手机显示图库应用的界面701。该界面701中包括多个图片。界面701可以为本申请实施例中的第一界面。用户在想将界面701中的某图片以浮动UI元素的形式显示在手机屏幕上时,可针对该图片执行拖拽操作。在用户释放拖拽后,手机可将该图片(如图片的缩略图)以浮动UI元素的形式显示在手机屏幕上。For example, referring to FIG. 7 , as shown in (a) of FIG. 7 , the mobile phone displays an interface 701 of a gallery application. The interface 701 includes multiple pictures. Interface 701 may be the first interface in this embodiment of the application. When the user wants to display a certain picture in the interface 701 on the screen of the mobile phone in the form of a floating UI element, the user can perform a drag operation on the picture. After the user releases the drag, the mobile phone can display the picture (such as a thumbnail of the picture) on the screen of the mobile phone in the form of a floating UI element.

其中,该拖拽操作可以包括一个或多个操作。示例性的,拖拽操作可以包括触发图片浮起的操作和触发浮起图片移动的操作。Wherein, the drag operation may include one or more operations. Exemplarily, the dragging operation may include an operation of triggering the floating of the picture and an operation of triggering the movement of the floating picture.

例如,以触发图片浮起的操作为对图片的长按操作,触发浮起图片移动的操作为对浮起图片的按下并移动的操作为例。继续参考图7中的(a)所示,用户可长按图库应用的界面701中的图片702。图片702可以为本申请实施例中的第一元素。手机可接收到用户对图片702的长按操作。响应于该长按操作,手机可将图片702显示为浮起的状态。如,如图7中的(b)所示,手机可进行背景虚化处理,并显示浮起的图片702。之后,用户通过按下浮起的图片702并移动手指,可使得图片702在手机屏幕上跟随用户手指的移动而移动。例如,如图7中的(b)所示,用户可使用手指对浮起的图片702执行按下操作,并移动手指,如向右移动手指。响应于用户的操作,手机可显示图片702随用户手指移动的动画,给用户以图片702被用户拖拽的视觉效果。之后,用户可松开手指,以释放拖拽。在用户松开手指后,手机可接收到用户的拖拽释放操作。在手机接收到该拖拽释放操作后,如图7中的(c)所示,手机可在手机屏幕上显示浮动UI元素703,该浮动UI元素703中包括图片702,如图片702的缩略图,即被用户拖拽的图片以浮动UI元素的形式显示在手机屏幕上。如,浮动UI元素703可吸附显示在手机屏幕的边缘(如屏幕左边缘或屏幕右边缘,图7中的(c)以吸附显示在屏幕右边缘为例示出)。浮动UI元素703可以为本申请实施例中的第一浮动元素。拖拽操作和拖拽释放操作可以为本申请实施例中的第二操作。For example, an operation that triggers the floating of a picture is a long press operation on the picture, and an operation that triggers movement of the floating picture is an operation of pressing and moving the floating picture as an example. Continuing to refer to (a) in FIG. 7 , the user can long press the picture 702 in the interface 701 of the gallery application. The picture 702 may be the first element in this embodiment of the application. The mobile phone may receive the user's long press operation on the picture 702 . In response to the long press operation, the mobile phone can display the picture 702 in a floating state. For example, as shown in (b) in FIG. 7 , the mobile phone can perform background blur processing and display a floating picture 702 . Afterwards, by pressing the floating picture 702 and moving the finger, the user can make the picture 702 move on the screen of the mobile phone following the movement of the user's finger. For example, as shown in (b) of FIG. 7 , the user may use a finger to perform a pressing operation on the floating picture 702 and move the finger, for example, move the finger to the right. In response to the user's operation, the mobile phone can display an animation in which the picture 702 moves with the user's finger, giving the user a visual effect of the picture 702 being dragged by the user. Afterwards, the user can lift the finger to release the drag. After the user releases the finger, the mobile phone can receive the user's drag and release operation. After the mobile phone receives the dragging and releasing operation, as shown in (c) in Figure 7, the mobile phone can display a floating UI element 703 on the mobile phone screen, and the floating UI element 703 includes a picture 702, such as a thumbnail of the picture 702 , that is, the picture dragged by the user is displayed on the screen of the mobile phone in the form of a floating UI element. For example, the floating UI element 703 can be displayed on the edge of the screen of the mobile phone (such as the left edge or the right edge of the screen, (c) in FIG. 7 is shown as an example of being displayed on the right edge of the screen). The floating UI element 703 may be the first floating element in this embodiment of the present application. The drag operation and the drag and release operation may be the second operation in the embodiment of the present application.

又例如,结合图8,在用户进行截图操作后,生成的截图可以浮动UI元素的形式显示在手机屏幕上。For another example, referring to FIG. 8 , after the user performs a screenshot operation, the generated screenshot may be displayed on the screen of the mobile phone in the form of a floating UI element.

其中,用户触发手机进行截图的操作,如称为截图操作可以是对截图按钮的操作(如点击操作),也可以是对手机的功能键(如,音量控制按键:音量“+”键,音量“-”键,开关按键等)或功能组合键(如,音量“+”键与开关按键的组合)的操作,还可以是输入的预设手势,如指关节敲击等。想要截取的内容可以是手机屏幕当前显示的全部内容,也可以是部分内容。如果想要截取的内容是手机屏幕当前显示的部分内容,上述截图操作还可以包括通过画圈或框选的方式选取截取区域的操作。在手机接收到截图操作后,手机可启动截图功能,以截取手机屏幕当前显示的全部或部分内容,从而生成截图。在截图生成后,手机可将生成的截图以浮动UI元素的形式显示在手机屏幕上。Wherein, the user triggers the operation of the mobile phone to take a screenshot, such as called a screenshot operation, which can be an operation on a screenshot button (such as a click operation), or a function key on the mobile phone (such as a volume control button: volume "+" key, volume The operation of "-" key, switch button, etc.) or function combination key (for example, the combination of volume "+" key and switch button), can also be input preset gestures, such as knuckle tapping, etc. The content to be intercepted may be all the content currently displayed on the mobile phone screen, or part of the content. If the content to be captured is part of the content currently displayed on the screen of the mobile phone, the above screenshot operation may also include the operation of selecting the capture area by drawing a circle or selecting a frame. After the mobile phone receives the screenshot operation, the mobile phone can start the screenshot function to capture all or part of the content currently displayed on the mobile phone screen, so as to generate a screenshot. After the screenshot is generated, the mobile phone can display the generated screenshot on the screen of the mobile phone in the form of a floating UI element.

如,结合图8,以截图操作为对截图按钮的操作为例。如图8中的(a)所示,手机显示桌面801。在用户想要使用截图功能时,可执行从手机屏幕上边缘开始到指向下边缘的滑动操作。手机可接收到该滑动操作。作为对该滑动操作的响应,如图8中的(b)所示,手机显示菜单栏802,该菜单栏802中包括截图按钮803。用户可对该截图按钮803进行操作,如点击操作。手机接收到用户对截图按钮803的点击操作后,可启动截图功能,以截取手机屏幕当前显示桌面801中的内容,从而生成截图。在截图生成后,手机可将生成的截图以浮动UI元素的形式显示在手机屏幕上。作为一种示例,手机可先将生成的截图以悬浮窗的形式显示在手机屏幕上,然后截图以逐渐缩小的动效变为浮动UI元素(如图8中的(d)所示的浮动UI元素805)后吸附显示在手机屏幕边缘。作为又一种示例,如图8中的(c)所示,手机可先将生成的截图以悬浮窗的形式显示在手机屏幕上,如显示截图804。用户可按下截图804并移动手指(如向右移动手指),以使得截图804在手机屏幕上跟随用户手指的移动而移动。之后,用户可松开手指,以释放拖拽。在用户松开手指后,手机可接收到用户的拖拽释放操作。在手机接收到该拖拽释放操作后,如图8中的(d)所示,手机可在手机屏幕上显示浮动UI元素805,该浮动UI元素805中包括截图804,如截图804的缩略图,即生成的截图以浮动UI元素的形式显示在手机屏幕上。如,浮动UI元素805可吸附显示在手机屏幕的边缘(如屏幕左边缘或屏幕右边缘,图8中的(d)以吸附显示在屏幕右边缘为例示出)。For example, with reference to FIG. 8 , take the screenshot operation as an example of an operation on the screenshot button. As shown in (a) of FIG. 8 , the mobile phone displays a desktop 801 . When the user wants to use the screenshot function, he can perform a sliding operation starting from the upper edge of the mobile phone screen and pointing to the lower edge. The mobile phone can receive this swipe operation. As a response to the sliding operation, as shown in (b) in FIG. 8 , the mobile phone displays a menu bar 802 including a screenshot button 803 . The user can perform operations on the screenshot button 803, such as clicking. After the mobile phone receives the user's click operation on the screenshot button 803, it can start the screenshot function to capture the content currently displayed on the desktop 801 on the mobile phone screen, thereby generating a screenshot. After the screenshot is generated, the mobile phone can display the generated screenshot on the screen of the mobile phone in the form of a floating UI element. As an example, the mobile phone can first display the generated screenshot on the screen of the mobile phone in the form of a floating window, and then the screenshot can be changed into a floating UI element with a gradually shrinking dynamic effect (the floating UI element shown in (d) in Figure 8 Element 805) is displayed on the edge of the mobile phone screen after adsorption. As yet another example, as shown in (c) in FIG. 8 , the mobile phone may first display the generated screenshot on the screen of the mobile phone in the form of a floating window, such as display screenshot 804 . The user can press the screenshot 804 and move the finger (for example, move the finger to the right), so that the screenshot 804 moves on the screen of the mobile phone following the movement of the user's finger. Afterwards, the user can lift the finger to release the drag. After the user releases the finger, the mobile phone can receive the user's drag and release operation. After the mobile phone receives the dragging and releasing operation, as shown in (d) in FIG. , that is, the generated screenshot is displayed on the mobile phone screen in the form of floating UI elements. For example, the floating UI element 805 can be adsorbed and displayed on the edge of the screen of the mobile phone (such as the left edge or the right edge of the screen, (d) in FIG. 8 is shown as an example of adsorbing and displaying on the right edge of the screen).

需要说明的是,以上图7所示实施例,是以图片类元素是图库应用中的图片为例进行说明的。图片类元素也可以是手机其他应用的页面中所包含的图片,如,即时通信应用的聊天界面中的分享给好友或好友分享的图片,又如,浏览器的页面所包含的图片等,本实施例在此也不做具体限制。It should be noted that the above embodiment shown in FIG. 7 is described by taking the image element as an image in a gallery application as an example. The picture element can also be pictures contained in the pages of other applications of the mobile phone, such as the pictures shared with friends or friends in the chat interface of the instant messaging application, and the pictures contained in the pages of the browser, etc. The embodiments are not specifically limited here either.

另外,图片类元素以浮动UI元素呈现在手机屏幕上的具体实现过程与图6所示文本类元素以浮动UI元素呈现在手机屏幕上的具体实现过程类似,此处不再一一赘述。区别在于,拖拽事件中包括被拖拽的图片和被拖拽元素的类型(如图片类),手机应用层的元素控制模块可根据图片生成shadow。In addition, the specific implementation process of displaying picture elements on the screen of the mobile phone as floating UI elements is similar to the specific implementation process of displaying text elements on the screen of the mobile phone as floating UI elements shown in FIG. 6 , and will not be repeated here. The difference is that the drag event includes the dragged picture and the type of the dragged element (such as picture class), and the element control module of the mobile phone application layer can generate a shadow according to the picture.

采用以上图7或图8所示实施例的技术方案,对于图片类的界面元素,用户通过执行拖拽操作或截图操作,可将对应图片以浮动UI元素的形式显示在手机屏幕上,如吸附显示在终端屏幕边缘。且在接收到用户在该应用内切换页面,或退出该应用,或开启其他应用的操作后,该浮动UI元素可继续显示在手机屏幕上,使得跨应用查看或分享信息更加方便。如,在手机接收到用户对浮动UI元素的点击操作后,手机可调用系统的应用选择器,供用户选择使用哪个应用查看以浮动UI元素形式显示的图片。如,在手机在其屏幕上以浮动UI元素的形式显示图片后,手机(如手机的框架层)可将该浮动UI元素的标识与该图片关联存储在手机中。在用户选择了查看图片的应用后,该应用可根据存储的关联关系,将浮动UI元素中的图片通过该应用展示给用户。且浮动UI元素可被移动位置。又如,在用户想跨页面或跨应用使用该图片,如将该图片分享给好友时,无需再次打开图库应用进行查看,选择,通过将该浮动UI元素拖拽到与该好友的聊天界面的输入框内,便可将该浮动UI元素中的图片分享给好友等,提高了交互效率。具体实现与将以浮动UI元素形式显示的文本填充到输入框中的实现类似,此处不在详细赘述。Using the technical solution of the embodiment shown in Figure 7 or Figure 8 above, for picture interface elements, the user can display the corresponding picture on the screen of the mobile phone in the form of a floating UI element by performing a drag operation or a screenshot operation, such as adsorption Displayed at the edge of the terminal screen. And after receiving the user's operation of switching pages in the application, or exiting the application, or opening other applications, the floating UI element can continue to be displayed on the mobile phone screen, making it more convenient to view or share information across applications. For example, after the mobile phone receives the user's click operation on the floating UI element, the mobile phone can call the application selector of the system for the user to select which application to use to view the picture displayed in the form of the floating UI element. For example, after the mobile phone displays a picture in the form of a floating UI element on its screen, the mobile phone (such as the frame layer of the mobile phone) can store the identification of the floating UI element in association with the picture in the mobile phone. After the user selects an application for viewing pictures, the application can display the pictures in the floating UI elements to the user through the application according to the stored association relationship. And floating UI elements can be moved. For another example, when the user wants to use the picture across pages or applications, such as sharing the picture with a friend, there is no need to open the gallery application again to view it. Select, drag and drop the floating UI element to the chat interface with the friend In the input box, the picture in the floating UI element can be shared with friends, etc., which improves the interaction efficiency. The specific implementation is similar to the implementation of filling the text displayed in the form of floating UI elements into the input box, and will not be described in detail here.

结合图9,对统一资源定位符(uniform resource locator,URL)网址以浮动UI元素的形式显示在手机屏幕上的过程进行举例说明。With reference to FIG. 9 , an example is given to illustrate the process of displaying a uniform resource locator (uniform resource locator, URL) website on a screen of a mobile phone in the form of a floating UI element.

其中,URL网址以浮动UI元素的形式显示在手机屏幕上的过程与文本类元素以浮动UI元素的形式显示在手机屏幕上的过程类似,详细过程不再重复描述。此处通过一个示例对URL网址以浮动UI元素的形式显示在手机屏幕上的过程进行说明。其中,类似于图5A和图5B所示实施例的描述,触发URL网址以浮动UI元素的形式显示的操作可以是用户对URL网址的拖拽操作,还可以是针对URL网址的复制操作。例如,结合图9,以触发URL网址以浮动UI元素的形式显示的操作是针对URL网址的复制操作为例。如图9中的(a)所示,手机当前显示网页901。用户在想将网页901的URL网址以浮动UI元素的形式显示在手机屏幕上时,可针对该URL网址执行复制操作。手机在接收到该复制操作后,可将该URL网址以浮动UI元素的形式显示在手机屏幕上。该复制操作可以为本申请实施例中的第二操作。Wherein, the process of displaying the URL on the screen of the mobile phone in the form of floating UI elements is similar to the process of displaying the text elements on the screen of the mobile phone in the form of floating UI elements, and the detailed process will not be described again. Here, an example is used to illustrate the process of displaying the URL on the screen of the mobile phone in the form of floating UI elements. Wherein, similar to the description of the embodiment shown in FIG. 5A and FIG. 5B , the operation that triggers the URL to be displayed in the form of a floating UI element may be a user's drag operation on the URL, or a copy operation on the URL. For example, referring to FIG. 9 , it is taken as an example that the operation of triggering the display of the URL in the form of a floating UI element is a copy operation of the URL. As shown in (a) in FIG. 9 , the mobile phone currently displays a webpage 901 . When the user wants to display the URL of the webpage 901 on the screen of the mobile phone in the form of a floating UI element, the user may perform a copy operation on the URL. After receiving the copy operation, the mobile phone can display the URL on the screen of the mobile phone in the form of a floating UI element. The copying operation may be the second operation in the embodiment of the present application.

其中,针对URL网址的复制操作可以包括一个或多个操作。示例性的,针对URL网址的复制操作可以包括长按网址栏(或网址栏中的URL网址)的操作和对复制按钮的操作。继续参考图9中的(a)所示,用户可长按网页901中的网址栏902。网页901可以为本申请实施例中的第一界面。址栏902中的URL网址可以为本申请实施例中的第一元素。如图9中的(b)所示,响应于用户对网址栏902的长按操作,手机可显示操作菜单,该操作菜单中包括复制按钮903。手机在接收到用户对复制按钮903的操作,如点击操作后,如图9中的(c)所示,手机可在手机屏幕上显示浮动UI元素904,该浮动UI元素904中包括链接图标。浮动UI元素904可以为本申请实施例中的第一浮动元素。其中,链接图标用于链接到网址栏902中的URL网址对应的网页,即被用户复制的URL网址以浮动UI元素的形式显示在手机屏幕上。Wherein, the copy operation for the URL may include one or more operations. Exemplarily, the copy operation for the URL address may include an operation of long pressing the address bar (or the URL address in the address bar) and an operation of a copy button. Continuing to refer to (a) in FIG. 9 , the user can press and hold the URL bar 902 in the web page 901 . The web page 901 may be the first interface in this embodiment of the application. The URL in the address column 902 may be the first element in this embodiment of the application. As shown in (b) of FIG. 9 , in response to the user's long press operation on the address bar 902 , the mobile phone can display an operation menu, which includes a copy button 903 . After the mobile phone receives the user's operation on the copy button 903, such as a click operation, as shown in (c) in FIG. 9 , the mobile phone can display a floating UI element 904 on the mobile phone screen, and the floating UI element 904 includes a link icon. The floating UI element 904 may be the first floating element in this embodiment of the present application. Wherein, the link icon is used to link to the web page corresponding to the URL in the address column 902, that is, the URL copied by the user is displayed on the screen of the mobile phone in the form of a floating UI element.

需要说明的是,URL网址以浮动UI元素呈现在手机屏幕上的具体实现过程与图6所示文本类元素以浮动UI元素呈现在手机屏幕上的具体实现过程类似,此处不再一一赘述。区别在于,拖拽事件中包括URL网址和以浮动UI元素呈现的元素类型为URL,手机应用层的元素控制模块可将链接图标作为shadow。It should be noted that the specific implementation process of URL URLs being presented as floating UI elements on the mobile phone screen is similar to the specific implementation process of text elements as shown in Figure 6 being presented as floating UI elements on the mobile phone screen, and will not be repeated here. . The difference is that the drag event includes the URL and the element type presented as a floating UI element is URL, and the element control module of the mobile phone application layer can use the link icon as a shadow.

采用以上图9所示实施例的技术方案,对于URL网址,用户通过执行拖拽操作或复制操作,可将URL网址以浮动UI元素的形式显示在手机屏幕上,如吸附显示在终端屏幕边缘。且在接收到用户在该应用内切换页面,或退出该应用,或开启其他应用的操作后,该浮动UI元素可继续显示在手机屏幕上,使得跨应用查看或分享信息更加方便。如,在手机接收到用户对浮动UI元素的点击操作后,手机可跳转到以浮动UI元素呈现的URL网址的网页。如,在手机在其屏幕上以浮动UI元素的形式显示URL网址后,手机(如手机的框架层)可将该浮动UI元素的标识与该URL网址关联存储在手机中。在用户点击了该浮动UI元素后,手机可根据存储的关联关系,将与浮动UI元素的标识对应的URL网址用对应应用打开展示给用户。该应用可以是用户设置的默认应用,也可以是系统自动选择的应用。且浮动UI元素可被移动位置。又如,在用户想跨页面或跨应用使用该URL网址,如将该URL网址分享给好友时,通过将该浮动UI元素拖拽到与该好友的聊天界面的输入框内,便可将该浮动UI元素中的URL网址粘贴到输入框内,以分享给好友等。具体实现与将以浮动UI元素形式显示的文本填充到输入框中的实现类似,此处不在详细赘述。Using the technical solution of the embodiment shown in Figure 9 above, for the URL, the user can display the URL in the form of a floating UI element on the screen of the mobile phone by performing a drag operation or a copy operation, such as being adsorbed and displayed on the edge of the terminal screen. And after receiving the user's operation of switching pages in the application, or exiting the application, or opening other applications, the floating UI element can continue to be displayed on the mobile phone screen, making it more convenient to view or share information across applications. For example, after the mobile phone receives the user's click operation on the floating UI element, the mobile phone can jump to the webpage of the URL address presented by the floating UI element. For example, after the mobile phone displays the URL in the form of a floating UI element on its screen, the mobile phone (such as the frame layer of the mobile phone) can associate and store the identifier of the floating UI element with the URL in the mobile phone. After the user clicks the floating UI element, the mobile phone can open and display the URL corresponding to the identifier of the floating UI element to the user according to the stored association relationship. The application may be a default application set by the user, or an application automatically selected by the system. And floating UI elements can be moved. For another example, when the user wants to use the URL across pages or applications, such as sharing the URL with a friend, the floating UI element can be dragged and dropped into the input box of the chat interface with the friend, and the Paste the URL in the floating UI element into the input box to share with friends, etc. The specific implementation is similar to the implementation of filling the text displayed in the form of floating UI elements into the input box, and will not be described in detail here.

结合图10,对文件资源类元素以浮动UI元素的形式显示在手机屏幕上的过程进行举例说明。With reference to FIG. 10 , an example is given to illustrate the process of displaying file resource elements on the mobile phone screen in the form of floating UI elements.

其中,文件资源类元素可以指的是在手机系统中以文件形式保存的图片、文档、压缩包以及其他类型的文件资源。触发文件资源类元素以浮动UI元素的形式显示的操作可以是用户对文件资源类元素的拖拽操作。Wherein, the file resource element may refer to pictures, documents, compressed packages and other types of file resources stored in the form of files in the mobile phone system. The operation that triggers the display of the file resource element in the form of a floating UI element may be a user's drag operation on the file resource element.

例如,如图10中的(a)所示,手机显示文件资源管理页面1001。资源管理页面1001可以为本申请实施例中的第一界面。用户在想将文件资源管理页面1001中的一个或多个文件资源以浮动UI元素的形式显示在手机屏幕上时,可针对该文件资源执行拖拽操作。在用户释放拖拽后,手机可将该文件资源以浮动UI元素的形式显示在手机屏幕上。For example, as shown in (a) in FIG. 10 , the mobile phone displays a file resource management page 1001 . The resource management page 1001 may be the first interface in this embodiment of the application. When the user wants to display one or more file resources in the file resource management page 1001 on the screen of the mobile phone in the form of floating UI elements, the user can perform a drag operation on the file resources. After the user releases the drag, the mobile phone can display the file resource on the screen of the mobile phone in the form of a floating UI element.

其中,上述拖拽操作可以包括一个或多个操作。示例性的,拖拽操作可以包括触发文件资源浮起的操作和触发浮起文件资源移动的操作。Wherein, the above-mentioned drag operation may include one or more operations. Exemplarily, the drag operation may include an operation of triggering the floating of the file resource and an operation of triggering the movement of the floating file resource.

例如,以触发文件资源浮起的操作为对文件资源的长按并选中的操作,触发浮起文件资源移动的操作为对浮起文件资源的按下并移动的操作为例。继续参考图10中的(a)所示,用户可对文件资源管理页面1001中的选择按钮1002进行点击操作。响应于该操作,如图10中的(b)所示,手机进入对文件资源管理页面1001中文件资源的选择模式。用户可在该选择模式下选择文件资源。如手机接收到用户对文件资源“zyy”1003的选择操作,则该文件资源“zyy”1003处于选中状态。文件资源“zyy”1003可以为本申请实施例中的第一元素。用户可长按选中的文件资源“zyy”1003。响应于用户的操作,手机可将文件资源“zyy”1003显示为浮起的状态。如,如图10中的(c)所示,手机可进行背景虚化处理,并显示浮起的文件资源“zyy”1003。之后,用户通过按下浮起的文件资源“zyy”1003并移动手指(如向右移动手指),可使得文件资源“zyy”1003在手机屏幕上跟随用户手指的移动而移动。之后,用户可松开手指,以释放拖拽。在用户松开手指后,手机可接收到用户的拖拽释放操作。在手机接收到该拖拽释放操作后,如图10中的(d)所示,手机可在手机屏幕上显示浮动UI元素1004,该浮动UI元素1004中包括链接图标。其中,链接图标用于链接到文件资源“zyy”1003对应在手机中的存储地址,即被用户拖拽的文件资源以浮动UI元素的形式显示在手机屏幕上。如,浮动UI元素1004可吸附显示在手机屏幕的边缘(如屏幕左边缘或屏幕右边缘,图10中的(d)以吸附显示在屏幕右边缘为例示出)。浮动UI元素1004可以为本申请实施例中的第一浮动元素。拖拽操作和拖拽释放操作可以为本申请实施例中的第二操作。For example, an operation that triggers the floating of a file resource is an operation of long pressing and selecting a file resource, and an operation that triggers movement of a floating file resource is an operation of pressing and moving a floating file resource. Continuing to refer to (a) in FIG. 10 , the user can click the selection button 1002 on the file resource management page 1001 . In response to this operation, as shown in (b) in FIG. 10 , the mobile phone enters a mode of selecting file resources in the file resource management page 1001 . Users can select file resources in this selection mode. If the mobile phone receives the user's selection operation on the file resource "zyy" 1003, the file resource "zyy" 1003 is in the selected state. The file resource "zyy" 1003 may be the first element in this embodiment of the application. The user can long press the selected file resource “zyy” 1003 . In response to the user's operation, the mobile phone may display the file resource "zyy" 1003 as a floating state. For example, as shown in (c) in FIG. 10 , the mobile phone can perform background blur processing and display a floating file resource "zyy" 1003 . Afterwards, the user presses the floating file resource "zyy" 1003 and moves the finger (for example, moves the finger to the right), so that the file resource "zyy" 1003 can follow the movement of the user's finger on the screen of the mobile phone. Afterwards, the user can lift the finger to release the drag. After the user releases the finger, the mobile phone can receive the user's drag and release operation. After the mobile phone receives the dragging and releasing operation, as shown in (d) in FIG. 10 , the mobile phone can display a floating UI element 1004 on the mobile phone screen, and the floating UI element 1004 includes a link icon. Among them, the link icon is used to link to the storage address corresponding to the file resource "zyy" 1003 in the mobile phone, that is, the file resource dragged by the user is displayed on the screen of the mobile phone in the form of floating UI elements. For example, the floating UI element 1004 can be displayed on the edge of the screen of the mobile phone (such as the left edge or the right edge of the screen, (d) in FIG. 10 is shown as an example of being displayed on the right edge of the screen). The floating UI element 1004 may be the first floating element in this embodiment of the application. The drag operation and the drag and release operation may be the second operation in the embodiment of the present application.

需要说明的是,文件资源类元素以浮动UI元素呈现在手机屏幕上的具体实现过程与图6所示文本类元素以浮动UI元素呈现在手机屏幕上的具体实现过程类似,此处不再一一赘述。区别在于,拖拽事件中包括文件资源在手机中的存储地址和以浮动UI元素呈现的元素类型为文件资源类,手机应用层的元素控制模块可将链接图标作为shadow。It should be noted that the specific implementation process of file resource elements presented as floating UI elements on the screen of the mobile phone is similar to the specific implementation process of text elements presented as floating UI elements on the screen of the mobile phone shown in Figure 6, and will not be repeated here. A repeat. The difference is that the drag event includes the storage address of the file resource in the mobile phone and the element type presented as a floating UI element is a file resource class, and the element control module of the mobile phone application layer can use the link icon as a shadow.

类似的,采用以上图10所示实施例的技术方案,对于文件资源类元素,用户通过执行拖拽操作,可将文件资源类元素以浮动UI元素的形式显示在手机屏幕上,如吸附显示在终端屏幕边缘。且在接收到用户在该应用内切换页面,或退出该应用,或开启其他应用的操作后,该浮动UI元素可继续显示在手机屏幕上,使得跨应用查看或分享信息更加方便。如,在用户想跨页面或跨应用使用该文件资源,如将该文件资源分享给好友时,通过将该浮动UI元素拖拽到与该好友的聊天界面的输入框内,便可将该浮动UI元素对应的文件资源分享给好友。具体实现与将以浮动UI元素形式显示的文本填充到输入框中的实现类似,此处不在详细赘述。Similarly, using the technical solution of the embodiment shown in Figure 10 above, for the file resource element, the user can display the file resource element on the screen of the mobile phone in the form of a floating UI element by performing a drag and drop operation. Terminal screen edge. And after receiving the user's operation of switching pages in the application, or exiting the application, or opening other applications, the floating UI element can continue to be displayed on the mobile phone screen, making it more convenient to view or share information across applications. For example, when the user wants to use the file resource across pages or applications, such as sharing the file resource with a friend, by dragging the floating UI element into the input box of the chat interface with the friend, the floating UI element can be File resources corresponding to UI elements are shared with friends. The specific implementation is similar to the implementation of filling the text displayed in the form of floating UI elements into the input box, and will not be described in detail here.

结合图11,对列表类元素以浮动UI元素的形式显示在手机屏幕上的过程进行举例说明。With reference to FIG. 11 , an example is given to illustrate the process of displaying list elements on the mobile phone screen in the form of floating UI elements.

其中,列表类元素是安卓TM原生的控件类型,如ListView,RecyclerView等均为列表类元素。其中,具体可以是社交类,通讯类,购物类等应用中的列表类元素。触发列表类元素以浮动UI元素的形式显示的操作可以是用户对列表内列表项包括的元素,如列表项中表示用户头像的元素的拖拽操作。例如,如图11中的(a)所示,手机当前显示微信TM的首页1101。微信TM的首页1101可以为本申请实施例中的第一界面。用户在想将微信TM的首页1101中的列表类元素,如与一个或多个好友的聊天列表项以浮动UI元素的形式显示在手机屏幕上时,可针对列表项中联系人头像执行拖拽操作。在用户释放拖拽后,手机可将联系人头像以浮动UI元素的形式显示在手机屏幕上。Among them, the list element is a native control type of Android TM , such as ListView, RecyclerView, etc. are all list elements. Specifically, it may be a list element in applications such as social networking, communication, and shopping. The operation that triggers the display of list elements in the form of floating UI elements may be the user's drag operation on elements included in the list items in the list, such as an element in the list item representing the user's avatar. For example, as shown in (a) in FIG. 11 , the mobile phone currently displays the home page 1101 of WeChat TM . The homepage 1101 of WeChatTM may be the first interface in the embodiment of this application. When the user wants to display list elements in the home page 1101 of WeChatTM , such as chat list items with one or more friends, on the screen of the mobile phone in the form of floating UI elements, the user can drag and drop the avatars of the contacts in the list items operate. After the user releases the drag, the mobile phone can display the contact avatar on the mobile phone screen in the form of a floating UI element.

其中,上述拖拽操作可以包括一个或多个操作。示例性的,拖拽操作可以包括触发联系人头像浮起的操作和触发浮起的联系人头像移动的操作。Wherein, the above-mentioned drag operation may include one or more operations. Exemplarily, the dragging operation may include an operation of triggering the avatar of the contact to float up and an operation of triggering the movement of the avatar of the floating contact.

例如,以触发联系人头像浮起的操作为对联系人头像的长按操作,触发浮起联系人头像移动的操作为对浮起联系人头像的按下并移动的操作为例。继续参考图11中的(a)所示,用户可长按微信TM的首页1101中的好友BB的联系人头像1102。联系人头像11102可以为本申请实施例中的第一元素。手机可接收到用户针对联系人头像1102的长按操作。响应于该长按操作,手机可将联系人头像1102显示为浮起的状态。如,如图11中的(b)所示,手机可进行背景虚化处理,并显示浮起的联系人头像1102。之后,用户通过按下浮起的联系人头像1102并移动手指(如向右移动手指),可使得联系人头像1102在手机屏幕上跟随用户手指的移动而移动。之后,用户可松开手指,以释放拖拽。在用户松开手指后,手机可接收到用户的拖拽释放操作。在手机接收到该拖拽释放操作后,如图11中的(c)所示,手机可在手机屏幕上显示浮动UI元素1103,该浮动UI元素1103包括联系人头像1102,即被用户拖拽的列表项中的联系人头像以浮动UI元素的形式显示在手机屏幕上。浮动UI元素1103可以为本申请实施例中的第一浮动元素。拖拽操作和拖拽释放操作可以为本申请实施例中的第二操作。For example, an operation that triggers the avatar of a contact to float up is a long press operation on the avatar of the contact, and an operation that triggers the avatar of the floating contact to move is an operation of pressing and moving the avatar of the floating contact as an example. Continuing to refer to (a) shown in FIG. 11 , the user can long press the avatar 1102 of the friend BB in the home page 1101 of WeChat TM . The contact avatar 11102 may be the first element in this embodiment of the application. The mobile phone may receive the user's long press operation on the contact's profile picture 1102. In response to the long press operation, the mobile phone can display the contact portrait 1102 in a floating state. For example, as shown in (b) in FIG. 11 , the mobile phone can perform background blur processing and display a floating contact portrait 1102 . Afterwards, by pressing the floating contact portrait 1102 and moving the finger (for example, moving the finger to the right), the contact portrait 1102 can be moved on the screen of the mobile phone following the movement of the user's finger. Afterwards, the user can lift the finger to release the drag. After the user releases the finger, the mobile phone can receive the user's drag and release operation. After the mobile phone receives the dragging and releasing operation, as shown in (c) in Figure 11, the mobile phone can display a floating UI element 1103 on the mobile phone screen. The avatar of the contact in the list item of is displayed on the screen of the mobile phone in the form of a floating UI element. The floating UI element 1103 may be the first floating element in this embodiment of the application. The drag operation and the drag and release operation may be the second operation in the embodiment of the present application.

需要说明的是,以上图11所示实施例,是以列表类元素是微信TM中的列表项为例进行说明的。列表类元素也可以是其他应用界面中的列表项,如,通讯录中的列表项,又如,短信息中的列表项等,本实施例在此也不做具体限制。It should be noted that the above embodiment shown in FIG. 11 is described by taking list elements as list items in WeChatTM as an example. The list element may also be a list item in other application interfaces, such as a list item in an address book, or a list item in a short message, etc., and this embodiment does not make specific limitations here.

结合图4,如图12所示,作为一种示例,列表类元素以浮动UI元素呈现在手机屏幕上的具体实现过程可以是:手机,如手机应用层的应用接收到用户对列表项中某元素的拖拽操作后,可触发针对该元素的拖拽。手机应用层的应用可获取拖拽事件发送给手机应用层的拖拽服务模块。如,手机应用层的应用获取拖拽事件的过程可以是:用户执行拖拽操作后,手机的框架层可监听到该拖拽操作(如具体可以是对浮起联系人头像的长按操作),作为响应,手机的框架层可生成拖拽事件(DragEvent)。手机应用层的应用可通过回调获取到框架层生成的拖拽事件。其中,拖拽事件中可包括用户执行长按操作时按压点的坐标和被拖拽元素的类型(如列表类)。手机应用层的拖拽服务模块接收到拖拽事件后,可与手机应用层的元素控制模块配合根据拖拽事件中按压点的坐标和被拖拽元素的类型(如列表类)构造阴影(shadow)。如手机应用层的拖拽服务模块确定被拖拽元素的类型为列表类,则手机应用层的拖拽服务模块可将拖拽事件中按压点的坐标传输给手机框架层的窗口管理器。窗口管理器可根据按压点的坐标,确定按压点预设范围内的控件,并截取该控件的截图传输给手机应用层的元素控制模块,以便元素控制模块根据截图生成shadow。其中,按压点的预设范围内可以是以按压点为中心的预定像素(如1个像素,或大于1个像素)距离内。之后,手机应用层的元素控制模块可将生成的shadow传输给手机框架层的窗口管理器,以便窗口管理器以浮动UI元素的形式显示该shadow。如,窗口管理器在手机屏幕上显示一个圆形元素,该圆形元素即为浮动UI元素,其中包括用户按压点的控件截图,如联系人头像。Combined with Fig. 4, as shown in Fig. 12, as an example, the specific implementation process of presenting list elements as floating UI elements on the screen of the mobile phone may be as follows: the mobile phone, for example, the application layer of the mobile phone receives the user's request for a certain item in the list item. After the element is dragged and dropped, the dragging of the element can be triggered. The application in the mobile application layer can obtain the drag event and send it to the drag service module in the mobile application layer. For example, the process for the application layer of the mobile phone to obtain the drag event can be: after the user performs the drag operation, the framework layer of the mobile phone can monitor the drag operation (for example, it can be a long press operation on the floating contact avatar) , as a response, the frame layer of the mobile phone can generate a drag event (DragEvent). Applications in the mobile phone application layer can obtain drag events generated by the framework layer through callbacks. Wherein, the drag event may include the coordinates of the pressing point when the user performs a long press operation and the type of the dragged element (such as a list class). After the drag service module of the mobile application layer receives the drag event, it can cooperate with the element control module of the mobile application layer to construct a shadow according to the coordinates of the pressed point in the drag event and the type of the dragged element (such as a list class). ). If the drag service module of the mobile phone application layer determines that the type of the dragged element is a list, the drag service module of the mobile phone application layer can transmit the coordinates of the pressed point in the drag event to the window manager of the mobile phone frame layer. The window manager can determine the control within the preset range of the pressed point according to the coordinates of the pressed point, and capture a screenshot of the control and transmit it to the element control module of the mobile phone application layer, so that the element control module can generate a shadow according to the screenshot. Wherein, the preset range of the pressing point may be within a distance of predetermined pixels (such as 1 pixel, or greater than 1 pixel) centered on the pressing point. Afterwards, the element control module of the mobile phone application layer can transmit the generated shadow to the window manager of the mobile phone frame layer, so that the window manager can display the shadow in the form of floating UI elements. For example, the window manager displays a circular element on the screen of the mobile phone, and the circular element is a floating UI element, which includes a screenshot of the control pressed by the user, such as the avatar of the contact.

采用以上图11所示实施例的技术方案,对于列表类的界面元素,用户通过执行拖拽操作,可将列表项,如列表项包括的元素以浮动UI元素的形式显示在手机屏幕上。即通过浮动UI元素可将用户拖拽的列表项中的元素呈现在手机屏幕上。且在接收到用户在该应用内切换页面,或退出该应用,或开启其他应用的操作后,该浮动UI元素可继续显示在手机屏幕上。该浮动UI元素支持原列表项被点击后所支持的操作。即用户执行对应操作(该操作可以为本申请实施例中的第五操作),如点击该浮动UI元素后手机所作出的响应(或者说执行的功能,该功能可以为本申请实施例中的第一功能),与用户点击原列表项后手机所作出的响应相同。其具体实现可以是:在用户对列表项中某元素,如联系人头像执行拖拽操作后,手机应用层的应用可将点击该联系人头像后需要触发的意图(intent)发送给手机应用层的拖拽服务模块,以便手机在其屏幕上以浮动UI元素的形式显示该联系人头像后,手机可将该浮动UI元素的标识与上述需要触发的intent关联存储在手机中。之后,在手机接收到用户对浮动UI元素的操作,如点击操作后,手机可调用对应的需要触发的intent,以作出对应响应。Using the technical solution of the embodiment shown in FIG. 11 above, for list interface elements, the user can display the list items, such as the elements included in the list items, on the screen of the mobile phone in the form of floating UI elements by performing a drag operation. That is, the elements in the list item dragged by the user can be presented on the screen of the mobile phone through the floating UI element. And after receiving the user's operation of switching pages in the application, or exiting the application, or opening other applications, the floating UI element can continue to be displayed on the screen of the mobile phone. The floating UI element supports the operations supported by the original list item when it is clicked. That is, the user performs a corresponding operation (this operation may be the fifth operation in the embodiment of the present application), such as the response made by the mobile phone after clicking the floating UI element (or the function executed, which may be the fifth operation in the embodiment of the application) first function), which is the same as the phone's response when the user taps the original list item. Its specific implementation can be: after the user performs a drag operation on an element in the list item, such as a contact's avatar, the application of the mobile phone application layer can send the intent (intent) that needs to be triggered after clicking the contact's avatar to the mobile phone application layer After the mobile phone displays the avatar of the contact in the form of a floating UI element on its screen, the mobile phone can associate and store the identity of the floating UI element and the above-mentioned intent that needs to be triggered in the mobile phone. Afterwards, after the mobile phone receives the user's operation on the floating UI element, such as a click operation, the mobile phone can call the corresponding intent that needs to be triggered to make a corresponding response.

例如,结合图11所示示例,用户通过拖拽好友BB的联系人头像,触发其以浮动UI元素的形式显示在手机屏幕上后,用户触发手机退出了微信TM应用,并如图13A中的(a)所示,手机显示桌面1301。好友BB的联系人头像继续以浮动UI元素的形式显示在手机屏幕上,如图13A中的(a)中所示的浮动UI元素1302。另外,手机将浮动UI元素1302的标识与需要触发的intent关联存储在手机中。如需要触发的intent为显示与好友BB的聊天界面。在手机接收到用户对浮动UI元素1302的操作,如点击操作后,作为对该操作的响应,如图13A中的(b)所示,手机显示与好友BB的聊天界面1303。For example, in combination with the example shown in Figure 11, the user triggers the mobile phone to exit the WeChat TM application by dragging the contact avatar of friend BB to trigger it to be displayed on the screen of the mobile phone in the form of a floating UI element, as shown in Figure 13A As shown in (a), the mobile phone displays a desktop 1301 . The contact avatar of friend BB continues to be displayed on the screen of the mobile phone in the form of a floating UI element, such as the floating UI element 1302 shown in (a) in FIG. 13A . In addition, the mobile phone associates and stores the identifier of the floating UI element 1302 with the intent that needs to be triggered in the mobile phone. If the intent that needs to be triggered is to display the chat interface with the friend BB. After the mobile phone receives the user's operation on the floating UI element 1302, such as a click operation, as a response to the operation, as shown in (b) in FIG. 13A, the mobile phone displays a chat interface 1303 with the friend BB.

又例如,结合图14,如图14中的(a)所示,手机显示通信录界面1401。手机在接收到用户对通讯录界面1401中联系人Sam的头像1402的拖拽操作后,如图14中的(b)所示,手机显示浮动UI元素1403,该浮动UI元素1403包括联系人Sam的头像1402,即被用户拖拽的通讯录界面1401中联系人Sam的头像1402以浮动UI元素的形式显示在手机屏幕上。另外,手机将浮动UI元素1403的标识与需要触发的intent关联存储在手机中。如需要触发的intent为拨打电话给对应联系人。如图14中的(c)所示,用户触发手机退出了通讯录,手机显示桌面1404。浮动UI元素1403继续显示在手机屏幕上。之后,在手机接收到用户对浮动UI元素1403的操作,如点击操作后,作为对该操作的响应,手机可拨打电话给联系人Sam。另如图14中的(d)所示,手机还可显示拨号界面1405。For another example, referring to FIG. 14 , as shown in (a) in FIG. 14 , the mobile phone displays an address book interface 1401 . After the mobile phone receives the user's drag operation on the avatar 1402 of the contact Sam in the address book interface 1401, as shown in (b) in Figure 14, the mobile phone displays a floating UI element 1403, which includes the contact Sam The avatar 1402 of the user, that is, the avatar 1402 of the contact Sam in the address book interface 1401 dragged by the user is displayed on the screen of the mobile phone in the form of a floating UI element. In addition, the mobile phone associates and stores the identifier of the floating UI element 1403 with the intent that needs to be triggered in the mobile phone. If the intent to be triggered is to make a call to the corresponding contact. As shown in (c) in FIG. 14 , the user triggers the mobile phone to exit the address book, and the mobile phone displays a desktop 1404 . The floating UI element 1403 continues to be displayed on the phone screen. Afterwards, after the mobile phone receives the user's operation on the floating UI element 1403, such as a click operation, as a response to the operation, the mobile phone can make a call to the contact Sam. Also as shown in (d) in FIG. 14 , the mobile phone can also display a dial interface 1405 .

另外,对于以浮动UI元素的形式显示的联系人头像,在图片、URL或文本等内容被拖动到该浮动UI元素上时,手机可将该内容直接发送给对应的联系人。其中,拖动内容的操作可以包括触发内容浮起的操作和触发浮起内容移动的操作。以触发内容浮起的操作为对内容的长按操作,触发浮起内容移动的操作为对浮起内容的按下并移动的操作为例。例如,结合图11所示示例,用户通过拖拽好友BB的联系人头像,触发其以浮动UI元素的形式显示在手机屏幕上后,用户打开了图库应用。如图13B中的(a)所示,手机显示图库应用的界面1304。好友BB的联系人头像继续以浮动UI元素的形式显示在手机屏幕上,如图13B中的(a)中所示的浮动UI元素1305。手机接收到用户对图库应用的界面1304中图片1306的长按操作后,如图13B中的(b)所示,手机将图片1306浮起显示。之后,手机接收到用户按下浮起的图片1306并移动的操作,手机显示该图片1306移动的动画。如果手机接收到用户将图片1306移动到浮动UI元素1305的位置时释放拖拽的操作,则手机将该图片1306发送给好友BB。另外,如图13B中的(c)所示,手机还可自动打开与好友BB的聊天界面1307,并显示发送成功的消息。其中,手机发送图片给好友的具体实现可以是,在手机将浮动UI元素的标识与需要触发的intent(如,需要触发的intent为显示与好友BB的聊天界面)关联存储在手机中的基础上,手机在接收到用户将内容(如图片1306)拖拽到该浮动UI元素的位置释放拖拽的操作后,可调用对应的需要触发的intent,以启动聊天界面。手机还可构造素材数据(ClipData),并将用户拖拽的内容存到该ClipData中。之后,手机在启动的聊天界面中释放该ClipData,这样,应用将处理该ClipData,即将ClipData中的内容发送给对应联系人好友。需要说明的是,图13B所示示例是以将图片直接拖拽到以浮动UI元素呈现的联系人头像上,可触发手机将图片直接发送给对应联系人为例进行说明的。可以理解的是,在本实施例中,用户拖拽如文本,图片,URL,文件等至能响应发送事件的浮动UI元素(如上述以浮动UI元素呈现的联系人头像)上释放时均触发发送操作,这样可提升分享、发送内容等常规操作的交互效率。In addition, for a contact avatar displayed in the form of a floating UI element, when content such as a picture, URL or text is dragged onto the floating UI element, the mobile phone can directly send the content to the corresponding contact. Wherein, the operation of dragging the content may include an operation of triggering the floating of the content and an operation of triggering the movement of the floating content. Take the operation that triggers the floating of the content as a long press operation on the content, and the operation that triggers the movement of the floating content as an operation of pressing and moving the floating content as an example. For example, referring to the example shown in FIG. 11 , after the user drags the contact avatar of the friend BB to trigger it to be displayed on the screen of the mobile phone in the form of a floating UI element, the user opens the gallery application. As shown in (a) of FIG. 13B , the mobile phone displays an interface 1304 of the gallery application. The contact avatar of the friend BB continues to be displayed on the screen of the mobile phone in the form of a floating UI element, such as the floating UI element 1305 shown in (a) in FIG. 13B . After the mobile phone receives the user's long press operation on the picture 1306 in the interface 1304 of the gallery application, as shown in (b) in FIG. 13B , the mobile phone floats the picture 1306 for display. Afterwards, the mobile phone receives the user's operation of pressing and moving the floating picture 1306, and the mobile phone displays the moving animation of the picture 1306. If the mobile phone receives the operation of releasing the drag when the user moves the picture 1306 to the position of the floating UI element 1305, the mobile phone sends the picture 1306 to the friend BB. In addition, as shown in (c) in FIG. 13B , the mobile phone can also automatically open the chat interface 1307 with the friend BB, and display a message of successful sending. Among them, the specific implementation of the mobile phone sending the picture to the friend may be that the mobile phone associates and stores the identifier of the floating UI element with the intent that needs to be triggered (for example, the intent that needs to be triggered is to display the chat interface with the friend BB) in the mobile phone After receiving the user's operation of dragging content (such as picture 1306 ) to the position of the floating UI element and releasing the drag, the mobile phone can call the corresponding intent that needs to be triggered to start the chat interface. The mobile phone can also construct material data (ClipData), and store the content dragged and dropped by the user into the ClipData. Afterwards, the mobile phone releases the ClipData in the started chat interface, so that the application will process the ClipData, that is, send the content in the ClipData to the corresponding contact friend. It should be noted that, the example shown in FIG. 13B is illustrated by dragging the picture directly onto the avatar of the contact presented as a floating UI element, which can trigger the mobile phone to directly send the picture to the corresponding contact as an example. It can be understood that, in this embodiment, when the user drags text, pictures, URLs, files, etc. to the floating UI element that can respond to the sending event (such as the above-mentioned contact avatar presented by the floating UI element) and releases it, it will trigger Send operation, which can improve the interaction efficiency of common operations such as sharing and sending content.

以上示例是以手机将浮动UI元素的标识与需要触发的intent关联存储在手机中,用于在接收到用户对浮动UI元素的操作后,触发手机做出对应响应为例进行说明的。在其他一些实施例中,手机也可以不将浮动UI元素的标识与需要触发的intent关联存储在手机中,而是在接收到用户对浮动UI元素的操作后,将对应的操作事件发送给应用,以触发应用根据该操作事件作出对应响应。例如,在接收到用户对浮动UI元素的操作后,手机可判断是否存储了与该浮动UI元素的标识对应的intent。如果存储了与该浮动UI元素的标识对应的intent,则手机可启动该intent,以对用户的操作进行响应。如果未存储,且应用仍在前台显示,手机可将对应的操作事件传输给主屏,以触发应用根据该操作事件作出对应响应。如果该应用退到后台,手机可将应用的界面移到虚拟屏上进行绘制。在确定未存储与该浮动UI元素的标识对应的intent后,手机可将对应的操作事件发送到绘制该应用界面的虚拟屏,以触发应用根据该操作事件作出对应响应。The above example uses the mobile phone to associate and store the identifier of the floating UI element with the intent that needs to be triggered in the mobile phone to trigger the mobile phone to make a corresponding response after receiving the user's operation on the floating UI element. In some other embodiments, the mobile phone may not associate and store the identifier of the floating UI element with the intent that needs to be triggered in the mobile phone, but after receiving the user's operation on the floating UI element, send the corresponding operation event to the application , to trigger the app to make a corresponding response according to the operation event. For example, after receiving the user's operation on the floating UI element, the mobile phone may determine whether an intent corresponding to the identifier of the floating UI element is stored. If the intent corresponding to the identifier of the floating UI element is stored, the mobile phone can activate the intent to respond to the user's operation. If it is not stored and the application is still displayed in the foreground, the mobile phone can transmit the corresponding operation event to the main screen, so as to trigger the application to make a corresponding response according to the operation event. If the application retreats to the background, the mobile phone can move the interface of the application to the virtual screen for drawing. After determining that the intent corresponding to the identifier of the floating UI element is not stored, the mobile phone may send a corresponding operation event to the virtual screen on which the application interface is drawn, so as to trigger the application to make a corresponding response according to the operation event.

结合图15,对图标类元素以浮动UI元素的形式显示在手机屏幕上的过程进行举例说明。With reference to FIG. 15 , an example is given to illustrate the process of displaying icon elements on the mobile phone screen in the form of floating UI elements.

其中,图标类元素可以指的是界面中被定义了点击事件的图形元素。触发图标类元素以浮动UI元素的形式显示的操作可以是用户对图标类元素的拖拽操作。Wherein, the icon-type element may refer to a graphic element in an interface for which a click event is defined. The operation that triggers the icon-type element to be displayed in the form of a floating UI element may be a user's drag operation on the icon-type element.

例如,如图15中的(a)所示,手机显示淘宝TM的界面1501。淘宝TM的界面1501可以为本申请实施例中的第一界面。该界面1501中包括多个控件。用户在想将淘宝TM的界面1501中的一个或多个控件以浮动UI元素的形式显示在手机屏幕上时,可针对该控件执行拖拽操作。在用户释放拖拽后,手机可将该控件以浮动UI元素的形式显示在手机屏幕上。其中,上述拖拽操作可以包括一个或多个操作。示例性的,拖拽操作可以包括触发控件浮起的操作和触发浮起控件移动的操作。For example, as shown in (a) in FIG. 15 , the mobile phone displays an interface 1501 of Taobao . The Taobao TM interface 1501 may be the first interface in the embodiment of this application. The interface 1501 includes multiple controls. When the user wants to display one or more controls in the interface 1501 of Taobao TM on the mobile phone screen in the form of floating UI elements, he can perform a drag operation on the controls. After the user releases the drag, the mobile phone can display the control on the mobile phone screen in the form of a floating UI element. Wherein, the above-mentioned drag operation may include one or more operations. Exemplarily, the drag operation may include an operation of triggering the floating of the control and an operation of triggering the movement of the floating control.

例如,以触发控件浮起的操作为对控件的长按操作,触发浮起控件移动的操作为对浮起控件的按下并移动的操作为例。继续参考图15中的(a)所示,用户可对淘宝TM的界面1501中待收货控件1502进行长按操作。待收货控件1502可以为本申请实施例中的第一元素。响应于该长按操作,手机可将待收货控件1502显示为浮起的状态。如,如图15中的(b)所示,手机可进行背景虚化处理,并显示浮起的待收货控件1502。用户通过按下浮起的待收货控件1502并移动手指(如向右移动手指),可使得待收货控件1502在手机屏幕上跟随用户手指的移动而移动。之后,用户可松开手指,以释放拖拽。在用户松开手指后,手机可接收到用户的拖拽释放操作。在手机接收到该拖拽释放操作后,如图15中的(c)所示,手机可在手机屏幕上显示浮动UI元素1503,该浮动UI元素1503中包括待收货控件1502对应的图标,即被用户拖拽的控件以浮动UI元素的形式显示在手机屏幕上。浮动UI元素1503可以为本申请实施例中的第一浮动元素。拖拽操作和拖拽释放操作可以为本申请实施例中的第二操作。For example, an operation that triggers the floating of the control is a long press operation on the control, and an operation that triggers the movement of the floating control is an operation of pressing and moving the floating control as an example. Continuing to refer to (a) in FIG. 15 , the user can perform a long-press operation on the control 1502 to be received in the interface 1501 of TaobaoTM . The goods to be received control 1502 may be the first element in this embodiment of the application. In response to the long press operation, the mobile phone may display the control 1502 to be received in a floating state. For example, as shown in (b) in FIG. 15 , the mobile phone can perform background blur processing and display a floating control 1502 to be received. By pressing the floating control 1502 and moving the finger (such as moving the finger to the right), the user can make the control 1502 move on the screen of the mobile phone following the movement of the user's finger. Afterwards, the user can lift the finger to release the drag. After the user releases the finger, the mobile phone can receive the user's drag and release operation. After the mobile phone receives the dragging and releasing operation, as shown in (c) in FIG. 15 , the mobile phone can display a floating UI element 1503 on the mobile phone screen, and the floating UI element 1503 includes an icon corresponding to the control to be received 1502, That is, the control dragged by the user is displayed on the screen of the mobile phone in the form of a floating UI element. The floating UI element 1503 may be the first floating element in this embodiment of the application. The drag operation and the drag and release operation may be the second operation in the embodiment of the present application.

需要说明的是,图标类元素以浮动UI元素呈现在手机屏幕上的具体实现过程与图12所示列表类元素以浮动UI元素呈现在手机屏幕上的具体实现过程类似,此处不再一一赘述。区别在于,手机接收到用户对控件的拖拽操作,如长按操作后,可触发拖拽。拖拽事件中被拖拽元素的类型为图标类。It should be noted that the specific implementation process of icon elements presented as floating UI elements on the mobile phone screen is similar to the specific implementation process of list elements presented as floating UI elements on the mobile phone screen shown in Figure 12. repeat. The difference is that the mobile phone receives the user's drag operation on the control, for example, after a long press operation, the drag can be triggered. The type of the dragged element in the drag event is icon class.

可以理解的是,采用以上图15所示实施例的技术方案,对于图标类元素,用户通过执行拖拽操作,可将图标类元素以浮动UI元素的形式显示在手机屏幕上。且在接收到用户在该应用内切换页面,或退出该应用,或开启其他应用的操作后,该浮动UI元素可继续显示在手机屏幕上。该浮动UI元素支持控件被点击后所支持的操作。即用户执行对应操作(该操作可以为本申请实施例中的第五操作),如点击该浮动UI元素后手机所作出的响应(或者说执行的功能,该功能可以为本申请实施例中的第一功能),与用户点击原控件手机所作出的响应相同。其具体实现可以是:如果应用仍在前台显示,在接收到用户对浮动UI元素的操作后,手机可将对应的操作事件传输给主屏,以触发应用根据该操作事件作出对应响应。如果该应用退到后台,手机可将应用的移到虚拟屏上进行绘制。在接收到用户对浮动UI元素的操作后,手机可将对应的操作事件发送到绘制该应用界面的虚拟屏,以触发应用根据该操作事件作出对应响应。也就是说,结合图15所示示例,手机在接收到用户对浮动UI元素1503的操作,如点击操作后,手机可显示待收货的详情界面。It can be understood that, with the technical solution of the above embodiment shown in FIG. 15 , for icon elements, the user can display the icon elements on the screen of the mobile phone in the form of floating UI elements by performing a drag operation. And after receiving the user's operation of switching pages in the application, or exiting the application, or opening other applications, the floating UI element can continue to be displayed on the screen of the mobile phone. The floating UI element supports the operations supported by the control after it is clicked. That is, the user performs a corresponding operation (this operation may be the fifth operation in the embodiment of the present application), such as the response made by the mobile phone after clicking the floating UI element (or the function executed, which may be the fifth operation in the embodiment of the application) The first function), which is the same response as the user clicks on the original control phone. The specific implementation can be: if the application is still displayed in the foreground, after receiving the user's operation on the floating UI element, the mobile phone can transmit the corresponding operation event to the main screen, so as to trigger the application to make a corresponding response according to the operation event. If the application retreats to the background, the mobile phone can move the application to the virtual screen for drawing. After receiving the user's operation on the floating UI element, the mobile phone can send the corresponding operation event to the virtual screen on which the application interface is drawn, so as to trigger the application to make a corresponding response according to the operation event. That is to say, referring to the example shown in FIG. 15 , after the mobile phone receives the user's operation on the floating UI element 1503 , such as a click operation, the mobile phone can display the detailed interface of the goods to be received.

结合图16和图17,对卡片类元素以浮动UI元素的形式显示在手机屏幕上的过程进行举例说明。With reference to FIG. 16 and FIG. 17 , the process of displaying card elements in the form of floating UI elements on the screen of the mobile phone is described by way of example.

其中,卡片类元素可以指的是用于展示信息元素。界面中哪些元素为卡片类元素可以是预先定义的。如可将对应配置文件预先存储在手机中,该配置文件中包括卡片类元素的标识。如可以是导航类,购物类应用的中的元素。在一些实施例中,触发卡片类元素以浮动UI元素的形式显示的操作可以是用户对卡片类元素的拖拽操作。Wherein, the card element may refer to an element for displaying information. Which elements in the interface are card-type elements may be pre-defined. For example, the corresponding configuration file may be pre-stored in the mobile phone, and the configuration file includes the identification of the card element. For example, it can be elements in navigation and shopping applications. In some embodiments, the operation that triggers the card element to be displayed as a floating UI element may be a user's drag operation on the card element.

例如,如图16中的(a)所示,手机显示导航界面1601。导航界面1601可以为本申请实施例中的第一界面。用户在想将导航界面1601中的一个或多个元素以浮动UI元素的形式显示在手机屏幕上时,可针对该元素执行拖拽操作。在用户释放拖拽后,手机可将该元素以浮动UI元素的形式显示在手机屏幕上。其中,上述拖拽操作可以包括一个或多个操作。示例性的,拖拽操作可以包括触发元素浮起的操作和触发浮起元素移动的操作。For example, as shown in (a) in FIG. 16 , the mobile phone displays a navigation interface 1601 . The navigation interface 1601 may be the first interface in this embodiment of the application. When the user wants to display one or more elements in the navigation interface 1601 on the screen of the mobile phone in the form of floating UI elements, the user can perform a drag operation on the elements. After the user releases the drag, the mobile phone can display the element on the screen of the mobile phone in the form of a floating UI element. Wherein, the above-mentioned drag operation may include one or more operations. Exemplarily, the dragging operation may include an operation of triggering the floating of the element and an operation of triggering the movement of the floating element.

例如,以触发元素浮起的操作为对元素所在的显示区域的长按操作,触发浮起元素移动的操作为对浮起元素的按下并移动的操作为例。继续参考图16中的(a)所示,用户可对导航界面1601中元素1602所在的显示区域进行长按操作。元素1602可以为本申请实施例中的第一元素。响应于该长按操作,手机可根据配置文件提取导航界面1601中的部分卡片类元素,如可提取按压点预设范围内的卡片元素并将提取的卡片类元素显示为浮起的状态。如,如图16中的(a)所示,手机提取导航界面1601中的元素1602和元素1603。元素1603可以为本申请实施例中的第二元素。如图16中的(b)所示,手机进行背景虚化处理,并显示浮起的元素1604,该元素1604包括提取的元素1602和元素1603。用户通过按下浮起的元素1604并移动手指(如向右移动手指),可使得元素1604在手机屏幕上跟随用户手指的移动而移动。之后,用户可松开手指,以释放拖拽。在用户松开手指后,手机可接收到用户的拖拽释放操作。在手机接收到该拖拽释放操作后,如图16中的(c)所示,手机可在手机屏幕上显示浮动UI元素1605,该浮动UI元素1605中包括提取的元素1602和元素1603,即被用户拖拽的元素以浮动UI元素的形式显示在手机屏幕上。浮动UI元素1605可以为本申请实施例中的第一浮动元素。其中,提取的元素的以浮动UI元素的形式显示时,其布局与该元素在界面中的布局可以相同,也可以不同。在提取的元素以浮动UI元素的形式显示时的布局与其在界面中的布局相同的情况下,手机在提取出元素后,可根据其在当前界面中的布局对提取出的元素进行布局后,以浮动UI元素的形式显示在手机屏幕上。在提取的元素以浮动UI元素的形式显示时的布局与其在界面中的布局不同的情况下,作为一种示例,手机中可预先存储有对应的布局文件,该布局文件中包括提取出的元素的布局配置,如包括元素1602和元素1603的布局配置。手机在提取出元素,如上述元素1602和元素1603后,可根据布局文件对元素1602和元素1603进行布局后,以浮动UI元素的形式显示,如显示效果如图16中的(c)所示的浮动UI元素1605。拖拽操作和拖拽释放操作可以为本申请实施例中的第二操作。For example, an operation that triggers the floating of an element is a long press operation on the display area where the element is located, and an operation that triggers the movement of the floating element is an operation of pressing and moving the floating element. Continuing to refer to (a) in FIG. 16 , the user can perform a long press operation on the display area where the element 1602 in the navigation interface 1601 is located. Element 1602 may be the first element in this embodiment of the application. In response to the long press operation, the mobile phone can extract some card elements in the navigation interface 1601 according to the configuration file, for example, extract card elements within a preset range of the pressing point and display the extracted card elements in a floating state. For example, as shown in (a) in FIG. 16 , the mobile phone extracts elements 1602 and 1603 in the navigation interface 1601 . Element 1603 may be the second element in this embodiment of the application. As shown in (b) of FIG. 16 , the mobile phone performs background blurring and displays a floating element 1604 , which includes the extracted element 1602 and element 1603 . By pressing the floating element 1604 and moving the finger (such as moving the finger to the right), the user can make the element 1604 move on the screen of the mobile phone following the movement of the user's finger. Afterwards, the user can lift the finger to release the drag. After the user releases the finger, the mobile phone can receive the user's drag and release operation. After the mobile phone receives the drag-and-drop operation, as shown in (c) in Figure 16, the mobile phone can display a floating UI element 1605 on the mobile phone screen, and the floating UI element 1605 includes the extracted element 1602 and element 1603, namely The elements dragged by the user are displayed on the screen of the mobile phone in the form of floating UI elements. The floating UI element 1605 may be the first floating element in this embodiment of the application. Wherein, when the extracted element is displayed in the form of a floating UI element, its layout may be the same as or different from the layout of the element in the interface. When the layout of the extracted elements displayed in the form of floating UI elements is the same as that in the interface, after the mobile phone extracts the elements, it can arrange the extracted elements according to their layout in the current interface, Displayed on the phone screen as a floating UI element. When the layout of the extracted elements displayed in the form of floating UI elements is different from the layout in the interface, as an example, a corresponding layout file may be pre-stored in the mobile phone, and the layout file includes the extracted elements , such as the layout configuration including element 1602 and element 1603 . After the mobile phone extracts the elements, such as the above-mentioned element 1602 and element 1603, the element 1602 and element 1603 can be laid out according to the layout file, and then displayed in the form of floating UI elements, such as the display effect shown in (c) in Figure 16 The floating UI element 1605 of . The drag operation and the drag and release operation may be the second operation in the embodiment of the present application.

需要说明的是,图16所示示例中,卡片类元素以浮动UI元素呈现在手机屏幕上的具体实现过程与图12所示列表类元素以浮动UI元素呈现在手机屏幕上的具体实现过程类似,此处不再一一赘述。区别在于,手机接收到用户对元素的拖拽操作,如可以是接收到对元素所在的显示区域的长按操作后,可触发拖拽。拖拽事件中被拖拽元素的类型为卡片类。另外,在具体实现时,手机可根据用户按压点的坐标将按压点预设范围内的卡片元素作为后续以浮动UI元素呈现的元素。It should be noted that, in the example shown in Figure 16, the specific implementation process of the card element being presented as a floating UI element on the screen of the mobile phone is similar to the specific implementation process of the list element shown in Figure 12 being presented as a floating UI element on the screen of the mobile phone , which will not be repeated here. The difference is that the mobile phone may trigger the drag operation after receiving the user's drag operation on the element, for example, after receiving a long press operation on the display area where the element is located. The type of the dragged element in the drag event is a card class. In addition, during specific implementation, the mobile phone may use the card elements within the preset range of the pressed point as elements subsequently presented as floating UI elements according to the coordinates of the user's pressed point.

在其他一些实施例中,触发卡片类元素以浮动UI元素的形式显示的操作可以是用户对界面中预定按钮的操作。In some other embodiments, the operation that triggers the display of the card element in the form of a floating UI element may be the user's operation on a predetermined button in the interface.

例如,如图17中的(a)所示,手机显示购物应用的购物详情界面1701。用户在想将购物详情界面1701中的一个或多个元素以浮动UI元素的形式显示在手机屏幕上时,可对预定按钮,如分享按钮1706进行操作(如点击操作)。手机在接收到用户对分享按钮的点击操作后,可将购物详情界面1701中的部分元素,如卡片类元素以浮动UI元素的形式显示在手机屏幕上。For example, as shown in (a) in FIG. 17 , the mobile phone displays a shopping details interface 1701 of a shopping application. When the user wants to display one or more elements in the shopping details interface 1701 on the mobile phone screen in the form of floating UI elements, he can operate (eg, click) a predetermined button, such as the share button 1706 . After the mobile phone receives the user's click operation on the sharing button, it can display some elements in the shopping details interface 1701, such as card elements, on the screen of the mobile phone in the form of floating UI elements.

例如,继续参考图17中的(a)所示,用户对购物应用的购物详情界面1701中的分享按钮1706进行操作,如点击操作。响应于该点击操作,手机可提取购物详情界面1701中的卡片类元素,如可提取商品预览1702,商品价格1707,商品简介1703,加入购物车按钮1704和立即购买按钮1705。之后,如图17中的(b)所示,手机可在手机屏幕上显示浮动UI元素1708,该浮动UI元素1708中包括提取的商品预览1702,商品价格1707,商品简介1703,加入购物车按钮1704和立即购买按钮1705。For example, continuing to refer to (a) in FIG. 17 , the user operates, such as clicking, the share button 1706 in the shopping details interface 1701 of the shopping application. In response to the click operation, the mobile phone can extract card elements in the shopping details interface 1701 , such as item preview 1702 , item price 1707 , item profile 1703 , add to cart button 1704 and buy now button 1705 . Afterwards, as shown in (b) in Figure 17, the mobile phone can display a floating UI element 1708 on the mobile phone screen, which includes the extracted product preview 1702, product price 1707, product introduction 1703, and a button to add to the shopping cart 1704 and a buy now button 1705.

其中,手机在接收到用户对界面中的预定按钮的操作后,可以根据对应的配置文件提取该界面中的卡片类元素,以便其可以浮动UI元素的形式呈现给用户。该配置文件中定义了在接收到用户对预定按钮的操作后界面中的哪些元素以浮动UI元素的形式呈现。Wherein, after the mobile phone receives the user's operation on the predetermined button in the interface, it can extract the card elements in the interface according to the corresponding configuration file, so that it can be presented to the user in the form of floating UI elements. The configuration file defines which elements in the interface will be presented in the form of floating UI elements after receiving the user's operation on the predetermined button.

可以理解的是,采用以上图16和图17所示实施例的技术方案,对于卡片类元素,用户通过执行拖拽操作或对预定按钮进行操作,可将卡片类元素以浮动UI元素的形式显示在手机屏幕上。且在接收到用户在该应用内切换页面,或退出该应用,或开启其他应用的操作后,该浮动UI元素可继续显示在手机屏幕上,方便用户继续查看。另外,还可使得跨应用分享信息更加方便。如,在用户想将该卡片类元素分享给好友时,通过将浮动UI元素(如图17中的(b)所示的浮动UI元素1708)拖拽到与该好友的聊天界面的输入框内,便可将该浮动UI元素分享给好友。具体实现与将以浮动UI元素形式显示的文本填充到输入框中分享给好友的实现类似,此处不在详细赘述。另外,好友接收到该浮动UI元素后,可以在手机显示的聊天界面中点击接收到的浮动UI元素,以触发手机显示对应的购物详情界面。It can be understood that, by adopting the technical solutions of the embodiments shown in Figure 16 and Figure 17 above, for card-type elements, the user can display the card-type elements in the form of floating UI elements by performing a drag operation or operating a predetermined button on the phone screen. And after receiving the user's operation of switching pages in the application, or exiting the application, or opening other applications, the floating UI element can continue to be displayed on the mobile phone screen, which is convenient for the user to continue viewing. It also makes it easier to share information across applications. For example, when the user wants to share the card element with a friend, by dragging the floating UI element (such as the floating UI element 1708 shown in (b) in Figure 17) into the input box of the chat interface with the friend , you can share the floating UI element with your friends. The specific implementation is similar to the implementation of filling the text displayed in the form of floating UI elements into the input box and sharing it with friends, and will not be described in detail here. In addition, after receiving the floating UI element, the friend can click on the received floating UI element in the chat interface displayed on the mobile phone to trigger the mobile phone to display the corresponding shopping details interface.

结合图18,对视频窗口类元素以浮动UI元素的形式显示在手机屏幕上的过程进行举例说明。With reference to FIG. 18 , an example is given to illustrate the process of displaying video window elements on the mobile phone screen in the form of floating UI elements.

其中,视频窗口类元素是安卓TM原生的控件类型,如TextureView,SurfaceView,或webview中的video元素均为视频窗口类元素。触发视频窗口类元素以浮动UI元素的形式显示的操作可以是用户对视频窗口类元素的拖拽操作。Among them, the video window element is a native control type of Android TM , such as TextureView, SurfaceView, or video elements in webview are all video window elements. The operation that triggers the display of the video window type element in the form of a floating UI element may be a user's drag operation on the video window type element.

例如,如图18中的(a)所示,手机显示视频详情界面1801。视频详情界面1801可以为本申请实施例中的第一界面。用户在想将视频详情界面1801中的视频元素以浮动UI元素的形式显示在手机屏幕上时,可针对该视频元素执行拖拽操作。在用户释放拖拽后,手机可将该视频元素以浮动UI元素的形式显示在手机屏幕上。其中,上述拖拽操作可以包括一个或多个操作。示例性的,拖拽操作可以包括触发视频元素浮起的操作和触发浮起视频元素移动的操作。For example, as shown in (a) in FIG. 18 , the mobile phone displays a video detail interface 1801 . The video details interface 1801 may be the first interface in this embodiment of the application. When the user wants to display the video element in the video detail interface 1801 on the screen of the mobile phone in the form of a floating UI element, the user can perform a drag operation on the video element. After the user releases the drag, the mobile phone can display the video element on the screen of the mobile phone in the form of a floating UI element. Wherein, the above-mentioned drag operation may include one or more operations. Exemplarily, the drag operation may include an operation of triggering the floating of the video element and an operation of triggering the movement of the floating video element.

例如,以触发视频元素浮起的操作为对视频元素的长按操作,触发浮起视频元素移动的操作为对浮起视频元素的按下并移动的操作为例。继续参考图18中的(a)所示,用户可对视频详情界面1801中视频元素1802进行长按操作。视频元素1802可以为本申请实施例中的第一元素。响应于该长按操作,手机可将视频元素1802显示为浮起的状态。如,如图18中的(b)所示,手机可进行背景虚化处理,并显示浮起的视频元素1802。用户通过按下浮起的视频元素1802并移动手指(如向右移动手指),可使得视频元素1802在手机屏幕上跟随用户手指的移动而移动。之后,用户可松开手指,以释放拖拽。在用户松开手指后,手机可接收到用户的拖拽释放操作。在手机接收到该拖拽释放操作后,如图18中的(c)所示,手机可在手机屏幕上显示浮动UI元素1803,该浮动UI元素1803中包括视频元素1802,即被用户拖拽的视频元素以浮动UI元素的形式显示在手机屏幕上。浮动UI元素1803可以为本申请实施例中的第一浮动元素。拖拽操作和拖拽释放操作可以为本申请实施例中的第二操作。For example, an operation that triggers the floating of the video element is a long press operation on the video element, and an operation that triggers the movement of the floating video element is an operation of pressing and moving the floating video element. Continuing to refer to (a) in FIG. 18 , the user can perform a long press operation on the video element 1802 in the video detail interface 1801 . The video element 1802 may be the first element in this embodiment of the application. In response to the long press operation, the mobile phone may display the video element 1802 in a floating state. For example, as shown in (b) in FIG. 18 , the mobile phone can perform background blur processing and display a floating video element 1802 . By pressing the floating video element 1802 and moving the finger (for example, moving the finger to the right), the user can make the video element 1802 move on the screen of the mobile phone following the movement of the user's finger. Afterwards, the user can lift the finger to release the drag. After the user releases the finger, the mobile phone can receive the user's drag and release operation. After the mobile phone receives the drag and release operation, as shown in (c) in Figure 18, the mobile phone can display a floating UI element 1803 on the mobile phone screen, and the floating UI element 1803 includes a video element 1802, which is dragged by the user. The video element is displayed on the phone screen as a floating UI element. The floating UI element 1803 may be the first floating element in this embodiment of the application. The drag operation and the drag and release operation may be the second operation in the embodiment of the present application.

其中,视频窗口类元素以浮动UI元素呈现在手机屏幕上的具体实现过程可以是:手机,如手机应用层的应用接收到用户对视频窗口类元素的拖拽操作后,可触发针对该视频窗口类元素的拖拽。手机应用层的应用可获取拖拽事件发送给手机应用层的拖拽服务模块。如,手机应用层的应用获取拖拽事件的过程可以是:用户执行拖拽操作后,手机的框架层可监听到该拖拽操作(如具体可以是对视频窗口类元素的长按操作),作为响应,手机的框架层可生成拖拽事件(DragEvent)。手机应用层的应用可通过回调获取到框架层生成的拖拽事件。其中,拖拽事件中可包括按压点的坐标,应用的标识(如包名),视频窗口类元素的标识和被拖拽元素的类型(如视频窗口类)。手机应用层的拖拽服务模块可启动虚拟屏,并传递虚拟屏的标识和应用的包名给手机框架层的窗口管理器。手机框架层的窗口管理器根据虚拟屏的标识和应用的包名,可将该包名所指示应用的界面,即上述视频详情界面移到虚拟屏上绘制。手机应用层的拖拽服务模块还可与手机应用层的元素控制模块配合根据拖拽事件构造阴影(shadow)。如手机应用层的拖拽服务模块确定被拖拽元素的类型为视频窗口类,则手机应用层的拖拽服务模块可将拖拽事件中按压点的坐标传输给手机框架层的窗口管理器。窗口管理器可根据按压点的坐标,确定按压点附近的元素,并截取该元素的截图传输给手机应用层的元素控制模块,以便元素控制模块根据截图生成shadow,并将生成的shadow传输给手机框架层的窗口管理器,以便窗口管理器添加该shadow至手机的主屏。之后,在用户释放拖拽后,手机应用层的拖拽服务模块根据拖拽事件中视频窗口类元素的标识,可从虚拟屏上绘制的界面中提取出对应的视频窗口类元素,如视频元素,并将提取出视频窗口类元素映射到主屏的shadow,即实现视频窗口类元素以浮动UI元素的形式显示的效果。Among them, the specific implementation process for the video window elements to be presented as floating UI elements on the screen of the mobile phone can be as follows: the mobile phone, such as the application layer of the mobile phone, receives the user's drag operation on the video window element, and can trigger the video window for the video window. Drag and drop of class elements. The application in the mobile application layer can obtain the drag event and send it to the drag service module in the mobile application layer. For example, the process for the application layer of the mobile phone to obtain the drag event can be: after the user performs the drag operation, the frame layer of the mobile phone can monitor the drag operation (for example, it can be a long-press operation on the video window element), In response, the framework layer of the mobile phone may generate a drag event (DragEvent). Applications in the mobile phone application layer can obtain drag events generated by the framework layer through callbacks. Wherein, the drag event may include the coordinates of the pressed point, the identification of the application (such as the package name), the identification of the video window class element and the type of the dragged element (such as the video window class). The drag-and-drop service module of the mobile phone application layer can start the virtual screen, and transmit the identification of the virtual screen and the package name of the application to the window manager of the mobile phone frame layer. According to the identification of the virtual screen and the package name of the application, the window manager of the mobile phone frame layer can move the interface of the application indicated by the package name, that is, the above-mentioned video detail interface, to the virtual screen for drawing. The drag service module of the mobile application layer can also cooperate with the element control module of the mobile application layer to construct a shadow according to the drag event. If the drag service module of the mobile phone application layer determines that the type of the dragged element is a video window, the drag service module of the mobile phone application layer can transmit the coordinates of the pressed point in the drag event to the window manager of the mobile phone frame layer. The window manager can determine the elements near the pressed point according to the coordinates of the pressed point, and take a screenshot of the element and transmit it to the element control module of the mobile phone application layer, so that the element control module can generate a shadow according to the screenshot, and transmit the generated shadow to the mobile phone The window manager of the framework layer, so that the window manager can add the shadow to the main screen of the mobile phone. Later, after the user releases the drag, the drag service module of the mobile phone application layer can extract the corresponding video window elements from the interface drawn on the virtual screen according to the identification of the video window elements in the drag event, such as the video element , and map the extracted video window elements to the shadow of the main screen, that is, to achieve the effect that the video window elements are displayed in the form of floating UI elements.

采用以上图18所示实施例的技术方案,对于视频窗口类元素,用户通过执行拖拽操作,可将视频窗口类元素以浮动UI元素的形式显示在手机屏幕上。且在接收到用户在该应用内切换页面,或退出该应用(如图18中的(d)所示显示桌面1804),或开启其他应用的操作后,该浮动UI元素(如图18中的(d)所示浮动UI元素1803)可继续显示在手机屏幕上,供用户继续查看。这样可方便用户在继续查看该视频窗口类元素展示的视频的同时,对手机的其他界面进行操作。另外,在视频窗口类元素中所承载的视频是本地视频时,用户可通过将浮动UI元素(如图18中的(c)所示的浮动UI元素1803)拖拽到与该好友的聊天界面的输入框内,便可将该视频分享给好友。具体实现与将以浮动UI元素形式显示的文本填充到输入框中分享给好友的实现类似,此处不在详细赘述。Using the technical solution of the embodiment shown in Figure 18 above, for the video window element, the user can display the video window element on the screen of the mobile phone in the form of a floating UI element by performing a drag operation. And after receiving the operation that the user switches pages in the application, or exits the application (display desktop 1804 as shown in (d) in FIG. 18 ), or opens other applications, the floating UI element (as shown in FIG. 18 The floating UI element 1803 shown in (d) can continue to be displayed on the screen of the mobile phone for the user to continue viewing. In this way, it is convenient for the user to operate other interfaces of the mobile phone while continuing to view the video displayed by the video window element. In addition, when the video carried in the video window element is a local video, the user can drag the floating UI element (such as the floating UI element 1803 shown in (c) in Figure 18) to the chat interface with the friend In the input box, you can share the video with your friends. The specific implementation is similar to the implementation of filling the text displayed in the form of floating UI elements into the input box and sharing it with friends, and will not be described in detail here.

可以理解的是,一个界面可以包括多个界面元素。界面中支持以浮动UI元素的形式显示的界面元素可以是三方应用自定义的,也可以是系统推荐的。也就是说三方应用或系统可定义界面中的一个或多个界面元素支持以浮动UI元素的呈现。例如,三方应用的开发人员可预先定义该应用的界面中哪些元素支持以浮动UI元素的形式呈现,并将对应的配置文件配置在手机中。又如,系统开发人员可将对应推荐模型配置在手机中,该推荐模型用于识别界面中哪些元素支持以浮动UI元素的形式呈现。基于此,为了便于用户获知界面中的哪些元素支持以浮动UI元素的形式呈现,在本实施例中,手机在显示界面时,可以在接收到对应的用户操作后,将该界面(该界面可以为本申请实施例中的第一界面)中支持以浮动UI元素的形式呈现的元素以第一形式显示,如突出显示,不支持以浮动UI元素的形式呈现的元素以第二形式显示。其中,该用户操作可以是用户对界面中的元素的预设操作,如长按操作,双击操作等。该用户操作也可以是用户对对应开关按钮的操作。该用户操作可以为本申请实施例中的第一操作。该开关按钮可以为本申请实施例中的预定功能控件。It can be understood that an interface may include multiple interface elements. The interface elements that support display in the form of floating UI elements in the interface may be customized by the third-party application or recommended by the system. That is to say, the third-party application or the system can define one or more interface elements in the interface to support the presentation of floating UI elements. For example, a developer of a third-party application may predefine which elements in the interface of the application support presentation in the form of floating UI elements, and configure the corresponding configuration files in the mobile phone. For another example, the system developer can configure a corresponding recommendation model in the mobile phone, and the recommendation model is used to identify which elements in the interface support being presented in the form of floating UI elements. Based on this, in order to facilitate the user to know which elements in the interface support to be presented in the form of floating UI elements, in this embodiment, when the mobile phone displays the interface, after receiving the corresponding user operation, the interface (the interface can be In the first interface in the embodiment of the present application), elements that support the presentation of floating UI elements are displayed in the first form, such as highlighted, and elements that do not support the presentation of floating UI elements are displayed in the second form. Wherein, the user operation may be a user's preset operation on an element in the interface, such as a long-press operation, a double-click operation, and the like. The user operation may also be the user's operation on the corresponding switch button. The user operation may be the first operation in this embodiment of the application. The switch button may be a predetermined function control in the embodiment of the present application.

例如,以用户操作是用户对界面中元素的长按操作为例。结合图19,以手机显示淘宝TM的界面1901为例。如图19中的(a)所示,用户可对界面1901中的待付款控件1902进行长按操作。手机接收到对待付款控件1902的长按操作后,可判断该待付款控件1902是否支持以浮动UI元素的形式呈现。如果待付款控件1902支持以浮动UI元素的形式呈现,则手机可根据对应配置文件或推荐模型,识别界面1901中所有支持以浮动UI元素的形式呈现的元素。如图19中的(b)所示,手机识别出待付款控件1902,待发货控件1903,待收货控件1904,评价控件1905,我的快递控件1906和收藏中心控件1907支持以浮动UI元素的形式呈现。之后,手机可将这些支持以浮动UI元素的形式呈现的元素突出显示,如显示为浮起的状态。如,如图19中的(b)所示,手机可进行背景虚化处理,并显示浮起的待付款控件1902,待发货控件1903,待收货控件1904,评价控件1905,我的快递控件1906和收藏中心控件1907。如果待付款控件1902不支持以浮动UI元素的形式呈现,手机可不做响应。For example, take the user operation as an example that the user performs a long press operation on an element in the interface. With reference to FIG. 19 , take the mobile phone displaying the Taobao TM interface 1901 as an example. As shown in (a) of FIG. 19 , the user can perform a long press operation on the pending payment control 1902 in the interface 1901 . After the mobile phone receives the long-press operation of the control to be paid 1902, it can determine whether the control to be paid 1902 supports being presented in the form of a floating UI element. If the pending payment control 1902 supports presentation in the form of floating UI elements, the mobile phone can identify all elements in the interface 1901 that support presentation in the form of floating UI elements according to the corresponding configuration file or recommendation model. As shown in (b) in Figure 19, the mobile phone recognizes the control to be paid 1902, the control to be shipped 1903, the control to be received 1904, the evaluation control 1905, the My Express control 1906 and the collection center control 1907 to support floating UI elements presented in the form. Afterwards, the mobile phone may highlight these elements that support being presented in the form of floating UI elements, such as in a floating state. For example, as shown in (b) in Figure 19, the mobile phone can perform background blur processing, and display the floating pending payment control 1902, pending delivery control 1903, pending delivery control 1904, evaluation control 1905, my express control 1906 and favorite center control 1907. If the pending payment control 1902 does not support being presented as a floating UI element, the mobile phone may not respond.

又例如,以用户操作是用户对对应开关按钮的操作为例。结合图20,继续以手机显示淘宝TM的界面2001为例。如图20中的(a)所示,用户在想查看该界面2001中的哪些元素支持以浮动UI元素的形式呈现时,可执行从手机屏幕上边缘开始到指向下边缘的滑动操作。作为对该滑动操作的响应,如图20中的(b)所示,手机显示菜单栏2002,该菜单栏2002中包括浮动UI元素功能的开关按钮2003。用户可对该开关按钮2003进行操作,如点击操作。手机接收到用户对开关按钮2003的点击操作后,手机可根据对应配置文件或推荐模型,识别界面2001中所有支持以浮动UI元素的形式呈现的元素,并将支持以浮动UI元素的形式呈现的元素显示为浮起的状态。如,如图20中的(c)所示,手机可进行背景虚化处理,并将支持以浮动UI元素的形式呈现的元素:待付款控件2004,待发货控件2005,待收货控件2006,评价控件2007,我的快递控件2008和收藏中心控件2009浮起显示。For another example, it is assumed that the user operation is the user's operation on the corresponding switch button. With reference to FIG. 20 , continue to take the mobile phone displaying Taobao TM interface 2001 as an example. As shown in (a) in FIG. 20 , when the user wants to check which elements in the interface 2001 support being presented as floating UI elements, the user can perform a sliding operation starting from the upper edge of the mobile phone screen and pointing to the lower edge. As a response to the sliding operation, as shown in (b) in FIG. 20 , the mobile phone displays a menu bar 2002, which includes a switch button 2003 for the floating UI element function. The user can operate the switch button 2003, such as clicking. After the mobile phone receives the user's click operation on the switch button 2003, the mobile phone can identify all elements in the interface 2001 that support the presentation of floating UI elements according to the corresponding configuration file or the recommended model, and will support all elements presented in the form of floating UI elements. Elements are displayed in a floated state. For example, as shown in (c) in FIG. 20, the mobile phone can perform background blur processing, and will support elements presented in the form of floating UI elements: pending payment control 2004, pending delivery control 2005, and pending delivery control 2006 , Evaluation Control 2007, My Express Control 2008 and Collection Center Control 2009 are displayed as floating.

通过将界面中支持以浮动UI元素的形式呈现的元素突出显示,其他元素模糊显示,以提示用户该界面中的哪些元素支持以浮动UI元素的形式呈现。需要说明的是,除了将支持以浮动UI元素的形式呈现的元素显示为浮起状态外,还可以放大展示,或者仅将支持以浮动UI元素的形式呈现的元素放大展示,本实施例在此对突出显示的形式不做具体限制。例如,如图21所示,继续以手机显示淘宝TM的界面为例。在手机接收到用户对界面中的元素的预设操作或对对应开关按钮的操作后,作为响应,手机可以给当前界面添加深色蒙版,如图21中的2101,支持以浮动UI元素的形式呈现的元素置于深色蒙版之上(如,待付款控件2102,待发货控件2103,待收货控件2104,评价控件2105,我的快递控件2106和收藏中心控件2107置于深色蒙版之上),其他元素置于深色蒙版之下。当然支持以浮动UI元素的形式呈现的元素,也可以放大呈现。之后,用户可通过执行对应操作(如拖拽操作)以触发对应元素以浮动UI元素的形式显示在手机屏幕上。在用户执行完对应操作(如拖拽操作)或者关闭对应开关按钮后,界面可恢复初始的显示状态。By highlighting elements in the interface that support being presented as floating UI elements, and displaying other elements in a blurred manner, the user is prompted which elements in the interface support being presented as floating UI elements. It should be noted that, in addition to displaying the elements that support the form of floating UI elements in a floating state, the display can also be enlarged, or only the elements that support the form of floating UI elements can be displayed in a zoomed-in manner. This embodiment is here There is no specific limitation on the form of highlighting. For example, as shown in FIG. 21 , continue to take the mobile phone displaying the Taobao TM interface as an example. After the mobile phone receives the user's preset operation on the elements in the interface or the operation on the corresponding switch button, as a response, the mobile phone can add a dark mask to the current interface, such as 2101 in Figure 21, and supports floating UI elements. The elements presented in the form are placed on the dark mask (such as the control to be paid 2102, the control to be shipped 2103, the control to be received 2104, the evaluation control 2105, my express control 2106 and the collection center control 2107 are placed in a dark color mask), other elements are placed under the dark mask. Of course, elements presented in the form of floating UI elements are supported, and can also be enlarged for presentation. Afterwards, the user can trigger the corresponding element to be displayed on the screen of the mobile phone in the form of a floating UI element by performing a corresponding operation (such as a drag operation). After the user performs the corresponding operation (such as a drag operation) or closes the corresponding switch button, the interface can restore the initial display state.

根据以上实施例的描述可知,用户通过执行对应操作,可触发界面中的元素以浮动UI元素的形式呈现在手机屏幕上。在一些实施例中,在手机屏幕上可仅允许显示一个浮动UI元素。在其他一些实施例中,手机屏幕上可允许同时显示多个浮动UI元素。在允许同时显示多个浮动UI元素时,可对允许同时显示的浮动UI元素的最大个数(如最大个数为N)进行限制。如,可由系统默认配置是否允许同时在手机屏幕上显示多个浮动UI元素,如系统默认配置在手机屏幕上只允许显示一个浮动UI元素。又如,手机可提供配置界面,供用户选择是否允许同时在手机屏幕上显示多个浮动UI元素,如用户选择允许同时在手机屏幕上显示多个浮动UI元素。在用户选择允许同时显示多个浮动UI元素的情况下,还可由用户设置允许同时显示的浮动UI元素的最大个数。再如,可由用户选择是否允许同时在手机屏幕上显示多个浮动UI元素,在用户选择允许同时显示多个浮动UI元素的情况下,允许同时显示的浮动UI元素的最大个数由是系统的默认配置。According to the description of the above embodiments, it can be seen that by performing corresponding operations, the user can trigger the elements in the interface to be presented on the screen of the mobile phone in the form of floating UI elements. In some embodiments, only one floating UI element may be allowed to be displayed on the phone screen. In some other embodiments, multiple floating UI elements can be displayed on the mobile phone screen at the same time. When multiple floating UI elements are allowed to be displayed at the same time, the maximum number of floating UI elements allowed to be displayed at the same time (for example, the maximum number is N) can be limited. For example, whether to allow multiple floating UI elements to be displayed on the mobile phone screen at the same time can be configured by default by the system. For example, only one floating UI element is allowed to be displayed on the mobile phone screen by default. For another example, the mobile phone may provide a configuration interface for the user to choose whether to allow multiple floating UI elements to be displayed on the mobile phone screen at the same time, such as the user selects to allow multiple floating UI elements to be displayed on the mobile phone screen at the same time. In the case that the user chooses to allow multiple floating UI elements to be displayed at the same time, the user can also set the maximum number of floating UI elements that are allowed to be displayed at the same time. For another example, the user can choose whether to allow multiple floating UI elements to be displayed on the mobile phone screen at the same time. default allocation.

在手机屏幕上允许同时显示多个浮动UI元素的情况下,用户可通过执行对应操作(如拖拽操作,复制操作等),以触发手机将多个元素以浮动UI元素的形式显示在手机屏幕上。在一些实施例中,手机可根据预设排列规则这多个浮动UI元素。如手机根据浮动UI元素生成时间的先后顺序,将多个浮动UI元素依次排列显示在手机屏幕上,如依次从上到下排列显示在手机屏幕的边缘。例如,结合图22,如图22中的(a)所示,手机在手机屏幕的左边缘显示有浮动UI元素2201。用户触发手机生成浮动UI元素2202。如图22中的(b)所示,手机可将浮动UI元素2202排列显示在浮动UI元素2201之后。用户又触发手机生成浮动UI元素2203,如图22中的(c)所示,手机可将浮动UI元素2203排列显示在浮动UI元素2201和浮动UI元素2202之后。也就是说,手机可将最早生成的浮动UI元素显示在最上方,后续生成的浮动UI元素按生成的时间先后顺序依次排列。When multiple floating UI elements are allowed to be displayed on the mobile phone screen at the same time, the user can trigger the mobile phone to display multiple elements in the form of floating UI elements on the mobile phone screen by performing corresponding operations (such as drag operation, copy operation, etc.) superior. In some embodiments, the mobile phone can arrange the plurality of floating UI elements according to preset arrangement rules. For example, the mobile phone arranges and displays multiple floating UI elements on the screen of the mobile phone according to the order in which the floating UI elements are generated, for example, arranges and displays them on the edge of the screen of the mobile phone from top to bottom. For example, referring to FIG. 22, as shown in (a) in FIG. 22, the mobile phone displays a floating UI element 2201 on the left edge of the mobile phone screen. The user triggers the phone to generate a floating UI element 2202 . As shown in (b) of FIG. 22 , the mobile phone may arrange and display the floating UI element 2202 behind the floating UI element 2201 . The user triggers the mobile phone to generate a floating UI element 2203. As shown in (c) in FIG. That is to say, the mobile phone can display the earliest generated floating UI element at the top, and the subsequent generated floating UI elements are arranged in sequence according to the generation time.

在一些实施例中,在手机屏幕上允许同时显示多个浮动UI元素,且设置了允许同时显示的浮动UI元素的最大个数的情况下,如果手机屏幕上已经显示的浮动UI元素的个数已达到最大个数的限制,则在用户再次触发手机以浮动UI元素的形式显示界面元素时,手机可自动删除最早生成的浮动UI元素,并将本次生成的浮动UI元素显示在手机屏幕上。例如,结合图23,手机当前显示有5个浮动UI元素,且允许同时显示的浮动UI元素的最大个数为5个。如图23中的(a)所示,手机当前显示有5个浮动UI元素,分别为浮动UI元素2302,浮动UI元素2303,浮动UI元素2304,浮动UI元素2305和浮动UI元素2306。其中,浮动UI元素2302为最早生成的浮动UI元素。如图23中的(a)所示,手机显示图库应用的界面2301,该界面2301可以为本申请实施例中的第二界面。用户通过拖拽界面2301中的图片2307,以触发图片2307以浮动UI元素的形式显示在手机屏幕上。图片2307可以为本申请实施例中的第三元素。由于此时手机屏幕上显示的浮动UI元素的个数已达到上限,因此手机在接收到用户的拖拽释放操作后,如图23中的(b)所示,手机可删除(或者说不显示)浮动UI元素2302,而在屏幕上显示浮动UI元素2308,以及浮动UI元素2303,浮动UI元素2304,浮动UI元素2305和浮动UI元素2306。如,手机可将新生成的浮动UI元素2308(浮动UI元素2308可以为本申请实施例中的第二浮动元素)自动排列显示在已显示的浮动UI元素队列的最下方,已显示的浮动UI元素依次上移,队列最上方的浮动UI元素2302被自动顶替消失。在一些实施例中,在新生成的浮动UI元素自动顶替最早生成的浮动UI元素显示在屏幕上之前,手机还可以显示提示消息,以提示用户新生成的浮动UI元素将顶替最早生成的浮动UI元素显示在屏幕上。在提示后,再将新生成的浮动UI元素自动顶替最早生成的浮动UI元素显示在屏幕上。In some embodiments, when multiple floating UI elements are allowed to be displayed on the screen of the mobile phone at the same time, and the maximum number of floating UI elements allowed to be displayed at the same time is set, if the number of floating UI elements already displayed on the screen of the mobile phone is If the maximum number has been reached, when the user triggers the mobile phone to display interface elements in the form of floating UI elements again, the mobile phone can automatically delete the earliest generated floating UI element and display the floating UI element generated this time on the mobile phone screen . For example, referring to FIG. 23 , the mobile phone currently displays 5 floating UI elements, and the maximum number of floating UI elements allowed to be displayed at the same time is 5. As shown in (a) in FIG. 23 , the mobile phone currently displays five floating UI elements, namely floating UI element 2302 , floating UI element 2303 , floating UI element 2304 , floating UI element 2305 and floating UI element 2306 . Among them, the floating UI element 2302 is the earliest generated floating UI element. As shown in (a) of FIG. 23 , the mobile phone displays an interface 2301 of a gallery application, and the interface 2301 may be the second interface in the embodiment of the present application. The user drags the picture 2307 in the interface 2301 to trigger the picture 2307 to be displayed on the screen of the mobile phone in the form of a floating UI element. The picture 2307 may be the third element in the embodiment of this application. Since the number of floating UI elements displayed on the mobile phone screen has reached the upper limit at this time, the mobile phone can delete (or not display ) floating UI element 2302, and displaying floating UI element 2308, floating UI element 2303, floating UI element 2304, floating UI element 2305 and floating UI element 2306 on the screen. For example, the mobile phone can automatically arrange and display the newly generated floating UI element 2308 (the floating UI element 2308 can be the second floating element in this embodiment of the application) at the bottom of the displayed floating UI element queue, and the displayed floating UI The elements move up sequentially, and the floating UI element 2302 at the top of the queue is automatically replaced and disappears. In some embodiments, before the newly generated floating UI element automatically replaces the earliest generated floating UI element and is displayed on the screen, the mobile phone may also display a prompt message to remind the user that the newly generated floating UI element will replace the earliest generated floating UI Elements are displayed on the screen. After the prompt, the newly generated floating UI element is automatically displayed on the screen instead of the earliest generated floating UI element.

其中,上述图23所示实施例中,在手机屏幕上已经显示的浮动UI元素的个数已达到最大个数的限制的情况下,用户再次触发手机以浮动UI元素的形式显示界面元素时,是否允许新生成的浮动UI元素自动顶替最早生成的浮动UI元素显示在屏幕上,可以是系统的默认配置,也可以提供设置界面供用户设置。如,当用户设置了允许新生成的浮动UI元素自动顶替最早生成的浮动UI元素显示在屏幕上时,在手机屏幕上已经显示的浮动UI元素的个数已达到最大个数的限制,用户再次触发手机以浮动UI元素的形式显示界面元素时,手机可将新生成的浮动UI元素自动顶替最早生成的浮动UI元素显示在屏幕上。如果用户设置不允许新生成的浮动UI元素自动顶替最早生成的浮动UI元素显示在屏幕上,则在手机屏幕上已经显示的浮动UI元素的个数已达到最大个数的限制,用户再次触发手机以浮动UI元素的形式显示界面元素时,手机显示提示消息,如提示消息可以为“数量已达上限,请删除已有浮动UI元素”,提示用户屏幕的浮动UI元素个数已达到最大个数的限制,不能允许再增加显示新的浮动UI元素。当然,上述图23所示实施例中的自动顶替规则,如自动顶替最早生成的浮动UI元素也仅是一种示例,在其他一些实施例中,自动顶替的规则也可以是自动顶替最晚生成的浮动UI元素,或者自动顶替使用频率最低的浮动UI元素等,本实施例在此不做限制。该自动顶替规则可以是系统预定义的,也可提供设置界面供用户设置。Wherein, in the above-mentioned embodiment shown in FIG. 23 , when the number of floating UI elements already displayed on the screen of the mobile phone has reached the limit of the maximum number, when the user triggers the mobile phone to display interface elements in the form of floating UI elements again, Whether to allow newly generated floating UI elements to automatically replace the earliest generated floating UI elements to be displayed on the screen can be the default configuration of the system, or a setting interface can be provided for users to set. For example, when the user sets to allow newly generated floating UI elements to automatically replace the earliest generated floating UI elements on the screen, the number of floating UI elements already displayed on the mobile phone screen has reached the maximum number limit, and the user again When the mobile phone is triggered to display interface elements in the form of floating UI elements, the mobile phone can automatically replace the earliest generated floating UI elements and display them on the screen. If the user setting does not allow newly generated floating UI elements to automatically replace the earliest generated floating UI elements on the screen, the number of floating UI elements already displayed on the mobile phone screen has reached the maximum limit, and the user triggers the mobile phone again When the interface elements are displayed in the form of floating UI elements, the mobile phone displays a prompt message. For example, the prompt message can be "The number has reached the upper limit, please delete the existing floating UI elements", prompting the user that the number of floating UI elements on the screen has reached the maximum number The limitation of , cannot allow to add and display new floating UI elements. Of course, the automatic replacement rule in the embodiment shown in FIG. 23 above, such as automatically replacing the earliest generated floating UI element is only an example. In some other embodiments, the automatic replacement rule can also be that the automatic replacement is the latest generation Floating UI elements, or automatically replacing the least frequently used floating UI elements, etc., are not limited in this embodiment. The automatic replacement rule may be predefined by the system, or a setting interface may be provided for the user to set.

如上述实施例的描述,用户可通过执行对应操作(如拖拽操作,复制操作等),触发手机将界面中各种类型(如文本类,图片类,图标类,卡片类,列表联系人类,视频窗口类,文件资源类)的元素以浮动UI元素的形式显示在手机屏幕上。因此,可以认为,对应生成的浮动UI元素也具备对应类型,如,浮动UI元素的类型与该元素的类型相同。基于此,在其他一些实施例中,在手机屏幕上允许同时显示多个浮动UI元素,且设置了允许同时显示的浮动UI元素的最大个数的情况下,如果手机屏幕上已经显示的浮动UI元素的个数已达到最大个数的限制,则在用户再次触发手机以浮动UI元素的形式显示界面元素时,手机可先判断当前显示的浮动UI元素中,是否存在与新生成的浮动UI元素类型(或者说是否存在与该界面元素类型)相同的浮动UI元素,如果不存在,则可按照图23所示的实施例在手机屏幕上显示浮动UI元素。如果存在,如当前显示的浮动UI元素中浮动UI元素1与新生成的浮动UI元素类型相同,则可将新生成的浮动UI元素(该浮动UI元素可以为本申请实施例中的第二浮动元素)与该浮动UI元素1(该浮动UI元素1可以为本申请实施例中的第三浮动元素)自动合并为一个浮动UI元素组显示在手机屏幕上。As described in the above-mentioned embodiment, the user can trigger the mobile phone to display various types in the interface (such as text, picture, icon, card, list contacts, etc.) Video window class, file resource class) elements are displayed on the mobile phone screen in the form of floating UI elements. Therefore, it can be considered that the correspondingly generated floating UI element also has a corresponding type, for example, the type of the floating UI element is the same as the type of the element. Based on this, in some other embodiments, when multiple floating UI elements are allowed to be displayed simultaneously on the mobile phone screen, and the maximum number of floating UI elements that are allowed to be displayed at the same time is set, if the floating UI elements already displayed on the mobile phone screen If the number of elements has reached the maximum limit, when the user triggers the mobile phone to display interface elements in the form of floating UI elements again, the mobile phone can first determine whether there is a newly generated floating UI element among the currently displayed floating UI elements type (or whether there is a floating UI element of the same type as the interface element), if not, then the floating UI element can be displayed on the screen of the mobile phone according to the embodiment shown in FIG. 23 . If it exists, such as the floating UI element 1 in the currently displayed floating UI element is the same type as the newly generated floating UI element, then the newly generated floating UI element (the floating UI element can be the second floating UI element in the embodiment of the application) element) and the floating UI element 1 (the floating UI element 1 may be the third floating element in the embodiment of the present application) are automatically merged into a floating UI element group and displayed on the screen of the mobile phone.

例如,结合图24,如图24中的(a)所示,手机当前显示有5个浮动UI元素,分别为浮动UI元素2402,浮动UI元素2403,浮动UI元素2404,浮动UI元素2405和浮动UI元素2406。其中,浮动UI元素2402为列表联系人类的浮动UI元素。浮动UI元素2403为文件资源类的浮动UI元素。浮动UI元素2404为图标类的浮动UI元素。浮动UI元素2405为图片类的浮动UI元素。浮动UI元素2406为卡片类的浮动UI元素。如图24中的(a)所示,手机显示图库应用的界面2401,用户通过拖拽界面2401中的图片2407,以触发图片2407以浮动UI元素(新生成的浮动UI元素的类型为图片类)的形式显示在手机屏幕上。由于此时手机屏幕上显示的浮动UI元素的个数已达到上限,因此手机在接收到用户的拖拽释放操作后,手机可判断当前显示的浮动UI元素中,是否存在与新生成的浮动UI元素类型(图片类)相同的浮动UI元素。结合图24的示例可知,手机可确定出当前显示的浮动UI元素2405与新生成的浮动UI元素类型相同,均为图片类,则手机将新生成的浮动UI元素与该浮动UI元素2405合并显示,如图24中的(c)所示,手机显示浮动UI元素组2408。在一些实施例中,手机在确定当前显示的浮动UI元素中,存在与新生成的浮动UI元素类型相同的浮动UI元素时,手机还可将与该新生成的浮动UI元素类型相同的已显示的浮动UI元素突出显示,以提示用户新生成的浮动UI元素将与其合并显示。如,图24中的(b)所示,在用户拖拽图片2407的过程中,手机可进行背景虚化处理,显示浮起的图片2407。手机还可将已显示的浮动UI元素中与新生成的浮动UI元素类型相同的浮动UI元素2405清晰显示,其他浮动UI元素模糊显示。之后,在用户释放拖拽后,如图24中的(c)所示,手机显示浮动UI元素组2408。另外,在手机将多个(两个或两个以上)的浮动UI元素合并显示后,手机还可在浮动UI元素组上显示提示信息,以提示该浮动UI元素组包括的浮动UI元素的个数。如图24中的(c)所示,手机在浮动UI元素组2408上(如右上角)显示角标2409,该角标2409中包括的数字“2”用于指示浮动UI元素组2408包括2个浮动UI元素,或者说是由2个浮动UI元素合并而成的。For example, in combination with Figure 24, as shown in (a) in Figure 24, the mobile phone currently displays five floating UI elements, namely floating UI element 2402, floating UI element 2403, floating UI element 2404, floating UI element 2405 and floating UI element 2406. Wherein, the floating UI element 2402 is a floating UI element of list contacts. The floating UI element 2403 is a floating UI element of the file resource class. The floating UI element 2404 is a floating UI element of icon type. The floating UI element 2405 is a floating UI element of picture type. The floating UI element 2406 is a card type floating UI element. As shown in (a) in Figure 24, the mobile phone displays the interface 2401 of the gallery application, and the user drags the picture 2407 in the interface 2401 to trigger the picture 2407 to be a floating UI element (the type of the newly generated floating UI element is a picture class ) is displayed on the phone screen. Since the number of floating UI elements displayed on the mobile phone screen has reached the upper limit at this time, after the mobile phone receives the user's drag and drop operation, the mobile phone can determine whether there is a newly generated floating UI element among the currently displayed floating UI elements. Floating UI elements with the same element type (image class). 24, it can be seen that the mobile phone can determine that the currently displayed floating UI element 2405 is the same type as the newly generated floating UI element, both of which are pictures, and then the mobile phone will display the newly generated floating UI element and the floating UI element 2405 together. , as shown in (c) in FIG. 24 , the mobile phone displays a floating UI element group 2408 . In some embodiments, when the mobile phone determines that among the currently displayed floating UI elements, there is a floating UI element of the same type as the newly generated floating UI element, the mobile phone can also use the displayed floating UI element of the same type as the newly generated floating UI element. The floating UI element of is highlighted to prompt the user that the newly generated floating UI element will be displayed merged with it. For example, as shown in (b) of FIG. 24 , during the process of the user dragging the picture 2407 , the mobile phone may perform background blur processing to display the floating picture 2407 . The mobile phone may also clearly display the floating UI element 2405 of the same type as the newly generated floating UI element among the displayed floating UI elements, and display other floating UI elements indistinctly. Afterwards, after the user releases the drag, as shown in (c) in FIG. 24 , the mobile phone displays a floating UI element group 2408 . In addition, after the mobile phone combines and displays multiple (two or more) floating UI elements, the mobile phone can also display prompt information on the floating UI element group to prompt the individual floating UI elements included in the floating UI element group. number. As shown in (c) in Figure 24, the mobile phone displays a subscript 2409 on the floating UI element group 2408 (such as the upper right corner), and the number "2" included in the subscript 2409 is used to indicate that the floating UI element group 2408 includes 2 A floating UI element, or a combination of two floating UI elements.

需要说明的是,以上示例是以已显示的浮动UI元素中与新生成的浮动UI元素类型相同的浮动UI元素存在一个为例进行说明的。在其他一些实施例中,当已显示的浮动UI元素中与新生成的浮动UI元素类型相同的浮动UI元素存在多个时,手机可自动选择这多个浮动UI元素中的一个或多个与新生成的浮动UI元素合并为一个浮动UI元素组。手机也可根据用户的操作,将这多个浮动UI元素中用户选择的浮动UI元素与新生成的浮动UI元素合并为一个浮动UI元素组。It should be noted that, the above example is described by taking as an example that there is one floating UI element of the same type as the newly generated floating UI element among the displayed floating UI elements. In some other embodiments, when there are multiple floating UI elements of the same type as the newly generated floating UI elements among the displayed floating UI elements, the mobile phone may automatically select one or more of the multiple floating UI elements to match with the newly generated floating UI elements. Newly generated floating UI elements are merged into a floating UI element group. The mobile phone may also combine the floating UI element selected by the user among the plurality of floating UI elements and the newly generated floating UI element into a floating UI element group according to the user's operation.

以上图24所示实施例是以屏幕上显示的浮动UI元素的数量达到上限的情况下,又有新的浮动UI元素生成时,手机将同类型的浮动UI元素合并为浮动UI元素组显示在手机屏幕上为例进行说明的。在其他一些实施例中,在生成浮动UI元素的过程中,如果用户的一次操作会触发手机生成多个浮动UI元素,则手机也可以将生成的这多个浮动UI元素中同类型的浮动UI元素自动合并为一个浮动UI元素组呈现给用户。也就是说,当用户同时触发多个同类型的元素以浮动UI元素的形式呈现时,手机会将生成的这多个元素的浮动UI元素自动合并为一个浮动UI元素组后呈现给用户。In the above embodiment shown in FIG. 24 , when the number of floating UI elements displayed on the screen reaches the upper limit, and a new floating UI element is generated, the mobile phone will merge the floating UI elements of the same type into a group of floating UI elements and display them on the screen. The mobile phone screen is used as an example to illustrate. In some other embodiments, in the process of generating floating UI elements, if an operation of the user triggers the mobile phone to generate multiple floating UI elements, the mobile phone can also generate floating UI elements of the same type among the multiple floating UI elements. Elements are automatically merged into a floating UI element group presented to the user. That is to say, when the user simultaneously triggers multiple elements of the same type to be presented in the form of floating UI elements, the mobile phone will automatically combine the generated floating UI elements of these multiple elements into a floating UI element group and present it to the user.

例如,结合图25,以用户同时触发多个图片类元素以浮动UI元素的形式呈现,且触发图片类元素以浮动UI元素呈现的操作为拖拽操作为例。如,拖拽操作包括触发图片浮起的操作和触发浮起图片移动的操作。触发图片浮起的操作为对图片的长按操作,触发浮起图片移动的操作为对浮起图片的按下并移动的操作。For example, referring to FIG. 25 , it is taken as an example that the user triggers multiple picture elements to be presented as floating UI elements at the same time, and the operation of triggering picture elements to be presented as floating UI elements is a drag operation as an example. For example, the drag operation includes an operation of triggering the floating of the picture and an operation of triggering the movement of the floating picture. The operation that triggers the floating of the picture is a long press operation on the picture, and the operation that triggers the movement of the floating picture is the operation of pressing and moving the floating picture.

如图25中的(a)所示,手机显示图库应用的界面2501,图库应用的界面2501中包括多个图片。用户可长按图库应用的界面2501中的图片2502。如图25中的(b)所示,用户长按图库应用的界面2501中的图片2503。手机可接收到用户对图片2502和图片2503的长按操作。响应于该长按操作,手机可将图片2502和图片2503显示为浮起的状态。如,如图25中的(c)所示,手机可进行背景虚化处理,并显示浮起的图片2502和图片2503。之后,用户通过按下浮起的图片2502和图片2503并移动手指(如,向右移动手指),可使得图片2502和图片2503在手机屏幕上跟随用户手指的移动而移动。之后,用户可松开手指,以释放拖拽。在用户松开手指后,手机可接收到用户的拖拽释放操作。在手机接收到该拖拽释放操作后,手机可生成图片2502的浮动UI元素和图片2503的浮动UI元素,由于这两个浮动UI元素的类型相同,均为图片类,因此,如图25中的(d)所示,手机可在手机屏幕上显示浮动UI元素组2504。该浮动UI元素组2504包括图片2502的浮动UI元素和图片2503的浮动UI元素,或者说是由图片2502的浮动UI元素和图片2503的浮动UI元素合并而成的。如图25中的(d)所示,手机在浮动UI元素组2504上(如右上角)显示角标2505,该角标2505中包括的数字“2”用于指示浮动UI元素组2504包括2个浮动UI元素,或者说是由2个浮动UI元素合并而成的。As shown in (a) of FIG. 25 , the mobile phone displays an interface 2501 of a gallery application, and the interface 2501 of the gallery application includes multiple pictures. The user can long press the picture 2502 in the interface 2501 of the gallery application. As shown in (b) in FIG. 25 , the user presses and holds the picture 2503 in the interface 2501 of the gallery application. The mobile phone may receive the user's long press operation on pictures 2502 and 2503. In response to the long press operation, the mobile phone may display the pictures 2502 and 2503 in a floating state. For example, as shown in (c) in FIG. 25 , the mobile phone can perform background blur processing and display floating pictures 2502 and 2503 . Afterwards, the user presses the floating picture 2502 and picture 2503 and moves the finger (eg, moves the finger to the right), so that the picture 2502 and the picture 2503 can move along with the movement of the user's finger on the screen of the mobile phone. Afterwards, the user can lift the finger to release the drag. After the user releases the finger, the mobile phone can receive the user's drag and release operation. After the mobile phone receives the drag-and-drop operation, the mobile phone can generate the floating UI element of the picture 2502 and the floating UI element of the picture 2503. Since the two floating UI elements are of the same type, both are pictures, as shown in Figure 25 As shown in (d), the mobile phone may display a floating UI element group 2504 on the mobile phone screen. The floating UI element group 2504 includes the floating UI elements of the picture 2502 and the floating UI elements of the picture 2503 , or is formed by merging the floating UI elements of the picture 2502 and the floating UI elements of the picture 2503 . As shown in (d) in Figure 25, the mobile phone displays a subscript 2505 on the floating UI element group 2504 (such as the upper right corner), and the number "2" included in the subscript 2505 is used to indicate that the floating UI element group 2504 includes 2 A floating UI element, or a combination of two floating UI elements.

类似的,在用户同时触发多个其他同类型,如文件资源类,文本类,图标类,卡片类,列表联系人类,视频窗口类等的元素以浮动UI元素的形式呈现时,手机也可以将生成的多个浮动UI元素自动合并为一个浮动UI元素组后显示在手机屏幕上。手机还可在浮动UI元素组上显示提示信息,以提示该浮动UI元素组包括的浮动UI元素的个数。另外,在本实施例中,一个浮动UI元素组中允许包括的浮动UI元素的个数可以不受限制,也可以设置上限(如,9个)。其中,该上限可以提供设置界面供用户设置,也可以是系统的默认配置。Similarly, when the user simultaneously triggers multiple elements of the same type, such as file resources, text, icons, cards, list contacts, video windows, etc. to be presented as floating UI elements, the mobile phone can also display the The generated multiple floating UI elements are automatically merged into a floating UI element group and displayed on the screen of the mobile phone. The mobile phone may also display prompt information on the floating UI element group to prompt the number of floating UI elements included in the floating UI element group. In addition, in this embodiment, the number of floating UI elements allowed to be included in a floating UI element group may not be limited, or an upper limit (for example, 9) may be set. Wherein, the upper limit may provide a setting interface for the user to set, and may also be a default configuration of the system.

对于以浮动UI元素组呈现的浮动UI元素,手机也可以根据用户操作,将浮动UI元素组展开,以供用户查看浮动UI元素组中的各浮动UI元素。例如,如图26中的(a)所示,手机当前显示有:浮动UI元素2601,浮动UI元素2602,浮动UI元素2603,浮动UI元素组2604和浮动UI元素2605。其中,浮动UI元素组2604包括两个浮动UI元素。手机接收用户可对浮动UI元素组2604的操作(该操作可以为本申请实施例中的第三操作),如点击操作,双击操作或长按操作。作为对该操作的响应,手机可显示该浮动UI元素组2604中包括的浮动UI元素。如,如图26中的(b)所示,手机将其他浮动UI元素,即浮动UI元素2601,浮动UI元素2602,浮动UI元素2603和浮动UI元素2605隐藏,展开浮动UI元素组2604,显示浮动UI元素2604-1和浮动UI元素2604-2。之后,在接收到用户的操作,如对显示浮动UI元素的区域外的其他区域的操作后,手机可自动收起浮动UI元素组,并将其他的浮动UI元素重新显示,显示效果恢复图26中的(a)所示。另外,如上述实施例的描述,允许同时显示在手机屏幕上的浮动UI元素的个数可能存在上限要求。在浮动UI元素组包括的浮动UI元素的个数大于该上限时,在接收到用户对该浮动UI元素组的操作后,手机可在手机屏幕上显示该浮动UI元素组中的部分浮动UI元素,其他浮动UI元素暂不显示。其中,显示的浮动UI元素的个数与该上限相同。之后,手机在接收到用户的上下滑动操作时,可触发手机切换显示的浮动UI元素组中的浮动UI元素。For floating UI elements presented in a floating UI element group, the mobile phone may also expand the floating UI element group according to user operations, so that the user can view each floating UI element in the floating UI element group. For example, as shown in (a) in FIG. 26 , the mobile phone currently displays: floating UI element 2601 , floating UI element 2602 , floating UI element 2603 , floating UI element group 2604 and floating UI element 2605 . Wherein, the floating UI element group 2604 includes two floating UI elements. The mobile phone receives the user's operation on the floating UI element group 2604 (this operation may be the third operation in the embodiment of the present application), such as a click operation, a double-click operation or a long-press operation. In response to this operation, the handset may display the floating UI elements included in the group 2604 of floating UI elements. For example, as shown in (b) in FIG. 26 , the mobile phone hides other floating UI elements, namely floating UI element 2601, floating UI element 2602, floating UI element 2603 and floating UI element 2605, expands floating UI element group 2604, and displays Floating UI element 2604-1 and floating UI element 2604-2. Afterwards, after receiving the user's operation, such as operations on other areas outside the area where the floating UI elements are displayed, the mobile phone can automatically close the floating UI element group and redisplay other floating UI elements, and the display effect is restored Figure 26 In (a) shown. In addition, as described in the above embodiments, there may be an upper limit requirement for the number of floating UI elements that are allowed to be displayed on the screen of the mobile phone at the same time. When the number of floating UI elements included in the floating UI element group is greater than the upper limit, after receiving the user's operation on the floating UI element group, the mobile phone can display some floating UI elements in the floating UI element group on the mobile phone screen , other floating UI elements are temporarily not displayed. Wherein, the number of displayed floating UI elements is the same as the upper limit. Afterwards, when the mobile phone receives the user's sliding operation up and down, it can trigger the mobile phone to switch the floating UI elements in the displayed floating UI element group.

对于以浮动UI元素组呈现的浮动UI元素,手机也可以根据用户操作(该操作与图26所示实施例中的用户操作不同),将浮动UI元素组拆分(或者说分离),以便浮动UI元素组中的各浮动UI元素单独显示在手机屏幕上。例如,如图27中的(a)所示,手机当前显示浮动UI元素组2701。其中,浮动UI元素组2701包括两个浮动UI元素。手机接收用户可对浮动UI元素组2701的操作,如点击操作,双击操作或长按操作。作为对该操作的响应,如图27中的(b)所示,手机将浮动UI元素组2701包括的浮动UI元素2702和浮动UI元素2703独立显示在手机屏幕上。另外,如上述实施例的描述,允许同时显示在手机屏幕上的浮动UI元素的个数可能存在上限要求。在接收到用户用于分离浮动UI元素组的操作后,手机可先判断在将浮动UI元素组分离显示后,屏幕上显示的所有浮动UI元素组是否超过上限,如果未超过上限,则响应于用于分离浮动UI元素组的操作,将浮动UI元素组分离后显示在手机屏幕上。如果超过上限,则手机可不执行分离浮动UI元素组的操作,手机可以暂时将浮动UI元素组展开显示,之后自动收回继续以浮动UI元素组的形式展示。For the floating UI elements presented in floating UI element groups, the mobile phone can also split (or separate) the floating UI element groups according to user operations (this operation is different from the user operations in the embodiment shown in Figure 26) so that the floating UI elements can be floated. Each floating UI element in the UI element group is independently displayed on the screen of the mobile phone. For example, as shown in (a) in FIG. 27 , the mobile phone currently displays a floating UI element group 2701 . Wherein, the floating UI element group 2701 includes two floating UI elements. The mobile phone receives the user's operation on the floating UI element group 2701, such as a click operation, a double-click operation or a long-press operation. As a response to this operation, as shown in (b) in FIG. 27 , the mobile phone independently displays the floating UI element 2702 and the floating UI element 2703 included in the floating UI element group 2701 on the screen of the mobile phone. In addition, as described in the above embodiments, there may be an upper limit requirement for the number of floating UI elements that are allowed to be displayed on the screen of the mobile phone at the same time. After receiving the user's operation for separating the floating UI element group, the mobile phone can first determine whether all the floating UI element groups displayed on the screen exceed the upper limit after the floating UI element group is separated and displayed, and if the upper limit is not exceeded, respond to An operation for separating a floating UI element group, and displaying the separated floating UI element group on the mobile phone screen. If the upper limit is exceeded, the mobile phone may not perform the operation of separating the floating UI element group, and the mobile phone may temporarily expand and display the floating UI element group, and then automatically retract and continue to display the floating UI element group.

在本实施例中,对于在手机屏幕上显示的浮动UI元素,手机可自动或根据用户操作(该用户操作可以为本申请实施例中的第四操作),将其删除,不再显示在手机屏幕上。In this embodiment, for the floating UI elements displayed on the screen of the mobile phone, the mobile phone can automatically or according to the user operation (the user operation can be the fourth operation in the embodiment of the present application), delete it, and no longer display it on the mobile phone. on the screen.

例如,手机接收到用户用于删除浮动UI元素的操作后,可将对应的浮动UI元素删除,不再显示在手机屏幕上。该用于删除浮动UI元素的操作可以是对浮动UI元素的长按操作,或双击操作,或拖拽操作。其中拖拽操作可以是按住浮动UI元素并快速向一个方向(如向上,或向下)滑动(如在预设时间内滑动的距离满足预定条件)的操作。For example, after receiving the user's operation for deleting a floating UI element, the mobile phone may delete the corresponding floating UI element and no longer display it on the screen of the mobile phone. The operation for deleting the floating UI element may be a long-press operation, a double-click operation, or a drag-and-drop operation on the floating UI element. The dragging operation may be an operation of pressing and holding a floating UI element and quickly sliding in one direction (such as upward or downward) (such as the sliding distance within a preset time meets a predetermined condition).

又例如,浮动UI元素在手机屏幕上允许显示的时长可以是不受限制的(也就是说,在用户不主动删除的情况下,其将一直显示在手机屏幕上),也可以是受限制的。如,可以是设置(用户设置或系统默认设置)浮动UI元素的最长存在时间。如可设置浮动UI元素的最大存在时间为X小时,则在浮动UI元素生成显示在手机屏幕后,手机可开始计时,以确定该浮动UI元素在手机屏幕上的存在时间。在计时时长等于最大存在时间X小时后,手机可自动将该浮动UI元素删除,不再显示在手机屏幕上。或者,在浮动UI元素生成显示在手机屏幕后,手机可开始计时,如果在X小时内未接收到用户对该浮动UI元素的操作,则在计时时长等于最大存在时间X小时后,手机自动将该浮动UI元素删除,不再显示在手机屏幕上。如果在X小时内接收到用户对该浮动UI元素的操作,则重新计时。在该实施例中,为了方便用户获知浮动UI元素在屏幕上的存在时间,在浮动UI元素生成并显示在手机屏幕后,手机计时的过程中,手机可显示对应的提示信息,用于提示用户浮动UI元素的存在时间。如,如图28中的(a)所示,手机显示浮动UI元素2801。手机还可显示环形条2802,该环形条2802随手机针对该浮动UI元素2801的计时时长的增加而增长。当计时时长等于最大存在时间时,环形条2802变为封闭的环形。且在计时时长等于最大存在时间时,手机将浮动UI元素2801删除,不再显示在手机屏幕上,如手机可显示该浮动UI元素2801炸掉的动画(如,类似于泡泡炸掉的动画)后,将该浮动UI元素2801从手机屏幕上删除。For another example, the display duration of the floating UI element on the mobile phone screen can be unlimited (that is, it will always be displayed on the mobile phone screen if the user does not actively delete it), or it can be limited . For example, it may be to set (user setting or system default setting) the maximum existence time of floating UI elements. If the maximum existence time of the floating UI element can be set to be X hours, then after the floating UI element is generated and displayed on the mobile phone screen, the mobile phone can start timing to determine the existence time of the floating UI element on the mobile phone screen. After the timing duration is equal to the maximum existence time X hours, the mobile phone can automatically delete the floating UI element and no longer display it on the mobile phone screen. Alternatively, after the floating UI element is generated and displayed on the screen of the mobile phone, the mobile phone can start timing. If no user operation on the floating UI element is received within X hours, the mobile phone will automatically set The floating UI element is removed and no longer displayed on the phone screen. Restart the timer if a user action on the floating UI element is received within X hours. In this embodiment, in order to facilitate the user to know the existence time of the floating UI element on the screen, after the floating UI element is generated and displayed on the screen of the mobile phone, the mobile phone can display corresponding prompt information during the timing process of the mobile phone to remind the user The lifetime of the floating UI element. For example, as shown in (a) in FIG. 28 , the mobile phone displays a floating UI element 2801 . The mobile phone can also display a circular bar 2802 that grows as the mobile phone's timing for the floating UI element 2801 increases. When the timing duration is equal to the maximum existence time, the ring bar 2802 becomes a closed ring. And when the timing duration is equal to the maximum existence time, the mobile phone deletes the floating UI element 2801, and is no longer displayed on the mobile phone screen, such as the animation that the floating UI element 2801 is blown up (such as, similar to the animation that the bubble is blown up) can be displayed on the mobile phone. ), the floating UI element 2801 is deleted from the mobile phone screen.

再例如,可预先设置用于删除浮动UI元素的区域,在手机接收到用户将浮动UI元素拖拽到该区域并释放拖拽(该操作可以为本申请实施例中的第四操作)后,手机可将该浮动UI元素删除,不再显示在手机屏幕上。例如,如图28中的(b)所示,手机显示浮动UI元素2803。手机接收到用户拖拽该浮动UI元素2803的操作后,可在手机屏幕上显示该浮动UI元素2803随用户手指的移动而移动的动画。另外手机还可显示删除按钮2804,该删除按钮2804所在区域即为用于删除浮动UI元素的区域。如果手机确定用户将浮动UI元素2803拖拽至该删除按钮2804所在区域,并释放拖拽,手机可将浮动UI元素2803删除,不再显示在手机屏幕上。For another example, the area for deleting the floating UI element can be preset, and after the mobile phone receives that the user drags the floating UI element to the area and releases the drag (this operation can be the fourth operation in the embodiment of the present application), The mobile phone can delete the floating UI element and no longer display it on the mobile phone screen. For example, as shown in (b) in FIG. 28 , the mobile phone displays a floating UI element 2803 . After receiving the user's operation of dragging the floating UI element 2803, the mobile phone may display an animation of the floating UI element 2803 moving with the movement of the user's finger on the screen of the mobile phone. In addition, the mobile phone may also display a delete button 2804, and the area where the delete button 2804 is located is an area for deleting floating UI elements. If the mobile phone determines that the user drags the floating UI element 2803 to the area where the delete button 2804 is located, and releases the drag, the mobile phone can delete the floating UI element 2803 and no longer display it on the mobile phone screen.

需要说明的是,以上实施例是以浮动UI元素的样式为圆形为例示出的,在其他一些实施例中,浮动UI元素的样式还可以是矩形、圆角矩形、椭圆形、多边形及其他不规则的UI形状,本实施例在此对浮动UI元素的样式不做具体限制。浮动UI元素中的内容(或者说能够以浮动UI元素呈现的元素)也不限于本实施例中的文本类,图片类,图标类,卡片类,列表联系人类,视频窗口类,文件资源类等元素。当然,浮动UI元素中的内容也可以是这些类型元素的彼此组合。另外,以上实施例中是以浮动UI元素显示在屏幕的左边缘或右边缘为例进行说明的,在其他一些实施例中,浮动UI元素也可以显示在屏幕的其他位置,如上边缘等,本实施例在此对浮动UI元素的显示位置(或者说布局位置)不做具体限制。浮动UI元素的显示位置具体可以是系统默认配置的,也可以提供设置界面供用户设置。可以看到的是,以上实施例中,是以浮动UI元素以不透明的方式,完整的显示在屏幕边缘为例示出的。在其他一些实施例中,结合图29,浮动UI元素,如,图29中的(a)所示的浮动UI元素2901也可以半透明的方式显示,或者如图29中的(b)所示,浮动UI元素2902也可以在屏幕边缘进行部分隐藏,或者如图29中的(c)所示,浮动UI元素2903在屏幕边缘进行部分隐藏。浮动UI元素以何种方式显示可以是系统默认配置的,也可以提供设置界面供用户设置。It should be noted that the above embodiments are illustrated by taking the style of the floating UI element as a circle as an example. In some other embodiments, the style of the floating UI element can also be rectangle, rounded rectangle, ellipse, polygon and other For irregular UI shapes, this embodiment does not specifically limit the styles of floating UI elements. The content in the floating UI element (or the element that can be presented as a floating UI element) is not limited to the text class, picture class, icon class, card class, list contact class, video window class, file resource class, etc. in this embodiment. element. Of course, the content in the floating UI element may also be a combination of these types of elements. In addition, in the above embodiments, the floating UI elements are displayed on the left or right edge of the screen as an example. In some other embodiments, the floating UI elements can also be displayed on other positions of the screen, such as the upper edge. The embodiment here does not specifically limit the display position (or layout position) of the floating UI element. The display position of the floating UI element may be specifically configured by the system by default, or a setting interface may be provided for the user to set. It can be seen that, in the above embodiment, the floating UI element is completely displayed on the edge of the screen in an opaque manner as an example. In some other embodiments, with reference to FIG. 29, the floating UI element, such as the floating UI element 2901 shown in (a) in FIG. 29 can also be displayed in a semi-transparent manner, or as shown in (b) in FIG. , the floating UI element 2902 can also be partially hidden at the edge of the screen, or as shown in (c) in FIG. 29 , the floating UI element 2903 can be partially hidden at the edge of the screen. The way in which the floating UI elements are displayed can be configured by the system by default, or a setting interface can be provided for the user to set.

另外,如上述图24-图27所示的示例,浮动UI元素组上可显示有提示信息,如角标,用于提示浮动UI元素组包括的浮动UI元素的个数。浮动UI元素组上是否显示角标,可以是系统默认的配置,也可以提供设置界面供用户设置。如,可提供设置界面供用户设置是否在浮动UI元素组上显示用于提示浮动UI元素组包括的浮动UI元素个数的角标,即可设置显示或不显示该角标。在其他一些实施例中,对于浮动UI元素而言,还可以显示其他角标。In addition, as shown in the examples shown in FIGS. 24-27 above, prompt information, such as corner marks, may be displayed on the floating UI element group to prompt the number of floating UI elements included in the floating UI element group. Whether to display the corner mark on the floating UI element group can be the default configuration of the system, or a setting interface can be provided for the user to set. For example, a setting interface may be provided for the user to set whether to display a corner mark on the floating UI element group for prompting the number of floating UI elements included in the floating UI element group, that is, to set whether to display the mark. In some other embodiments, for floating UI elements, other subscripts may also be displayed.

如,如图30中的(a)所示,对于列表联系人类的浮动UI元素,如图30中的(a)所示的浮动UI元素3001,手机可以在接收到该联系人的消息时,在浮动UI元素上显示消息提醒信息,如图30中的(a)所示,可以角标3002的形式显示消息提醒信息,角标3002中的数字可用于指示接收到的消息数量。当然,是否显示该消息提醒信息可以是系统默认的配置,也可以提供设置界面供用户设置。如果在接收到联系人的消息时浮动UI元素上显示消息提醒信息,则在用户查看后该消息提醒信息可消失不再显示。For example, as shown in (a) in Figure 30, for a floating UI element that lists contacts, such as the floating UI element 3001 shown in (a) in Figure 30, when the mobile phone receives a message from the contact, The message reminder information is displayed on the floating UI element, as shown in (a) in FIG. 30 , the message reminder information can be displayed in the form of a subscript 3002, and the number in the subscript 3002 can be used to indicate the number of received messages. Of course, whether to display the message reminder information may be the default configuration of the system, or a setting interface may be provided for the user to set. If a message reminder is displayed on a floating UI element when a message from a contact is received, the message reminder may disappear and no longer be displayed after the user views it.

又如,可以在浮动UI元素上显示用于指示该浮动UI元素的来源的应用的标识,如应用的图标,以方便用户识别该浮动UI元素的原始来源,即来源于哪个应用。例如,继续以列表联系人类的浮动UI元素为例,手机显示如图30中的(b)所示的浮动UI元素3003,该浮动UI元素3003上显示有用于指示该浮动UI元素3003的来源的应用的图标3004。其中,是否显示用于指示浮动UI元素来源的应用的标识可以是系统默认的配置,也可以提供设置界面供用户设置。如系统默认配置对于列表联系人类的浮动UI元素默认会显示应用的标识。又如可提供设置界面供用户设置某一种或多种浮动UI元素的显示应用的标识,其他类型的浮动UI元素不显示。For another example, an application identifier indicating the source of the floating UI element, such as an application icon, may be displayed on the floating UI element, so that the user can easily identify the original source of the floating UI element, that is, which application it comes from. For example, continuing to take the example of the floating UI element of the contact list, the mobile phone displays a floating UI element 3003 as shown in (b) in FIG. The icon 3004 of the application. Wherein, whether to display the identification of the application used to indicate the source of the floating UI element may be a default configuration of the system, or a setting interface may be provided for the user to set. For example, if the system is configured by default, the floating UI element of the contact list will display the logo of the application by default. For another example, a setting interface may be provided for the user to set the display application identifier of one or more floating UI elements, and other types of floating UI elements are not displayed.

再如,可以在浮动UI元素上显示用于指示该浮动UI元素类型(如链接)的符号。例如,以文件资源类的浮动UI元素为例,手机显示如图30中的(c)所示的浮动UI元素3005,该浮动UI元素3005上显示有用于指示该浮动UI元素3005的类型(如链接)的符号3006。For another example, a symbol used to indicate the type of the floating UI element (such as a link) may be displayed on the floating UI element. For example, taking the floating UI element of the file resource class as an example, the mobile phone displays a floating UI element 3005 as shown in (c) in FIG. link) symbol 3006.

在其他一些实施例中,上述示例中的角标可能会存在同时出现的场景,如浮动UI元素上显示有消息提醒信息和用于指示该浮动UI元素来源的应用的标识。又如,浮动UI元素组上有消息提醒信息(如图30中的(a)所示)和用于提示浮动UI元素组包括的浮动UI元素的个数的提示信息(如图27中的(a)所示)。在浮动UI元素组上同时包含消息提醒信息和提示信息时,为了区分,可在浮动UI元素组的不同位置显示这两种信息,如在左上角显示消息提醒信息,在左下角显示提示信息。进一步的,还可以采用不同的显示形式区分这两种信息,以这两种信息均以角标的形式呈现为例,如消息提醒信息对应角标和提示信息对应角标的颜色不同,或者形状不同(如一个角标是圆形,一个角标是方形)等。在两种信息不是同时出现的场景中,也可以对这两种信息加以区分,具体可参照这两种信息同时出现场景中的描述。In some other embodiments, the subtitles in the above example may appear simultaneously, for example, a floating UI element displays message reminder information and an application identification indicating the source of the floating UI element. As another example, the floating UI element group has message reminder information (as shown in (a) in FIG. 30 ) and prompt information for prompting the number of floating UI elements included in the floating UI element group (as shown in ((a) in FIG. 27 ). a) as shown). When the floating UI element group contains message reminder information and prompt information at the same time, in order to distinguish them, the two kinds of information can be displayed at different positions of the floating UI element group, for example, the message reminder information is displayed in the upper left corner, and the prompt information is displayed in the lower left corner. Further, different display forms can also be used to distinguish the two types of information. Taking the two types of information as an example in the form of subtitles, for example, the subtitles corresponding to the message reminder information and the subtitles corresponding to the prompt information have different colors or different shapes ( For example, a corner mark is a circle, and a corner mark is a square), etc. In the scenario where the two kinds of information do not appear at the same time, the two kinds of information can also be distinguished, for details, refer to the description in the scenario where the two kinds of information appear at the same time.

另外,如上述实施例的描述,屏幕上显示的浮动UI元素可被用户拖拽,在屏幕上移动。在其他一些实施例中,在浮动UI元素在手机屏幕上移动的过程中,手机可根据浮动UI元素当前所处区域,显示对应提示(如以角标的形式提示),以提示用户当前区域是否支持交互。如,结合图31,以浮动UI元素为文本类的浮动UI元素为例。如图31中的(a)所示,手机显示浮动UI元素3101。用户可按下浮动UI元素3101并移动,以触发浮动UI元素3101随着用户手指的移动而移动。如图31中的(b)所示,在浮动UI元素3101移动到不可交互的区域时,浮动UI元素3101上显示角标3102,该角标3102用于提示用户当前区域不支持交互。如图31中的(c)所示,在浮动UI元素3101移动到可交互的区域,如输入框3103的所在区域时,浮动UI元素3101上显示角标3104,该角标3104用于提示用户当前区域支持交互。在用户释放拖拽后,该浮动UI元素3101所承载的文本可粘贴到输入框3103中。如图31中的(d)所示,在浮动UI元素3101移动到删除区域(该区域可以是预定义的)3106时,浮动UI元素3101上显示角标3105,该角标3105用于提示用户在该区域释放拖拽后,该浮动UI元素3101将被删除。In addition, as described in the above embodiments, the floating UI elements displayed on the screen can be dragged by the user to move on the screen. In some other embodiments, when the floating UI element is moving on the screen of the mobile phone, the mobile phone can display a corresponding prompt (such as a prompt in the form of a corner mark) according to the area where the floating UI element is currently located, to prompt the user whether the current area supports interact. For example, referring to FIG. 31 , take the floating UI element as an example of a text-type floating UI element. As shown in (a) of FIG. 31 , the mobile phone displays a floating UI element 3101 . The user can press and move the floating UI element 3101 to trigger the floating UI element 3101 to move with the movement of the user's finger. As shown in (b) of FIG. 31 , when the floating UI element 3101 moves to a non-interactive area, a superscript 3102 is displayed on the floating UI element 3101, and the superscript 3102 is used to prompt the user that the current area does not support interaction. As shown in (c) in Figure 31, when the floating UI element 3101 moves to an interactive area, such as the area where the input box 3103 is located, a superscript 3104 is displayed on the floating UI element 3101, and the superscript 3104 is used to prompt the user The current locale supports interaction. After the user releases the drag, the text carried by the floating UI element 3101 can be pasted into the input box 3103 . As shown in (d) in Figure 31, when the floating UI element 3101 moves to the deletion area (this area may be predefined) 3106, a superscript 3105 is displayed on the floating UI element 3101, and the superscript 3105 is used to prompt the user After releasing the drag in this area, the floating UI element 3101 will be deleted.

由上述实施例的描述可知,在通过拖拽的方式触发元素以浮动UI元素形式呈现的场景中,在用户对元素进行拖拽,并释放拖拽后,即可触发手机将该元素以浮动UI元素的形式呈现在手机屏幕上。在其他一些实施例中,也可预先定义触发区域,当用户拖拽元素至该触发区域,并在该触发区域释放拖拽时,手机可将该元素以浮动UI元素的形式呈现在手机屏幕上。如果用户拖拽元素至其他区域并释放拖拽,则不触发手机执行将元素以浮动UI元素的形式呈现的操作。It can be known from the description of the above embodiment that, in the scenario where the element is triggered to be presented as a floating UI element by dragging, after the user drags and drops the element and releases the drag, the mobile phone can be triggered to display the element as a floating UI element. The form of the element is rendered on the phone screen. In some other embodiments, the trigger area can also be predefined. When the user drags the element to the trigger area and releases the drag in the trigger area, the mobile phone can present the element as a floating UI element on the screen of the mobile phone . If the user drags the element to another area and releases the drag, the mobile phone will not be triggered to perform the operation of presenting the element as a floating UI element.

采用以上技术方案,手机可根据用户操作,将界面上的任意元素以浮动UI元素的形式显示在手机屏幕上。之后,无论用户在应用内切换页面或退出该应用或打开其他应用,该浮动UI元素可继续显示在手机屏幕上,用于实现跨应用的信息查看,文件传输,信息分享等操作。如,文本类,图片类,卡片类,文件资源类和视频窗口类的浮动UI元素支持通过即时通信应用发送给好友等交互。文件,图片,文字和URL等内容通过拖拽至列表联系人类的浮动UI元素上可直接将该内容分享给对应联系人。URL类的浮动UI元素支持直接点开跳转。从不同应用的联系人列表中提取出来的代表特定联系人的浮动UI元素,根据具体业务场景支持发送文件、拨打电话等功能。另外,结合系统现有的交互逻辑生成浮动UI元素。With the above technical solution, the mobile phone can display any element on the interface in the form of floating UI elements on the screen of the mobile phone according to user operations. Afterwards, no matter whether the user switches pages in the application, exits the application or opens other applications, the floating UI element can continue to be displayed on the mobile phone screen for cross-application information viewing, file transfer, information sharing and other operations. For example, the floating UI elements of the text class, picture class, card class, file resource class, and video window class support interactions such as sending to friends through instant messaging applications. Files, images, text, and URLs can be directly shared with the corresponding contacts by dragging and dropping them to the floating UI elements of the contact list. Floating UI elements of the URL type support direct click and jump. A floating UI element representing a specific contact extracted from the contact list of different applications supports functions such as sending files and making calls according to specific business scenarios. In addition, the floating UI elements are generated in combination with the existing interactive logic of the system.

图32为本申请实施例提供的一种显示装置的组成示意图。该装置可以应用于终端。如图32所示,该装置可以包括:显示单元3201和输入单元3202。FIG. 32 is a schematic composition diagram of a display device provided by an embodiment of the present application. The device can be applied to a terminal. As shown in FIG. 32 , the device may include: a display unit 3201 and an input unit 3202 .

显示单元3201,用于在终端的显示屏上显示应用的第一界面,第一界面包括第一元素。The display unit 3201 is configured to display a first interface of the application on a display screen of the terminal, where the first interface includes a first element.

输入单元3202,用于接收对第一元素的拖拽操作。The input unit 3202 is configured to receive a drag operation on the first element.

显示单元3201,还用于在终端的显示屏上显示第一元素随拖拽操作移动的动画。The display unit 3201 is further configured to display an animation of the first element moving with the drag operation on the display screen of the terminal.

输入单元3202,还用于接收拖拽释放操作。The input unit 3202 is also configured to receive a dragging and releasing operation.

显示单元3201,还用于在终端的显示屏上显示第一浮动元素,第一浮动元素的内容与第一元素的内容相同。The display unit 3201 is further configured to display the first floating element on the display screen of the terminal, the content of the first floating element is the same as the content of the first element.

进一步的,第一界面还可以包括在第一元素预设范围内的第二元素;第一浮动元素还包括第二元素的内容。Further, the first interface may also include a second element within a preset range of the first element; the first floating element may also include the content of the second element.

进一步的,第一元素可以为文本类元素,URL网址,图片类元素,图标类元素,卡片类元素,列表联系人类元素,视频窗口类元素或文件资源类元素中的一种或多种。Further, the first element may be one or more of text elements, URL URLs, image elements, icon elements, card elements, contact list elements, video window elements or file resource elements.

进一步的,输入单元3202,还用于接收第一操作。Further, the input unit 3202 is also configured to receive the first operation.

显示单元3201,还用于将第一界面中支持浮动显示的元素以第一形式显示,不支持浮动显示的元素以第二形式显示;第一元素为支持浮动显示的元素,第一形式与第二形式不同。The display unit 3201 is further configured to display elements in the first interface that support floating display in a first form, and elements that do not support floating display in a second form; the first element is an element that supports floating display, and the first form and the second form The two forms are different.

进一步的,第一操作可以为对预定功能控件的操作;或第一操作可以为对第一界面中支持浮动显示的元素的操作。Further, the first operation may be an operation on a predetermined function control; or the first operation may be an operation on an element supporting floating display in the first interface.

进一步的,显示单元3201,还用于在终端的显示屏上显示第二界面,第二界面包括第三元素。Further, the display unit 3201 is further configured to display a second interface on the display screen of the terminal, where the second interface includes a third element.

输入单元3202,还用于接收对第三元素的第二操作。The input unit 3202 is further configured to receive a second operation on the third element.

显示单元3201,还用于在终端的显示屏上显示第二浮动元素,第二浮动元素的内容与第三元素的内容相同,第二浮动元素和第一浮动元素按照预设排列规则显示在终端的显示屏上。其中,第二操作可以包括拖拽操作和拖拽释放操作,或第一元素为文本类元素或URL网址的情况下,第二操作也可以为复制操作。The display unit 3201 is further configured to display a second floating element on the display screen of the terminal, the content of the second floating element is the same as that of the third element, and the second floating element and the first floating element are displayed on the terminal according to a preset arrangement rule on the display. Wherein, the second operation may include a drag operation and a drag-and-drop operation, or when the first element is a text element or a URL, the second operation may also be a copy operation.

进一步的,该显示装置还可以包括:确定单元3203,用于确定终端的显示屏上显示的浮动元素的个数小于N,N为在显示屏上允许同时显示的浮动元素的最大个数。Further, the display device may further include: a determination unit 3203, configured to determine that the number of floating elements displayed on the display screen of the terminal is less than N, where N is the maximum number of floating elements allowed to be displayed simultaneously on the display screen.

进一步的,该显示装置还可以包括:删除单元3204,用于在确定单元确定终端的显示屏上显示的浮动元素的个数等于N时,删除N个浮动元素中按照预设排列规则排在第一个的浮动UI元素,并显示第二浮动元素。Further, the display device may further include: a deleting unit 3204, configured to delete N floating elements ranked according to a preset arrangement rule when the determining unit determines that the number of floating elements displayed on the display screen of the terminal is equal to N. One floated UI element and displays the second floated element.

进一步的,确定单元3203,还用于确定终端的显示屏上显示的浮动元素中不存在与第二浮动元素类型相同的浮动元素。Further, the determining unit 3203 is further configured to determine that there is no floating element of the same type as the second floating element among the floating elements displayed on the display screen of the terminal.

进一步的,显示单元3201,还用于在确定单元3203确定终端的显示屏上显示的浮动元素中存在与第二浮动元素类型相同的第三浮动元素时,将第二浮动元素和第三浮动元素合并为浮动元素组后显示在终端的显示屏上。Further, the display unit 3201 is further configured to combine the second floating element and the third floating element when the determining unit 3203 determines that there is a third floating element of the same type as the second floating element among the floating elements displayed on the display screen of the terminal. Combined into groups of floating elements and displayed on the terminal's display.

进一步的,输入单元3202,还用于接收对浮动元素组的第三操作;显示单元3201,用于在终端的显示屏上显示第二浮动元素和第三浮动元素。Further, the input unit 3202 is further configured to receive a third operation on the floating element group; the display unit 3201 is configured to display the second floating element and the third floating element on the display screen of the terminal.

进一步的,输入单元3202,还用于接收对第一浮动元素的第四操作,删除单元3204,还用于删除第一浮动元素。或,删除单元3204,还用于在第一浮动元素在终端的显示屏上显示预设时长后,删除第一浮动元素。Further, the input unit 3202 is further configured to receive a fourth operation on the first floating element, and the deleting unit 3204 is further configured to delete the first floating element. Or, the deleting unit 3204 is further configured to delete the first floating element after the first floating element is displayed on the display screen of the terminal for a preset period of time.

进一步的,第一浮动元素上显示有以下标识中的一个或多个:应用的标识,消息提醒信息,指示信息;指示信息用于指示第一浮动元素的类型。Further, one or more of the following identifications are displayed on the first floating element: application identification, message reminder information, and indication information; the indication information is used to indicate the type of the first floating element.

进一步的,在第一元素为文本类元素,URL网址,图片类元素或文件资源类元素的情况下,显示单元3201,还用于显示包括输入框的界面。Further, when the first element is a text element, a URL address, an image element or a file resource element, the display unit 3201 is further configured to display an interface including an input box.

输入单元3202,还用于接收对第一浮动元素的拖拽操作,并在输入框位置的释放拖拽操作。The input unit 3202 is further configured to receive a drag operation on the first floating element, and release the drag operation at the position of the input box.

显示装置还可以包括:填充单元3205,用于将第一浮动元素对应的内容填充到输入框中。The display device may further include: a filling unit 3205, configured to fill the input box with content corresponding to the first floating element.

进一步的,在第一元素为图标类元素或列表联系人类元素的情况下,输入单元3202,还用于接收对第一浮动元素的第五操作。Further, in the case that the first element is an icon element or a list contact element, the input unit 3202 is further configured to receive a fifth operation on the first floating element.

显示装置还可以包括:执行单元3206,用于执行第一功能,第一功能与终端接收到用户对第一元素的操作后执行的功能相同。The display device may further include: an executing unit 3206, configured to execute a first function, the first function being the same as the function executed by the terminal after receiving the user's operation on the first element.

在另一种可能的实现方式中,在第一元素为列表联系人类元素的情况下,输入单元3202,还用于接收对界面中文本,URL网址或图片的拖拽操作,并在第一浮动元素位置的释放拖拽操作。In another possible implementation, when the first element is a list contact person element, the input unit 3202 is also configured to receive a drag operation on the text, URL or picture in the interface, and The release drag operation of the element position.

该显示装置还可以包括:发送单元3207,用于将文本,URL网址或图片发送给第一浮动元素对应联系人的终端。The display device may further include: a sending unit 3207, configured to send text, a URL or a picture to a terminal of a contact corresponding to the first floating element.

在另一种可能的实现方式中,显示单元3201,用于在终端的显示屏上显示第一界面,第一界面包括第一元素,第一元素为文本类元素或URL网址。输入单元3202,用于接收对第一元素的复制操作。显示单元3201,还用于在终端的显示屏上显示第一浮动元素,第一浮动元素的内容与第一元素的内容相同。In another possible implementation manner, the display unit 3201 is configured to display a first interface on a display screen of the terminal, where the first interface includes a first element, and the first element is a text element or a URL. The input unit 3202 is configured to receive a copy operation on the first element. The display unit 3201 is further configured to display the first floating element on the display screen of the terminal, the content of the first floating element is the same as the content of the first element.

本申请实施例还提供一种显示装置,该装置可以应用于电子设备,如上述实施例中的终端。该装置可以包括:处理器;用于存储处理器可执行指令的存储器;其中,处理器被配置为执行指令时使得该显示装置实现上述方法实施例中终端(如手机)执行的各个功能或者步骤。The embodiment of the present application also provides a display device, which can be applied to electronic equipment, such as the terminal in the foregoing embodiment. The device may include: a processor; a memory for storing processor-executable instructions; wherein, when the processor is configured to execute the instructions, the display device implements various functions or steps performed by the terminal (such as a mobile phone) in the above method embodiments .

本申请实施例提供一种电子设备(如上述终端),该电子设备包括显示屏,一个或多个处理器和存储器;显示屏,处理器和存储器耦合;存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,当计算机指令被电子设备执行时,使得该电子设备实现上述方法实施例中终端(如手机)执行的各个功能或者步骤。当然,该电子设备包括但不限于上述显示屏、存储器和一个或多个处理器。例如,该电子设备的结构可以参考图3所示的手机的结构。An embodiment of the present application provides an electronic device (such as the above-mentioned terminal), the electronic device includes a display screen, one or more processors and a memory; the display screen, the processor and the memory are coupled; the memory is used to store computer program codes, computer programs The code includes computer instructions, and when the computer instructions are executed by the electronic device, the electronic device is made to implement various functions or steps performed by the terminal (such as a mobile phone) in the above method embodiments. Of course, the electronic device includes, but is not limited to, the above-mentioned display screen, memory, and one or more processors. For example, the structure of the electronic device may refer to the structure of the mobile phone shown in FIG. 3 .

本申请实施例还提供一种芯片系统,该芯片系统可以应用于前述实施例中的终端。如图33所示,该芯片系统包括至少一个处理器3301和至少一个接口电路3302。该处理器3301可以是上述终端中的处理器。处理器3301和接口电路3302可通过线路互联。该处理器3301可以通过接口电路3302从上述终端的存储器接收并执行计算机指令。当计算机指令被处理器3301执行时,可使得终端执行上述实施例中手机执行的各个步骤。当然,该芯片系统还可以包含其他分立器件,本申请实施例对此不作具体限定。The embodiment of the present application further provides a chip system, which can be applied to the terminal in the foregoing embodiments. As shown in FIG. 33 , the chip system includes at least one processor 3301 and at least one interface circuit 3302 . The processor 3301 may be the processor in the aforementioned terminal. The processor 3301 and the interface circuit 3302 can be interconnected through wires. The processor 3301 may receive and execute computer instructions from the memory of the terminal above through the interface circuit 3302 . When the computer instructions are executed by the processor 3301, the terminal can be made to perform various steps performed by the mobile phone in the above-mentioned embodiments. Of course, the chip system may also include other discrete devices, which is not specifically limited in this embodiment of the present application.

本申请实施例还提供一种计算机可读存储介质,用于存储上述终端运行的计算机指令。An embodiment of the present application further provides a computer-readable storage medium, configured to store computer instructions executed by the above-mentioned terminal.

本申请实施例还提供一种计算机程序产品,包括上述终端运行的计算机指令。An embodiment of the present application further provides a computer program product, including computer instructions executed by the above-mentioned terminal.

通过以上实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。Through the description of the above embodiments, those skilled in the art can clearly understand that for the convenience and brevity of the description, only the division of the above functional modules is used as an example for illustration. In practical applications, the above functions can be assigned by Completion of different functional modules means that the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.

在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be Incorporation or may be integrated into another device, or some features may be omitted, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The unit described as a separate component may or may not be physically separated, and the component displayed as a unit may be one physical unit or multiple physical units, that is, it may be located in one place, or may be distributed to multiple different places . Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the software product is stored in a storage medium Among them, several instructions are included to make a device (which may be a single-chip microcomputer, a chip, etc.) or a processor (processor) execute all or part of the steps of the methods described in the various embodiments of the present application. The above-mentioned storage medium includes: U disk, mobile hard disk, read only memory (read only memory, ROM), random access memory (random access memory, RAM), magnetic disk or optical disk, and other various media that can store program codes.

以上内容,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above content is only the specific implementation of the application, but the protection scope of the application is not limited thereto, and any changes or replacements within the technical scope disclosed in the application shall be covered within the protection scope of the application. Therefore, the protection scope of the present application should be determined by the protection scope of the claims.

Claims (16)

1. An interface element display method is applied to a terminal, and is characterized by comprising the following steps:
the terminal displays a first interface of an application on a display screen of the terminal, wherein the first interface comprises a first element;
after the terminal receives a drag operation on the first element, displaying an animation of the first element moving along with the drag operation on a display screen of the terminal;
after receiving a drag release operation, the terminal displays a first floating element on a display screen of the terminal, wherein the content of the first floating element is the same as that of the first element;
the terminal displays a second interface on a display screen of the terminal, wherein the second interface comprises a third element;
after the terminal receives the dragging operation of the third element, displaying the animation of the third element moving along with the dragging operation on a display screen of the terminal;
after the terminal receives a drag release operation, when the terminal determines that a third floating element with the same type as a second floating element exists in floating elements displayed on a display screen of the terminal, the terminal combines the second floating element and the third floating element into a floating element group and displays the floating element group on the display screen of the terminal; wherein the content of the second floating element is the same as the content of the third element;
the terminal displays a third interface;
after the terminal receives a drag operation of moving the first floating element to a first area of the third interface, displaying a first corner mark on the first floating element, wherein the first corner mark is used for prompting a user that the first area supports interaction, and the first area is an area supporting interaction;
and after the terminal receives the drag releasing operation in the first area, filling the content corresponding to the first floating element into the first area by the terminal.
2. The method of claim 1, further comprising: and when the terminal determines that floating elements with the same type as the second floating elements do not exist in the floating elements displayed on the display screen of the terminal, displaying the second floating elements on the display screen of the terminal, wherein the second floating elements and the first floating elements are displayed on the display screen of the terminal according to a preset arrangement rule.
3. The method of claim 1, wherein the terminal displays a third interface comprising:
and the terminal exits from the first interface and displays the third interface.
4. The method of claim 1, wherein the first element is one or more of a text class element, a Uniform Resource Locator (URL) address, a picture class element, an icon class element, a card class element, a list contact human element, a video window class element, or a file resource class element.
5. The method of claim 1, the third interface being an interface comprising an input box, the first element being a text-type element, a URL web address, a picture-type element, or a file resource-type element;
the terminal receives a drag operation of moving the first floating element to the first area of the third interface, and the drag operation comprises the following steps: the terminal receives a dragging operation of moving the first floating element to the position of the input box;
after the terminal receives the drag and drop releasing operation in the first area, the terminal fills the content corresponding to the first floating element into the first area, and the method comprises the following steps: and after the terminal receives the drag releasing operation at the position of the input box, filling the content corresponding to the first floating element into the input box by the terminal.
6. The method according to any one of claims 1-5, wherein the first interface further comprises a second element, and the terminal displays a first floating element on a display screen of the terminal after receiving a drag operation on the first element, including:
the terminal displays a first floating element group on a display screen of the terminal after receiving dragging operation of the first element and the second element, wherein the first floating element group comprises the first floating element and the second floating element, second prompt information is displayed on the first floating element group, and the second prompt information is used for prompting the number of the floating elements included in the first floating element group.
7. The method according to claim 6, wherein the terminal displays the first floating element and the second floating element according to the precedence order of the generation time of the first floating element and the second floating element.
8. The method of claim 1, wherein after the terminal displays the first interface of the application on a display screen of the terminal, the method further comprises:
and after receiving a first operation, the terminal displays the elements supporting floating display in the first interface in a first form, wherein the first elements are the elements supporting floating display.
9. The method of claim 8, wherein the first operation is an operation on an element of the first interface that supports a floating display.
10. The method of claim 1, wherein the first interface and the third interface are interfaces of different applications.
11. The method of claim 1, further comprising:
the terminal deletes the first floating element after receiving the second operation on the first floating element; or the like, or a combination thereof,
and the terminal deletes the first floating element after the first floating element is displayed on a display screen of the terminal for a preset time.
12. The method of claim 1, wherein the first floating element has one or more of the following identifiers displayed thereon: the application identification, message reminding information and indication information; the indication information is used for indicating the type of the first floating element.
13. A display device, comprising: a processor; a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to cause the display apparatus to implement the method of any one of claims 1-12.
14. A computer readable storage medium having computer program instructions stored thereon, which, when executed by an electronic device, cause the electronic device to implement the method of any one of claims 1-12.
15. An electronic device comprising a display screen, one or more processors, and memory;
the one or more memories coupled with the one or more processors for storing computer program code, the computer program code comprising computer instructions that, when executed by the one or more processors, cause the electronic device to perform the method of any of claims 1-12.
16. A computer program product comprising instructions for causing a computer to perform the method according to any one of claims 1-12 when the computer program product is run on the computer.
CN202210122687.0A 2020-12-25 2020-12-25 Interface element display method and device Active CN114647351B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210122687.0A CN114647351B (en) 2020-12-25 2020-12-25 Interface element display method and device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210122687.0A CN114647351B (en) 2020-12-25 2020-12-25 Interface element display method and device
CN202011564390.7A CN114756151B (en) 2020-12-25 2020-12-25 Interface element display method and device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN202011564390.7A Division CN114756151B (en) 2020-04-24 2020-12-25 Interface element display method and device

Publications (2)

Publication Number Publication Date
CN114647351A CN114647351A (en) 2022-06-21
CN114647351B true CN114647351B (en) 2023-03-03

Family

ID=81994134

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202210122687.0A Active CN114647351B (en) 2020-12-25 2020-12-25 Interface element display method and device
CN202011564390.7A Active CN114756151B (en) 2020-04-24 2020-12-25 Interface element display method and device

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202011564390.7A Active CN114756151B (en) 2020-04-24 2020-12-25 Interface element display method and device

Country Status (1)

Country Link
CN (2) CN114647351B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117453087A (en) * 2022-07-26 2024-01-26 荣耀终端有限公司 Card display method, terminal equipment
CN119225609A (en) * 2023-06-29 2024-12-31 荣耀终端有限公司 Data sharing methods and related equipment
CN119620906A (en) * 2023-09-06 2025-03-14 荣耀终端股份有限公司 Text dragging method and related device
CN118444805B (en) * 2023-12-28 2025-04-25 荣耀终端股份有限公司 Method and related device for displaying floating window
CN118796065A (en) * 2024-06-20 2024-10-18 华为技术有限公司 A method, device, electronic device and storage medium for displaying interactive controls

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110333814A (en) * 2019-05-31 2019-10-15 华为技术有限公司 A method and electronic device for sharing content
CN111290675A (en) * 2020-03-02 2020-06-16 Oppo广东移动通信有限公司 Screenshot picture sharing method, device, terminal and storage medium

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8296673B2 (en) * 2010-04-23 2012-10-23 Microsoft Corporation Collapsible tabbed user interface
WO2013040270A1 (en) * 2011-09-13 2013-03-21 Newman Infinite, Inc. Apparatus, method and computer-readable storage medium for manipulating a user interface element
US9612732B2 (en) * 2014-11-13 2017-04-04 Microsoft Technology Licensing, Llc Content transfer to non-running targets
CN104918095A (en) * 2015-05-19 2015-09-16 乐视致新电子科技(天津)有限公司 Multimedia stream data preview display method and device
CN105988686A (en) * 2015-06-10 2016-10-05 乐视致新电子科技(天津)有限公司 Play interface display method and device as well as terminal
JP6710278B2 (en) * 2016-08-10 2020-06-17 華為技術有限公司Huawei Technologies Co.,Ltd. Notification message management method and terminal
CN107479784B (en) * 2017-07-31 2022-01-25 腾讯科技(深圳)有限公司 Expression display method and device and computer readable storage medium
CN107908489A (en) * 2017-11-27 2018-04-13 维沃移动通信有限公司 Replicate the method pasted and mobile terminal
CN108600544B (en) * 2018-04-27 2021-01-08 维沃移动通信有限公司 Single-hand control method and terminal
CN108762619B (en) * 2018-06-08 2021-02-23 Oppo广东移动通信有限公司 Buoy display method, device, terminal and storage medium
CN110851040B (en) * 2019-10-28 2021-07-20 维沃移动通信有限公司 An information processing method and electronic device
CN114356197B (en) * 2020-04-24 2024-11-19 华为技术有限公司 Data transmission method and device
CN111782427A (en) * 2020-07-16 2020-10-16 Oppo广东移动通信有限公司 A content manipulation method, device and computer-readable storage medium
CN111858522B (en) * 2020-08-06 2024-07-02 Oppo广东移动通信有限公司 File sharing method, device, terminal and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110333814A (en) * 2019-05-31 2019-10-15 华为技术有限公司 A method and electronic device for sharing content
CN111290675A (en) * 2020-03-02 2020-06-16 Oppo广东移动通信有限公司 Screenshot picture sharing method, device, terminal and storage medium

Also Published As

Publication number Publication date
CN114756151A (en) 2022-07-15
CN114647351A (en) 2022-06-21
CN114756151B (en) 2024-11-22

Similar Documents

Publication Publication Date Title
CN114764298B (en) Cross-device object dragging method and device
CN110489043B (en) Management method and related device for floating window
CN114647351B (en) Interface element display method and device
CN113805980B (en) A method and terminal for displaying notification
CN108496150B (en) A method and terminal for screenshot and reading
US20220308753A1 (en) Split-Screen Method and Electronic Device
WO2020238774A1 (en) Notification message preview method and electronic device
US10775979B2 (en) Buddy list presentation control method and system, and computer storage medium
CN114363462B (en) An interface display method, electronic device, and computer-readable medium
US20230362294A1 (en) Window Display Method and Device
CN110456951A (en) Applied display method and electronic device
CN113986408B (en) Application page display method and electronic device
CN110806831A (en) A touch screen response method and electronic device
EP4365722A1 (en) Method for displaying dock bar in launcher and electronic device
CN111225108A (en) Communication terminal and card display method of negative screen interface
CN113961115B (en) Object editing method, electronic device, medium, and program product
CN115993924A (en) Cross-device dragging method, electronic device and storage medium
CN117348953A (en) Display method and related device
EP4421630A1 (en) Window display method and electronic device
WO2023160455A1 (en) Object deletion method and electronic device
CN117519564A (en) Barrage message publishing method and device
CN119148893A (en) Information transmission method and electronic equipment
CN115878232A (en) Display method and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant