Data sharing method and related device
Patent Information
- Application Number
- MYPI2025005202
- Authority / Receiving Office
- MY · MY
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-06-29
- Filing Date
- 2024-03-20
- Publication Date
- 2024-12-29
AI Technical Summary
In existing technologies, users face complex operations when sharing data on electronic devices, and are prone to accidentally triggering menus, resulting in an unintuitive and inconvenient data sharing experience.
By detecting combinations of the start and end points of drag operations in different areas of the display screen, the menu bar is dynamically displayed or hidden, providing a drag operation method for sharing data. This includes a first drag operation that displays the menu bar, a second drag operation that does not display the menu bar, and a third drag operation that displays the menu bar when passing through a specific area. The user interface is also optimized through light strips and perspective styles.
It provides a convenient, simple, fast and smooth data sharing solution when users need it, avoids accidental triggering of the menu bar, and improves the user experience.
Smart Images

Figure PI2025005202_DRAWING_001 
Figure PI2025005202_DRAWING_002 
Figure PI2025005202_DRAWING_003
Abstract
Description
Data sharing methods and related equipment
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on June 29, 2023, with application number 202310788791.8 and application name “Data Sharing Method and Related Equipment”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of terminal technology, and in particular to data sharing methods and related equipment. Background Art
[0003] When using mobile devices like phones, users often need to share data such as text, images, files, and videos. For example, users might want to share photos from their gallery with contacts on social media apps, or share text from their browser with a translation app for translation. Providing users with convenient, simple, and intuitive data sharing solutions is a current and future research direction.
[0004] Summary of the Invention
[0005] This application provides a data sharing method and related equipment to facilitate users to share data when needed.
[0006] In a first aspect, a data sharing method is provided, which may include: displaying a first interface, the first interface including a first element; detecting a drag operation on the first element;
[0007] When the drag operation is a first drag operation, the touch start point of the first drag operation is on the first element and located in the first area of the display screen, and the touch end point is located in the second area of the display screen, a first menu bar is displayed, and the first menu bar includes an icon of the first application and an icon of the second application, and the first area and the second area do not overlap; after detecting that the first element is continued to be dragged into the area where the icon of the first application is located and released, first data corresponding to the first element is shared with the first application;
[0008] When the drag operation is a second drag operation, the touch start point of the second drag operation is on the first element and located in the second area, the touch end point is located in the second area of the display screen, the track of the second drag operation is located in the second area, and the first menu bar is not displayed;
[0009] When the drag operation is the third drag operation, the touch start point of the third drag operation is on the first element and located in the second area, the touch end point is located in the second area, and the track of the third drag operation passes through the first area, displaying the first menu bar.
[0010] In implementing the method of the first aspect, the electronic device will display the first menu bar after detecting the operation of dragging the first element from the first area to the second area, or detecting the operation of dragging the first element from the second area to the first area and then to the second area, and the electronic device will not display the first menu bar after detecting the operation of dragging the first element within the second area. This can provide users with a convenient, simple, fast, smooth and intuitive data sharing solution, making it convenient for users to share data when needed, and can avoid displaying the first menu bar when the touch point is first located in the second area, so as to achieve an anti-mistouch effect.
[0011] In combination with the first aspect, in some embodiments, when the drag operation is a first drag operation, the first menu bar is displayed in response to the first drag operation; when the drag operation is a second drag operation, the first menu bar is displayed without responding to the second drag operation; when the drag operation is a third drag operation, the first menu bar is displayed in response to the third drag operation.
[0012] In conjunction with the first aspect, in some embodiments, when the drag operation is a first drag operation, the first menu bar is displayed after the touch endpoint of the first drag operation remains in the second area for a first duration; when the drag operation is a second drag operation, the first menu bar is not displayed after the touch endpoint of the second drag operation remains in the second area for a first duration; and when the drag operation is a third drag operation, the first menu bar is displayed after the touch endpoint of the third drag operation remains in the second area for a first duration. If the touch endpoint remains in the second area for the first duration, it can be determined that the user has a desire to share data, and thus the electronic device displays the first menu bar again, thereby more accurately providing the user with data sharing services and avoiding accidental triggering of the first menu bar.
[0013] In combination with the first aspect, in some implementations, the first drag operation and the operation of continuing to drag the first element into the area where the icon of the first application is located and releasing it are continuous and uninterrupted.
[0014] In conjunction with the first aspect, in some embodiments, before displaying the first interface, the method may further include: displaying a second interface, the second interface including text; detecting an operation of selecting first text in the text, displaying a toolbar on the first text, the toolbar including multiple controls for processing the first text; and displaying the first interface, including: detecting a long press operation on the first text, stopping displaying the toolbar, and displaying the first interface; wherein the first element includes a preview image of the first text, and the first data includes the first text. This allows the electronic device to conveniently share the text selected by the user.
[0015] In conjunction with the first aspect, in some embodiments, before displaying the first interface, the method may further include: detecting a screenshot operation while displaying the second interface; and displaying the first interface, including: displaying the first interface in response to the screenshot operation, wherein the first element includes a preview of the screenshot image of the second interface, and the first data includes the screenshot image. This allows the electronic device to conveniently share screenshots.
[0016] In conjunction with the first aspect, in some embodiments, before displaying the first interface, the method may further include: displaying a second interface, the second interface including an icon for the first image and an icon for the second image; detecting an operation of selecting the icon for the first image; and displaying the first interface, including: detecting a long press operation on the icon for the first image and displaying the first interface; wherein the first element includes a preview of the icon for the first image, and the first data includes the first image. This allows the electronic device to conveniently share images, which may include pictures, animated images, videos, and other types.
[0017] In conjunction with the first aspect, in some embodiments, the first menu bar and the second area where the touch endpoint of the first drag operation or the third drag operation is located are on the same side of the display screen. That is, the electronic device displays the first menu bar in the direction in which the user drags the first element, thereby providing a better user experience.
[0018] In conjunction with the first aspect, in some embodiments, when the drag operation is the first drag operation or the third drag operation, when the first menu bar is displayed, the first interface is also adjusted to a perspective style of the first side, where the first side is the side of the first menu bar on the display screen. In this way, the perspective style of the first interface and the first menu bar on the first side can visually create an "open door" effect.
[0019] In combination with the first aspect, in some embodiments, the first interface also includes a video being played, and the method may further include: when the drag operation is a first drag operation, or when the drag operation is a third drag operation, when the first menu bar is displayed, a screenshot image of the first interface is displayed, and the screenshot image of the first interface is displayed in a perspective style of the first side, where the first side is a side of the first menu bar on the display screen.
[0020] In combination with the first aspect, in some embodiments, the second area includes: a rectangular area at the left edge of the display screen, and a rectangular area at the right edge of the display screen, and the height of the rectangular area is the same as the height of the display screen.
[0021] In conjunction with the first aspect, in some embodiments, when the drag operation is a first drag operation, the trajectory of the first drag operation passes through a third area, and the third area includes the second area; the method may further include: in response to the operation of dragging the first element to the third area in the first drag operation, displaying a light strip, wherein the light strip and the first menu bar are located on the same side of the display screen; displaying the first menu bar includes: in response to the operation of dragging the first element to the third area and then to the second area in the first drag operation, stopping displaying the light strip and displaying the first menu bar. The electronic device may display the light strip to prompt the user that continuing to drag in the same direction will trigger the display of the first menu bar, thereby sharing data.
[0022] In some embodiments, the third area includes: a rectangular area at the left edge of the display screen, and a rectangular area at the right edge of the display screen, and a height of the third area is the same as a height of the display screen.
[0023] In combination with the first aspect, in some embodiments, the first menu bar further includes an icon for a third application and an icon for a fourth application, and the icon for the first application, the icon for the second application, the icon for the third application, and the icon for the fourth application are arranged in sequence from top to bottom; after displaying the first menu bar, the method may further include: detecting a fourth drag operation of continuing to drag the first element within a fourth area, the fourth area including the second area where the touch end point of the first drag operation or the third drag operation is located, the touch starting point of the fourth drag operation is the same as the touch end point of the first drag operation or the third drag operation, and the touch end point of the fourth drag operation is closest to the icon of the second application in the first menu bar; in response to the fourth drag operation, displaying the icon of the fourth application as the base size, displaying the icon of the second application as a size enlarged by a first ratio on the base size, and displaying the icon of the first application and the icon of the third application as a size enlarged by a second ratio on the base size; the first ratio is greater than the second ratio.
[0024] According to the above embodiment, the closer the user's touch point is to the application icon in the first menu bar, the larger the corresponding application icon can be. This can create an effect where the application icon in the first menu bar is attracted by the user's finger, and the user can focus on the corresponding application icon by enlarging the size of the application icon.
[0025] In combination with the previous embodiment, the fourth area includes: a rectangular area including the second area where the touch endpoint of the first drag operation or the third drag operation is located, and the height of the fourth area is the same as the height of the display screen.
[0026] In combination with the first aspect, in some embodiments, after detecting a fourth drag operation of continuing to drag the first element within the fourth area, the method may further include: detecting a fifth drag operation of continuing to drag the first element to the fifth area, and the fifth area and the fourth area do not overlap; in response to the fifth drag operation, displaying each icon in the first menu bar as the basic size.
[0027] In combination with the first aspect, in some embodiments, when the drag operation is the first drag operation, or when the drag operation is the third drag operation, after displaying the first menu bar, the method may further include: detecting a sixth drag operation of continuing to drag the first element to a sixth area, the sixth area and the second area do not overlap, and the sixth area is located on the opposite side of the first menu bar in the display screen; in response to the sixth drag operation, stopping displaying the first menu bar.
[0028] Through the above embodiment, the electronic device provides a sixth area for stopping displaying the first menu bar. After the user mistakenly triggers the electronic device to display the first menu bar, the user can stop the mistaken operation simply, conveniently and quickly.
[0029] In some embodiments, the touch start point of the sixth drag operation is the same as the touch end point of the first or third drag operation, that is, the sixth drag operation and the first or third drag operation are continuous and uninterrupted. This allows the user to maintain continuous contact with the display screen without having to lift their finger from the electronic device, thus conveniently and quickly avoiding accidental operations.
[0030] In some embodiments, the sixth region and the fifth region do not overlap.
[0031] In combination with the first aspect, in some embodiments, the method may further include: displaying a third interface, the third interface including a second element; detecting a drag operation on the second element; when the drag operation is the seventh drag operation, the touch starting point of the seventh drag operation is on the second element and located in the seventh area of the display screen, the touch end point is located in the eighth area of the display screen, and the second menu bar is displayed, and the seventh area and the eighth area do not overlap; when the drag operation is the eighth drag operation, the touch starting point of the eighth drag operation is on the second element and located in the eighth area, the touch end point is located in the eighth area of the display screen, the trajectory of the eighth drag operation passes through the seventh area, and the second menu bar is displayed; when the drag operation is not the seventh drag operation or the eighth drag operation, the second menu bar is not displayed; wherein the eighth area is a partial area of the second area.
[0032] Through the above embodiment, it is equivalent to reducing the area for triggering the display of the menu bar from the second area to the eighth area. By reducing the area, the probability of the user accidentally triggering the menu bar can be avoided.
[0033] In some embodiments, the eighth area includes: a rectangular area at the left edge of the display screen, and a rectangular area at the right edge of the display screen; the height of the eighth area is the same as that of the second area, and the width of the eighth area is half the width of the second area.
[0034] In some implementations, the third interface is provided by a fifth application, which includes a text editing application.
[0035] In some embodiments, the application icons included in the second menu bar may be different from the application icons included in the first menu bar. Specifically, the icons included in the first menu bar may include icons of applications that support receiving the first data, and the icons included in the second menu bar may include icons of applications that support receiving the second data corresponding to the second element.
[0036] In combination with the first aspect, in some embodiments, the second area when the display screen is in the landscape state is different from the second area when the display screen is in the portrait state.
[0037] In conjunction with the first aspect, in some implementations, the first interface is provided by a sixth application, which is different from the first application. This method can implement cross-application data transmission.
[0038] In a second aspect, an electronic device is provided, comprising: a memory and one or more processors; the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors call the computer instructions to enable the electronic device to execute a method executed by the electronic device in the first aspect or any one of the embodiments of the first aspect.
[0039] In a third aspect, a computer-readable storage medium is provided, comprising instructions, which, when executed on an electronic device, enable the electronic device to execute the method executed by the electronic device in the first aspect or any one of the embodiments of the first aspect.
[0040] In a fourth aspect, a computer program product is provided. When the computer program product is run on a computer, the computer is caused to execute the method executed by the electronic device in the first aspect or any one of the embodiments of the first aspect.
[0041] In a fifth aspect, a chip system is provided, comprising at least one processor for implementing the method executed by the electronic device in the first aspect or any one embodiment of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figures 1A-1N are a set of user interfaces for implementing data sharing on an electronic device, provided in an embodiment of the present application;
[0043] FIG2 is a schematic diagram of various hot zones of a mobile phone in portrait mode according to an embodiment of the present application;
[0044] FIG3 is a schematic diagram of hot spots of a mobile phone in landscape mode according to an embodiment of the present application;
[0045] 4A-4F are a set of user interfaces for sharing screenshots provided in an embodiment of the present application;
[0046] FIG4G is a user interface for preventing accidental touches provided in an embodiment of the present application;
[0047] 4H-4L are another user interface for preventing accidental touches provided in an embodiment of the present application;
[0048] Figures 4M-4R are another user interface for preventing accidental touches provided in an embodiment of the present application;
[0049] FIG5A-FIG5B are a set of user interfaces for moving a floating window provided in an embodiment of the present application;
[0050] Figures 5C-5L are user interfaces for preventing accidental touches in a floating window scenario provided by an embodiment of the present application;
[0051] FIG6 is a block diagram of the hardware structure of an electronic device provided in an embodiment of the present application;
[0052] FIG7 is a software architecture of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0053] The following is a clear and detailed description of the technical solutions in the embodiments of the present application in conjunction with the accompanying drawings. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in the text is only a description of the association relationship between related objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.
[0054] In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood to imply or suggest relative importance or implicitly indicate the number of the technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of this application, unless otherwise specified, "plurality" means two or more.
[0055] The term "user interface (UI)" in the following embodiments of this application refers to a medium interface for interaction and information exchange between an application or operating system and a user, which realizes the conversion between the internal form of information and the form acceptable to the user. The user interface is a source code written in a specific computer language such as Java and extensible markup language (XML). The interface source code is parsed and rendered on an electronic device and finally presented as content that the user can recognize. The commonly used form of user interface is graphical user interface (GUI), which refers to a user interface related to computer operations that is displayed in a graphical manner. It can be a visual interface element such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, etc. displayed on the display screen of an electronic device.
[0056] The following embodiments of this application provide data sharing methods and related devices.
[0057] The method can be applied to electronic devices, which are smart terminal devices of various types, and the embodiments of the present application do not limit their specific types. For example, the electronic device can be a mobile phone, and can also include a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, a smart screen, a wearable device, an augmented reality (AR) device, a virtual reality (VR) device, an artificial intelligence (AI) device, a car computer, a smart headset, a game console, and can also be an Internet of Things (IOT) device or a smart home device such as a smart TV, etc.
[0058] In this method, after acquiring the data to be transmitted, the electronic device generates a corresponding floating element. Upon detecting that a user has dragged the floating element into a pre-set hot zone, the electronic device triggers a smart transfer service, displaying one or more application icons that can receive the data. Subsequently, the electronic device detects the user continuing to drag the floating element into the area containing any application icon and then releasing it, sending the data to be transmitted to the corresponding application.
[0059] This method provides users with a convenient, simple, fast, smooth and intuitive data sharing solution, which makes it easy for users to share data when needed and can improve the user's terminal usage experience.
[0060] The dragging operation mentioned in the method can be performed by the user's finger, or by an information input device such as a stylus pen or a mouse.
[0061] First, we introduce several concepts involved in the data sharing method provided by this application, as follows:
[0062] Data to be transmitted
[0063] The data to be transmitted can be stored locally in the electronic device, for example, in a storage path corresponding to some applications (such as a gallery) in the electronic device, or can also be stored in a cloud device.
[0064] The data to be transmitted can include various types. Here are some examples:
[0065] (1) Text. Text can be text in a web page displayed on an electronic device, text in a browser, text in a social software, text recognized in an image (such as an image stored in the electronic device's gallery, a screenshot, etc.), text converted from speech, etc.
[0066] (2) Documents. Documents may include text documents, table documents, code documents, etc.
[0067] (3) Pictures. Pictures may include static pictures or dynamic pictures. Pictures may also include full-screen screenshots, partial screenshots (i.e., irregularly shaped screenshots), edited screenshots, etc.
[0068] (4) Video. Videos may include videos shot by electronic devices, videos downloaded from the Internet, screen recordings, etc.
[0069] (5)Hyperlink.
[0070] Floating elements
[0071] The electronic device can display the data to be transmitted, and after the user inputs a user operation (such as a long press operation) for the data to be transmitted, the electronic device can generate a corresponding floating element.
[0072] A floating element is an element displayed on the display screen, suspended above other interface elements on the display screen, and can be dragged by the user to any position on the display screen. A floating element can be implemented as a thumbnail or preview of the corresponding data to be transmitted, or of course, it can be implemented in other forms such as a name, a label, or part or all of the content of the data to be transmitted, etc. This application does not limit this.
[0073] Hot Zone
[0074] A hotspot refers to an area on the display of an electronic device that is used to trigger a specific function.
[0075] The data sharing method provided in this application may involve multiple hot zones for triggering different functions during execution, which will be described in detail later. The size (i.e., dimensions), position, shape, etc. of each hot zone in this application can be set according to user needs and usage experience.
[0076] Each hot zone provided in this application is an area that the electronic device processes itself and does not need to be notified to the user. In other words, the electronic device does not need to notify the user of each hot zone on the display screen.
[0077] In some implementations, when an electronic device uses a function corresponding to a hot zone for the first time, the electronic device may provide a usage guide to prompt the user the location of each hot zone and the specific function that can be triggered by the hot zone.
[0078] In some other embodiments, the electronic device may also prompt the user with the hot zone. For example, each hot zone may be highlighted with a shadow, color, etc. to let the user know.
[0079] Smart circulation service
[0080] Smart Transfer Service is a system service or system function provided by the electronic device in this application, which can support the electronic device to conveniently transfer data from one application to another. Specifically, the Smart Transfer Service supports the electronic device to display one or more icons of applications that can be used to receive the above-mentioned data to be transferred on the display screen, and after detecting the operation of continuously dragging a floating element to the area where any application icon is located and releasing it, the data to be transferred is sent to the corresponding application.
[0081] The smart transfer service is merely a term used in this embodiment. Its meaning has been described in this embodiment, and its name does not constitute any limitation to this embodiment. In addition, in other embodiments of this application, the smart transfer service may also be referred to as other terms such as "any door".
[0082] The following describes the data sharing method using the exemplary UI provided by this application.
[0083] 1A-1N are a set of user interfaces for implementing data sharing on an electronic device 100 .
[0084] Generate floating elements
[0085] FIG1A is a user interface provided in an embodiment of the present application.
[0086] The application that provides the user interface can be a system application or a third-party application. In the embodiment of the present application, a system application refers to an application directly provided by the operating system of the electronic device 100 for implementing a specific function. A third-party application refers to an application provided by other developers and obtained by the electronic device 100 through the Internet for implementing a specific function.
[0087] In some embodiments, the above-mentioned user interface can also be the main interface (homepage), negative one screen, lock screen interface, etc. of the electronic device 100, and this application does not limit this.
[0088] During the process of displaying the user interface shown in Figure 1A, the electronic device 100 may detect a long press operation on the display screen. This is not limited to long press operations, and may also be a double-click operation, a sliding operation along a preset specific trajectory, and other user operations, which are not limited in this application. In response to the above operation, the electronic device 100 may obtain the text in the area of the user interface where the long press operation is located, and display the following content on this part of the text: a text selection box, drag bars at the start and end positions of the text selection box, and a toolbar above the text selection box. When the electronic device 100 initially detects a long press operation, the text selection box may be displayed only on a small part of the text (for example, 1-2 words in the area where the touch point of the long press operation is located). The drag bar at the start position and the drag bar at the end position of the text selection box can both be dragged by the user to adjust the size of the text selection box, that is, to adjust the selected text. The toolbar may include multiple controls for processing the selected text, such as a cut control, a copy control, a paste control, a share control, and the like.
[0089] Then, the electronic device 100 can detect the user operation of adjusting the selected text (such as dragging the position of the drag bar of the text selection box starting position or ending position to adjust the area or size of the text selection box). The electronic device 100 can determine the target text that the user wants to select based on the user operation of selecting text. Referring to Figure 1B, for example, after the user adjusts the text selection box to the size shown in Figure 1B, the electronic device 100 can determine the target text 111 based on the user operation.
[0090] 1C-1D , after determining target text 111, electronic device 100 may detect a long press operation on target text 111. In response to this operation, electronic device 100 may display a hovering control 112 corresponding to target text 111. Control 112 may be located at the touch point on the display screen when the user inputs the long press operation.
[0091] In some embodiments, in response to a long press operation on target text 111, the electronic device can generate a floating control 112 using the touch point of the long press operation on the display screen as an anchor point. Using the touch point as the anchor point means that a certain position point of the control 112 (such as the upper middle position, the midpoint of the upper edge, the center point, the midpoint of the right edge, or other point) is at the anchor point. Figure 1D illustrates this by taking a certain position on the right side of the control 112 as an example.
[0092] Optionally, the target text 111 may be displayed in the control 112. In some embodiments, when the target text 111 contains a large amount of content, the control 112 may display a portion of the target text 111, such as the first sentence of the target text 111 or a summary of the target text 111. In some embodiments, the control 112 may also be implemented as a preview or thumbnail of the target text 111.
[0093] The floating control 112 generated in FIG. 1D is the floating element in this application.
[0094] The suspended control 112 can adjust its display position in real time according to the user's dragging operation on the control 112 .
[0095] In some embodiments, when the user drags the control 112, if the touch point enters the edge of the display screen, part of the content of the control 112 may exceed the screen and not be displayed, or the electronic device may reduce the size of the control 112 to avoid incomplete display.
[0096] Referring to FIG1D , after the electronic device generates a floating control 112, the text selection box below it continues to be displayed to keep the corresponding text selected, but the drag bars at the start and end positions of the text selection box and the toolbar above the text selection box are no longer displayed. In some embodiments, when the electronic device generates a floating control 112, it can also output a vibration signal to prompt the user that the floating control 112 can be dragged.
[0097] Light band guide hot zone
[0098] The display screen has a corresponding light guide hotspot. The light guide hotspot is used to trigger the light guide effect in the direction indicated by the drag. The direction is the drag direction that triggers the smart flow service.
[0099] Referring to Figure 1D , after the electronic device 100 generates a hovering control 112, it generates a light guide hotspot. As shown in Figure 1D , the light guide hotspot may include an area 113A bounded by the left dashed line L1 of the display screen and the top edge E1, left edge E3, and bottom edge E2 of the display screen; and an area 113B bounded by the right dashed line L2 of the display screen and the top edge E1, right edge E4, and bottom edge E2 of the display screen. The height of areas 113A and 113B is the same as the height of the display screen, and their widths may be 25% of the display screen width x.
[0100] Referring to Figures 1D to 1E, the electronic device 100 can detect a user operation in which the user drags the control 112 to slide toward the right side of the display screen. After detecting that the touch point of the user's finger in the display screen enters the light band guidance hot zone 113B on the right side of the display screen, the electronic device 100 can display the light band 114 as shown in Figure 1F on the right edge of the display screen. Alternatively, after detecting that the touch point of the user's finger in the display screen enters the light band guidance hot zone 113B on the right side of the display screen and stays in the light band guidance hot zone 113B for a period of time (such as 600ms), the electronic device 100 can display the light band. The long press operation for generating a suspended control 112 and the operation of dragging the control 112 to slide can be continuous and uninterrupted operations, or two operations with an interval in between.
[0101] The light strip 114 may be a strip-shaped interface element with attributes such as color, shadow, gradient, graphic fill (such as grid fill, diagonal fill), etc. In some embodiments, the light strip 114 may also present dynamic effects, such as changing color, flashing display, etc.
[0102] The light strip 114 on the right edge of the display screen can be used to prompt the following information: 1. The current control 112 has been dragged to the right side of the display screen; 2. Continuing to drag to the right is the dragging direction that triggers the smart flow service, that is, if the user continues to drag the control 112 to the right, the smart flow service can be triggered.
[0103] Referring to the control 112 shown in FIG. 1D to FIG. 1E , while the control 112 is being dragged and slid, the electronic device 100 may reduce the size of the control 112 to reduce obstruction of other content on the display screen.
[0104] In other embodiments, if the electronic device 100 detects that the user has dragged the control 112 in FIG. 1D to the light bar guidance hotspot 113A on the left side of the display screen, the electronic device 100 may display a light bar at the left edge of the display screen. This light bar may be used to indicate the following: 1. The control 112 has been dragged to the left side of the display screen; 2. Continuing to drag to the left is the direction in which the smart flow service will be triggered, i.e., if the user continues to drag the control 112 to the left, the smart flow service will be triggered.
[0105] Equivalently, dragging the control 112 to the left side of the display screen or to the light strip guidance hot zone on the right side can trigger the display of the light strip.
[0106] Door opening hot zone
[0107] The display screen has corresponding door opening hot zones, which are used to trigger smart flow services.
[0108] Referring to Figure 1G, after the electronic device 100 generates the floating control 112, the electronic device 100 generates the door opening hot zone. As shown in Figure 1G, the door opening hot zone may include an area 115A enclosed by the dotted line L3 on the left side of the display screen and the upper edge E1, left edge E3, and lower edge E2 of the display screen, and an area 115B enclosed by the dotted line L4 on the right side of the display screen and the upper edge E1, right edge E4, and lower edge E2 of the display screen. The height of area 115A and area 115B are the same as the height of the display screen, and the width can occupy 40 (density-independent pixel, dp) of the width of the display screen. Among them, dp is an abstract unit based on screen density, 1dp*pixel density / 160=actual number of pixels. Therefore, the width of area 115A and area 115B is related to the pixel density of the display screen. The greater the pixel density, the greater its width.
[0109] Referring to Figures 1F-1G, the electronic device 100 can detect the user operation of the user continuing to drag the control 112 to the right side of the display screen. After detecting that the touch point of the user's finger in the display screen enters the door opening hot zone 115B on the right side of the display screen, the electronic device 100 can stop displaying the light strip and trigger the smart flow service. Alternatively, after detecting that the touch point of the user's finger in the display screen enters the door opening hot zone 115B on the right side of the display screen and stays in the door opening hot zone 115B for a period of time (such as 600ms), the electronic device 100 can stop displaying the light strip and trigger the smart flow service. The duration can be set as needed and is not limited here.
[0110] The smart transfer service refers to the electronic device 100 matching applications that can receive data to be transferred, providing users with a service that quickly sends the data to be transferred to other target applications. The data corresponding to the floating element that the user acts on when the smart transfer service is triggered is the data to be transferred. For example, in the scenario shown in Figures 1F-1H where the drag control 112 is slid right into the right side door opening hot zone 115B to trigger the smart transfer service, the target text 111 corresponding to the control 112 is the data to be transferred.
[0111] 1H , after detecting that the touch point of a user's finger on the display screen enters the door opening hot zone 115B on the right side of the display screen, or after detecting that the touch point of a user's finger on the display screen enters the door opening hot zone 115B on the right side of the display screen and remains in the door opening hot zone 115B for a period of time (e.g., 600ms), the electronic device 100 may display a menu bar 116 including icons of one or more candidate applications on the right side of the display screen. This period of time may be referred to as a first period of time.
[0112] The menu bar 116 may include a favorites icon, a search icon, a share icon, a note icon, a text message icon, and the like. Among them, the favorites application corresponding to the favorites icon may be a system application, which provides a global system favorites function. The note application corresponding to the note icon may be a system application or a third-party application, which may provide in-application recording, collection, and other functions. The candidate application is an application that supports receiving data to be transmitted, which is screened out by the electronic device 100 from all installed applications. The electronic device 100 may determine the candidate application based on the information type, semantic information, and the like of the data to be transmitted. The candidate applications may include global applications that support receiving any type of data (such as favorites applications, search applications, sharing applications, email applications, etc.), and may also include applications that only support receiving some types of data (such as picture editing applications that only support receiving pictures, navigation applications that only support receiving text, etc.). Different data to be transmitted may correspond to different menu bars.
[0113] In some embodiments, when the electronic device 100 displays the menu bar 116, the control 112 may be further scaled to avoid obstructing the menu bar 116. For example, the electronic device may reduce the control 112 so that the height of the control 112 is consistent with the height of the candidate application icon in the menu bar 116.
[0114] 1H , electronic device 100 displays a menu bar 116 containing icons of candidate applications on the right side of the display screen. Simultaneously, electronic device 100 may adjust the original foreground user interface to a right perspective style, thereby visually creating an "opening door" animation effect with the menu bar 116. The foreground user interface may refer to an interface consisting of other content displayed on the display screen excluding the status bar, or may refer to all content displayed on the display screen including the status bar.
[0115] If the foreground user interface originally displayed by the electronic device 100 includes dynamic effects, such as videos or animated images, the electronic device can capture a screenshot of the user interface and then adjust the screenshot to a perspective style. In other words, the perspective style interface can be a screenshot processed by the operating system of the electronic device. In other embodiments, the electronic device can also adjust the original user interface to a perspective style and continue to play dynamic effects in the perspective style user interface, such as continuing to play videos or animated images.
[0116] In other embodiments, if the electronic device 100 detects that the user drags the control 112 in Figures 1D-1F to the door opening hot zone 115A on the left side of the display screen, the electronic device 100 can display a menu bar containing icons of candidate applications on the left side of the display screen, and adjust the original foreground user interface to a left perspective style, forming an "opening the door" animation effect with the menu bar.
[0117] This is equivalent to dragging the control 112 to the left edge of the display screen or to the door opening hot zone on the right, which can trigger the "door opening" animation and also trigger the smart flow service.
[0118] The width of the door opening hot zone can be narrower than the width of the light band guidance hot zone, so that when the electronic device 100 drags the control 112, it will first enter the light band guidance hot zone and trigger the guidance light band effect, and then enter the door opening hot zone to trigger the smart flow service.
[0119] Hover to zoom in on hot spots
[0120] The display has a corresponding hover zoom hotspot. The hover zoom hotspot is used to trigger the proximity hover effect.
[0121] Referring to Figure 1H , after electronic device 100 displays menu bar 116, it generates a hover zoom hotspot. As shown in Figure 1H , the hover zoom hotspot may include an area 117 bounded by a dashed line L5 on the right side of the display screen and the top, right, and bottom edges E1, E4, and E2 of the display screen. Area 117 has a height equal to the display screen height and a width of 120dp of the display screen width.
[0122] The proximity hover effect means that after the user drags the control 112 and the touch point on the display screen enters the hover magnification hot zone, the icon of the candidate application closest to the touch point in the menu bar 116 is enlarged in the basic size, and the application icons adjacent to and before the icon of the candidate application are also enlarged accordingly, but the degree of enlargement is less than that of the icon of the candidate application.
[0123] Among them, the basic size can be set as needed and is not limited here. The icon of the candidate application closest to the touch point can be enlarged to a first ratio of the basic size (such as 150% or other ratios), and its enlarged state can be called a hover state. The adjacent application icons before and after the icon of the candidate application closest to the touch point can be enlarged to a second ratio of the basic size (such as 120% or other ratios), and its enlarged state can be called a nearby hover state. The first ratio is greater than the first and second ratios, and the first ratio and the second ratio can be preset.
[0124] Specifically, the electronic device first detects whether the touch point is located in the hover magnification area. If so, it determines the icon of the candidate application that is closest to the touch point. For example, the electronic device 100 first determines the position of the icons of each candidate application of the basic size in the display screen, and then draws a straight line in the horizontal direction parallel to the display screen with the touch point. The icon of the candidate application that coincides with the straight line is the icon of the candidate application that is closest. For another example, the electronic device 100 first determines the position of the icons of each candidate application of the basic size in the display screen, and then calculates the distance between the touch point and the center point of each candidate application icon. The icon of the candidate application with the smallest distance is the icon of the candidate application that is closest.
[0125] Referring to Figure 1H, the touch point of the user's finger on the display screen enters the hover magnification hot zone 117, and the touch point is closest to the note icon in the menu bar 116, so the note icon is magnified, and the sharing icons and information icons adjacent to it are secondarily magnified, and the corresponding text at the bottom of the icon can also be enlarged accordingly.
[0126] Referring to Figure 1I , as the user continues to drag control 112, the touch point also moves to the position shown in Figure 1I . In Figure 1I , the user's finger and the touch point on the display are closest to the search icon in menu bar 116 , so the share icon is enlarged, and the adjacent favorites and share icons are secondary enlarged, and the corresponding text at the bottom of the icons is also enlarged accordingly.
[0127] As can be seen from Figures 1H-1I , in the proximity hover effect, the closer the user's touch point is to the candidate application icon in menu bar 116, the larger the corresponding candidate application icon can be. This can create the effect of the candidate application icon in menu bar 116 being attracted by the user's finger, and can also draw the user's attention to the corresponding candidate application icon by enlarging the size of the application icon.
[0128] In some embodiments, the electronic device 100 may first display the candidate application icons at a base size, and then magnify a portion of the candidate application icons based on the position of the touch point in the hover magnification hotspot, presenting a dynamic change process. In other embodiments, the processing speed of the electronic device 100 is fast enough that it is not necessary to first display the candidate application icons at a base size, and the magnified portion of the candidate application icons may be directly displayed based on the position of the touch point in the hover magnification hotspot.
[0129] In other embodiments, if the electronic device 100 displays a menu bar containing icons of candidate applications on the left side of the display screen and adjusts the original foreground user interface to a left perspective style, the electronic device 100 generates a hover zoom hotspot on the left side of the display screen. The hover zoom hotspot on the left side of the display screen can be used to trigger a hover animation effect of the menu bar on the left side of the display screen.
[0130] Equivalently, both the left and right sides of the display screen in the electronic device 100 may include hover hotspots, and both may trigger hover animations. The hover hotspot is always located in the direction of the menu bar in the display screen.
[0131] In addition to the proximity hover effect triggered by the hover hot zone described above, in some embodiments, after the user drags the control 112 and the touch point on the display screen enters the hover magnification hot zone, the electronic device can also perform other effects on the icon of the candidate application closest to the touch point in the menu bar 116, such as increasing the display brightness of the icon of the candidate application, marking the icon of the candidate application with a striking color, etc.
[0132] Closed hot zone
[0133] The electronic device 100 displays a menu bar containing icons of candidate applications on the side of the display screen. After the original foreground user interface is adjusted to a perspective style, that is, after the door opening effect is triggered, the display screen corresponds to the door closing hot zone. The door closing hot zone is used to close the smart flow service.
[0134] Referring to Figure 1J , electronic device 100 displays a menu bar 116 containing candidate application icons on the right side of the display. After adjusting the original foreground user interface to a right-perspective style, electronic device 100 generates a closing hotspot 118 bounded by a dotted line L6 on the left side of the display and the display's top edge E1, left edge E3, and bottom edge E2. The height of closing hotspot 118 is the same as the display's height, and its width can be half the display's width x.
[0135] 1J-1K , the electronic device 100 may detect a user operation in which the user continues to drag the control 112 toward the left side of the display screen.
[0136] As shown in Figures 1I-1J , the electronic device detects that the user has dragged control 112 from hover zoom hotspot 117 to a portion of the display screen's center, which is outside of hover zoom hotspot 117 and door closing hotspot 118. Therefore, electronic device 100 stops displaying the proximity hover animation. That is, referring to Figure 1J , the icons in menu bar 116 are all the same size and are at their base size.
[0137] As shown in FIG1K , upon detecting that the touch point of a user's finger on the display screen enters the door-closing hot zone 118 on the left side of the display screen, the electronic device 100 may shut down the smart streaming service. Alternatively, upon detecting that the touch point of a user's finger on the display screen enters the door-closing hot zone 118 on the left side of the display screen and remains in the door-closing hot zone 118 for a certain period of time (e.g., 600ms), the electronic device 100 may shut down the smart streaming service. This period of time can be set as needed and is not limited here.
[0138] Referring to FIG1L , disabling the Smart Flow service means that electronic device 100 stops displaying menu bar 116 on the right side of the display screen and adjusts the original foreground user interface (excluding the status bar) from a right-perspective style to a non-perspective style. Combined with FIG1K and FIG1L , the style adjustment of the foreground user interface and the disappearance of menu bar 116 can vividly create a "closing door" animation effect.
[0139] In other embodiments, if the electronic device 100 displays a menu bar containing icons of candidate applications on the left side of the display screen and adjusts the original foreground user interface to a left perspective style, the electronic device 100 generates a door-closing hot zone on the right side of the display screen. The door-closing hot zone on the right side of the display screen can be used to trigger a "door-closing" animation effect of the menu bar on the left side of the display screen.
[0140] Equivalently, both the left and right sides of the display screen in the electronic device 100 may include a door closing hot zone, and both may trigger the "door closing" animation effect. The door closing hot zone is always located in the opposite direction of the menu bar in the display screen.
[0141] In the present application, during the process of dragging the control 112 shown in FIG. 1E to FIG. 1J , the user's finger and the display screen may be in continuous contact, that is, the dragging operation may be continuous and uninterrupted.
[0142] After the electronic device 100 detects that the user's finger and the touch point of the display screen have entered the door opening hot zone and has started the smart flow service (i.e., displaying the menu bar 116), if the user's finger leaves the display screen, that is, if the electronic device does not detect the touch point, the electronic device 100 will turn off the smart flow service (i.e., stop displaying the menu bar 116). For example, if the finger touch point shown in Figure 1H disappears, the electronic device will also stop displaying the menu bar 116 in Figure 1H. Equivalently, in this application, the user can turn off the smart flow service by closing the door hot zone or by stopping touching the display screen.
[0143] Transferring Data
[0144] Figures 1M-1N show the user interface for transmitting data through the smart flow service.
[0145] Referring to Figure 1M, after the electronic device 100 detects that the user drags the control 112 to the door opening hot zone 115B on the right and displays the menu bar 116, it can detect the user operation of the user continuing to drag the control 112 to the area where the icon of any candidate application is located in the menu bar 116 and then releasing it. Specifically, referring to Figure 1M, the electronic device 100 can detect the user operation of the user continuing to drag the control 112 to the note application icon and releasing it. Thus, the electronic device 100 can confirm that the note application is the target application. After detecting that the control 112 is dragged to the note application icon, the electronic device 100 can highlight the note application icon, such as increasing it, changing its color, increasing its brightness, and outputting a vibration signal, etc., to prompt the user that the note application is currently selected as the target application to avoid erroneous transmission.
[0146] In some embodiments, after the electronic device 100 detects the user operation of continuing to drag the control 112 to the area where the icon of any candidate application is located in the menu bar 116 and then releasing it, it can also display an animation of the control 112 being sucked into or stored in the icon of the corresponding candidate application to prompt the user that the electronic device will transfer the data to be transferred to the corresponding candidate application.
[0147] Subsequently, the electronic device 100 may write the data to be transmitted (ie, the target text 111 ) corresponding to the control 112 into the note application.
[0148] Referring to Figure 1N, after writing the target text 111 into the note application, the electronic device 100 can close the menu bar 116 of the smart transfer service and redisplay the original user interface. Optionally, the electronic device 100 can also display a prompt window 119. The prompt window 119 can prompt the user that the transfer is successful, that is, the data to be transferred selected by the user has been successfully written to the target application. Among them, the prompt window 119 can also include a control 120. The control 120 can be used to open the target application that receives the aforementioned data to be transferred, such as a note application, so that the user can continue to edit the data written by the smart transfer service in the target application.
[0149] The electronic device 100 shown in FIG1N is not limited to directly writing the data to be transmitted into the target application. In some other embodiments, after the electronic device 100 determines the target application, it can also display a window provided by the target application. One or more options can be displayed in the window. The user can set the usage of the data to be transmitted in the target application (such as printing parameters, sharing to contacts, etc.) according to the above one or more options. Then, the target application can process the data to be transmitted according to the usage set by the above one or more options.
[0150] Various hot spots in mobile phones
[0151] FIG2 shows examples of various hot zones when the mobile phone is in portrait mode.
[0152] In Figure 2:
[0153] a shows the door opening hot zone, which includes two areas on the left and right sides of the display, each occupying 40dp of the display width.
[0154] b shows the light band guide hot zone, including two areas on the left and right sides of the display screen, each occupying 1 / 4 of the width of the display screen.
[0155] c shows the hover zoom hotspot for “door open right”, which includes an area on the right side of the display, occupying 120dp of the display width.
[0156] d shows the door closing hot zone when the door is opened right, including an area on the left side of the display screen, which occupies 1 / 2 of the width of the display screen.
[0157] e shows the hover zoom hotspot for "door open left," which includes an area on the left side of the display that occupies 120dp of the display width.
[0158] f shows the door closing hot zone when the door is open to the left, including an area on the right side of the display screen, which occupies 1 / 2 of the width of the display screen.
[0159] Figures 1A-1N and Figure 2 above all use a mobile phone as an example to illustrate various hotspots and functions of a mobile phone in portrait mode. In the embodiments of the present application, the hotspots of an electronic device of the same form factor may vary in different states. These states may include portrait mode and landscape mode.
[0160] Refer to FIG3 , which exemplarily shows various hot zones when the mobile phone is in landscape mode.
[0161] Unlike the portrait orientation in Figures 1A-1N and 2, the position of each edge relative to the user changes in Figure 3 because the phone is in landscape orientation. Each edge in Figure 3 corresponds to the edges with the same reference numbers in Figures 1A-1N.
[0162] In Figure 3:
[0163] The area enclosed by the dotted line L3 and the display screen edges E1, E4, and E3, as well as the area enclosed by the dotted line L4 and the display screen edges E2, E4, and E3, are the door opening hot zones;
[0164] The area enclosed by the dotted line L1 and the display screen edges E1, E4, and E3, as well as the area enclosed by the dotted line L2 and the display screen edges E2, E4, and E3, are the light band guidance hot zones;
[0165] The area enclosed by the dotted line L5 and the display screen edges E2, E4, and E3 is the hover zoom hotspot for the "right-open door" effect.
[0166] The area enclosed by the dotted line L6 and the display screen edges E1, E4, and E3 is the door closing hot zone under the "right-open door" effect.
[0167] Of course, under the "left-open door" effect, the hover zoom hot zone and the door closing hot zone in Figure 3 are both in the opposite direction of the currently shown side.
[0168] This isn't limited to mobile phones; other electronic devices, such as foldable phones and tablets, can also have different hotspots in landscape and portrait modes. The locations of each hotspot on the display are similar to those described for mobile phones, so please refer to the previous section for details.
[0169] The height of each of the hot zones mentioned in this application can be measured as a percentage of the display screen height or as a percentage of the display screen height in dp. The same is true for the width, which is not limited here.
[0170] The names of the above-mentioned thermal zones mentioned in this application are only examples. The functions of each thermal zone have been recorded in the previous text, and their names do not constitute a limitation to this application.
[0171] The size (i.e., dimensions), position, shape, etc. of each hot zone mentioned in the above UI in the display screen are all examples. In specific implementation, the size (i.e., dimensions), position, shape, etc. of each hot zone in the electronic device can be set according to user needs and usage experience, and this application does not impose specific restrictions on this.
[0172] The gray fill effect used to illustrate each hotspot in the above UI embodiment is for illustrative purposes only. In the actual user interface presented to the user by the electronic device, the corresponding hotspot will not include the gray fill effect. In other words, the electronic device does not need to indicate the location of each hotspot to the user; the user can sense the presence of each hotspot while using the hotspot function.
[0173] Anti-accidental touch of door opening hot zone
[0174] 4A-4F illustrate a method for sharing screenshots.
[0175] 4A , while displaying the user interface shown in FIG4A , the electronic device 100 may detect a screenshot operation. The screenshot operation may be performed by a physical button on the electronic device 100, such as a power button or a volume button, or by a touch operation on the display screen of the electronic device 100, such as a three-finger swipe operation, etc., and this application does not impose any restrictions on this.
[0176] In response to the above screenshot operation, the electronic device 100 can save a frame of the user interface on the current display screen, i.e., a screenshot image, also known as a screenshot. The electronic device 100 can write the screenshot to the memory of the electronic device 100 for storage, so that the user can browse the screenshot at any time through the access operation.
[0177] In an embodiment of the present application, the electronic device 100 may further display a preview of the above screenshot on the display screen to prompt the user to obtain a frame of screenshot.
[0178] Figure 4B is a user interface of an electronic device displaying a screenshot preview image on a display screen. As shown in Figure 4B, the electronic device 100 may display image 411 in the lower left corner area of the display screen. Image 411 may be a screenshot preview image of the user interface shown in Figure 4A. The user can preview the screenshot obtained by the aforementioned screenshot operation through the above-mentioned image 411. The above-mentioned lower left corner area of the display screen may be referred to as the default screenshot display area. Not limited to the lower left corner, the default screenshot display area may also be the upper right corner, lower right corner, upper left corner, etc. of the display screen, and the embodiments of the present application do not impose any restrictions on this.
[0179] The electronic device 100 may keep displaying the image 411 for a period of time according to a preset timer. The period of time may be, for example, 3 seconds. After the timer expires, the electronic device 100 may no longer display the image 411.
[0180] In the embodiment of the present application, during the process of displaying the image 411 , the electronic device 100 may detect whether there is any user operation acting on the image 411 .
[0181] Referring to Figure 4C, the electronic device 100 can detect a long press operation on the display screen (hereinafter referred to as the long press operation) acting on the image 411, and the touch point of the user's finger is located in other areas outside the door opening hot zone 412A and the door opening hot zone 412B. In response to the above user operation, the electronic device 100 can switch the image 411 to a suspended state as shown in Figure 4D. The suspended image 411 can adjust the display position in real time following the motion trajectory of the user's touch operation. The suspended image 411 is the floating element of this application.
[0182] In some embodiments, after the electronic device 100 switches the image 411 to the suspended state, no prompt information may be output on the user interface, that is, it appears that there is no difference before and after the switch. In other embodiments, after the electronic device 100 switches the image 411 to the suspended state, some prompt information may be output on the user interface (for example, adding a black border to the image 411 as shown in FIG4D, or displaying other dynamic effects around the image 411), thereby prompting the user that the image 411 can currently be dragged by the user.
[0183] Referring to Figures 4D-4E, after the electronic device 100 generates the suspended image 411, it can detect the operation of continuously dragging the suspended image 411 to the right side of the display screen to the door opening hot zone 412B. In response to this operation, the electronic device 100 can start the smart flow service, that is, displaying a menu bar containing icons of multiple candidate applications on the right side of the display screen. Afterwards, the electronic device 100 can also detect the operation of continuing to drag the suspended image 411 into the area where the icon of a candidate application is located in the menu bar, and in response to this operation, send the original screenshot of the image 411 to the application corresponding to the icon of the candidate application.
[0184] After the user triggers the electronic device 100 to generate a floating element, there may be multiple intentions, such as dragging the floating element to the door opening hot zone to trigger the smart flow service, or dragging the floating element to another location on the display screen (such as dragging the preview image of a screenshot, dragging the location of the text in a memo), etc. The door opening hot zone and other locations on the display screen may overlap, so when the user drags the floating element, the electronic device 100 needs to accurately identify the user's intention and then accurately respond to the user's needs to avoid misoperation.
[0185] FIG4G shows a solution for preventing accidental touches by reducing the door opening hot zone.
[0186] The user interface shown in FIG. 4G may be displayed by the electronic device when a long press operation is detected on the image 411 in FIG. 4B .
[0187] As shown in Figure 4G, the door opening hot zone in the user interface includes: the area 412A enclosed by the dotted line L7, the dotted line L8, and the upper edge E1 and the left edge E3 of the display screen, and the area 412B enclosed by the dotted line L4 and the upper edge E1, the right edge E4, and the lower edge E2 of the display screen.
[0188] Compared to a conventional door opening hot zone before the accidental touch prevention solution is enabled (such as the door opening hot zone in FIG1G or FIG4G ), the door opening hot zone in FIG4G has undergone one or more of the following adjustments:
[0189] 1. Because the default screenshot display area of the electronic device in FIG4G is located in the lower left corner of the display screen, the width of the door opening hot zone 412A on the same side (i.e., the left side of the display screen) is shorter than the width of a conventional door opening hot zone on the same side. For example, the width of the door opening hot zone 412A in FIG4G may be 1 / 2 the width of the door opening hot zone 412A in FIG4C .
[0190] 2. Because the default screenshot display area of the electronic device in FIG4G is located in the lower left corner of the display screen, the height of the door opening hot zone 412A on the same side (i.e., the left side of the display screen) can be from the top of the display screen to a position in the middle of the display screen rather than directly reaching it. For example, the height of the door opening hot zone 412A can be from the top of the display screen to the top of the image 411.
[0191] The door opening hot zone adjusted based on any one or more of the above is smaller than the conventional door opening hot zone. When the user operates (e.g., long presses) to bring up image 411, the probability of the touch point directly entering the door opening hot zone is reduced, thereby reducing the probability of the smart flow service being directly triggered after the image 411 is brought up.
[0192] In this way, the user can more easily and conveniently choose to trigger the smart flow service or simply move the position of image 411 on the display screen while dragging image 411. Specifically, the user can trigger the smart flow service by dragging image 411 to the left door opening hot zone 412A or the right door opening hot zone 412B in Figure 4G. The user can also move the position of image 411 on the display screen by dragging image 411 to an area outside the door opening hot zone in Figure 4G.
[0193] In other embodiments, if the default screenshot display area is located in another area of the electronic device's display screen, the door opening hotspot after generating the floating element can be adjusted accordingly based on the default screenshot display area. For example, if the default screenshot display area is located in the upper right corner, the door opening hotspot on the right side of the display screen can be half the width of the regular right door opening hotspot, and its height can be from the top to the bottom of the screenshot preview image.
[0194] Figures 4H and 4L show a solution in which the smart flow service is triggered only after entering the door opening hot zone twice, thereby preventing accidental touches.
[0195] 4H , the electronic device 100 displays an image 411 in the lower left corner of the display screen in response to the user's screenshot operation.
[0196] Afterwards, the electronic device 100 may detect a long press operation (hereinafter referred to as a long press operation) on the image 411. In response to the above user operation, the electronic device 100 may switch the image 411 to a suspended state as shown in FIG4I.
[0197] As shown in Figure 4H, when electronic device 100 detects a long press on image 411, the user's finger touch point on the display screen is located in the door opening hot zone on the left side of the display screen. At this time, although the touch point enters the door opening hot zone, the electronic device does not trigger the smart flow service, that is, the "door opening" animation effect is not triggered.
[0198] Referring to Figures 4I-4L , electronic device 100 can detect a user action in which a user drags image 411 outside the left door opening hotspot and then drags image 411 back into the left door opening hotspot. Only after detecting that the user's finger touch point on the display screen has entered the door opening hotspot a second time will the electronic device trigger the smart flow service, i.e., the "door opening" animation.
[0199] Refer to Figure 4L, which shows the menu bar displayed after the electronic device triggers the smart flow service after the user's finger touches the touch point on the display screen and enters the door opening hot zone for the second time.
[0200] It can be seen that after generating a floating element, if the touch point of the user's finger on the display screen is located in the door opening hot zone for the first time, the smart flow service will not be triggered. The smart flow service will be triggered only when the touch point of the user's finger on the display screen moves out of the door opening hot zone and then enters the door opening hot zone for the second time. The first touch point located in the door opening hot zone here means that the touch point of the user operation used to make the element float on the display screen is located in the door opening hot zone. The door opening hot zones where the two touch points are located can be the door opening hot zone on the left and right sides of the display screen, respectively, or they can both be the door opening hot zones on the same side.
[0201] In this way, the user can more easily and conveniently choose to trigger the smart flow service or simply move the position of image 411 on the display screen while dragging image 411. Specifically, the user can trigger the smart flow service by dragging image 411 a second time to the door opening hot zone in Figure 4D; the user can move the position of image 411 on the display screen by directly dragging image 411 to an area outside the door opening hot zone in Figure 4D.
[0202] In other embodiments, if the electronic device detects a long press operation on image 411 and the touch point of the user's finger on the display screen is outside the door opening hot zone, then after detecting that the user drags image 411 to the door opening hot zone for the first time, the smart flow service can be triggered.
[0203] In the above embodiments, the operation of triggering the smart flow service may include, in addition to the touch point being in the door opening hot zone, staying in the door opening hot zone for a certain period of time (e.g., 600ms). This time period can be set as needed and is not limited here.
[0204] This is not limited to screenshot-type data to be transmitted. After a floating element is generated for other types of data to be transmitted, any of the above methods can be used to prevent accidental touches.
[0205] 4M-4R show a solution for preventing accidental touches by combining the above two methods.
[0206] In the anti-accidental-touch solution shown in FIG4M-FIG4R, the electronic device reduces the door opening hot zone, and triggers the smart flow service only after the touch point operated by the user enters the door opening hot zone twice.
[0207] FIG. 4M shows a user interface provided by the electronic device 100 .
[0208] Figure 4N shows a floating control 413 generated after the electronic device 100 detects the user operation in Figure 4M. The specific generation process of the control 413 can refer to the relevant description of Figures 1A to 1D above.
[0209] 4N and 4O , there are two corresponding door opening hot zones in the display screen: area 412A enclosed by the dotted line L9 and the upper edge E1, left edge E3, and lower edge E2 of the display screen, and area 412B enclosed by the dotted line L4 and the upper edge E1, right edge E4, and lower edge E2 of the display screen.
[0210] Compared with the conventional door opening hot zone before the anti-mistouch scheme is enabled (such as the door opening hot zone in Figure 1G), the width of the door opening hot zone 414A on the left side of the display screen is shorter than the width of the conventional left door opening hot zone. For example, the width of the door opening hot zone 414A in Figure 4N can be 1 / 2 of the width of the door opening hot zone 412A in Figure 4C.
[0211] In some embodiments, the width of the door opening hot zone 414B on the right side of the display screen may also be shorter than the width of the conventional right door opening hot zone. For example, the width of the door opening hot zone 414B in Figure 4N may be 1 / 2 of the width of the door opening hot zone 412B in Figure 4C.
[0212] As shown in Figure 4N, when electronic device 100 detects a long press on control 413, the user's finger touch point on the display screen is located in door opening hot zone 414A on the left side of the display screen. At this time, although the touch point enters the door opening hot zone, the electronic device does not trigger the smart flow service, that is, the "door opening" animation effect is not triggered.
[0213] Referring to Figures 4N-4R, electronic device 100 can detect a user operation in which a user drags control 413 outside the left door opening hot zone and then drags control 413 back into the left door opening hot zone. Referring to Figure 4R, the electronic device triggers the smart flow service, i.e., the "door opening" animation, only after detecting that the user's finger touch point on the display screen has entered the door opening hot zone for the second time. The definitions of the first and second entries into the door opening hot zone can be found in the previous description.
[0214] In some embodiments, after the electronic device 100 generates the floating control 413, the width of the door opening hot zone is shortened, and the smart flow service is triggered only after entering the door opening hot zone twice. Either one of them can be executed, and both do not have to be executed.
[0215] In some embodiments, the electronic device 100 can execute the above-mentioned anti-mistouch scheme combining the two methods for scenarios where the data to be transmitted is text and the position of the text in the user interface can be dragged. Such scenarios are usually provided by text editing applications, so the electronic device can execute the above-mentioned anti-mistouch scheme when it recognizes that a text editing application is currently started, or when it recognizes that the foreground application is a text editing application. For example, the above-mentioned anti-mistouch scheme can be executed for the text in the memo. Specifically, after the electronic device 100 recognizes that it is currently in the above-mentioned scenario, it can execute the above-mentioned anti-mistouch scheme.
[0216] In an embodiment of the present application, a scenario for executing the above-mentioned anti-mistouch solution combining the two methods can be provided by a fifth application, and the fifth application can include a text editing application.
[0217] This is not limited to text-type data to be transmitted. After generating floating elements corresponding to other types of data to be transmitted, the above-mentioned shortening of the width of the door opening hot zone and the combination of entering the door opening hot zone twice to trigger the smart flow service can also be used to prevent accidental touches.
[0218] Window avoidance
[0219] One type of floating element is a floating window. A floating window can be obtained based on a split-screen operation and can float above other user interfaces.
[0220] When the floating element is a floating window, a corresponding door opening hotspot is displayed on the display. The interaction between the user and this floating window involves avoidance with the smart flow service, which is explained below in different situations.
[0221] Dragging the floating window does not trigger the smart flow service
[0222] Figure 5A is a user interface provided by the electronic device 100 in a split-screen scenario. As shown in Figure 5A, the user interface simultaneously displays content provided by two applications, including a user interface provided by a gallery application at the bottom layer and a window 511 provided by a note application floating at the top layer.
[0223] 5A-5B , electronic device 100 can detect a user dragging operation anywhere on window 511, or on the horizontal bar at the top of window 511, and then adjust the position of window 511 on the display screen in real time according to the user's dragging motion. During this process, even if the touch point of the dragging operation moves to the door opening hotspot, electronic device 100 will not trigger the smart flow service; instead, it will only adjust the position of window 511 on the display screen.
[0224] Prevent accidental touch in floating window scenario
[0225] Referring to FIG5C , the user interface provided by the bottom layer of the gallery displays one or more icons, each icon corresponding to an image (such as a photo or video). As shown in FIG5C-5D , the electronic device can detect a user operation (such as a click operation) on one or more of the icons. In response to the operation, the electronic device 100 selects the corresponding icon and displays a selected mark on the selected icon.
[0226] 5D-5E , after one or more icons are selected, the electronic device 100 may detect a long press operation on the screen. In response to this operation, the electronic device 100 may display a floating control 512. Control 512 may include a preview or thumbnail of the selected icon and a superscript (e.g., "2") in the upper right corner, indicating the number of selected icons, i.e., the number of selected images.
[0227] 5E , there are two corresponding door-opening hot zones in the display screen, namely the door-opening hot zone on the left side of the display screen and the door-opening hot zone on the right side of the display screen.
[0228] As shown in Figures 5E to 5F, the electronic device can detect the operation of dragging the control 512 to the door opening hot zone on the right, and in response to the operation, the electronic device can start the smart flow service. Referring to Figure 5G, in response to the control 512 being dragged to the door opening hot zone on the right, the electronic device displays a menu bar including icons of multiple candidate applications on the right side of the display screen, and adjusts the original user interface to a perspective style. In some embodiments, the electronic device can start the smart flow service after detecting that the touch point of the finger dragging the control 512 stays in the door opening hot zone on the right for a period of time. As shown in Figure 5G, the touch point of the user's finger is also located in the hover magnification hot zone, so the icons of the candidate applications in the menu bar also show a motion effect close to hover.
[0229] As shown in Figures 5G-5H , the electronic device can detect that control 512 is being dragged from the right door opening hotspot to a portion of the center of the display screen, which is outside the hover zoom hotspot and the door closing hotspot. Therefore, the electronic device 100 stops displaying the proximity hover animation. That is, referring to Figure 1H , the icons in menu bar 116 are all the same size and are the base size.
[0230] As shown in Figures 5H and 5I , the electronic device can detect the operation of continuing to drag control 512 to the door closing hot zone on the left side of the display screen. Referring to Figure 5J , in response to this operation, the electronic device will close the smart flow service, that is, no longer display the menu bar and no longer present the door opening effect.
[0231] As shown in Figures 5J-5L, after detecting the user's operation of continuing to drag control 512 to window 511 and releasing it, electronic device 100 can send the image corresponding to control 512 to the note application corresponding to window 511. Then, electronic device 100 can display the image corresponding to the selected icon in window 511.
[0232] The examples shown in Figures 5C-5L provide users with a quick and convenient way to turn off the Smart Flow Service after they mistakenly activate it, without interrupting their next action. Specifically, suppose the user's original intention in dragging control 512 in Figure 5E was to drag it into window 511 to send the image corresponding to control 512 to the note-taking application. However, the user mistakenly dragged control 512 into the door-opening hotspot shown in Figure 5F. The electronic device then displays the "door-opening" effect shown in Figure 5G. However, the "door-opening" effect shown in Figure 5G is not what the user intended, so the user can continue dragging control 512 into the door-closing hotspot on the left side of the display to turn off the "door-opening" effect. Furthermore, after turning off the "door-opening" effect, the user can continue dragging control 512 and release it into window 511 to complete the data transfer, thereby achieving the original intention. In this process, although the user mistakenly triggered the Smart Flow Service, the user can still turn off the Smart Flow Service by continuing to drag control 512 and achieve the original intention. During this process, the user continues to drag the control 512 , which means that the user can avoid misoperation simply, conveniently and quickly, and can achieve the original purpose without leaving the finger on the display screen.
[0233] In an embodiment of the present application, the door opening hot zone can also be referred to as the second zone, and the area outside the door opening hot zone can be referred to as the first zone, and the first zone and the second zone do not overlap.
[0234] For example, the second area may include the door opening hot zone 115A and the door opening hot zone 115B shown in Figures 1G-1H, and the first area may include other display screen areas other than the door opening hot zone 115A and the door opening hot zone 115B in Figures 1G-1H.
[0235] For another example, the second area may include the door opening hot zone 412A and the door opening hot zone 412B shown in Figures 4C-4R, and the first area may include other display screen areas other than the door opening hot zone 412A and the door opening hot zone 412B in Figures 4C-4R.
[0236] For another example, the second area may include the left door opening hot zone and the right door opening hot zone shown in Figure 5F, and the first area may include other display screen areas other than the left door opening hot zone and the right door opening hot zone in Figure 5F.
[0237] In the embodiment of the present application, the light guide hot zone may also be referred to as the third area, and the third area includes the second area. For examples of the light guide hot zone, please refer to the introduction of the UI embodiment above.
[0238] In the embodiment of the present application, the hover zoom hot zone can also be referred to as the fourth area. The fourth area includes the second area on the side where the menu bar is located, or includes the second area where the touch endpoint of the first drag operation or the third drag operation is located. For examples of hover zoom hot zones, please refer to the introduction of the UI embodiment above. For the first drag operation and the third drag operation, please refer to the subsequent description.
[0239] The second area on the side where the menu bar is located, or the second area where the touch endpoint of the first drag operation or the third drag operation is located, refers to a partial area in the second area, such as an area on a certain side. For example, the partial area in the second area may include the door opening hot area 115B shown in Figures 1G-1H, the door opening hot area 412B shown in Figures 4C-4F, the door opening hot area 412A shown in Figures 4H-4R, the right door opening hot area shown in Figure 5G, etc.
[0240] In the embodiment of the present application, the area of the display screen other than the hover zoom hotspot and the door closing hotspot may also be referred to as a fifth area. Examples of the fifth area may include the area other than the hover zoom hotspot 117 and the door closing hotspot 118 in FIG1J , or the area other than the hover zoom hotspot and the door closing hotspot in FIG5H .
[0241] In the embodiment of the present application, the door closing hot zone may also be referred to as the sixth zone. For examples of the door closing hot zone, please refer to the introduction of the UI embodiment above.
[0242] In the embodiment of the present application, the floating element may be referred to as a first element, and the user interface displaying the floating element may be referred to as a first interface.
[0243] For example, an example of the first interface may include the interface shown in FIG. 1D , and an example of the first element may include the control 112 in the suspended state in FIG. 1D .
[0244] For another example, examples of the first interface may include the interfaces shown in Figures 4B-4D, or Figure 4G, or Figures 4H-4I, and examples of the first element may include image 411 in Figures 4B-4D, or Figure 4G, or Figures 4H-4I.
[0245] For another example, an example of the first interface may include the interface shown in FIG4N , and an example of the first element may include the control 413 in the suspended state in FIG4N .
[0246] For another example, an example of the first interface may include the interface shown in FIG5E , and an example of the first element may include the control 512 in the suspended state in FIG5E .
[0247] In the embodiment of the present application, the data corresponding to the floating element may be referred to as first data.
[0248] For example, examples of the first data may include the selected text in FIG. 1C , or a screenshot of the user interface shown in FIG. 4A , or an image corresponding to the selected icon in FIG. 5D .
[0249] The application providing the first interface may be referred to as a sixth application, such as the browser application shown in FIG. 1A and FIG. 4A , the memo application shown in FIG. 4M , the gallery application shown in FIG. 5C , and the like.
[0250] In the embodiment of the present application, before the floating element is displayed, the user interface used to generate the floating element can be referred to as a second interface.
[0251] For example, an example of the second interface may include the user interfaces shown in Figures 1A to 1C. In the user interfaces of Figures 1A to 1C, the text selected by the user may be referred to as the first text.
[0252] For another example, an example of the second interface may include the user interface shown in FIG. 4A .
[0253] For another example, the example of the second interface may include the user interface shown in Figures 5C and 5D. In the user interfaces shown in Figures 5C and 5D, the selected icon may be referred to as the icon of the first image, and the unselected icon may be referred to as the icon of the second image.
[0254] In the embodiment of the present application, multiple drag operations on the first element may be included. Among them:
[0255] The dragging operation on the first element used to trigger the smart flow service or the door opening effect can include the following two types:
[0256] 1. A first drag operation: the touch start point of the first drag operation is on the first element and located in the first area of the display screen, and the touch end point is located in the second area of the display screen.
[0257] For example, an example of the first drag operation may include the operation shown in Figures 1D-1G of dragging the control 112 from other display screen areas outside the door opening hot zone 115A and the door opening hot zone 115B to the door opening hot zone 115B.
[0258] For another example, an example of the first drag operation may include the operation shown in Figures 4D-4E of dragging the image 411 from other display screen areas outside the door opening hot zone 412A and the door opening hot zone 412B to the door opening hot zone 412B.
[0259] 2. A third drag operation, wherein the touch starting point of the third drag operation is on the first element and located in the second area, the touch end point is located in the second area, and the track of the third drag operation passes through the first area.
[0260] For example, an example of the third drag operation may include the operation shown in Figures 4I to 4K of dragging the control 112 from the door opening hot zone 412A to the non-door opening area, and then dragging it to the door opening hot zone 412A.
[0261] For another example, an example of the third drag operation may include the operation shown in Figures 4N-4Q of dragging the control 413 from the door opening hot zone 414A to the non-door opening area, and then dragging it to the door opening hot zone 414A.
[0262] A drag operation on a first element that is not used to trigger the smart flow service or the door opening effect may include a second drag operation. The second drag operation has a touch start point on the first element in the second area, a touch end point in the second area of the display, and a trajectory of the second drag operation in the second area.
[0263] For example, examples of the second drag operation may include a drag operation within the door opening hot zone 115A or the door opening hot zone 115B in Figures 1D-1G, or a drag operation within the door opening hot zone 412A or the door opening hot zone 412B in Figures 4D-4E, or a drag operation within the door opening hot zone 412A or the door opening hot zone 412B in Figures 4I-4K, or a drag operation within the door opening hot zone 414A or the door opening hot zone 414B in Figures 4N-4Q.
[0264] The touch start point and touch end point of the first, second, and third drag operations described above only represent the start and end points of the corresponding drag operations. The touch start point does not necessarily indicate that the user's finger touched the display at the start of the drag operation, and the touch end point does not necessarily indicate that the user's finger left the display at the end of the drag operation. That is, before the first, second, and third drag operations, there can be other operations that continuously and continuously touch the display, and of course, there can be no other operations that continuously and continuously touch the display. After the first, second, and third drag operations, there can be other operations that continuously and continuously touch the display.
[0265] In an embodiment of the present application, a menu bar displayed by an electronic device and including icons of one or more candidate applications may be referred to as a first menu bar. Examples of the first menu bar may include menu bar 116 in Figures 1H-1K and 1M, and may also include the menu bars shown in Figures 4F, 4L, 4R, and 5G-5I.
[0266] In an embodiment of the present application, after the electronic device displays the first menu bar, it may also detect an operation of continuing to drag the first element into the area of the first menu bar where the icon of the candidate application is located and then releasing it. The candidate application may be referred to as the first application. An example of the first application may include the note application in Figure 1M.
[0267] In an embodiment of the present application, after the electronic device displays the first menu bar, it may further detect a fourth drag operation in which the first element is continued to be dragged within the fourth area. The touch start point of the fourth drag operation is the same as the touch end point of the first drag operation or the third drag operation, and the touch end point of the fourth drag operation is closest to the icon of the second application in the first menu bar. In other words, the fourth drag operation and the first drag operation or the third drag operation are continuous and uninterrupted.
[0268] Examples of the fourth drag operation may include the operation of dragging the control 112 shown in Figures 1H-1I.
[0269] When the first menu bar is displayed, in the proximity hover animation, the icon of the candidate application closest to the user's touch point can be called the icon of the second application, the application icons before and after the second application icon can be called the icon of the first application and the icon of the third application respectively, and the icons of other applications can be called icons of the fourth application.
[0270] The favorites icon, search icon, share icon, and note icon in the menu bar 116 shown in FIG. 1I may be examples of an icon for a first application, an icon for a second application, an icon for a third application, and an icon for a fourth application, respectively.
[0271] In an embodiment of the present application, after the electronic device detects the fourth drag operation, it may also detect a fifth drag operation in which the first element is continued to be dragged to a fifth area, where the fifth area does not overlap with the fourth area; in response to the fifth drag operation, each icon in the first menu bar is displayed at the base size. Examples of the fifth drag operation can be seen in the drag operation shown in Figures 1I-1J or the drag operation shown in Figures 5G-5H.
[0272] The touch start point of the fifth drag operation is the same as the touch end point of the fourth drag operation. That is, the fifth drag operation and the fourth drag operation are continuous and uninterrupted.
[0273] In an embodiment of the present application, after the electronic device displays the first menu bar, it can also detect a sixth drag operation of dragging the first element to a sixth area, where the sixth area and the second area do not overlap, and the sixth area is located on the opposite side of the first menu bar in the display screen; in response to the sixth drag operation, the first menu bar stops being displayed.
[0274] Examples of the sixth drag operation may include the drag operation illustrated in Figures 1H-1K, or the drag operation illustrated in Figures 5G-5I.
[0275] In an embodiment of the present application, for the above-mentioned solution of preventing accidental touch by reducing the door opening hot zone, the electronic device can display a third interface, wherein the third interface includes a second element; a drag operation on the second element is detected; when the drag operation is the seventh drag operation, the touch starting point of the seventh drag operation is on the second element and is located in the seventh area of the display screen, the touch end point is located in the eighth area of the display screen, and the second menu bar is displayed; when the drag operation is the eighth drag operation, the touch starting point of the eighth drag operation is on the second element and is located in the eighth area, the touch end point is located in the eighth area of the display screen, the trajectory of the eighth drag operation passes through the seventh area, and the second menu bar is displayed; when the drag operation is not the seventh drag operation or the eighth drag operation, the second menu bar is not displayed; wherein, the eighth area is a partial area of the second area.
[0276] Among them, the eighth area is the reduced door opening hot zone, and the seventh area is the display screen area outside the reduced door opening hot zone.
[0277] For example, referring to FIG4G , the eighth region includes the door-open hot zone 412A and the door-open hot zone 412B, and the seventh region includes the display screen region other than the door-open hot zone 412A and the door-open hot zone 412B.
[0278] For another example, referring to FIG. 4N to FIG. 4R , the eighth area includes the door opening hot zone 412A and the door opening hot zone 412B, and the seventh area includes the display screen area other than the door opening hot zone 412A and the door opening hot zone 412B.
[0279] The electronic device provided by the embodiments of the present application is introduced below.
[0280] Fig. 6 shows a schematic diagram of the hardware structure of an electronic device 100 provided in an embodiment of the present application. The electronic device 100 is used to execute the data sharing method provided in the above method embodiment.
[0281] Electronic device 100 may include a processor 101, memory 102, a wireless communication module 103, a mobile communication module 104, an antenna 103A, an antenna 104A, a power switch 105, a sensor module 106, a focus motor 107, a camera 108, a display screen 109, and the like. Sensor module 106 may include a gyroscope sensor 106A, an acceleration sensor 106B, an ambient light sensor 106C, an image sensor 106D, a distance sensor 106E, and the like. Wireless communication module 103 may include a WLAN communication module, a Bluetooth communication module, and the like. These multiple components may transmit data via a bus.
[0282] The processor 101 may include one or more processing units. For example, the processor 101 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). Different processing units may be independent devices or integrated into one or more processors.
[0283] The memory 102 can be used to store computer executable program code, which can include instructions. The processor 101 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the memory 102. The memory 102 can include a program storage area and a data storage area. In a specific implementation, the memory 902 can include a high-speed random access memory and can also include a non-volatile memory, such as one or more disk storage devices, flash memory devices, or other non-volatile solid-state storage devices.
[0284] The wireless communication function of the electronic device 100 can be implemented through the antenna 103A, the antenna 104A, the mobile communication module 104, the wireless communication module 103, the modem processor and the baseband processor.
[0285] Antenna 103A and antenna 104A can be used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
[0286] The mobile communication module 104 can provide wireless communication solutions including 2G / 3G / 4G / 5G applied on the electronic device 100.
[0287] The wireless communication module 103 can provide wireless communication solutions applied to the electronic device 100, including wireless local area networks (WLAN), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR), etc.
[0288] The power switch 105 may be used to control the supply of power to the electronic device 100 .
[0289] The electronic device 100 can implement a shooting function through an ISP, a camera 108, a video codec, a GPU, a display screen 109, and an application processor.
[0290] Electronic device 100 can implement display functions using a GPU, display screen 109, and an application processor. A GPU is a microprocessor for image processing that connects display screen 109 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 101 may include one or more GPUs that execute program instructions to generate or modify display information.
[0291] Display screen 109 is used to display images, videos, etc. Display screen 109 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-oLed, or a quantum dot light-emitting diode (QLED). In some embodiments, electronic device 100 may include one or N display screens 109, where N is a positive integer greater than 1.
[0292] It should be understood that the structure illustrated in the embodiments of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0293] In an embodiment of the present application, the display screen 109 is used to display the user interface shown in Figures 1A-1N, 4A-4M, and 5A-5K above. The display screen 109 can also be used to receive user operations performed by the user on the display screen. The processor 101 is used to determine the location of various hot zones in response to user operations detected by the electronic device 100, and trigger the functions corresponding to the hot zones in response to user operations performed by the user on the various hot zones. The operations performed by each component in the electronic device 100 can be specifically referred to the relevant description of the method embodiment above, and will not be elaborated here.
[0294] The software system of the electronic device 100 can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the present application, a mobile operating system with a layered architecture is used as an example to illustrate the software structure of the electronic device 100.
[0295] FIG7 is a block diagram of the software structure of the electronic device 100 according to an embodiment of the present application.
[0296] A layered architecture divides software into several layers, each with distinct roles and responsibilities. Layers communicate with each other via software interfaces. In some embodiments, a mobile operating system is divided into four layers: application layer, application framework layer / core services layer, system libraries and runtime layer, and kernel layer.
[0297] The application layer can include a series of application packages.
[0298] As shown in FIG7 , the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and short message.
[0299] The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions.
[0300] As shown in FIG7 , the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
[0301] The window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, take screenshots, etc.
[0302] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0303] The view system includes visual controls, such as those for displaying text and images. The view system is used to build applications. A display interface can consist of one or more views. For example, a display interface containing a text notification icon might include a view for displaying text and a view for displaying images.
[0304] The phone manager is used to provide communication functions for electronic devices, such as call status management (including answering, hanging up, etc.).
[0305] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0306] The Notification Manager allows applications to display notifications in the status bar. These messages can be displayed briefly and then disappear automatically without user interaction. For example, the Notification Manager is used to notify users of completed downloads and message reminders. The Notification Manager can also display notifications in the top status bar of the system as icons or scrolling text, such as notifications from background applications, or as dialog windows on the screen. Examples include text messages in the status bar, beeps, vibrations on electronic devices, and flashing indicator lights.
[0307] The runtime can refer to all code libraries, frameworks, and other components required for a program to run. For example, for the C language, the runtime includes a series of function libraries required for C programs to run. For the Java language, in addition to the core libraries, the runtime also includes the virtual machine required for Java programs to run. These core libraries include the functions required by the Java language.
[0308] The system library can include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0309] The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
[0310] The media library supports playback and recording of a variety of common audio and video formats, as well as static image files. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0311] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0312] A 2D graphics engine is a drawing engine for 2D drawings.
[0313] The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, camera driver, audio driver, and sensor driver.
[0314] It should be understood that each step in the above method embodiment can be completed by hardware integrated logic circuits in a processor or by software instructions. The method steps disclosed in the embodiments of the present application can be directly embodied as being executed by a hardware processor, or by a combination of hardware and software modules in a processor.
[0315] The present application also provides an electronic device, which may include a memory and a processor. The memory may be used to store a computer program, and the processor may be used to call the computer program in the memory to enable the electronic device to execute the method executed on the electronic device side in any of the above embodiments.
[0316] The present application also provides an electronic device, which may include a memory and a processor. The memory may be used to store a computer program, and the processor may be used to call the computer program in the memory to enable the electronic device to execute the method executed on the electronic device side in any of the above embodiments.
[0317] The present application also provides a chip system, which includes at least one processor for implementing the functions involved in the electronic device side in any of the above embodiments.
[0318] In one possible design, the chip system further includes a memory, which is used to store program instructions and data, and the memory is located inside or outside the processor.
[0319] The chip system can be composed of chips, or can include chips and other discrete devices.
[0320] Optionally, there may be one or more processors in the chip system. The processor may be implemented in hardware or software. When implemented in hardware, the processor may be a logic circuit, an integrated circuit, etc. When implemented in software, the processor may be a general-purpose processor implemented by reading software code stored in a memory.
[0321] Optionally, the memory in the chip system may be one or more. The memory may be integrated with the processor or may be provided separately from the processor, which is not limited in the embodiments of the present application. For example, the memory may be a non-transient processor, such as a read-only memory (ROM), which may be integrated with the processor on the same chip or provided on different chips. The embodiments of the present application do not specifically limit the type of memory or the configuration of the memory and the processor.
[0322] Exemplarily, the chip system may be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a microcontroller unit (MCU), a programmable logic device (PLD) or other integrated chips.
[0323] The present application also provides a computer program product, which includes: a computer program (also referred to as code, or instruction), which, when executed, enables a computer to execute the method executed by the electronic device side in any of the above embodiments.
[0324] The present application also provides a computer-readable storage medium storing a computer program (also referred to as code or instruction). When the computer program is executed, the computer executes the method executed by the electronic device side in any of the above embodiments.
[0325] The various implementation modes of this application can be combined arbitrarily to achieve different technical effects.
[0326] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the embodiments may be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described herein are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated therein. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)).
[0327] Those skilled in the art will appreciate that all or part of the process steps in the above-described method embodiments can be implemented by a computer program instructing the relevant hardware. The program can be stored in a computer-readable storage medium, and when executed, the program can include the process steps in the above-described method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM or random access memory (RAM), magnetic disks, or optical disks.
[0328] In short, the above description is only an embodiment of the technical solution of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent replacements, improvements, etc. made based on the disclosure of this application should be included in the scope of protection of this application.
Claims
1. A data sharing method, characterized in that: The method comprises: Displaying a first interface, wherein the first interface includes a first element; A drag operation on the first element is detected; When the drag operation is a first drag operation, the touch start point of the first drag operation is on the first element and located in a first area of the display screen, the touch end point is located in a second area of the display screen, a first menu bar is displayed, the first menu bar includes an icon of a first application and an icon of a second application, and the first area and the second area do not overlap; After detecting that the first element is continued to be dragged into the area where the icon of the first application is located and released, sharing the first data corresponding to the first element to the first application; When the drag operation is a second drag operation, the touch start point of the second drag operation is on the first element and located in the second area, the touch end point is located in the second area of the display screen, and the track of the second drag operation is located in the second area, the first menu bar is not displayed; When the drag operation is the third drag operation, the touch start point of the third drag operation is on the first element and located in the second area, the touch end point is located in the second area, and the track of the third drag operation passes through the first area to display the first menu bar.
2. The method according to claim 1, characterized in that: When the drag operation is a first drag operation, in response to the first drag operation, displaying the first menu bar; When the drag operation is a second drag operation, the first menu bar is not displayed in response to the second drag operation; When the drag operation is a third drag operation, the first menu bar is displayed in response to the third drag operation.
3. The method according to claim 1 or 2, characterized in that: When the drag operation is a first drag operation, the first menu bar is displayed after the touch end point of the first drag operation stays in the second area for a first time period; When the drag operation is a second drag operation, after the touch end point of the second drag operation stays in the second area for the first time period, the first menu bar is not displayed; When the drag operation is the third drag operation, the first menu bar is displayed after the touch end point of the third drag operation stays in the second area for the first time period.
4. The method according to any one of claims 1 to 3, characterized in that: The first dragging operation and the operation of continuing to drag the first element into the area where the icon of the first application is located and releasing the element are continuous and uninterrupted.
5. The method according to any one of claims 1 to 4, characterized in that: Before displaying the first interface, the method further includes: Displaying a second interface, wherein the second interface includes text; Detecting an operation of selecting a first text among the texts, displaying a toolbar on the first text, the toolbar including a plurality of controls for processing the first text; The displaying of the first interface includes: Upon detecting a long press operation on the first text, stopping displaying the toolbar and displaying the first interface; The first element includes a preview image of the first text, and the first data includes the first text.
6. The method according to any one of claims 1 to 4, characterized in that: Before displaying the first interface, the method further includes: When the second interface is displayed, a screenshot operation is detected; The displaying of the first interface includes: In response to the screenshot operation, the first interface is displayed, the first element includes a preview image of the screenshot image of the second interface, and the first data includes the screenshot image.
7. The method according to any one of claims 1 to 4, characterized in that: Before displaying the first interface, the method further includes: displaying a second interface, the second interface including an icon of the first image and an icon of the second image; detecting an operation of selecting the icon of the first image; The displaying of the first interface includes: Detecting a long press operation on the icon of the first image, and displaying the first interface; The first element includes a preview image of an icon of the first image, and the first data includes the first image.
8. The method according to any one of claims 1 to 7, characterized in that: The first menu bar and the second area where the touch endpoint of the first drag operation or the third drag operation is located are on the same side of the display screen.
9. The method according to any one of claims 1 to 8, characterized in that: The method further comprises: When the dragging operation is the first dragging operation, or when the dragging operation is the third dragging operation, when the first menu bar is displayed, the first interface is also adjusted to a perspective style of a first side, where the first side is a side of the first menu bar in the display screen.
10. The method according to any one of claims 1 to 8, characterized in that: The first interface also includes a video being played, and the method further includes: When the dragging operation is the first dragging operation, or when the dragging operation is the third dragging operation, when the first menu bar is displayed, a screenshot image of the first interface is displayed, and the screenshot image of the first interface is displayed in a perspective style of a first side, where the first side is a side of the first menu bar in the display screen.
11. The method according to any one of claims 1 to 10, characterized in that: The second area includes: a rectangular area at the left edge of the display screen, and a rectangular area at the right edge of the display screen, and the height of the rectangular area is the same as the height of the display screen.
12. The method according to any one of claims 1 to 11, characterized in that: When the drag operation is a first drag operation, a track of the first drag operation passes through the third area, and the third area includes the second area; The method further comprises: In response to an operation of dragging the first element to the third area in the first drag operation, displaying a light strip, wherein the light strip and the first menu bar are located on the same side of the display screen; The displaying of the first menu bar comprises: In response to an operation of dragging the first element to the third area and then to the second area in the first drag operation, the light band is stopped from being displayed and a first menu bar is displayed.
13. The method according to claim 12, characterized in that The third area includes: a rectangular area at the left edge of the display screen, and a rectangular area at the right edge of the display screen. The height of the third area is the same as the height of the display screen.
14. The method according to any one of claims 1 to 13, characterized in that: The first menu bar further includes an icon of a third application and an icon of a fourth application, and the icon of the first application, the icon of the second application, the icon of the third application, and the icon of the fourth application are arranged in sequence from top to bottom; after displaying the first menu bar, the method further includes: A fourth drag operation of continuing to drag the first element within a fourth area is detected, the fourth area includes the second area where a touch endpoint of the first drag operation or the third drag operation is located, a touch start point of the fourth drag operation is the same as a touch endpoint of the first drag operation or the third drag operation, and the touch endpoint of the fourth drag operation is closest to an icon of the second application in the first menu bar; In response to the fourth drag operation, the icon of the fourth application is displayed as a basic size, the icon of the second application is displayed as a size enlarged by a first ratio on the basic size, and the icon of the first application and the icon of the third application are displayed as sizes enlarged by a second ratio on the basic size; the first ratio is larger than the second ratio.
15. The method according to claim 14, characterized in that The fourth area includes: a rectangular area including the second area where the touch endpoint of the first drag operation or the third drag operation is located, and a height of the fourth area is the same as a height of the display screen.
16. The method according to claim 14 or 15, characterized in that After detecting a fourth drag operation of continuing to drag the first element within a fourth area, the method further includes: detecting a fifth drag operation of continuing to drag the first element to a fifth area, wherein the fifth area does not overlap with the fourth area; In response to the fifth drag operation, each icon in the first menu bar is displayed as the basic size.
17. The method according to any one of claims 1 to 16, characterized in that: When the drag operation is the first drag operation, or when the drag operation is the third drag operation, after displaying the first menu bar, the method further includes: detecting a sixth drag operation of continuing to drag the first element to a sixth area, the sixth area not overlapping the second area, and the sixth area being located on an opposite side of the first menu bar in the display screen; In response to the sixth drag operation, the first menu bar stops being displayed.
18. The method according to any one of claims 1 to 17, characterized in that: The method further comprises: Displaying a third interface, wherein the third interface includes the second element; A drag operation on the second element is detected; When the drag operation is the seventh drag operation, the touch start point of the seventh drag operation is on the second element and located in the seventh area of the display screen, the touch end point is located in the eighth area of the display screen, the second menu bar is displayed, and the seventh area and the eighth area do not overlap; When the drag operation is an eighth drag operation, the touch start point of the eighth drag operation is on the second element and located in the eighth area, the touch end point is located in the eighth area of the display screen, and the track of the eighth drag operation passes through the seventh area, and the second menu bar is displayed; When the drag operation is not the seventh drag operation or the eighth drag operation, not displaying the second menu bar; The eighth region is a partial region of the second region.
19. The method according to claim 18, characterized in that The eighth area includes: a rectangular area at the left edge of the display screen, and a rectangular area at the right edge of the display screen; the height of the eighth area is the same as the height of the second area, and the width of the eighth area is half of the width of the second area.
20. The method according to claim 18 or 19, characterized in that The third interface is provided by a fifth application, and the fifth application includes a text editing application.
21. The method according to any one of claims 1 to 20, characterized in that: The second area when the display screen is in a horizontal state is different from the second area when the display screen is in a vertical state.
22. The method according to any one of claims 1 to 21, characterized in that: The first interface is provided by a sixth application, and the sixth application is different from the first application.
23. An electronic device, characterized in that: It comprises one or more processors and one or more memories; wherein, the one or more memories are coupled to the one or more processors, and the one or more memories are used to store computer program codes, and the computer program codes include computer instructions, and when the one or more processors execute the computer instructions, the method as described in any one of claims 1-22 is executed.
24. A computer-readable storage medium comprising instructions, characterized in that: When the instructions are executed on an electronic device, the method according to any one of claims 1 to 22 is executed.
