Control processing method and device and electronic equipment

By establishing control associations in the control processing method, executing multiple control events and displaying multiple interfaces, the problem of low flexibility in existing control processing is solved, synchronized operations and interface unification between multiple applications are realized, and user experience is improved. experience.

CN118819352APending Publication Date: 2024-10-22VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410865837.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-10-22

AI Technical Summary

Technical Problem

The flexibility of existing control processing is low and cannot meet the needs of user-defined controls. It is inconvenient for users to synchronize operations and interface switching between multiple applications.

Method used

Provide a control processing method that receives input from controls, establishes associations between controls, executes events corresponding to multiple controls, displays the interface where multiple controls are located, realizes aggregation, connection and pasting operations of controls, and improves control processing flexibility.

Benefits of technology

It improves the flexibility of control processing, allows users to trigger multiple control events in one control input, realizes synchronized operations between multiple applications, reduces the necessity of interface switching, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118819352A_ABST
    Figure CN118819352A_ABST
Patent Text Reader

Abstract

The invention discloses a control processing method and device and electronic equipment, and belongs to the technical field of electronic equipment. The method comprises the following steps: receiving a first input for a first control; in response to the first input, executing a first operation; wherein the first operation comprises any one of the following items: executing a first event corresponding to the first control and a second event corresponding to the second control under the condition that a first incidence relation is established between the first control and the second control; under the condition that a second incidence relation is established between the first control and a third control in a first interface, displaying the first interface; and under the condition that the first input is the paste input received on the second interface for the first control, displaying a fourth control on the second interface, the function of the fourth control being the same as the function of the first control.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of electronic equipment, and specifically relates to a control processing method, device and electronic equipment. Background Art

[0002] A control is a component in a user interface (UI) that allows users to interact with electronic devices.

[0003] Each control can correspond to an event. In the related art, when a user touches a control, only the event corresponding to the control can be triggered. It can be seen that the flexibility of existing control processing is low. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a control processing method, device and electronic device, which can solve the problem of low flexibility in existing control processing.

[0005] In a first aspect, an embodiment of the present application provides a control processing method, the method comprising:

[0006] Receiving a first input to a first control;

[0007] In response to the first input, performing a first operation;

[0008] The first operation includes any one of the following:

[0009] In the case where a first association relationship is established between the first control and the second control, a first event corresponding to the first control and a second event corresponding to the second control are executed;

[0010] In the case where a second association relationship is established between the first control and a third control in the first interface, displaying the first interface;

[0011] In the case where the first input is a paste input of the first control received on the second interface, a fourth control is displayed on the second interface, and a function of the fourth control is the same as that of the first control.

[0012] In a second aspect, an embodiment of the present application provides a control processing device, the device comprising:

[0013] A first receiving module, used for receiving a first input to a first control;

[0014] A first execution module, configured to execute a first operation in response to the first input;

[0015] The first operation includes any one of the following:

[0016] In the case where a first association relationship is established between the first control and the second control, a first event corresponding to the first control and a second event corresponding to the second control are executed;

[0017] In the case where a second association relationship is established between the first control and a third control in the first interface, displaying the first interface;

[0018] In the case where the first input is a paste input of the first control received on the second interface, a fourth control is displayed on the second interface, and a function of the fourth control is the same as that of the first control.

[0019] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.

[0020] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0021] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.

[0022] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.

[0023] In an embodiment of the present application, when a first input to a first control is received, a first operation can be performed in response to the first input, and the first operation can include any of the following: 1) when a first association relationship is established between the first control and the second control, a first event corresponding to the first control is executed in the first application, and a second event corresponding to the second control is executed in the second application; 2) when a second association relationship is established between the first control and a third control in the first interface, the first interface is displayed; 3) when the first input is a paste input to the first control received in the second interface, a fourth control having the same function as the first control is displayed in the second interface. In 1), the triggering of events corresponding to two or more controls can be achieved by executing input on one control; in 2), the display of the interface where the second control is located can be triggered by executing input on the first control; in 3), by pasting the first control in the second interface, a fourth control having the same function as the first control can be displayed in the second interface. It can be seen that the embodiment of the present application can improve the flexibility of control processing. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 It is one of the flowcharts of the control processing method provided in the embodiment of the present application;

[0025] Figure 2 This is the second flowchart of the control processing method provided in the embodiment of the present application;

[0026] Figure 3a It is one of the schematic diagrams of the control provided in the embodiment of the present application;

[0027] Figure 3b This is the second schematic diagram of the control provided in the embodiment of the present application;

[0028] Figure 3c This is the third schematic diagram of the control provided in the embodiment of the present application;

[0029] Figure 4 is a schematic diagram of an operation window provided in an embodiment of the present application;

[0030] Figure 5a It is one of the schematic diagrams of the connection provided in the embodiment of the present application;

[0031] Figure 5b This is the second schematic diagram of the connection provided in the embodiment of the present application;

[0032] Figure 5c is a response diagram of a connection control provided in an embodiment of the present application;

[0033] Figure 6a It is one of the schematic diagrams of the aggregation control provided in the embodiment of the present application;

[0034] Figure 6b This is the second schematic diagram of the aggregation control provided in the embodiment of the present application;

[0035] Figure 7a It is one of the display schematic diagrams of the weather control in the map interface provided in the embodiment of the present application;

[0036] Figure 7b This is the second display schematic diagram of the weather control in the map interface provided in the embodiment of the present application;

[0037] Figure 7c This is the third display schematic diagram of the weather control in the map interface provided in the embodiment of the present application;

[0038] Figure 8a It is a display schematic diagram of the weather control in the ticket details page provided in the embodiment of the present application;

[0039] Figure 8b It is a screenshot schematic diagram of the ticket details page provided in the embodiment of the present application;

[0040] Figure 9a This is one of the schematic diagrams of the lock screen interface provided in the embodiment of the present application;

[0041] Figure 9b This is the second schematic diagram of the lock screen interface provided in the embodiment of the present application;

[0042] Fig.10 This is the third flowchart of the control processing method provided in the embodiment of the present application;

[0043] Fig.11a This is the fourth schematic diagram of the control provided in the embodiment of the present application;

[0044] Fig.11b This is the fifth schematic diagram of the control provided in the embodiment of the present application;

[0045] Fig.11c This is the sixth schematic diagram of the control provided in the embodiment of the present application;

[0046] Fig.11d This is the seventh schematic diagram of the control provided in the embodiment of the present application;

[0047] Fig.12a is a schematic diagram for determining the size of a control provided in an embodiment of the present application;

[0048] Figure 12b is a schematic diagram of a first window provided in an embodiment of the present application;

[0049] Fig.13 is one of the schematic diagrams of the display interface of the first window provided in the embodiment of the present application;

[0050] Fig.14This is a second schematic diagram of a display interface of a first window provided in an embodiment of the present application;

[0051] Fig.15a is a schematic diagram of recording the first window provided in an embodiment of the present application;

[0052] Fig.15b is a schematic diagram of a reproduction of the first window provided in an embodiment of the present application;

[0053] Fig.16 is a structural diagram of a control processing device provided in an embodiment of the present application;

[0054] Fig.17 It is one of the structural diagrams of the electronic device provided in the embodiment of the present application;

[0055] Fig.18 This is the second structural diagram of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0056] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0057] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0058] For ease of understanding, some contents involved in the embodiments of the present application are described below.

[0059] In the related art, some similar applications have controls with similar functions, and users can only interact with these controls within the current application. Users need to switch applications to complete information browsing or page interaction. For example, a user needs to participate in a flash sale of a certain store's products in a first shopping application and a second shopping application at the same time, or a user needs to buy tickets for a certain concert on a ticket purchase webpage or ticket purchase application under a shopping company at the same time. If the user needs to operate controls in multiple applications at the same time, he needs to switch back and forth between the two applications, and cannot achieve synchronous operation.

[0060] In addition, the user's current interface may rely on information provided by another interface. For example, when a user wants to see the current specific time in seconds on the flash sale interface of a shopping application, in the related art, it is necessary to switch to the clock application to view the specific time in seconds, which is very inconvenient.

[0061] It can be seen that the flexibility of the control processing in the related art is low and cannot meet the needs of user-defined controls. Based on this, the embodiment of the present application provides a control processing method, which can improve the flexibility of control processing.

[0062] The control processing method provided in the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.

[0063] Figure 1 This is one of the flowcharts of the control processing method provided in the embodiment of the present application. The control application method of the embodiment of the present application can be executed by, but is not limited to, an electronic device. Figure 1 As shown, the control processing method may include:

[0064] Step 101: Receive a first input to a first control.

[0065] In some embodiments, the first input may be a selection input for the first control, that is, the first input is used to select the first control. It can be understood that in these embodiments, the user performs the first input on the first control in the interface where the first control is located to select the first control, so step 101 may be performed as: receiving the first input for the first control in the interface where the first control is located.

[0066] In other embodiments, the first input may be a paste input for the first control, that is, the first input is used to paste the first control. It can be understood that in these embodiments, the user performs the first input on the first control in the interface where the first control is expected to be pasted, so as to paste the first control. Therefore, step 101 may be performed as: receiving the first input for the first control in the interface where the first control is expected to be pasted.

[0067] The embodiments of the present application do not limit the form of input. The input can be touch input, such as click, long press, etc., or it can be voice input or gesture input, etc. The specific setting can be based on actual conditions, and the embodiments of the present application do not limit this.

[0068] The embodiment of the present application does not limit the expression form of the first control, and the first control can be any control in the electronic device. In some implementations, the first control can be a control in a certain interface of the first application installed in the electronic device. In other implementations, the first control can be a control in the control center of the electronic device.

[0069] Step 102: Execute a first operation in response to the first input.

[0070] In the embodiment of the present application, the first operation may include but is not limited to any of the following:

[0071] 1) When a first association relationship is established between the first control and the second control, a first event corresponding to the first control and a second event corresponding to the second control are executed;

[0072] 2) When a second association relationship is established between the first control and a third control in the first interface, displaying the first interface;

[0073] 3) When the first input is a paste input of the first control received on the second interface, a fourth control is displayed on the second interface, and a function of the fourth control is the same as that of the first control.

[0074] It can be known from step 101 that the first input may be a selection input or a paste input for the first control, and the first operation performed by the electronic device may be different for different types of first inputs. When the first input is a selection input, the first operation may be 1) or 2); when the first input is a paste input for the first control, the first operation may be 3).

[0075] In 1), when a first association relationship is established between a first control and a second control, the electronic device can execute a first event corresponding to the first control and a second event corresponding to the second control in response to a selection input of the first control. In this way, the embodiment of the present application can trigger the triggering of all events corresponding to all controls that have established a first association relationship by executing an input on a control that has established a first association relationship, thereby enriching the response processing method of the control and improving the flexibility of control processing.

[0076] The second control may include at least one control. Furthermore, the second control and the first control may be controls in the same application or the same interface, or controls in different applications or different interfaces, which may be determined according to actual conditions, and the embodiments of the present application do not limit this. The types of events corresponding to the second control and the first control may be different or may be different. For example, in one example, the first event is a shopping event, and the second event is an alarm setting event. In another example, the first event and the second event are both events of contacting contact a, such as the first event is contacting contact a through a phone application, and the second event is contacting contact a through an instant messaging application.

[0077] The embodiments of the present application do not limit the execution order between the first event and the second event. The electronic device can execute the first event and the second event simultaneously, or can execute the first event and the second event in sequence. It should be noted that when the first event and the second event are of the same event type and there is a conflict between the execution of the first event and the second event, the electronic device can execute the first event and the second event in sequence, such as: assuming that the first event is to contact contact a by voice through a phone application, and the second event is to contact contact a by voice through an instant messaging application, then the electronic device can first contact contact a by voice through one application, and then contact contact a by voice through another application.

[0078] In an embodiment of the present application, for at least two controls with a first association relationship established between them, the execution of events corresponding to the at least two controls can be triggered by performing a selection input on any one of the at least two controls. In other words, the electronic device aggregates the events corresponding to the at least two controls, and the triggering of the aggregated event can be triggered by performing an input on one control. Therefore, the first association relationship between controls can be understood as an aggregate relationship. Controls with a first association relationship can be called aggregate controls.

[0079] In 1), by executing input on one control, the triggering of events corresponding to two or more controls can be achieved, thus enriching the response processing methods of the controls and improving the flexibility of control processing.

[0080] In 2), when the first control and the third control have a second association relationship, the electronic device can jump from the interface where the first control is located to display the first interface where the third control is located in response to the selection input of the first control. In this way, for the controls with a second association relationship established, the embodiment of the present application can trigger the automatic jump display of the interface where the other control is located by executing input on one of the controls, which not only enriches the response processing method of the control, improves the flexibility of the control processing, but also improves the efficiency of calling out the interface where the control is located.

[0081] The second control and the first control are located in different interfaces. Furthermore, the second control and the first control can be controls in the same application or controls in different applications. The specific decision can be made based on actual conditions, and the embodiments of the present application do not limit this.

[0082] In the embodiment of the present application, for two controls with a second association relationship established between them, when the electronic device displays the interface where a certain control is located, an input can be performed on the control to trigger the electronic device to jump to display, that is, to continue to display the interface where another control is located. In other words, the electronic device performs a continuous binding on the display of the interface where the two controls are located, and therefore, the first association relationship between the controls can be understood as a continuous relationship. The controls with the second association relationship established can be called continuous controls.

[0083] In 2), the display of the interface where the second control is located can be triggered by executing input on the first control, thus enriching the response processing methods of the controls and improving the flexibility of control processing.

[0084] In 3), the electronic device may display a fourth control in the second interface in response to a paste input of the first control in the second interface. The fourth control has at least the same function as the first control. The fourth control has the same function as the first control, which may be manifested as at least one of the following: the fourth control and the first control may trigger the electronic device to perform the same operation; the fourth control and the first control have the same display content. Therefore, the fourth control may be regarded as a copy control of the first control. Furthermore, the display style of the fourth control may also be the same as the display style of the first control, or the display style of the fourth control may add an identifier based on the display style of the first control to indicate that the fourth control is a copy control of the first control, and the display style may include at least one of the display shape and the display color, etc. It can be seen that in an embodiment of the present application, the electronic device supports copying and pasting of controls, and copies and pastes controls in a certain interface to another interface, thereby enriching the response processing method of the controls and improving the flexibility of control processing.

[0085] The second interface can be any interface of the electronic device, which can be determined according to actual needs and is not limited in this embodiment of the present application.

[0086] In some embodiments, if the user needs to view the display content of the first control on a certain interface, the user can perform a paste input on the first control on the interface, triggering the electronic device to display the first control on the interface. In this way, the user does not need to switch to another interface to view the display content of the first control, but can view the display content of the first control on the interface, thereby improving the viewing efficiency of the display content of the first control.

[0087] In some other embodiments, the second interface may be a lock screen interface. Optionally, receiving a first input to the first control may include:

[0088] Receiving a paste input of the first control on the lock screen interface;

[0089] The displaying the fourth control on the second interface includes: displaying the fourth control on the lock screen interface.

[0090] In this embodiment, when the electronic device is in the lock screen state, if a paste input for the first control is received, the electronic device can respond to the input and display a fourth control on the lock screen interface. In this way, even if the electronic device enters the lock screen, the electronic device can still display the fourth control, making it convenient for the user to call the fourth control, thereby improving the calling efficiency of the first control.

[0091] It should be noted that in the related art, when an electronic device is in a lock screen state, except for unlock authentication, the electronic device generally does not respond to input received on the lock screen interface. However, in an embodiment of the present application, the electronic device can respond to a control paste input received on the lock screen interface. In specific implementation, when the electronic device receives input on the lock screen interface, the electronic device can determine whether a control copy input is received before the input is received. If a control copy input is received before the input is received, it can be determined that the input is a control paste input, and the copied control is displayed on the lock screen interface in response to the input; if the control copy input is not received before the input is received, it can be determined that the input is not a control paste input, and the input can be not responded to.

[0092] In the embodiment of the present application, the lock screen can also be replaced by turning off the screen or stopping the screen.

[0093] It can be understood that in 3), before receiving the paste input of the first control, the electronic device copies the first control. In the embodiment of the present application, copying the first control may include creating another instance of the first control, which may be temporarily stored in the memory of the electronic device; pasting the first control may include creating a new control based on the instance, i.e., the fourth control.

[0094] In 3), by pasting the first control in the second interface, the fourth control can be displayed in the second interface, thus enriching the response processing methods of the controls and improving the flexibility of control processing.

[0095] As can be seen from the foregoing, when the first input is a selection input, the first operation may be 1) or 2. In order to allow the electronic device to clearly identify the response operation to the first input, it may be distinguished by, but not limited to, the input method of the first input.

[0096] In some embodiments, when the input mode of the first input is the first input mode, the electronic device may execute 1) in response to the first input. When the input mode of the first input is the second input mode, the electronic device may execute 2) in response to the first input. In one example, the first input mode may be a click input, and the second input mode may be a long press input.

[0097] In other embodiments, when the input mode of the first input is the fourth input mode, the electronic device may execute 1) or 2) in response to the first input. Furthermore, whether to execute 1) or 2) may be determined by determining the type of binding relationship established between the first control and other controls. If the type of binding relationship established between the first control and other controls is the first binding relationship, 1) may be executed; if the type of binding relationship established between the first control and other controls is the second binding relationship, 2) may be executed.

[0098] In some embodiments, after receiving a first input to a first control, the electronic device may perform a first operation in response to the first input, thereby improving input response speed.

[0099] In other embodiments, after receiving the first input to the first control, the electronic device may further verify whether the executable body of the first control has the input permission to the first control, and only when it is verified that the executable body of the first control has the input permission to the first control, the electronic device performs the first operation in response to the first input, otherwise, the electronic device may not respond to the first input. In this embodiment, the control-level permission verification may be performed, so that the security of the input response can be improved.

[0100] It can be understood that for any input to any control received by the electronic device, control permission verification can be performed to improve the security of the input response.

[0101] The control processing method of the embodiment of the present application can perform a first operation in response to the first input when receiving a first input to the first control. The first operation can include any of the following: 1) When a first association relationship is established between the first control and the second control, the first application executes a first event corresponding to the first control, and the second application executes a second event corresponding to the second control; 2) When a second association relationship is established between the first control and the third control in the first interface, the first interface is displayed; 3) When the first input is a paste input of the first control received in the second interface, a fourth control with the same function as the first control is displayed in the second interface. In 1), the triggering of events corresponding to two or more controls can be achieved by executing input on one control; in 2), the display of the interface where the second control is located can be triggered by executing input on the first control; in 3), by pasting the first control in the second interface, a fourth control with the same function as the first control can be displayed in the second interface. It can be seen that the embodiment of the present application can improve the flexibility of control processing.

[0102] The following is a detailed description of how to establish associations between controls.

[0103] The embodiments of the present application do not limit the way of establishing the association relationship between controls. In some embodiments, a first association relationship setting interface and a second association relationship setting interface can be added to the setting interface, and the user can set the first association relationship and the second association relationship between controls in the first association relationship setting interface and the second association relationship setting interface respectively.

[0104] In some other embodiments, before receiving the first input to the first control, the method may further include:

[0105] receiving a second input to the first control;

[0106] In response to the second input, displaying at least one operation option;

[0107] receiving a third input for a first operation option among the at least one operation option;

[0108] In response to the third input, performing a second operation corresponding to the first operation option;

[0109] The second operation includes any one of the following:

[0110] When the first operation option is an aggregation option and a copy input to the second control is received before the second input, establishing the first association relationship between the first control and the second control;

[0111] When the first operation option is a continuation option and a copy input to the third control is received before the second input, the second association relationship between the first control and the third control is established.

[0112] In this embodiment, the second input is a selection input for the first control. In response to the second input, the electronic device may display an operation window including at least one operation option so that the user can establish an association relationship between the controls.

[0113] In the embodiment of the present application, the operation window may include, but is not limited to, at least one of the following operation options: a copy option, an aggregation option, a continuation option, and a paste option. The aggregation option may be used to establish a first association relationship, i.e., an aggregation relationship. The continuation option may be used to establish a second association relationship, i.e., a continuation relationship. The copy option may be used to copy a control; the paste option may be used to paste a control.

[0114] Further, in some embodiments, the aggregate option, the continue option, and the paste option in the operation window can be activated after receiving the input for the copy option, that is, after receiving the input for the copy option, the electronic device can respond to the user's input for the aggregate option, the continue option, and the paste option in the operation window.

[0115] In a specific implementation, when the electronic device has received a copy input for the second control, the user can trigger the display of the operation window by performing a second input on the first control. Afterwards, the electronic device can be triggered to establish a first association relationship between the first control and the second control by performing a third input on the aggregation option in the operation window.

[0116] Furthermore, in some implementations, after establishing the first association relationship between the first control and the second control, the electronic device may update the display style of the first control to indicate that the first control is an aggregate control, and may trigger the execution of events corresponding to multiple controls by executing input on the first control. For example, in one example, the display style of the second control may be added to the original display style of the first control, so that it may be indicated that the first control and the second control are aggregated. In another example, an aggregation identifier may be added to the original display style of the first control, so that it may be indicated that the first control is an aggregate control.

[0117] When the electronic device has received the copy input for the third control, the user can trigger the display of the operation window by performing the second input on the first control. Afterwards, the electronic device can trigger the establishment of the second association relationship between the first control and the third control by performing the third input on the continuation option in the operation window.

[0118] In some implementations, for two controls that have established a second association relationship, the order of the interfaces where the two controls are located may not be restricted, that is, no matter what input is performed on the two controls, the display of the interface where the other control is located may be triggered.

[0119] In other implementations, for two controls with a second association relationship, the sequence of the interfaces where the two controls are located can be predetermined. In this implementation, the user can trigger the continuous display of another interface by inputting the control in the interface with the earlier sequence, but cannot trigger the continuous display of another interface by inputting the control in the interface with the later sequence.

[0120] The embodiments of the present application do not limit the method for determining the sequence of interfaces, and in some embodiments, the sequence can be determined by the user. In other embodiments, the interface of the control that receives input later can be displayed after the interface of the control that receives input earlier.

[0121] The embodiments of the present application do not limit the specific form of the copy input of the control. In some embodiments, the user can copy the control by long pressing the control. In other embodiments, the user can trigger the display of the operation window by inputting the control, and then trigger the electronic device to copy the control by inputting the copy option in the operation control.

[0122] In this embodiment, the call of the operation window can be triggered by executing input on a certain control, and then the establishment of the association relationship between the control and other controls can be achieved by interacting with the operation window. This not only improves the accuracy of establishing the association relationship between controls, but also enriches the response processing method of the controls and improves the flexibility of control processing.

[0123] The establishment of the second association relationship is described in detail below.

[0124] In some embodiments, the first control may include at least two display states;

[0125] The establishing the second association relationship between the first control and the third control includes:

[0126] Establishing the second association relationship between the first display state of the first control and the third control;

[0127] The displaying the first interface includes: acquiring a display state of the first control;

[0128] When the first control is in the first display state, displaying the first interface;

[0129] When the first control is in the second display state, the third interface is maintained to be displayed, wherein the third interface is the display interface of the electronic device when the first input is received.

[0130] In this embodiment, for a control with two or more display states, when establishing a second association relationship between the control and other controls, it can be further determined which display state of the control is to be associated with the other controls to establish the second association relationship.

[0131] In this case, when receiving the selection input of the control, the electronic device can further determine whether the current display state of the control is a display state with a second association relationship established. If the current state of the control is a display state with a second association relationship established, the interface where the control with the second association relationship established with the control is located can be displayed in response to the input; if the current state of the control is not a display state with a second association relationship established, the display of the interface where the control is located can be maintained.

[0132] Take, for example, a first control including at least two display states, and a second association relationship is established between the first display state of the first control and a third control.

[0133] After receiving the first input to the first control, in response to the first input, the display state of the first control can be first obtained. When the display state of the first control is the first display state, the electronic device can continue to display the first interface after the third interface; when the display state of the first control is other than the first display state, the electronic device can maintain the display of the third interface.

[0134] The embodiment of the present application does not limit the method and timing of obtaining the bound display status.

[0135] In some implementations, the bound display state can be selected by the user, such as: in the process of establishing the second association relationship between the first display state of the first control and the third control, all display states of the first control can be displayed by displaying a selection box for the user to select the first display state. Further, the prompt box can be displayed when the first input is received, or when the second input is received.

[0136] In some other implementations, the bound display state may be the current display state of the first control when the first input is received.

[0137] In addition, for a control with two or more display states, different display states of the control can establish a second association relationship with different controls. In this way, when the user touches the control in different display states, the electronic device can be triggered to jump to display a different interface.

[0138] Assuming that the second display state of the first control establishes a second association relationship with the fifth control, then, when the display state of the first control is the first display state, the electronic device can display the first interface after the third interface; when the display state of the first control is the second display state, the electronic device can display the interface where the fifth control is located after the third interface.

[0139] In this embodiment, when the second association relationship is established between controls, the granularity of the binding objects of the second association relationship can be further refined, so that the response processing methods of the controls can be further enriched and the flexibility of control processing can be improved.

[0140] In some embodiments, after displaying the first interface, the method may further include:

[0141] In the case where the second association relationship is established between the third control and the sixth control in the fourth interface, the fourth interface is displayed in response to receiving the sixth input to the third control.

[0142] In this embodiment, the electronic device can establish a second association relationship between two or more controls, so that the number of connected interfaces can be increased.

[0143] Taking the third control as an example, it not only establishes a second association relationship with the first control, but also establishes a second association relationship with the sixth control. The user can perform input on the first control in the interface where the first control is located, triggering the electronic device to continue to display the interface where the third control is located; the user can perform input on the third control in the interface where the third control is located, triggering the electronic device to continue to display the interface where the sixth control is located.

[0144] In the case where two or more controls have established a second association relationship, the order of connection of the interfaces where these controls are located can be determined based on the order of establishment of the second association relationship, such as: assuming that after receiving the copy input of control 1, the input call-out operation window is first executed for control 2, and the second association relationship between control 1 and control 2 is established through the connection option; then the input call-out operation window is executed for control 3, and the second association relationship between control 1 and control 3 is established through the connection option. Then, the order of connection of the interfaces where control 1 to control 3 are located can be: the interface where control 1 is located, the interface where control 2 is located, and the interface where control 3 is located.

[0145] In this embodiment, the electronic device can trigger the successive display of two or more interfaces by establishing a second association relationship between two or more controls, thereby improving the efficiency of calling up the interfaces.

[0146] The execution of the first event and the second event is described in detail below.

[0147] As can be seen from the foregoing, the embodiments of the present application do not limit the execution order between the first event and the second event, and the electronic device can execute the first event and the second event simultaneously, or can execute the first event and the second event sequentially. That is, the trigger type of the first event and the second event can be simultaneous triggering or sequential triggering.

[0148] The embodiments of the present application do not limit the manner of determining the trigger types of the first event and the second event. In some embodiments, the trigger types of the first event and the second event can be set by default.

[0149] In other embodiments, the trigger type of the first event and the second event can be selected by the user. In this embodiment, in the process of establishing the first association relationship between the first control and the second control, all trigger types can be displayed by displaying a selection box for the user to select the trigger type of the first event and the second event.

[0150] In other embodiments, the trigger type of the first event and the second event can be determined autonomously by the electronic device based on whether there is a conflict between the execution of the first event and the second event. If there is a conflict between the execution of the first event and the second event, the electronic device can determine that the trigger type is a sequential trigger; if there is no conflict between the execution of the first event and the second event, the electronic device can determine that the trigger type is a simultaneous trigger.

[0151] In some embodiments, executing a first event corresponding to the first control and a second event corresponding to the second control includes:

[0152] Obtaining trigger types for the first event and the second event;

[0153] When the trigger type is a sequential trigger, executing a first event corresponding to the first control;

[0154] If the execution of the first event fails, executing a second event corresponding to the second control;

[0155] When the first event is executed successfully, the execution of the second event corresponding to the second control is abandoned.

[0156] In this embodiment, for multiple events triggered sequentially, whether to execute the next event can be determined based on the execution result of the currently executed event, that is, the execution of an event can further depend on the execution result of the previous event.

[0157] In specific implementation, if the execution result of the current execution event is successful, the execution of the next event can be abandoned; if the execution result of the current execution event is successful, the execution of the next event can be continued.

[0158] In one example, assuming that the first event is to contact contact A by voice through a phone application, and the second event is to contact contact A by voice through an instant messaging application, then the electronic device can first contact contact A by voice through one application. If contact A is successfully contacted through the application, the voice contact through another application can be abandoned. If the contact through the application fails, the contact can be contacted by voice through another application. In this way, the contact success rate can be improved and the execution events of the electronic device can be reduced.

[0159] In this embodiment, the electronic device can be prevented from executing unnecessary events, thereby reducing the operating burden of the electronic device.

[0160] The following describes how to determine the display content of the control after the control is pasted.

[0161] The fourth control is a copy of the first control, the display content of the fourth control can be the same as the display content of the first control, and the display content of the fourth control is determined in the same way as the display content of the first control. Therefore, in the following description, the first control and the fourth control can be replaced with each other.

[0162] In some other embodiments, after displaying the fourth control on the second interface, the method may further include:

[0163] In a case where the second interface includes information related to the display content of the fourth control, determining a positional relationship between a first display position of the fourth control and a second display position of the information;

[0164] When the position relationship indicates that the distance between the first display position and the second display position is less than a distance threshold, the display content of the fourth control is adjusted to correspond to the information.

[0165] In this embodiment, after pasting the first control to the second interface, it can be further determined whether the second interface includes information related to the display content of the first control.

[0166] In the case that the second interface does not include information related to the display content of the first control, the display content of the first control may be determined in the same manner as in the related art.

[0167] In the case where the second interface includes information related to the display content of the first control, the display content of the first control can be flexibly adjusted based on the related information in the second interface, thereby improving the display flexibility of the first control.

[0168] For ease of understanding, the first control is taken as a weather control as an example. For the weather control, the content displayed is related to the location information. For the weather control, it can be determined whether the second interface includes location information. If the second interface includes location information, the first control can be triggered to display the weather information corresponding to the location information. For example, the user copied the weather control in the weather APP, and when the map APP interface is displayed, the user chooses to paste the copied weather control to a certain position on the map APP interface. At this time, the weather control recognizes the name of the area currently displayed on the map interface. When the user drags his finger to switch the map position, the weather control can update the weather information of the current city location in real time according to the currently displayed city location.

[0169] The embodiments of the present application do not limit the presentation method of the relevant information of the first control in the second interface. In some embodiments, the relevant information of the first control can be the information displayed in the second interface. In other embodiments, the relevant information of the first control can be the display information of the control in the second interface.

[0170] Take location information as an example. When the second interface is a map, the location information may be the location information in the map. When the second interface includes a positioning control, the location information may be the location information displayed by the positioning control. When the second interface is a ticket purchase interface including an origin control and a destination control, the location information may be the location information displayed by the origin control or the destination control.

[0171] Furthermore, in the case where the second interface includes relevant information of the first control, the positional relationship between the first display position of the fourth control and the second display position of the relevant information of the first control can be further acquired.

[0172] If the position relationship indicates that the distance between the display positions of the two is less than the distance threshold, the display content of the first control can be adjusted to correspond to the relevant information of the first control, that is, the display content of the first control is updated according to the relevant information of the first control. If the position relationship indicates that the distance between the display positions of the two is greater than or equal to the distance threshold, the display content of the first control can be determined in the same way as the related technology, and does not depend on the relevant information in the second interface. In this way, the flexibility of determining the display content of the first control can be further improved.

[0173] In addition, when the second interface includes at least two pieces of information, the information whose display position is closest to the first control among the at least two pieces of information is determined as the target information;

[0174] According to the target information, the display content of the first control is updated.

[0175] In this embodiment, the second interface includes two or more related information of the first controls. To clarify the display content of the first control, the display content of the first control can be updated based on the related information whose display position is closest to the first control among the related information.

[0176] Take the first control as a weather control, the second interface as a map interface, and the information as location information as an example for explanation. Assuming that the map interface includes cities a, b, and c, the electronic device can respectively determine the display positions of cities a, b, and c, and the distances between them and the display position of the first control. If the distance between the display position of city a and the display position of the first control is the smallest, the weather control can display the weather information of city a.

[0177] In the case where the second interface includes information of multiple first controls, further, the user can change the display position of the first control, further update the display content of the first control, and improve the display flexibility of the first control.

[0178] In this case, by comparing the display position of the first control in the second interface and the distance between the display positions of the related information of each first control in the second interface, it can be determined which related information to use to update the display content of the first control. In this way, the reliability of the display content of the first control can be improved.

[0179] Through the above embodiment, the display content of the first control can be flexibly adjusted based on the relevant information in the second interface pasted by the first control, so that the display flexibility of the first control can be improved.

[0180] The following is a detailed description of the screenshot of the interface with the control pasted.

[0181] In some embodiments, after pasting the first control to the second interface, if receiving an interception input of the second interface, the electronic device can respond to the interception input and intercept the second interface pasted with the first control. In this embodiment, the response operation of the electronic device to the interception input is the same as that of the related art, and the screenshot corresponding to the intercepted second interface is the same as the actual display interface of the second interface.

[0182] In some other embodiments, after displaying the first control on the second interface, the method may further include:

[0183] Receiving intercepted input of the second interface;

[0184] In response to the capture input, when the display content of the second interface overlaps with the display content of the fourth control, a first screenshot corresponding to the second interface is generated, wherein the first screenshot includes the second interface and the display content of the first control, and the display content of the second interface in the first screenshot does not overlap with the display content of the first control.

[0185] In this embodiment, in response to the capture input of the second interface, the electronic device generates a screenshot corresponding to the second interface which is different from the actual display interface of the second interface.

[0186] In this embodiment, considering that after the first control is pasted to the second interface, the display content of the first control will block part of the second interface, when generating a screenshot of the second interface, on the one hand, the first control can be removed from the second interface to eliminate the blocking of the second interface by the first control; on the other hand, the display content of the first control can be increased. Further, the display content of the first control can be displayed in a blank area of ​​the second interface, or displayed outside the second interface.

[0187] The screenshot corresponding to the second interface obtained in this way can not only eliminate the occlusion of the area of ​​the second interface by the first control, but also carry the display content of the first control in the screenshot corresponding to the second interface, thereby improving the display effect of the screenshot.

[0188] The embodiment of the present application does not limit the method for obtaining the first screenshot corresponding to the second interface. In some implementations, in response to the interception input, generating the first screenshot corresponding to the second interface may include:

[0189] In response to the intercepted input, hiding the first control in the second interface;

[0190] Execute a screenshot operation on the second interface to obtain a second screenshot corresponding to the second interface;

[0191] splicing the display content of the first control with the second screenshot to obtain the first screenshot;

[0192] The first control is restored and displayed in the second interface.

[0193] In this embodiment, after receiving the capture input of the second interface, the electronic device can first remove the first control from the second interface, and then perform a screenshot operation on the second interface. At this time, the second screenshot corresponding to the captured second interface is the second interface before the first control is pasted, and the second screenshot does not include the first control. Afterwards, the display content of the first control can be spliced ​​with the first screenshot to obtain a screenshot corresponding to the second interface.

[0194] In addition, after completing the screenshot operation on the second interface, the electronic device can restore the display of the first control in the second interface so that the screenshot input does not affect the subsequent display of the second interface.

[0195] The first screenshot obtained in this way is obtained by splicing the display content of the first control and the second screenshot, so that the display content of the first control is independent of the second screenshot. In this way, the second interface can be fully displayed, thereby improving the display effect of the screenshot.

[0196] In some embodiments of the present application, the method may further include:

[0197] receiving a fourth input to the first control;

[0198] In response to the fourth input, the first window is displayed in a floating manner.

[0199] The fourth input may be a selection input for the first control. The fourth input may be, but is not limited to, a drag input.

[0200] In this embodiment, the electronic device can, in response to a selection input of the first control, suspend and display the first window including the first control, regardless of how the display interface of the electronic device is switched.

[0201] In this way, compared to the related art in which the first control is only displayed in a certain interface, the embodiment of the present application can trigger the floating display of the first control by executing input on the control, which not only enriches the response processing method of the control, improves the flexibility of control processing, but also improves the calling efficiency of the control.

[0202] It should be noted that, in some embodiments, optionally, the floating display of the first window includes:

[0203] When the electronic device enters the lock screen state, the first window is displayed in a floating manner.

[0204] In this embodiment, even if the electronic device enters the lock screen state, the electronic device can still display the first control in a floating manner, thereby improving the display flexibility of the first control.

[0205] By executing input on the first control, the floating display of the first window including the first control can be triggered. In this way, the response processing methods of the control are enriched and the flexibility of the control processing is improved.

[0206] The first window is described in detail below.

[0207] In some embodiments, the first control is a control in the third interface of the first application; and the floating display of the first window may include:

[0208] Floating and displaying a first window corresponding to the first application, wherein a size of the first window matches a size of the first control;

[0209] The third interface is translated and adjusted in the first window, and the first control is displayed in the first window.

[0210] In this embodiment, when the electronic device displays the third interface of the first application, if it receives a first input to the first control in the third interface, it can set the first application to be displayed as a small window in response to the first input, and display it floating in the first window corresponding to the first application. The size of the first window matches the size of the first control, and specifically, the size of the first window can be greater than or equal to the size of the first control.

[0211] After the first application enters the small window, the interface of the first application does not need to be scaled or redrawn, that is, the interface layout of the application still maintains the full-screen size. The electronic device can translate the third interface so that the small window of the first application, that is, the first window, can display the first control.

[0212] Since the first window is a window of the first application, the user can enter the first application through the first window, that is, the first window can serve as a new entrance to the first application, thus expanding the entry method of the first application.

[0213] In this embodiment, by triggering the first application to enter the small window, the floating display of the first control is realized, which can not only realize the floating display of the first control and improve the calling efficiency of the first control, but also expand the entry method of the first application and improve the startup flexibility of the application.

[0214] Of course, in other embodiments, the first window displayed in suspension may be a newly generated window. In this embodiment, the first window may be a window dedicated to displaying the first control, which is independent of the first application. In this way, the decoupling of the first control's suspension display from the first application can be achieved, which can improve the application flexibility of the control.

[0215] In some embodiments, the first window may further include a close control. The user may trigger the electronic device to close the first window by inputting the close control, thereby improving the control flexibility of the first window.

[0216] In some embodiments, the first window may further include an anchor control;

[0217] After the first window is suspended and displayed, the method further includes:

[0218] Receiving a fifth input to the anchor control on a fifth interface;

[0219] In response to the fifth input, establishing a third association relationship between the fifth interface and the first window;

[0220] When the first window is closed, if the display interface of the electronic device is switched to the fifth interface, the first window is displayed on the fifth interface.

[0221] In this embodiment, when the electronic device displays the fifth interface and the first window is displayed floating on the fifth interface, the user can establish a third association relationship between the fifth interface and the first window by inputting an anchor control of the first window.

[0222] In an embodiment of the present application, for an interface and a window that have a third association relationship, the electronic device can bind the path of the interface and the name of the control corresponding to the window and store them in a database. When the interface of the electronic device is switched, the electronic device can obtain the path of the current interface and search the database for the name of the control bound to the path of the current interface. If so, the window corresponding to the control can be displayed in a floating manner on the current interface. It can be seen that for an interface and a window that have a third association relationship, when the electronic device displays the interface, the window can be autonomously called up and displayed without executing the input for calling up the window, thereby improving the efficiency of calling up the window.

[0223] Taking the fifth interface and the first window having the third association relationship as an example, if the user closes the suspended first window before the electronic device displays the fifth interface, when the display interface of the electronic device switches to the fifth interface, the first window can be redisplayed on the fifth interface.

[0224] In this embodiment, by establishing a third association relationship between the interface and the window, when the electronic device displays the interface, the window bound to the interface can be autonomously called up and displayed without executing the input for calling up the window, thereby improving the efficiency of calling up the window.

[0225] It should be noted that the various optional embodiments introduced in the embodiments of the present application can be implemented in combination with each other or can be implemented separately if they do not conflict with each other, and the embodiments of the present application are not limited to this.

[0226] In order to facilitate understanding of the control processing method provided by the above embodiment, the above control processing method is described below with reference to some specific scenario embodiments.

[0227] Embodiment 1:

[0228] In the first embodiment, Figure 2 As shown, the control processing method may include the following steps:

[0229] Step 201: Long press the application interface control.

[0230] The user long presses a control on the application interface, such as Figure 3a As shown, the user can long press the "16:50 start flash sale" control on the first shopping application; or, as shown Figure 3b As shown, the user can long press the playback control on the music player; or, as shown Figure 3c As shown, the user can long press the clock control on the clock application. If the long press reaches a time threshold, such as 2 seconds, an operation pop-up window is displayed, that is, the aforementioned operation window.

[0231] Step 202: Click to select an operation option.

[0232] When the user long presses to trigger the maximum time threshold, an operation window appears. In an example, the operation window is as follows: Figure 4 As shown. The operation window may include "copy", "aggregate", "continue", and "paste" operation options. The user can choose to click an option, and the specific rules are as follows:

[0233] (1) When the user clicks the "Copy" operation option, step 203 is executed.

[0234] (2) When the user clicks the “Continue” operation option, step 204 is executed.

[0235] (3) When the user clicks the “aggregate” operation option, step 206 is executed.

[0236] (4) When the user clicks the “Paste” operation option, step 208 is executed.

[0237] Step 203: copy the instance of the control and save it temporarily.

[0238] When the user clicks the "Copy" operation option, the system copies the control, creates another instance of the control, and temporarily stores the control in memory. At this time, when the user continues to select a control, the "Continue", "Aggregate", and "Paste" operation options can be activated. The user's click, swipe, and other operations on the copied control will be synchronously distributed to the copied control by the system.

[0239] Step 204: Continue copying the control to a new control.

[0240] The user clicks the "Continue" operation option. For example, the user copies the weather control of the "Weather" application. At this time, the user long presses the close button of the "Alarm Clock" application. Figure 5a As shown in the figure, the user connects the weather control to the close button of the "Alarm Clock" application. At this time, the user can still continue to connect the control according to the above steps, such as Figure 5bAs shown, for example, a user enters a search keyword into the search control of the "News" application and continues to the rainy day image control of the "Weather" application. At this time, when the user continues from the weather control to the search control, the search keyword is automatically triggered.

[0241] For another example, if the user connects the surrounding scenic spots control of the "Travel" application to the sunny image control of the "Weather" application, when the user connects from the weather control to the scenic spots control interface of the "Travel" application, a list of surrounding scenic spots will be displayed.

[0242] Furthermore, when the connected control has multiple states, the connection to different interfaces can be defined according to the state of the connected control. For example, if the current connected weather control is in the rainy state, the system records a connection queue of [alarm off button->weather details control (rainy)->news search control]. For example, if the current connected weather control is in the sunny state, the system records a connection queue of [alarm off button->weather details control (sunny)->attractions].

[0243] Step 105, click to generate a subsequent control.

[0244] Click the currently generated continuation control, such as Figure 5c As shown in the figure, for example, when the alarm rings, the user clicks the alarm off button, triggering the alarm off event. At this time, the interface continues to the weather details interface of the "Weather" application, and the user can view the weather details. When the user continues to click the weather details control, the next level of connection is triggered, and the connection is now to the news hot list control of the "News" application. At this point, the entire connection process has been completed.

[0245] Step 206: Aggregate the copied controls into a new control.

[0246] The user clicks on the "aggregate" operation option. For example, after the user copies the "Start Flash Sale at 16:50" control in the first shopping application, he enters the second shopping application to aggregate the controls. It is worth noting that the "aggregate" option can only be activated if the user has completed the copying of a control in step 203.

[0247] At this time, the system reads the control instance copied by the user from the memory and obtains the currently selected control. At this time, the system adds the copied control instance to the currently selected control and treats it as a sibling control of the currently selected control. At this time, the two controls can be aggregated into a new control, such as Figure 6a and Figure 6b shown.

[0248] Clicking on the new aggregated control can trigger responses from multiple controls at the same time or in sequence. The specific rule is that the first aggregated control waits for the response result of the original control. If the original control click triggers the expected response result, the process ends. If the original control does not achieve the expected response result, a click event is sent to the first aggregated control.

[0249] like Figure 6b As shown, for example, a user can aggregate a phone contact control of the "Contacts" application into the "Voice Call" button of the "Instant Messaging Application". When the user clicks the "Voice Call" button of the "Instant Messaging Application" and there is no response, the click of the aggregated phone contact control is automatically triggered. At this time, when the voice call is not responded, the phone dialing operation is automatically initiated.

[0250] Step 207: Click the new control generated by aggregation.

[0251] In step 204, the user aggregates the flash sale button of the first shopping application into the flash sale button of the second shopping application. At this time, when the user clicks the new control generated by the aggregation in the second shopping application, the system distributes a click event to the flash sale button of the second shopping application, and at the same time the system distributes a click event to the flash sale button of the first shopping application. At this time, the purpose of operating two application controls at the same time can be achieved.

[0252] If in step 204, the user aggregates a phone contact control "155****1550" of the "Contacts" application to the "Voice Call" button of the "WeChat" application. When the user clicks the "Voice Call" button of the "WeChat" application and there is no response, the click of the aggregated phone contact control is automatically triggered. At this time, when the WeChat voice call is not responded, the phone dialing operation is automatically initiated.

[0253] The control processing method also includes the following steps:

[0254] Step 1: Paste the copied control into the new control.

[0255] For example, the user copied the weather control in the weather APP in steps 201 and 203. At this time, the user enters the map APP and chooses to paste the weather control to a certain location on the map APP interface. At this time, the weather control recognizes the area name of the current display location on the map interface. When the user drags his finger to switch the map position, the weather information of the current city location is updated in real time according to the currently displayed city location.

[0256] For example, if a user wants to travel along the route "City A - City B - City C", he needs to check the weather conditions of all the cities along the route. The user can copy a weather control to the map APP interface, such as Figure 7aAs shown, if the current location of the map is "city a", the weather component recognizes that the current control location map displays "city a", then the weather component updates the current weather to the weather information of city a. At this time, the user can continue to drag the current map interface, such as Figure 7b As shown in the figure, when the current location of the map is "city b", the pasted weather control displays "weather conditions of city b". The user can continue to drag the current map interface, such as Figure 7c As shown, when the current location of the map is "City C", the pasted weather control displays the weather conditions of "City C".

[0257] Step 2: Paste the control interface to trigger the screenshot.

[0258] like Figure 8a As shown in the figure, the user has pasted the weather control onto the destination control on the ticket details page of the "Ticket Purchase" APP. At this time, the weather conditions of different destinations will be dynamically displayed according to the changes in the destination on the current interface. If a screenshot is triggered on the current interface at this time, the pasted weather control will block the display interface of the current application. At this time, when the screenshot is triggered, the pasted control will be saved and removed from the current interface. The screenshot will be triggered again to obtain the current screenshot. At this time, the pasted control will be spliced ​​onto the current screenshot. The final screenshot is as follows Figure 8b shown.

[0259] Step 208: Paste the copied control to the lock screen interface.

[0260] For example, the user copied the playback control controls in the music software in step 201 and step 203, and the user locked the phone screen. The user can long press the phone screen, such as Figure 9a As shown, the coordinates (x, y) of the finger of the user pressing the screen for a long time are recorded. If the long press time threshold is reached, for example, 2s, the copied playback control is displayed at the (x, y) coordinate position on the lock screen. At this time, the mobile phone remains in a black screen state and only displays the copied playback control, thereby achieving a power saving effect, such as Figure 9b When the user clicks the pasted control, the system distributes a click event to the copied control, thereby achieving the purpose of switching songs through the copied control when the screen is turned off.

[0261] In the first embodiment, it is convenient for users to aggregate multiple controls into one control, and the operations on the aggregated control will be synchronized to multiple controls, so that users can complete the operations on multiple controls at the same time. It is possible to perform continuous operations on application controls, so that users can complete the control operations and information browsing of multiple applications at one control entrance. It is possible to paste application controls to the lock screen interface, so that users can complete the operations on application controls when the screen is locked, thereby achieving the purpose of power saving.

[0262] Embodiment 2

[0263] In the second embodiment, Fig.10 As shown, the control processing method may include the following steps:

[0264] Step 1001: Long press the application interface control.

[0265] The user long presses a control position on the interface, such as Figures 11a to 11d As shown, the user long presses the clock control of the clock APP or long presses the play control control on the music APP. If the long press reaches a time threshold, such as 2 seconds, a thick frame appears around the edge of the control to mark the control.

[0266] Step 1002: Drag and select the control.

[0267] For example, if the user long presses to select the clock control, the width and height of the long pressed clock control are recorded as (w, h), and the coordinates of the clock control in the current interface are recorded as (x, y). Fig.12a As shown, at this time, the user can continue to long press and drag the clock control. If the drag exceeds the distance threshold, such as 50px, step 1003 is executed.

[0268] Step 1003: The system sets the current application to be displayed in a small window.

[0269] The system sets the current clock application to display in a small window. At the same time, the system adjusts the size of the small window and sets the size of the small window to the size of the current long-pressed and dragged control (w,h).

[0270] Step 1004: Generate a widget window

[0271] The system adjusts the layout of the small window application by translation. At this time, after the current clock application enters the small window, the interface of the current application is not scaled and redrawn, that is, the application layout still maintains the full screen size. The system adjusts the layout coordinates of the small application layout and translates the application root layout to the left by x and upward by y. At this time, the small window can fully display the clock control that the user has long pressed. Figure 12b shown.

[0272] Step 1005: The application interface displays a small control window

[0273] For example, if a user drags the clock control of the clock APP according to the above steps to generate a small control window, then when entering other applications, the small control window will always be displayed. For example, if a user enters the concert ticket purchase interface of the ticket purchase APP, the interface will display a small clock window control, such as Fig.13 shown.

[0274] Step 1006: Turn off the screen to display the small control window

[0275] For example, the user drags the playback control of the music app according to the above steps to generate a small control window. At this time, when the lock screen is turned off, the small control window can still be displayed on the off screen, such as Fig.14 As shown, the user can operate the control window to switch songs and save power at the same time.

[0276] Step 1007, record the control window.

[0277] The user can choose to record the generated control window in a certain application interface, and directly display the control window the next time the interface is entered.

[0278] For example, a user-generated clock control window has an anchor button at the top of the window, such as Fig.15a As shown, when a user clicks this button on the concert ticket purchase interface of the ticket purchase APP, the package name and page path of the current application interface and the application name and control name corresponding to the control window will be recorded and stored in the database.

[0279] Step 1008: Generate a widget window.

[0280] When the user enters the concert ticket purchase page of the ticket purchase app next time, the current application name and interface path will be obtained, and then compared with the database. If it is retrieved that the user has previously recorded a clock control window on the concert ticket purchase page of the ticket purchase app, a clock control window will be directly generated on the current interface. Fig.15b shown.

[0281] In the second embodiment, it is convenient for users to drag the control of the application into a small window display, and the small window only displays the control, saving the small window space. It is possible to display the control small window when the screen is off, so that users can only operate a certain control of the application when the screen is off, thereby saving power. It is possible to record the control small window, and directly generate the control small window when entering the application interface next time, avoiding the user from regenerating the control small window.

[0282] The control processing method provided in the embodiment of the present application can be executed by a control processing device. In the embodiment of the present application, the control processing device provided in the embodiment of the present application is described by taking the control processing method executed by the control processing device as an example.

[0283] like Fig.16 As shown, the control processing device may include:

[0284] The first receiving module 1601 is used to receive a first input to a first control;

[0285] A first execution module 1602, configured to execute a first operation in response to the first input;

[0286] The first operation includes any one of the following:

[0287] In the case where a first association relationship is established between the first control and the second control, a first event corresponding to the first control and a second event corresponding to the second control are executed;

[0288] In the case where a second association relationship is established between the first control and a third control in the first interface, displaying the first interface;

[0289] In the case where the first input is a paste input of the first control received on the second interface, a fourth control is displayed on the second interface, and a function of the fourth control is the same as that of the first control.

[0290] In some embodiments, the apparatus further comprises:

[0291] A second receiving module, used for receiving a second input to the first control;

[0292] A first display module, configured to display at least one operation option in response to the second input;

[0293] A third receiving module, configured to receive a third input of a first operation option among the at least one operation option;

[0294] A second execution module, configured to execute a second operation corresponding to the first operation option in response to the third input;

[0295] The second operation includes any one of the following:

[0296] When the first operation option is an aggregation option and a copy input to the second control is received before the second input, establishing the first association relationship between the first control and the second control;

[0297] When the first operation option is a continuation option and a copy input to the third control is received before the second input, the second association relationship between the first control and the third control is established.

[0298] In some embodiments, the first control includes at least two display states;

[0299] The second execution module is specifically configured to establish the second association relationship between the first display state of the first control and the third control;

[0300] The first execution module includes:

[0301] A first acquisition unit, used to acquire a display state of the first control;

[0302] A first display unit, configured to display the first interface when the first control is in the first display state;

[0303] The second display unit is used to maintain displaying a third interface when the first control is in the second display state, wherein the third interface is a display interface of the electronic device when receiving the first input.

[0304] In some embodiments, the first execution module includes:

[0305] A second acquisition unit, configured to acquire trigger types for the first event and the second event;

[0306] A first execution unit, configured to execute a first event corresponding to a first control when the trigger type is a sequential trigger;

[0307] A second execution unit, configured to execute a second event corresponding to the second control when the execution of the first event fails;

[0308] The third execution unit is used to abandon the execution of the second event corresponding to the second control when the first event is executed successfully.

[0309] In some embodiments, the apparatus further comprises:

[0310] a determination module, configured to determine, when the second interface includes information related to display content of the fourth control, a positional relationship between a first display position of the fourth control and a second display position of the information;

[0311] An adjustment module is used to adjust the display content of the fourth control to correspond to the information when the position relationship indicates that the distance between the first display position and the second display position is less than a distance threshold.

[0312] In some embodiments, the apparatus further comprises:

[0313] A third execution module, configured to receive an interception input of the second interface;

[0314] A generation module is used to generate a first screenshot corresponding to the second interface in response to the interception input, when the display content of the second interface overlaps with the display content of the fourth control, wherein the first screenshot includes the second interface and the display content of the first control, and the display content of the second interface in the first screenshot does not overlap with the display content of the first control.

[0315] In some embodiments, the generating module comprises:

[0316] a hiding unit, configured to hide the first control in the second interface in response to an intercepted input;

[0317] A fourth execution unit, configured to execute a screenshot operation on the second interface to obtain a second screenshot corresponding to the second interface;

[0318] A splicing unit, configured to splice the display content of the first control with the second screenshot to obtain the first screenshot;

[0319] A restoration unit is used to restore the display of the first control in the second interface.

[0320] In some embodiments, the first receiving module is specifically configured to:

[0321] Receiving a paste input of the first control on the lock screen interface;

[0322] The first execution module is used to:

[0323] A fourth control is displayed on the lock screen interface.

[0324] In some embodiments, the apparatus further comprises:

[0325] A fourth receiving module, used for receiving a fourth input to the first control;

[0326] A second display module, configured to suspend and display a first window in response to the fourth input, wherein the first window includes the first control and an anchor control;

[0327] A fifth receiving module, configured to receive a fifth input to the anchor control on a fifth interface;

[0328] an establishing module, configured to establish, in response to the fifth input, a third association relationship between the fifth interface and the first window;

[0329] The third display module is used to display the first window on the fifth interface if the display interface of the electronic device is switched to the fifth interface when the first window is closed.

[0330] The control processing device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or it can be other devices other than the terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a car electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0331] The control processing device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0332] The control processing device provided in the embodiment of the present application can implement each process of the method embodiment, and will not be described again here to avoid repetition.

[0333] Alternatively, if Fig.17 As shown, an embodiment of the present application also provides an electronic device 1700, including a processor 1701 and a memory 1702, wherein the memory 1702 stores programs or instructions that can be executed on the processor 1701, and when the program or instructions are executed by the processor 1701, the various steps of the above-mentioned control processing method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not described here.

[0334] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0335] Fig.18 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.

[0336] The electronic device 1800 includes but is not limited to: a radio frequency unit 1801, a network module 1802, an audio output unit 1803, an input unit 1804, a sensor 1805, a display unit 1806, a user input unit 1807, an interface unit 1808, a memory 1809, and a processor 1810 and other components.

[0337] Those skilled in the art will appreciate that the electronic device 1800 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1810 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.18 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0338] The user input unit 1807 is used to receive a first input to the first control;

[0339] The processor 1810 is configured to execute a first operation in response to the first input;

[0340] The first operation includes any one of the following:

[0341] In the case where a first association relationship is established between the first control and the second control, a first event corresponding to the first control and a second event corresponding to the second control are executed;

[0342] In the case where a second association relationship is established between the first control and a third control in the first interface, displaying the first interface through the display unit 1806;

[0343] In the case where the first input is a paste input of the first control received on the second interface, a fourth control is displayed on the second interface through the display unit 1806, and the function of the fourth control is the same as that of the first control.

[0344] The electronic device 1800 provided in the embodiment of the present application can implement each process of the method embodiment, and will not be described again here to avoid repetition.

[0345] It should be understood that in the embodiment of the present application, the input unit 1804 may include a graphics processor (Graphics Processing Unit, GPU) 18041 and a microphone 18042, and the graphics processor 18041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 1806 may include a display panel 18061, and the display panel 18061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1807 includes a touch panel 18071 and at least one of other input devices 18072. The touch panel 18071 is also called a touch screen. The touch panel 18071 may include two parts: a touch detection device and a touch controller. Other input devices 18072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0346] The memory 1809 can be used to store software programs and various data. The memory 1809 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 1809 may include a volatile memory or a non-volatile memory, or the memory 1809 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 1809 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0347] The processor 1810 may include one or more processing units; optionally, the processor 1810 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 1810.

[0348] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned control processing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0349] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0350] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned control processing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0351] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0352] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned control processing method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0353] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0354] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0355] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A control processing method, characterized in that: include: Receiving a first input to a first control; In response to the first input, performing a first operation; The first operation includes any one of the following: In the case where a first association relationship is established between the first control and the second control, a first event corresponding to the first control and a second event corresponding to the second control are executed; In the case where a second association relationship is established between the first control and a third control in the first interface, displaying the first interface; In the case where the first input is a paste input of the first control received on the second interface, a fourth control is displayed on the second interface, and a function of the fourth control is the same as that of the first control.

2. The method according to claim 1, characterized in that Before receiving the first input to the first control, the method further includes: receiving a second input to the first control; In response to the second input, displaying at least one operation option; receiving a third input for a first operation option among the at least one operation option; In response to the third input, performing a second operation corresponding to the first operation option; The second operation includes any one of the following: When the first operation option is an aggregation option and a copy input to the second control is received before the second input, establishing the first association relationship between the first control and the second control; When the first operation option is a continuation option and a copy input to the third control is received before the second input, the second association relationship between the first control and the third control is established.

3. The method according to claim 2, characterized in that The first control includes at least two display states; The establishing the second association relationship between the first control and the third control includes: Establishing the second association relationship between the first display state of the first control and the third control; The displaying the first interface includes: Obtaining the display status of the first control; When the first control is in the first display state, displaying the first interface; When the first control is in the second display state, the third interface is maintained to be displayed, wherein the third interface is the display interface of the electronic device when the first input is received.

4. The method according to claim 1, characterized in that The executing a first event corresponding to the first control and a second event corresponding to the second control includes: Obtaining trigger types for the first event and the second event; When the trigger type is a sequential trigger, executing a first event corresponding to the first control; If the execution of the first event fails, executing a second event corresponding to the second control; When the first event is executed successfully, the execution of the second event corresponding to the second control is abandoned.

5. The method according to claim 1, characterized in that After the fourth control is displayed on the second interface, the method further includes: In a case where the second interface includes information related to the display content of the fourth control, determining a positional relationship between a first display position of the fourth control and a second display position of the information; When the position relationship indicates that the distance between the first display position and the second display position is less than a distance threshold, the display content of the fourth control is adjusted to correspond to the information.

6. The method according to claim 1, characterized in that After the fourth control is displayed on the second interface, the method further includes: Receiving intercepted input of the second interface; In response to the capture input, when the display content of the second interface overlaps with the display content of the fourth control, a first screenshot corresponding to the second interface is generated, wherein the first screenshot includes the second interface and the display content of the first control, and the display content of the second interface in the first screenshot does not overlap with the display content of the first control.

7. The method according to claim 6, characterized in that The step of generating a first screenshot corresponding to the second interface in response to the interception input includes: In response to the intercepted input, hiding the first control in the second interface; Execute a screenshot operation on the second interface to obtain a second screenshot corresponding to the second interface; splicing the display content of the first control with the second screenshot to obtain the first screenshot; The first control is restored and displayed in the second interface.

8. The method according to claim 1, characterized in that The receiving a first input to the first control includes: Receiving a paste input of the first control on the lock screen interface; The displaying the fourth control on the second interface includes: A fourth control is displayed on the lock screen interface.

9. The method according to claim 1, characterized in that: The method further comprises: receiving a fourth input to the first control; In response to the fourth input, a first window is displayed in a floating manner, wherein the first window includes the first control and an anchor control; Receiving a fifth input to the anchor control on a fifth interface; In response to the fifth input, establishing a third association relationship between the fifth interface and the first window; When the first window is closed, if the display interface of the electronic device is switched to the fifth interface, the first window is displayed on the fifth interface.

10. A control processing device, characterized in that: include: A first receiving module, used for receiving a first input to a first control; A first execution module, configured to execute a first operation in response to the first input; The first operation includes any one of the following: In the case where a first association relationship is established between the first control and the second control, a first event corresponding to the first control and a second event corresponding to the second control are executed; In the case where a second association relationship is established between the first control and a third control in the first interface, displaying the first interface; In the case where the first input is a paste input of the first control received on the second interface, a fourth control is displayed on the second interface, and a function of the fourth control is the same as that of the first control.

11. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the control processing method as claimed in any one of claims 1 to 9 are implemented.