Response method for electronic device, and electronic device and storage medium
By adding a physical button to the electronic device and supporting multiple operation modes, the problem of a single button function in the existing technology is solved, multi-functional operation in different scenarios is realized, and the user experience is improved.
Patent Information
- Application Number
- PCT/CN2024/079474
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-17
- Filing Date
- 2024-02-29
- Publication Date
- 2024-10-24
AI Technical Summary
The physical buttons of existing electronic devices have a single function and cannot implement multiple operations in different scenarios, limiting users' functional requirements and human-computer interaction experience.
By adding a physical button to an electronic device, users can click, long press, double-click, triple-click or a combination of key operations to bring up the shortcut bar and customize key operations to realize functions in different application scenarios, such as in game scenarios. Open message boxes, open commonly used applications in social chat scenarios, etc.
It improves the user's functional requirement satisfaction and human-computer interaction experience in various scenarios, and enhances the flexibility and convenience of key operations.
Smart Images

Figure CN2024079474_24102024_PF_FP_ABST
Abstract
Description
Response method of electronic device, electronic device and storage medium
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on April 17, 2023, with application number 202310458498.5 and application name “A response method of an electronic device, an electronic device and a storage medium”, the entire contents of which are incorporated by reference into this application. Technical Field
[0003] The present invention relates to the field of electronic technology, and in particular to a response method of an electronic device, an electronic device, and a storage medium. Background Art
[0004] Currently, electronic devices often have traditional physical buttons on one or both sides, such as volume buttons and power buttons. The volume buttons may include a volume up button and a volume down button. Users can achieve fixed functions by long-pressing, multiple-pressing, or combining the volume and power buttons. For example, pressing the volume down button and the power button simultaneously can take a screenshot. After users set the functions of the physical buttons, operating the buttons in different scenarios will only achieve a single fixed function and will not be able to perform other common operations.
[0005] Summary of the Invention
[0006] The embodiments of the present application provide a response method of an electronic device, an electronic device, and a storage medium, so as to meet the different functional requirements of users in various scenarios by operating buttons.
[0007] In a first aspect, an embodiment of the present application provides a response method for an electronic device, which is applied to an electronic device having a display screen and a first button, the method comprising: the electronic device displays a first user interface; the electronic device receives a first button operation acting on the first button; the electronic device responds to the first button operation by executing a first function or displaying a second user interface, the second user interface including a shortcut bar, and the shortcut bar including at least one commonly used service.
[0008] Based on this method, when a user needs to use a commonly used service, a first button operation is performed on the first button, such as clicking the button operation, to quickly call out the shortcut bar, so that the user can quickly find these commonly used services when they need to use them, thereby meeting the user's different functional needs in various scenarios and improving the user's human-computer interaction experience.
[0009] In some embodiments, the first user interface includes a main interface or an application interface of a first application, and the first application does not set a function corresponding to a custom key operation.
[0010] In some embodiments, the shortcut bar includes a first service, and the method further includes: the electronic device receives a first operation on the first service, and then displays a delete control in response to the first operation; the electronic device receives a second operation on the delete control; and in response to the second operation, deletes the first service from the shortcut bar. This facilitates the user to delete services from the shortcut bar as needed. For example, a user can delete a service from the shortcut bar if they decide they will not frequently use it.
[0011] In some embodiments, the shortcut bar includes a management control, and the method further includes: the electronic device receives a third operation acting on the management control, and then, in response to the third operation, displays a service list, the service list including at least one service; the electronic device receives a fourth operation acting on a first service, the first service being any one of the at least one service, and then, in response to the fourth operation, adds the first service to the shortcut bar. In this way, it is convenient for the user to add services to the shortcut bar as needed. For example, a service that the user believes will be used frequently and has not yet been added to the shortcut bar can be added to the shortcut bar through user operation.
[0012] In some embodiments, the method further includes: the electronic device receives a second key operation on the first key, and then closes the shortcut bar in response to the second key operation. In this way, the user can quickly close the shortcut bar when the shortcut bar is no longer needed.
[0013] In some embodiments, the shortcut bar includes a close control, and the method further includes: the electronic device receiving a touch operation on the close control, and then closing the shortcut bar in response to the touch operation. In this way, the user can quickly close the shortcut bar when the shortcut bar is no longer needed.
[0014] In some embodiments, the first button operation includes any one of the following operations: a click button operation; a long press button operation; a double-click button operation; a triple-click button operation; a combination button operation; wherein the combination button operation includes a combination operation of the power button, the volume up button, the volume down button, and at least two physical buttons among the first button.
[0015] In a second aspect, an embodiment of the present application provides a response method of an electronic device, which is applied to an electronic device having a display screen and a first button. The method includes: the electronic device displays a third user interface, the third user interface includes an application interface of a second application; receives a second button operation acting on the first button; in response to the second button operation, executes a first function, the first function being determined based on an application scenario corresponding to the third user interface, the second button operation, and a first corresponding relationship, the first corresponding relationship including a correspondence between a preset application scenario, a preset button operation, and a preset function.
[0016] Based on this method, the corresponding function can be determined in combination with the application scenario corresponding to the third user interface, the second button operation and the first corresponding relationship, thereby meeting the user's different functional requirements in various scenarios and improving the user's human-computer interaction experience.
[0017] In some embodiments, before receiving a second key operation acting on a first key, the method further includes: the electronic device displays a fourth user interface, the fourth user interface including a key function setting item; the electronic device receives a fifth operation acting on the key function setting item, and then, in response to the fifth operation, displays an application scenario list, the application scenario list including at least one application scenario; the electronic device receives a sixth operation acting on a first preset application scenario, the first preset application scenario being any application scenario in the application scenario list, and in response to the sixth operation, displays a fifth user interface, the fifth user interface including at least one preset key operation and a function option list corresponding to each preset key operation, the function option list including at least one preset function; the electronic device receives a seventh operation acting on a first preset function, the first preset function being any preset function in the function option list corresponding to the first preset key operation; and in response to the seventh operation, completes the setting of the correspondence between the first preset application scenario, the first preset key operation, and the first preset function. In this way, the user can customize the functions corresponding to different key operations in each application scenario.
[0018] In some embodiments, the first correspondence includes a correspondence between a first application scenario, a second key operation, and a function of opening a message bar; before receiving the second key operation acting on the first key, the method further includes: the electronic device receives a notification message, and the notification message is displayed floating on the first user interface. The electronic device responds to the second key operation and executes the first function, including: the electronic device responds to the second key operation and determines that the third user interface corresponds to the first application scenario; the electronic device executes the function of opening the message bar corresponding to the first application scenario and the second key operation, and after executing the function, the message bar corresponding to the notification message is displayed floatingly. In this way, when it is inconvenient for the user to open the message bar by touch operation in the display area where the notification message is located, the user can directly use the key operation to check the notification message.
[0019] In some embodiments, the first correspondence includes a correspondence between a second application scenario, a second button operation, and a function of opening a commonly used application; and the electronic device, in response to the second button operation, executing the first function includes: the electronic device, in response to the second button operation, determining that the third user interface corresponds to the second application scenario; executing the function of opening the commonly used application corresponding to the second application scenario and the second button operation, and floatingly displaying a sidebar after completing the execution of the function, the sidebar including at least one commonly used application. This facilitates users to quickly find commonly used applications.
[0020] In some embodiments, the first correspondence includes a correspondence between a third application scenario, a second button operation, and a function of opening an associated application; the electronic device, in response to the second button operation, executes the first function, including: the electronic device, in response to the second button operation, determining that the third user interface corresponds to the third application scenario; executing the third application scenario and the function of opening the associated application corresponding to the second button operation, and displaying a sixth user interface after completing the function, the sixth user interface including at least a third application associated with the third application scenario. In this way, when a user needs to view an associated application, they can quickly view the application interface of the associated application.
[0021] In some embodiments, the first correspondence includes a correspondence between a split-screen display scene, a second button operation, and a function of switching to a floating window display. Displaying the third user interface includes: displaying the application interface of the second application and the application interface of the third application in split screen on the display screen. In response to the second button operation, executing the first function includes: in response to the second button operation, determining that the third user interface corresponds to the split-screen display scene, then executing the split-screen display scene and the function of switching to a floating window display corresponding to the second button operation, and after executing the completion function, displaying the application interface of the second application in full screen on the display screen, and displaying the application interface of the third application in the floating window. In this way, when the user needs to switch the split-screen display to the floating window display, the switch can be conveniently performed through the button operation.
[0022] In some embodiments, the first correspondence includes a correspondence between a floating window display scene, a second button operation, and a function of switching to split screen display. Displaying the third user interface includes: displaying the application interface of the second application in full screen on the display screen, and displaying the application interface of the third application in the floating window. In response to the second button operation, executing the first function includes: determining that the third user interface corresponds to the floating window display scene in response to the second button operation; executing the floating window display scene and the function of switching to split screen display corresponding to the second button operation, and displaying the application interface of the second application and the application interface of the third application in split screen on the display screen after executing the completion function. In this way, when the user needs to switch the floating window display to split screen display, the switch can be conveniently performed through the button operation.
[0023] In some embodiments, the first correspondence includes a correspondence between a floating window display scene, a second button operation, and a function of switching display modes between applications. Displaying the third user interface includes: displaying the application interface of the second application in full screen on the display screen, and displaying the application interface of the third application in the floating window. In response to the second button operation, executing the first function includes: determining that the third user interface corresponds to the floating window display scene in response to the second button operation; then, executing the floating window display scene and the function of switching display modes between applications corresponding to the second button operation, and after executing the completion function, displaying the application interface of the second application in the floating window, and displaying the application interface of the third application in full screen on the display screen. In this way, when the user needs to switch between the application interface displayed in the floating window and the application interface displayed in full screen, the switch can be conveniently performed through button operation.
[0024] In some embodiments, the electronic device includes an inner screen and an outer screen; the first correspondence includes a correspondence between the inner screen display scene, the second button operation, and the function of pushing content from the inner screen to the outer screen; displaying a third user interface includes: the electronic device displays the third user interface on the inner screen, the third user interface including the first content; the electronic device executes the first function in response to the second button operation, including: the electronic device determines that the third user interface corresponds to the outer screen display scene in response to the second button operation; and displays the first content on the outer screen. In this way, pushing the first content to the convenient outer screen through the button operation makes it easier for the user to view the first content.
[0025] In some embodiments, the second button operation includes any one of the following operations: a click button operation; a long press button operation; a double-click button operation; a triple-click button operation; a combination button operation; wherein the combination button operation includes a combination operation of the power button, the volume up button, the volume down button, and at least two physical buttons among the first button.
[0026] In a third aspect, an embodiment of the present application further provides an electronic device comprising modules / units for executing the method of any embodiment of any of the above aspects. These modules / units may be implemented in hardware or in hardware executing corresponding software implementations.
[0027] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising a processor, a memory, a first button, and a display screen; the display screen is used to display a user interface; the first button is used to receive button operations; the memory is used to store one or more computer programs, and when the computer program is executed by the processor, the electronic device executes the method in the above-mentioned first aspect, second aspect, and any one of the embodiments from the first aspect to the second aspect.
[0028] In the fifth aspect, an embodiment of the present application also provides a computer-readable storage medium, which includes a computer program. When the computer program runs on an electronic device, the electronic device executes the method in any one of the above-mentioned first aspect, second aspect, and aspects from the first to the second aspect.
[0029] In a sixth aspect, an embodiment of the present application further provides a method comprising a computer program product, which, when run on a terminal, enables the electronic device to execute the method in any one of the embodiments of the first aspect, the second aspect, and the first aspect to the second aspect.
[0030] For the beneficial effects of the third to sixth aspects above, please refer to the beneficial effects of the first or second aspect and will not be repeated. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] FIG1 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;
[0032] FIG2A is a schematic diagram of a software structure of an electronic device provided in an embodiment of the present application;
[0033] FIG2B is a schematic diagram of software and hardware workflows of an electronic device provided in an embodiment of the present application;
[0034] FIG3 is a schematic diagram of a set of user interfaces provided in an embodiment of the present application;
[0035] 4A to 4E are schematic diagrams of a set of user interfaces provided in an embodiment of the present application;
[0036] FIG5 is a flowchart of a response method of an electronic device provided in an embodiment of the present application;
[0037] 6A to 6D are schematic diagrams of a set of user interfaces provided in an embodiment of the present application;
[0038] 7A-7B are schematic diagrams of a set of user interfaces provided in an embodiment of the present application;
[0039] 8A-8B are a set of user interface schematic diagrams provided in an embodiment of the present application;
[0040] 9A to 9E are schematic diagrams of a set of user interfaces provided in an embodiment of the present application;
[0041] 10A-10B are schematic diagrams of a set of user interfaces provided in an embodiment of the present application;
[0042] 11A-11B are schematic diagrams of a set of user interfaces provided in an embodiment of the present application;
[0043] 12A-12B are schematic diagrams of a set of user interfaces provided in an embodiment of the present application;
[0044] 13A to 13D are schematic diagrams of a set of user interfaces provided in an embodiment of the present application;
[0045] 14A to 14C are schematic diagrams of a set of user interfaces provided in an embodiment of the present application;
[0046] FIG15 is a flowchart of a response method of an electronic device provided in an embodiment of the present application;
[0047] FIG16 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0048] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. The terms used in the following embodiments are only for the purpose of describing specific embodiments and are not intended to be limiting of the present application. As used in the specification and appended claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include expressions such as "one or more", unless there is a clear contrary indication in the context. It should also be understood that in the embodiments of the present application, "one or more" refers to one, two or more; "and / or" describes the association relationship of associated objects, indicating that three relationships may exist; for example, A and / or B can represent: the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A and B can be singular or plural. The character " / " generally indicates that the related objects before and after are in an "or" relationship.
[0049] References to "one embodiment" or "some embodiments" in this specification mean that a particular feature, structure, or characteristic described in conjunction with that embodiment is included in one or more embodiments of the present application. Thus, phrases such as "in one embodiment," "in some embodiments," "in other embodiments," and "in yet other embodiments" appearing in various places in this specification do not necessarily refer to the same embodiment, but rather mean "one or more but not all embodiments," unless otherwise specifically emphasized. The terms "including," "comprising," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.
[0050] The "multiple" involved in the embodiments of the present application means greater than or equal to two. It should be noted that in the description of the embodiments of the present application, the words "first" and "second" are only used for the purpose of distinguishing the description and cannot be understood as indicating or implying relative importance or order.
[0051] This application provides a response method for an electronic device, an electronic device, and a storage medium for satisfying different functional requirements of users in various scenarios by operating keystrokes. The method and the electronic device are based on the same technical concept. Since the method and the electronic device solve similar problems, the implementation of the electronic device and the method can refer to each other, and the repeated parts will not be repeated.
[0052] In the solution provided in the embodiment of the present application, by adding a physical button to the electronic device, for the convenience of the following description, the newly added physical button is referred to as the first button in the following embodiments. The user can set different preset button operations for the first button, and each preset button operation can be used to control different functions of the electronic device in different scenarios. Take the preset button operation as an example of a click operation on the first button. For example, in a scenario where the electronic device displays the main interface, the electronic device receives a click operation on the first button, and in response to the click operation, displays a first window. The first window includes an application that can use the button operation to implement a shortcut function; for example, in a scenario where the electronic device receives a notification message from a social software when displaying a game interface, the electronic device receives a click operation on the first button, and in response to the click operation, displays a chat window of the social software in a floating manner. In this way, by performing preset button operations on the first button, the different functional requirements of the user in various scenarios can be met.
[0053] The following introduces an electronic device, a graphical user interface (GUI) for such an electronic device, and an embodiment for using such an electronic device. In some embodiments of the present application, the electronic device is a device configured with a display screen and a first button, and can perform a response method of the electronic device through the display screen and the first button. For example, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a netbook, a car-mounted device, and a business intelligent terminal (including: videophone, conference desktop intelligent terminal, etc.), a personal digital assistant (PDA), an augmented reality (AR) / virtual reality (VR) device, etc. The electronic device includes a device capable of realizing data processing functions (such as a processor, or an application processor, or an image processor, or other processors), and a device capable of displaying a user interface (such as a display screen). Exemplary embodiments of the electronic device include but are not limited to a device equipped with Or devices with other operating systems. The above-mentioned electronic device may also be other portable devices, such as a laptop computer with a touch-sensitive surface (e.g., a touch panel). It should also be understood that in some other embodiments of the present application, the above-mentioned electronic device may not be a portable electronic device, but a desktop computer with a touch-sensitive surface (e.g., a touch panel). The embodiments of the present application do not limit the specific form of the electronic device.
[0054] The structure of the electronic device is further described with reference to the accompanying drawings.
[0055] FIG1 is only a schematic diagram of the hardware structure of an electronic device 100 provided in an embodiment of the present application. Based on the structure shown in FIG1 , other variant structures may exist. As shown in FIG1 , the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include one or more of the following: a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0056] The following is a detailed introduction to the components of the electronic device 100 shown in FIG1 .
[0057] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). Different processing units may be independent devices or integrated into one or more processors. In some embodiments, the electronic device 100 may also include one or more processors 110. The processor is the nerve center and command center of the electronic device 300. The processor may generate an operation control signal based on the instruction opcode and the timing signal to complete the control of instruction fetching and execution.
[0058] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory, thereby avoiding repeated accesses and reducing processor 110 latency, thereby improving system efficiency.
[0059] In some embodiments, the processor 110 may include one or more interfaces. For example, the interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface. It is understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is only a schematic illustration and does not constitute a structural limitation of the electronic device 100.
[0060] The charging management module 140 is configured to receive charging input from a charger. The power management module 141 is configured to connect the battery 142, the charging management module 140, and the processor 110. The wireless communication function of the electronic device 100 can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, a modem processor, and a baseband processor.
[0061] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.
[0062] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0063] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0064] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0065] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150 , and antenna 2 is coupled to wireless communication module 160 , so that electronic device 100 can communicate with the network and other devices through wireless communication technology.
[0066] The electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor. The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLed, a Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include one or N display screens 194, where N is a positive integer greater than one.
[0067] In some other embodiments, the electronic device 100 can implement the shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
[0068] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 via the external memory interface 120 to implement data storage functions. For example, files such as music and videos can be stored on the external memory card.
[0069] The internal memory 121 can be used to store computer executable program code, which includes instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system and an application required for at least one function. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121 and / or instructions stored in a memory provided in the processor.
[0070] The electronic device 100 can implement audio functions such as music playback and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0071] The electronic device 100 can receive input from the button 190 and generate key signal input related to the user settings and function control of the mobile phone 100. For example, the button 190 may include a power button, a volume up button, a volume down button, etc. set on the right side of the electronic device. In an embodiment of the present application, the button 190 may also include a first button set on the electronic device. The first button can be used to implement a corresponding customized function using an operation gesture set by the user in different scenarios. The first button can be set on the side of the electronic device, such as the left side, or on the right side. The first button can also be set at other positions of the electronic device. The present application does not limit the specific location of the first button. The name of the first button can also be a smart button, a function button, a shortcut button, a customized button or other names. The present application does not limit the name of the first button. The following embodiments are explained by taking the first button as an example.
[0072] Although not shown in FIG. 1 , the electronic device 100 may further include a Bluetooth device, a positioning device, a flashlight, a micro-projection device, a near field communication (NFC) device, etc., which are not described in detail here.
[0073] It is understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than those shown in FIG1 , or may combine or separate certain components, or may have different component arrangements. The components shown in FIG1 may be implemented in hardware, software, or a combination of software and hardware.
[0074] The following embodiments can all be implemented in the electronic device 100 having the above hardware structure.
[0075] The software system of the electronic device can adopt a layered architecture, event-driven architecture, micro-core architecture, micro-service architecture, or cloud architecture. system) as an example to illustrate the software structure of the electronic device.
[0076] Figure 2A exemplarily shows a schematic diagram of the layered software structure of an electronic device provided in an embodiment of the present application. The layered architecture divides the software system of the electronic device into several layers, each layer having a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into layers, namely, the application layer (applications), the application framework layer (framework, FWK), the Android runtime (Android runtime) and the system library, and the kernel layer. The embodiment of the present application does not limit the layering of the software structure of the electronic device. It should be understood that Figure 2A also adds the hardware layer in the electronic device on the basis of the Android system.
[0077] It should be understood that the modules included in each layer shown in Figure 2A are modules involved in the embodiments of the present application. The modules included in the following layers do not constitute a limitation on the structure of the electronic device and the hierarchy of module deployment (illustrative examples). In some embodiments, the modules shown in Figure 2A can be deployed separately, or several modules can be deployed together. The division of modules in Figure 2A is an example. In some embodiments, the names of the modules shown in Figure 2A are illustrative examples.
[0078] The application layer may include a series of application packages. The application layer may include but is not limited to: camera, gallery, calendar, call, map, navigation, Bluetooth, music, video, settings, short message and other applications. In some embodiments, the application layer also includes a desktop launcher (Launcher). Launcher is the desktop launcher in the Android system, and the user interface (UI) of the Android system is collectively referred to as Launcher. Among them, the user interface may include icons of various applications installed on the electronic device. Exemplarily, the user interface includes a phone icon, an email icon, a calendar icon, a camera icon, etc., and users can start the corresponding application by clicking on these shortcut icons.
[0079] The application framework layer can provide an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer can include some predefined functions.
[0080] As shown in FIG2A , the application framework layer may include: a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and an input manager, etc.
[0081] The window manager manages windowed applications. It can obtain the display size, determine whether a status bar is present, lock the screen, and take screenshots. Content providers store and retrieve data and make it accessible to applications. This data can include video, images, audio, incoming and outgoing calls, browsing history and bookmarks, and the phone book. The window manager can include a PhoneWindowManager.
[0082] The view system includes visual controls, such as those for displaying text and images. The view system is used to build applications. A display interface can consist of one or more views. For example, a display interface containing a text notification icon might include a view for displaying text and a view for displaying images.
[0083] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including answering, hanging up, etc.).
[0084] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0085] The Notification Manager allows applications to display notifications in the status bar. These messages can be displayed briefly and then disappear automatically without user interaction. For example, the Notification Manager is used to notify users of completed downloads and message reminders. The Notification Manager can also display notifications in the top status bar of the system as icons or scrolling text, such as notifications from background applications, or as dialog windows on the screen. Examples include text messages in the status bar, beeps, vibrations on electronic devices, and flashing indicator lights.
[0086] Input managers can include EventHub, InputReader, and InputDispatcher.
[0087] The Android runtime includes the core library and the virtual machine. The Android runtime is responsible for scheduling and management of the Android system.
[0088] The core library consists of two parts: one containing the Java language's callable functions and the other the Android core library. The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files in the application layer and application framework layer as binary files. The virtual machine manages object lifecycles, stack management, thread management, security and exception management, and garbage collection.
[0089] The system library can include multiple functional modules, such as a surface manager, media libraries, a 3D graphics processing library (such as OpenGL ES), and a 2D graphics engine (such as SGL).
[0090] The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
[0091] The media library supports playback and recording of a variety of common audio and video formats, as well as static image files. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0092] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0093] A 2D graphics engine is a drawing engine for 2D drawings.
[0094] The kernel layer is the layer between hardware and software. The kernel layer may include hardware drivers, which are used to drive hardware operations. As shown in Figure 2A, the driver layer may include: display driver, camera driver, audio driver, and sensor driver.
[0095] The hardware layer may include various hardware in the electronic device. For example, the hardware layer may include a display screen, a first button, and various sensors, such as a touch sensor.
[0096] The key event processing flow is exemplarily described below with reference to FIG. 2A .
[0097] As an example, an electronic device can receive a key operation for a first key in the hardware layer, which can be an operation such as clicking the first key, long pressing the first key, double-clicking the first key, or triple-clicking the first key. As shown in Figure 2B, the first key is pressed, and the first key detects the key operation. The electronic device reports an input event to the application layer through the TP driver in the kernel layer. The input event is a key event. EventHub calls the EventHub::getEvents() function to read the event. The read key event can be put into a buffer, and the key event is processed by InputReader.
[0098] After reading the key event, InputReader calls the processEventLocked() function to process the event. After the processEventLocked() function is completed, InputReader calls the KeyboardInputMapper::process function to process the key event. In InputDevice, many InputMappers are stored. Each InputMapper corresponds to a type of Device, such as Touch, Keyboard, Vibrator, etc. Calling the process function of InputDevice is to pass the Input event to each InputMapper. The matching InputMapper will process the Input event, and the unmatched will be ignored. In the embodiment of the present application, the Input event is a key event, and the matching InputMapper is KeyboardInputMapper, so the process function passes the key event to KeyboardInputMapper and calls processKey to process the key event. For example, the case event is pre-processed to obtain records of pressing (down) and lifting (up) and logical judgments, and the relevant information of the case event is encapsulated into NotifyKeyArgs.
[0099] After that, call InputDispatcher::notifyKey to process the key event, such as encapsulating NotifyKeyArgs and keyCode, flag, metaState, etc. into KeyEvent. InputDispatcher intercepts and filters the event. If the input event is a key event, the KeyEvent is handed over to PhoneWindowManager. PhoneWindowManager intercepts the event according to the strategy before putting it into the event queue, and identifies the user scenario through iaware. Then, according to the user scenario and the key operation type corresponding to the key event, it determines the function to be executed and executes the function.
[0100] The following describes some exemplary user interfaces (UIs) provided by the electronic device 100. The user interface involved in this application can be presented on a display screen. It is a medium interface for interaction and information exchange between an application or an operating system and a user. It can realize the conversion between the internal form of information and the form acceptable to the user. The commonly used form of user interface is a graphical user interface (GUI), which refers to a user interface related to computer operations that is displayed in a graphical manner. It can be an interface element such as an icon, window, or control displayed on the display screen of an electronic device, where the control can include visual interface elements such as icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, and widgets.
[0101] FIG. 3 shows a schematic diagram of a user interface 200 displayed on the electronic device 100 .
[0102] As shown in Figure 3, the user interface 300 is the main interface of the electronic device. The user interface 300 may include a status bar 301, a hidden navigation bar 302, a time and weather widget 303, and icons for various applications, such as a WeChat icon, a gallery icon, and a short message icon. The status bar 301 includes the operator name (e.g., China Mobile), the mobile network (e.g., 4G), the time, and the remaining battery life. The navigation bar 302 may include a back button icon, a home button icon, and a forward button icon. In addition, it is understood that in some embodiments, the status bar 301 may also include a Bluetooth icon, a Wi-Fi icon, an alarm clock icon, and icons for external devices. It is also understood that in other embodiments, the user interface 300 shown in Figure 3 may also include a dock bar 304, which may include commonly used application icons, such as the phone icon, settings icon, browser icon, and Weibo icon shown in Figure 3. When the processor 110 detects a touch event of a user's finger (or stylus, etc.) on an application icon, it opens the user interface of the application corresponding to the application icon in response to the touch event and displays the user interface of the application on the display screen 194.
[0103] It should be understood that FIG3 merely illustrates a user interface on the electronic device 100 and does not constitute a limitation on the embodiments of the present application.
[0104] The electronic device involved in the embodiments of the present application adds at least one physical button. For example, as shown in Figure 3, the electronic device includes a power button 305 and a volume button 306, and may also include a first button 307. The first button 307 can be used to control different functions of the electronic device using preset button operations set by the user in different scenarios.
[0105] It should be understood that the first button 307 can be located on any side of the electronic device 100. For example, FIG3 exemplarily shows that the first button 307 is located on the same side of the electronic device 100 as the power button 305 and the volume button 306. When the user holds the electronic device in the right hand, the user can use the right thumb to press the first button 307 to realize the corresponding function. In other embodiments, the first button 307 and the power button 305 and the volume button 306 can also be located on different sides of the electronic device 100. This application does not limit the specific location of the first button.
[0106] In an embodiment of the present application, the user can operate the first button to implement the corresponding function. For example, by operating the first button, the electronic device can execute any one of the smart screen recognition function, screenshot function or call out voice assistant function.
[0107] In an embodiment of the present application, a shortcut bar can be called up by operating the first button, and the shortcut bar can include at least one commonly used service. When a user needs to use a commonly used service in the electronic device, the first button can be operated to call up the shortcut bar, thereby allowing the user to quickly and conveniently find the commonly used service.
[0108] Exemplarily, the electronic device displays the main interface 300 as shown in FIG3 , and the user performs a key operation on the first button 307, such as a click operation on the first button. In response to the click operation, the electronic device displays the user interface shown in FIG4A , which may include a shortcut bar 401. The shortcut bar 401 may be displayed floating above the main interface. The shortcut bar 401 may include an icon of at least one commonly used service, such as the Alipay payment code icon, the Alipay ride code icon, the scan icon, the flashlight icon, the one-key clear screen icon, the read screen icon, and the weather forecast icon as shown in FIG4A . The user can operate the icons of commonly used services to use the functions of the commonly used services. Taking the weather forecast icon 402 in FIG4A as an example, when the electronic device receives an operation (such as a click operation) on the weather forecast icon 402, the weather forecast application interface is displayed in response to the operation, and then the user can touch the weather forecast application interface to use the weather forecast function. Through this example, when the user needs to use these commonly used services, the first button can be clicked to quickly call out the shortcut bar 401, so that the user can quickly find these commonly used services when they need to use them, thereby meeting the user's different functional needs in various scenarios and improving the user's human-computer interaction experience.
[0109] It should be understood that the shortcut bar 401 may include more or fewer icons of commonly used services. The example shown in FIG4A does not limit the number of icons of commonly used services included in the shortcut bar 401, nor does it limit the types of commonly used services. In an embodiment of the present application, the number of icons corresponding to commonly used services that can be displayed in the shortcut bar 401 is limited. For example, the shortcut bar 401 can display 9 icons. If the shortcut bar 401 includes many commonly used services, such as the shortcut bar 401 includes 15 commonly used services, then the shortcut bar 401 cannot display the icons of all commonly used services at once, and can only display the icons of 9 commonly used services at a time. In this case, the shortcut bar 401 can be operated (such as sliding up or down) to scroll the icons of commonly used services in the shortcut bar 401.
[0110] In some embodiments, the user can also manage the commonly used services included in the shortcut bar 401 through operations, such as adding commonly used services to the shortcut bar 401. The shortcut bar 401 can also include at least one control, such as the management control 403 shown in Figure 4A. When the electronic device receives an operation (such as a click operation) acting on the management control 403, it displays a user interface as shown in Figure 4B in response to the operation. The user interface includes a service list 404. The service list 404 can be displayed in a floating manner above the main interface and the shortcut bar 401. The service list 404 can be displayed on a partial display area on the display screen as shown in Figure 4B, or it can be displayed in full screen, which is not limited here.
[0111] As shown in Figure 4B, the service list 404 can include various services, such as but not limited to maps, playing music, listening to books, translation, contacts and other services. The user can select a service from the service list 404 and add it to the shortcut bar 401. The service list 404 can also include a selection box corresponding to each service. The user can operate the selection box to select the service corresponding to the selection box and add it to the shortcut bar 401. For example, when the electronic device receives an operation on the selection box 405 corresponding to the translation service, such as a click operation, the translation service is selected. The service list 404 can also include a completion control 406. After the user selects the service to be added, the selected service can be added to the shortcut bar 401 by operating the completion control 406. For example, after selecting the translation service, when the electronic device receives an operation on the completion control 406, such as a click operation, the electronic device adds the translation service to the shortcut bar 401 in response to the click operation and displays the user interface shown in Figure 4C. Compared with the shortcut bar 401 in Figure 4A, the shortcut bar 401 in Figure 4C has a translation icon 407. In the embodiment of the present application, other services may be added to the shortcut bar 401 with reference to the interface change process of Figures 4A to 4C, which will not be listed here one by one.
[0112] In some embodiments, the user can also delete the frequently used services in the shortcut bar 401 through an operation. Taking deleting the weather forecast service in the shortcut bar 401 as shown in Figure 4A as an example, when the electronic device receives an operation on the weather forecast icon 402, such as a long press operation, the electronic device responds to the long press operation and displays a user interface as shown in Figure 4D, which includes a delete control 408 corresponding to the weather forecast service. When the electronic device receives an operation on the delete control 408, such as a click operation, the electronic device responds to the click operation and deletes the weather forecast icon 402 from the shortcut bar 401. The electronic device displays a user interface as shown in Figure 4E. Compared with the shortcut bar 401 in Figures 4A and 4D, the shortcut bar 401 in the user interface shown in Figure 4E does not include the weather forecast icon 402. Combined with the examples shown in Figures 4A, 4D and 4E, it is convenient for users to delete infrequently used services from the shortcut bar 401.
[0113] The above shows an example of operating a single frequently used service, such as a long press operation, to delete a single frequently used service in the shortcut bar 401. In some embodiments, an operation is performed on the shortcut bar 401, such as a long press operation on any area in the shortcut bar. In response to the long press operation, a delete control corresponding to each frequently used service is displayed. The user can operate the delete controls of multiple frequently used services, thereby deleting multiple frequently used services from the shortcut bar 401 at one time.
[0114] In some embodiments, it is also possible to integrate two sub-controls, add and delete, in the management control 403. When the electronic device receives an operation on the management control 403, such as a click operation, the add sub-control and the delete sub-control are displayed. When the electronic device receives an operation on the add sub-control, such as a click operation, the service list 404 shown in Figure 4B is displayed; when the electronic device receives an operation on the delete sub-control, such as a click operation, the commonly used service list is displayed. The commonly used service list includes all the commonly used services in the shortcut bar and the selection box corresponding to each service. If the user wants to delete the weather forecast service, he selects the selection box corresponding to the weather forecast service, thereby deleting the weather forecast service from the shortcut bar 401.
[0115] In the above embodiment, the electronic device receives a key operation on the first button 307 when the main interface is displayed, thereby opening the shortcut bar 401. In the embodiment of the present application, the key operation for opening the shortcut bar 401 may include, but is not limited to, any of the following: a click operation, a long press operation, a double-click operation, a triple-click operation, and a combination of key operations on the first button 307, wherein the combination of key operations may be a combination of key operations on at least one physical button among the power button, the volume up button, the volume down button, and the first button, and the present application does not impose any restrictions on this.
[0116] In some embodiments, for applications in the electronic device that do not have functions corresponding to key operations, when the electronic device displays the application interface of any application, the electronic device can respond to a key operation on the first button 307, such as clicking the key operation, to open the shortcut bar 401. The embodiment of the present application does not limit the scenario for opening the shortcut bar 401.
[0117] In the above embodiment, after the shortcut bar 401 is opened, if the shortcut bar 401 is no longer needed, the shortcut bar 401 can be closed through user operation, and the electronic device will no longer display the shortcut bar 401.
[0118] In some embodiments, the shortcut bar 401 can be closed by performing a key operation on the first button. For example, when the electronic device displays the user interface shown in Figure 4D, the user interface includes the shortcut bar 401. When the electronic device receives a key operation on the first button, such as a click operation, the shortcut bar 401 is closed in response to the click operation. At this time, the displayed user interface does not include the shortcut bar 401.
[0119] In some embodiments, the shortcut bar 401 may include a close control. By performing a touch operation on the close control, such as a click operation on the close control, the electronic device closes the shortcut bar 401 in response to the click operation.
[0120] In one implementation, after opening the shortcut bar 401, the shortcut bar 401 can be set to automatically close or hide after a period of inactivity. For example, after the user performs the last operation on the shortcut bar 401, if no operation is performed for 10 seconds, the electronic device can automatically close the shortcut bar 401. Then, when the shortcut bar 401 is needed, it can be opened by pressing the first button. In this way, the shortcut bar 401 is automatically closed or hidden when not in use, so as not to block other content displayed on the display screen of the electronic device. In addition, there is no restriction on the size and display position of the shortcut bar 401 on the user interface.
[0121] Referring to FIG. 5 , a flow chart of a response method of an electronic device provided in an embodiment of the present application is exemplarily shown. The method is executed by an electronic device having a display screen and a first button.
[0122] Step 501: The electronic device displays a first user interface.
[0123] Here, the first user interface may be a main interface, for example, the main interface 300 shown in Figure 3. The first user interface may also be an application interface of a first application, and the first application does not set a function corresponding to a custom key operation.
[0124] Step 502: The electronic device receives a first key operation on a first key.
[0125] Among them, the first button operation includes but is not limited to any of the following operations: click button operation; long press button operation; double-click button operation; triple-click button operation; combination button operation; among them, the combination button operation includes a combination operation of the power button, volume up button, volume down button and at least two physical buttons among the first button.
[0126] In an embodiment of the present application, the click button operation acting on the first button can be an operation of clicking the first button once; the long press button operation acting on the first button can be an operation of long pressing the first button; the double-click button operation acting on the first button can be understood as an operation of clicking the first button twice in a row, and the interval between the two clicks is less than the preset duration; the triple-click button operation acting on the first button can be understood as an operation of clicking the first button three times in a row, and the interval between two adjacent clicks in the three clicks is less than the preset duration.
[0127] Step 503: The electronic device displays a second user interface in response to the first key operation, where the second user interface includes a shortcut bar, and the shortcut bar includes at least one frequently used service.
[0128] Taking the first user interface as the main interface 300 shown in FIG. 3 and the first button as the click button operation in the above example as an example, the second user interface may be the user interface shown in FIG. 4A .
[0129] In an embodiment of the present application, when a user needs to use a commonly used service, a first button operation is performed on the first button, such as clicking the button operation, to quickly call out the shortcut bar, so that the user can quickly find these commonly used services when they need to use them, thereby meeting the user's different functional needs in various scenarios and improving the user's human-computer interaction experience.
[0130] In some embodiments, the shortcut bar includes a first service, such as the weather forecast service in the shortcut bar 401 shown in FIG4A . The electronic device may also receive a first operation acting on the first service, such as a long press operation, and then display a delete control in response to the first operation, such as the delete control 408 shown in FIG4D . Afterwards, the electronic device receives a second operation acting on the delete control, such as a click operation, and then deletes the first service in the shortcut bar in response to the second operation. In this way, it is convenient for the user to delete one or more services in the shortcut bar as needed. For example, a service that the user believes will not be frequently used in subsequent use can be deleted from the shortcut bar.
[0131] In some embodiments, the shortcut bar includes a management control, and the method further includes: the electronic device receives a third operation acting on the management control, the management control is such as the management control 403 shown in Figure 4A, the third operation is such as a click operation, and then in response to the third operation, a service list is displayed, the service list includes at least one service, and the service list is such as the service list 404 shown in Figure 4B; the electronic device receives a fourth operation acting on the first service, the first service is any one of the at least one service, the first service is such as the translation service shown in Figure 4B, and then in response to the fourth operation, the first service is added to the shortcut bar, at this time, the shortcut bar includes the translation service. In this way, it is convenient for users to add services to the shortcut bar as needed. For example, services that users think they will use frequently and have not yet been added to the shortcut bar can be added to the shortcut bar through user operations.
[0132] In some embodiments, the electronic device may also receive a second key operation on the first key, such as a click operation on the first key, and then close the shortcut bar in response to the second key operation. For example, when the electronic device displays the shortcut bar 401 shown in Figure 4C, Figure 4D, or Figure 4E, and receives a click operation on the first key, the shortcut bar 401 is closed, and the main interface 300 shown in Figure 3 is displayed. In this way, the user can quickly close the shortcut bar when the shortcut bar is no longer needed.
[0133] In some embodiments, the shortcut bar includes a close control, and the method further includes: the electronic device receiving a touch operation on the close control, and then closing the shortcut bar in response to the touch operation. In this way, the user can quickly close the shortcut bar when the shortcut bar is no longer needed.
[0134] In some embodiments, different functions can be implemented for different key operations in different scenarios. When the electronic device receives a key operation, it can determine the function corresponding to the key operation based on the current application scenario and the specific type of key operation, and execute the function. For example, in application scenario one, the electronic device can implement function one when receiving the first key operation. In application scenario one, the electronic device can implement function two when receiving the second key operation. In application scenario two, the electronic device can implement function three when receiving the first key operation.
[0135] The following describes in detail the functions corresponding to the key operations in different scenarios with reference to the accompanying drawings.
[0136] For example, the electronic device displays the main interface 300 as shown in Figure 3, and the main interface 300 includes an icon for the settings application. When the electronic device receives a user operation on the icon of the settings application, such as a click operation, the electronic device displays the interface 601 of the settings application as shown in Figure 6A in response to the click operation. The interface 601 of the settings application may include multiple setting items, including but not limited to WLAN, Bluetooth, mobile network, super terminal, more connections, desktop and wallpaper, display and brightness, sound and vibration, notification and status bar, smart button 602, auxiliary functions, etc.
[0137] When the electronic device receives an operation on the smart button 602 shown in FIG6A , for example, a click operation, the electronic device displays a user interface 610 as shown in FIG6B in response to the click operation. The user interface 610 includes an application scenario list 611. The application scenario list 611 includes at least one application scenario, such as, but not limited to, a gaming application scenario, a live broadcast application scenario, a video playback application scenario, a social chat application scenario, a navigation application scenario, a shopping application scenario, and a music playback application scenario. The user can set the function corresponding to each button operation for each application scenario.
[0138] Taking the live broadcast application scenario 612 shown in FIG6B as an example, when the electronic device receives an operation on the live broadcast application scenario 612, such as a click operation, the electronic device displays a user interface 620 as shown in FIG6C in response to the click operation. User interface 620 may include at least one key operation and a list of function options corresponding to each key operation. As shown in FIG6C , user interface 620 includes a click key operation and a list of function options 621 corresponding to the click key operation. User interface 620 also includes a long press key operation and a list of function options 623 corresponding to the long press key operation. As shown in FIG6D , user interface 630 includes a double-click key operation and a list of function options 631 corresponding to the double-click key operation. User interface 630 also includes a triple-click key operation and a list of function options 633 corresponding to the triple-click key operation. Each of function option lists 621, 623, 631, and 633 may include at least one selectable function and a selection control corresponding to each function. The at least one selectable function may include, but is not limited to, opening a message box, opening a frequently used app, opening a linked app, not performing any operation, and setting a linked app.
[0139] The user can select at least one function from the corresponding function option list for different key operations. Taking the live broadcast application scenario as an example, combined with Figure 6C and Figure 6D, the functions corresponding to different key operation settings received by the electronic device in the live broadcast application scenario are introduced in detail.
[0140] Case 1: Set the function for clicking the button.
[0141] For example, taking the case where the user sets "do not perform any operation" for the click button operation as an example, as shown in FIG6C , the electronic device displays the click button operation and the function option list 621. The electronic device receives a touch operation on the selection control 622. For example, the touch operation is a click operation. In response to the touch operation on the selection control 622, the electronic device selects the "do not perform any operation" function. At this time, as shown in FIG6C , the selection control 622 corresponding to the "do not perform any operation" function is in a selected state, while the selection controls corresponding to functions such as "open message box", "open common application (app)", and "open associated app" are all in an unselected state. After the "do not perform any operation" function is set for the click button operation, when the user is using the electronic device to live broadcast Douyin, the electronic device displays the application interface of the Douyin live broadcast application. At this time, the user clicks the first button, the electronic device receives the click button operation for the first button 307, and the electronic device does not perform any operation.
[0142] Case 2: Long press the button to set the function.
[0143] For example, taking the example of a user setting the "open message box" function for a long press button operation, as shown in FIG6C , the electronic device displays a long press button operation and a function option list 623, and the electronic device receives a touch operation on the selection control 624, for example, the touch operation is a click operation, and the electronic device selects the "open message box" function in response to the click operation on the selection control 624. At this time, as shown in FIG6C , the selection control 624 corresponding to the "open message box" function is in a selected state, while the selection controls corresponding to the functions of "open common applications (apps)", "open associated apps" and "do nothing" are all in an unselected state. After the "open message box" function is set for the long press button operation, the user receives a WeChat message while using the electronic device for a Douyin live broadcast. At this time, the user does not need to click on the message notification on the screen, but can perform a long press operation on the first button 307 to execute the "open message box" function, thereby displaying the WeChat chat interface.
[0144] This setting method can also be applied to other scenarios. For example, the "open message box" function is also set for the long press button operation in the game application scenario. When a user is playing a game on an electronic device, the electronic device displays the game interface as shown in Figure 7A. At this time, a notification message 701 is received. The notification message 701 is displayed floating above the game interface. At this time, it is inconvenient for the user to directly click on the message notification 701 on the screen. The user can directly long press the first button 307. The electronic device receives the long press button operation on the first button 307, and the electronic device executes the "open message box" function to display the message box 702 shown in Figure 7B. The message box 702 includes the message sent by Jacky. The message box 702 may also include an input box 703. The user can then enter text in the input box 703 to reply to the Jacky message. The message box 702 may also include a voice control, and the user can reply to the Jacky message by voice by clicking the voice control. If the electronic device receives multiple notification messages in succession, when the electronic device receives the long press button operation on the first button 307, the electronic device responds to the long press button operation by opening the message box corresponding to the most recent notification message. In some other examples, the electronic device displays a message list in response to the long press operation, and the user selects a message to be replied to.
[0145] In some embodiments, the electronic device may also respond to a long press of the first button 307 by turning on the voice reply function and then making a voice reply, which can simplify user operations and make replying to messages more convenient.
[0146] Case three: setting the function for double-clicking the button.
[0147] For example, taking the example of a user setting the "open frequently used apps" function for a double-click button operation, as shown in FIG6D , the electronic device displays a double-click button operation and a function option list 631. The electronic device receives a touch operation on the selection control 632, for example, the touch operation is a click operation. In response to the touch operation on the selection control 632, the electronic device selects the "open frequently used apps" function. At this time, as shown in FIG6D , the selection control 632 corresponding to the "open frequently used apps" function is in a selected state, while the selection controls corresponding to the functions of "open message box", "open associated app" and "do nothing" are all in an unselected state. After the "open frequently used apps" function is set for the double-click button operation, when the user is using the electronic device to live broadcast Douyin, the electronic device displays the application interface of the Douyin live broadcast application. At this time, the user performs a double-click button operation on the first button, and the electronic device responds to the double-click button operation on the first button 307. The electronic device executes the "open frequently used apps" function.
[0148] This setting method can also be applied to other scenarios. For example, the "open commonly used apps" function is also set for the double-click button operation in the social chat application scenario. When the user is using the WeChat application, the electronic device displays the user interface 800 as shown in Figure 8A. When the electronic device receives a button operation on the first button 307, the button operation is, for example, a double-click button operation. The electronic device responds to the double-click button operation and displays the user interface 810 as shown in Figure 8B. The user interface 810 includes a side frame 811. The side frame 811 may include commonly used applications of the WeChat application. Commonly used applications may include but are not limited to scanning, payment codes, and pulling up associated applications as shown in Figure 8B. It should be understood that when the electronic device displays any application interface of the WeChat application, the electronic device can quickly find these commonly used applications by double-clicking the first button 307 in the social chat application scenario to call out the side frame 811.
[0149] Optionally, as shown in FIG8B , the side frame 811 may further include an add control 812. When the electronic device receives a touch operation on the add control 812, such as a click operation, the electronic device displays a function option list (not shown in FIG8B ) in response to the click operation. The function option list may include at least one application, and the user may select at least one application from the function option list to add to the side frame 811. As shown in FIG8B , the side frame 811 may further include a delete control 813. The electronic device may delete some functions from the side frame 811 in response to a user operation on the delete control 813, such as a click operation. In other embodiments, when it is necessary to delete an application (such as a scan function) in the side frame 811, the scan function in the side frame 811 may be long-pressed. The electronic device may display a delete control in response to the long-press operation. Then, the electronic device may delete the scan function from the side frame 811 in response to a click operation on the delete control.
[0150] Case 4: Setting the function for triple-click operation.
[0151] For example, taking the example of a user setting the "open associated app" function for the triple-click operation, as shown in FIG6D , the electronic device displays the triple-click operation and a function option list 633. The electronic device receives a touch operation on the selection control 634, for example, the touch operation is a click operation. In response to the touch operation on the selection control 634, the electronic device selects the "open associated app" function. At this time, as shown in FIG6D , the selection control 634 corresponding to the "open associated app" function is in a selected state, while the selection controls corresponding to the functions of "open message box", "open commonly used apps" and "do nothing" are all in an unselected state. After the "open associated app" function is set for the triple-click operation, when the user is using the electronic device to live broadcast Douyin, the electronic device displays the application interface of the Douyin live broadcast application. At this time, the user performs a triple-click operation on the first button, and the electronic device responds to the triple-click operation and executes the "open associated app" function.
[0152] As shown in Figure 6D, the function option list 633 may also include a setting control 636. The user can touch the setting control 636. In response to the touch operation, the electronic device displays an interface for setting associated apps as shown in Figure 9A. The interface for setting associated apps includes an input box 901 for selecting an application scenario and an input box 902 for selecting an associated application. As shown in Figure 9A, the electronic device can respond to a touch operation, such as a click operation, on the control 902 in the input box 901 to display a drop-down menu 903 as shown in Figure 9B. The drop-down menu 903 includes a live broadcast application, a social chat application, and a shopping application. The electronic device responds to a click operation on the live broadcast application in the drop-down menu 903 and displays the live broadcast application in the input box 901. Similarly, the electronic device can respond to a touch operation, such as a click operation, on the control 905 in the input box 904 to display a drop-down menu 906 as shown in Figure 9C. The drop-down menu 906 includes a live broadcast application, a social chat application, and a shopping application. In response to clicking the shopping app in drop-down menu 906, the electronic device displays the shopping app in input box 904, as shown in FIG9D . This creates a set of associated apps: the live streaming app and the shopping app. If you do not want to continue setting associated apps, you can click the confirmation control 908 shown in FIG9D to complete the setting of associated apps and return to the previous screen.
[0153] After setting up a group of associated apps, you can continue to set up the next group of associated apps. You can click control 907 as shown in Figure 9D to add a group of selection boxes. In response to the click operation on control 907, the electronic device displays a group of selection boxes 909 as shown in Figure 9E. The setting process of the associated apps in selection box 909 can refer to the process of Figures 9A to 9D above, and will not be repeated here.
[0154] Taking the live streaming application scenario as an example, the electronic device displays the Douyin live streaming interface 1000 shown in FIG10A. The Douyin live streaming interface 1000 includes a link 1001 to the product being introduced by the host. The user can directly triple-click the first button 307. In response to the triple-click operation, the electronic device displays the user interface 1010 shown in FIG10B. The user interface 1010 includes a split-screen display of the Douyin live streaming interface 1011 and a shopping application interface 1012. In this way, the user can directly open the shopping application with one click by triple-clicking the first button, and can browse product details in the shopping application without affecting the live streaming.
[0155] The embodiments of the present application can be applied to other scenarios, such as split-screen display scenarios, floating window display scenarios, inner screen display scenarios, etc.
[0156] The following describes the specific implementation of the function of switching the split-screen display scene to the floating window display in conjunction with Figures 11A and 11B.
[0157] In some embodiments, the electronic device displays the application interface of application 1 and the application interface of application 2 in a split screen. In this scenario, the first button can be operated to switch to the floating window display mode.
[0158] Taking application 1 as the Douyin live broadcast application and application 2 as the WeChat application as an example, as shown in Figure 11A, the upper half of the screen of the electronic device displays the Douyin live broadcast interface 1101, and the lower half of the screen of the electronic device displays the WeChat interface 1102. The function of switching to the floating window display can be executed by pressing the first button 307. After executing this function, as shown in Figure 11B, the WeChat interface 1102 is displayed in full screen on the display screen, and the Douyin live broadcast interface 1101 is displayed in the floating window.
[0159] It should be understood that in the above example, after executing the function of switching to the floating window display, the Douyin live broadcast interface 1101 can also be displayed in full screen on the display screen, and the WeChat interface 1102 can be displayed in the floating window. This application does not limit this.
[0160] The following still describes the specific implementation of switching the floating window display scene to the split screen display mode in conjunction with Figures 11A and 11B.
[0161] In some embodiments, the electronic device displays the application interface of application 1 in a floating window and displays the application interface of application 2 in full screen. In this scenario, the electronic device can switch to split screen display by operating the first button.
[0162] Taking application 1 as the Douyin live broadcast application and application 2 as the WeChat application as an example, as shown in Figure 11B, the electronic device displays the Douyin live broadcast interface 1101 in a floating window and displays the WeChat interface 1102 on the full screen. The function of switching to split-screen display can be executed by pressing the first button 307. After executing this function, as shown in Figure 11A, the upper half of the electronic device screen displays the Douyin live broadcast interface 1101, and the lower half of the electronic device screen displays the WeChat interface 1102.
[0163] It should be understood that in the above example, after executing the split-screen display function, the WeChat interface 1102 can be displayed on the upper half of the electronic device, and the Douyin live broadcast interface 1101 can be displayed on the lower half of the electronic device. This application does not limit this.
[0164] The following describes the specific implementation of the function of switching the display mode between applications corresponding to the floating window display scene with reference to FIG. 12A and FIG. 12B.
[0165] In some embodiments, the electronic device simultaneously displays the application interface of application 1 and the application interface of application 2. The application interface of application 1 is displayed in full screen, and the application interface of application 2 is displayed in the form of a floating window above the application interface of application 1. In this scenario, the display mode of the two applications can be switched by operating the first button.
[0166] Taking application 1 as the Douyin live broadcast application and application 2 as the WeChat application as an example, as shown in Figure 12A, the electronic device displays the Douyin live broadcast interface 1201 in full screen, and displays the WeChat interface 1202 in the form of a floating window on the Douyin live broadcast interface 1201. If the user needs to switch the display mode of the two applications, so that the Douyin live broadcast interface 1201 is displayed in the form of a floating window and the WeChat interface 1202 is displayed in full screen, the user can perform a key operation on the first button 307, such as a combination key operation, the combination key operation is, for example, long pressing the volume up button and the first button 307 at the same time. The electronic device responds to the combination key operation and displays the user interface as shown in Figure 12B, that is, the WeChat interface 1202 is displayed in full screen, and the Douyin live broadcast interface 1201 is displayed in the floating window.
[0167] It should be understood that the display method of switching between two applications in this example is also applicable to the scenario where application 1 and application 2 are displayed in split screen. For example, the display screen of the electronic device is divided into the upper half screen and the lower half screen. When the upper half screen of the display screen displays the Douyin live broadcast interface and the lower half screen displays the WeChat interface, the user can perform a combination key operation on the first button 307, such as long pressing the volume down button and the first button 307 at the same time. The electronic device responds to the combination key operation and executes the function of switching the user interface displayed in the upper half screen and the lower half screen. After executing the function, the WeChat interface is displayed in the upper half screen of the display screen, and the Douyin live broadcast interface is displayed in the lower half screen. It should be understood that this example is also applicable to the switching scenario where different application interfaces are displayed in the left and right half screens, and can also be applied to the switching scenario where different application interfaces are displayed on the two screens of the folding screen.
[0168] The following describes the specific implementation of the folding screen full-screen display scenario in conjunction with Figures 13A to 13D.
[0169] As shown in FIG13A , the electronic device includes a first button 1301. When the electronic device is in an expanded state, a user interface 1302 is displayed in full screen, and the user interface 1302 includes multiple elements. The elements can be one or more of icons of multiple applications, desktop widgets, large folders, status bars, page indicators, wallpaper images, etc. For example, the user interface 1302 shown in FIG13A includes an email application icon, a gallery application icon, a WeChat application icon, a settings application icon, a phone application icon, a text message application icon, a browser application icon, a Weibo application icon, etc. The desktop widgets may include a date component (e.g., October 29, Wednesday), a time component (e.g., 13:10), and a weather component (e.g., Beijing, 10°C).
[0170] When the electronic device displays the user interface 1302 as shown in Figure 13A in full screen, it receives a key operation on the first button 1301, such as a double-click key operation, and the electronic device controls the elements displayed on screens A and B to translate in the second direction, and the wallpaper image also translates in the second direction. The electronic device displays the black area as shown in Figure 13B on the left side of screen A, as shown in Figure 13B on screen B. User interface 1303 includes all elements of user interface 1302, except that the size and spacing of the elements in user interface 1303 become smaller.
[0171] Then, as shown in FIG13C , screen A and screen B of the outer folding screen begin to fold in opposite directions through user operation until the electronic device presents a fully folded state as shown in FIG13D under the action of user operation, and the user can see all elements of the user interface 1302 before it is folded on screen B.
[0172] The specific implementation of the inner screen display scene of the folding screen is introduced below in conjunction with Figures 14A to 14C.
[0173] As shown in Figure 14A, the electronic device includes a first button 1401. When the electronic device is in an expanded state, a user interface 1402 is displayed in full screen. The user interface 1402 includes multiple elements. The elements can be one or more of icons of multiple applications, desktop widgets, large folders, status bars, page indicators, wallpaper pictures, etc. For example, the user interface 1402 shown in Figure 14A includes an email application icon, a gallery application icon, a WeChat application icon 1403, a settings application icon, a phone application icon, a text message application icon, a browser application icon, a Weibo application icon, etc. The desktop widgets may include a date component (for example, October 29, Wednesday), a time component (for example, 14:10), and a weather component (for example, Beijing, 10°C).
[0174] The electronic device receives a user operation on the WeChat icon 1403 shown in FIG14A, such as a click operation. In response to the click operation, the electronic device launches the WeChat application. Then, after a series of user operations, the payment code of the WeChat application is opened, and the user interface 1404 shown in FIG14B is displayed. The user interface 1404 includes a payment code 1405. The electronic device receives a key operation on the first button 1401, such as a double-click key operation, causing the payment code 1405 to slide upward until the payment code 1405 slides from the upper edge of the inner screen to the outer screen, and the user interface 1406 shown in FIG14C is displayed on the outer screen. The user interface 1406 includes the payment code 1405. In this way, when the folding screen is folded for use, the user can also view the payment code 1404 on the outer screen.
[0175] In the embodiment of the present application, the payment code is pushed to the external screen display by key operation as an example for explanation. It is also possible to push applications in the electronic device to the external screen display by key operation, or to push a certain content in any application to the external screen display. The certain content here can be text, pictures, links, etc., and this application does not limit this. In addition, this example uses the folding screen with the folding axis dividing the display screen into upper and lower screens, and the scenario of pushing the content on the inner screen to the external screen as an example for explanation. It should be understood that this example is also applicable to the folding screen with the folding axis dividing the display screen into left and right screens, and the scenario of pushing the content on the inner screen to the external screen, which makes it easier for users to view the required applications or other content in the application.
[0176] Referring to FIG. 15 , a flow chart of a response method of an electronic device provided in an embodiment of the present application is exemplarily shown. The method is executed by an electronic device having a display screen and a first button.
[0177] Step 1501: The electronic device displays a third user interface, where the third user interface includes an application interface of a second application.
[0178] Step 1502: Receive a second key operation on the first key.
[0179] Among them, the second button operation includes but is not limited to any of the following operations: click button operation; long press button operation; double-click button operation; triple-click button operation; combination button operation; among them, the combination button operation includes a combination operation of the power button, volume up button, volume down button and at least two physical buttons among the first button.
[0180] Step 1503: Execute the first function in response to the second button operation. The first function may be determined based on the application scenario corresponding to the third user interface, the second button operation, and a first correspondence relationship, wherein the first correspondence relationship includes a correspondence relationship between a preset application scenario, a preset button operation, and a preset function.
[0181] In an embodiment of the present application, after receiving the second button operation, the electronic device determines the application scenario corresponding to the third user interface in response to the second button operation. For example, the second application is, for example, a chess and card application, and the application scenario corresponding to the third user interface is a game application scenario; the second application is, for example, a Douyin live broadcast application, and the application scenario corresponding to the third user interface is a live broadcast application scenario; the second application is, for example, a Taobao application, a JD application or a Suning application, and the application scenario corresponding to the third user interface is a shopping application scenario; the second application is, for example, a Youku video player, an iQiyi video player or a Huawei video player, and the application scenario corresponding to the third user interface is a video playback application scenario; the second application is, for example, WeChat, short messages, DingTalk or Feishu, and the application scenario corresponding to the third user interface is a social chat application scenario; the second application is, for example, AutoNavi Map or Baidu Map, and the application scenario corresponding to the third user interface is a navigation application scenario; the second application is, for example, Kugou Music or Huawei Music, and the application scenario corresponding to the third user interface is a music playback application scenario.
[0182] After determining the application scenario corresponding to the third user interface, the electronic device can determine the application scenario corresponding to the third user interface and the function corresponding to the second button operation based on the application scenario corresponding to the third user interface, the second button operation and the first corresponding relationship, which is the first function, thereby meeting the user's different functional requirements in various scenarios and improving the user's human-computer interaction experience.
[0183] For example, the first correspondence includes the correspondence between the live broadcast application scenario, the long press button operation, and the "open message box" function. Taking the application scenario corresponding to the third user interface as the live broadcast application scenario, and the second button operation as the long press button operation as shown in Figure 6C as an example, it can be determined that the first function is the "open message box" function.
[0184] For example, the first correspondence includes the correspondence between the game application scenario, the long press button operation, and the "open message box" function. Taking the third user interface as the interface of the game application as shown in Figure 7A, and the second button operation as the long press button operation as an example, the application scenario corresponding to the third user interface is the game application scenario, and the first function can be determined to be the "open message box" function.
[0185] For example, the first correspondence includes the correspondence between the live broadcast application scenario, the double-click button operation, and the "open commonly used apps" function. The application scenario corresponding to the third user interface is the live broadcast application scenario, the second button operation is, for example, the double-click button operation as shown in Figure 6D, and the first function is the "open commonly used apps" function.
[0186] For example, the first correspondence includes the correspondence between the social chat application scenario, the double-click button operation, and the "open commonly used apps" function. Taking the second application as the WeChat application and the second button operation as the double-click button operation as an example, the application scenario corresponding to the third user interface is the social chat application scenario, and the first function is the "open commonly used apps" function.
[0187] For example, the first correspondence includes the correspondence between the live broadcast application scenario, the triple-click button operation, and the "open associated app" function. The application scenario corresponding to the third user interface is the live broadcast application scenario, the second button operation is the triple-click button operation as shown in Figure 6D, and the first function is, for example, the "open associated app" function.
[0188] Before step 1502, the user can customize the functions corresponding to different key operations in each application scenario. For example, the setting method may include the following process:
[0189] S1. The electronic device may display a fourth user interface, where the fourth user interface includes key function setting items.
[0190] Illustratively, the fourth user interface is, for example, the application setting interface 601 in FIG. 6A , and the button function setting item is, for example, the smart button 602 in FIG. 6A .
[0191] S2, the electronic device receives a fifth operation acting on the key function setting item.
[0192] For example, the fifth operation is a click operation.
[0193] S3: In response to the fifth operation, the electronic device displays an application scenario list, where the application scenario list includes at least one application scenario.
[0194] Exemplarily, the application scenario list is, for example, the application scenario list 611 shown in FIG6B .
[0195] S4. The electronic device receives a sixth operation acting on a first preset application scenario, where the first preset application scenario is any application scenario in the application scenario list.
[0196] Exemplarily, the first preset application scenario is, for example, the live broadcast application scenario 612 shown in FIG6B .
[0197] S6. In response to the sixth operation, the electronic device displays a fifth user interface, where the fifth user interface includes at least one preset key operation and a function option list corresponding to each preset key operation, where the function option list includes at least one preset function.
[0198] Exemplarily, the sixth operation is, for example, a click operation.
[0199] For example, the fifth user interface is the user interface 620 shown in FIG6C , which includes a click button operation, a function option list 621 corresponding to the click button operation, a long press button operation, and a function option list 623 corresponding to the long press button operation.
[0200] For another example, the fifth user interface is the user interface 630 shown in FIG6D , which includes a double-click button operation, a function option list 631 corresponding to the double-click button operation, a triple-click button operation, and a function option list 633 corresponding to the triple-click button operation.
[0201] S6. The electronic device receives a seventh operation acting on a first preset function, where the first preset function is any preset function in a function option list corresponding to the first preset key operation.
[0202] S7: In response to the seventh operation, the electronic device completes setting of the correspondence between the first preset application scenario, the first preset button operation, and the first preset function.
[0203] For example, taking the first preset application scenario as the live broadcast application scenario 612 shown in FIG6B and the fifth user interface as the user interface 620 shown in FIG6C as an example, the first preset function is the "Open message box" function option in the function option list 623 corresponding to the long press button operation, and the seventh operation is a click operation on the "Open message box" function option. Alternatively, the first operation can also be a click operation on the selection control 624 corresponding to the "Open message box" function option. Then, in response to the click operation, the electronic device can complete the live broadcast application scenario, the long press button operation, and the "Open message box" function settings.
[0204] For example, taking the first preset application scenario as the live broadcast application scenario 612 shown in FIG6B and the fifth user interface as the user interface 630 shown in FIG6D as an example, the first preset function is the "Open Frequently Used Apps" function in the function option list 631 corresponding to the double-click button operation as shown in FIG6D , and the seventh operation is a click operation on the "Open Frequently Used Apps" function option. Alternatively, the first operation can also be a click operation on the selection control 632 corresponding to the "Open Frequently Used Apps" function option. Then, in response to the click operation, the electronic device can generate a correspondence between the live broadcast application scenario, the double-click button operation, and the "Open Frequently Used Apps" function.
[0205] For example, taking the first preset application scenario as the live broadcast application scenario 612 shown in FIG6B and the fifth user interface as the user interface 630 shown in FIG6D as an example, the first preset function is the "Open associated app" function in the function option list 633 corresponding to the triple-click operation, and the seventh operation is a click operation on the "Open associated app" function option. Alternatively, the first operation can also be a click operation on the selection control 634 corresponding to the "Open associated app" function option. Then, in response to the click operation, the electronic device can generate a correspondence between the live broadcast application scenario, the triple-click operation, and the "Associated app" function.
[0206] There are multiple implementations of the above step 1503.
[0207] In some embodiments, the first correspondence includes a correspondence between a first application scenario, a second button operation, and a function of opening a message bar. The electronic device may also receive a notification message, which is displayed floating above the first user interface. Then, the electronic device receives a second button operation acting on the first button, and in response to the second button operation, determines that the third user interface corresponds to the first application scenario, and determines, based on the first application scenario, the second button operation, and the first correspondence, that the function of opening the message bar corresponding to the first application scenario and the second button operation is the first function. Then, the electronic device executes the function of opening the message bar, and after executing the function, displays the message bar corresponding to the notification message in a floating manner.
[0208] For example, the first application scenario is a gaming application scenario; another example is a video playback scenario; and another example is a live broadcast application scenario. Through this implementation, when it is inconvenient for the user to open the message bar by touching the display area where the notification message is located, the user can directly use key operations to view the notification message.
[0209] In some embodiments, the first correspondence includes a correspondence between a second application scenario, a second button operation, and a function of opening a commonly used application. In response to the second button operation, the electronic device determines that the third user interface corresponds to the second application scenario, and based on the second application scenario, the second button operation, and the first correspondence, determines that the function of opening a commonly used application corresponding to the second application scenario and the second button operation is the first function. Then, the electronic device executes the function of opening the commonly used application, and after completing the execution of the function, a sidebar is displayed in a floating manner, and the sidebar includes at least one commonly used application. This method can facilitate users to quickly find commonly used applications.
[0210] For example, the second application scenario is a live broadcast application scenario. For another example, the second application scenario is a social chat application scenario.
[0211] In some embodiments, the first correspondence includes a correspondence between a third application scenario, a second button operation, and a function of opening an associated application. In response to the second button operation, the electronic device determines that the third user interface corresponds to the third application scenario; then, the electronic device executes the second application scenario and the function of opening a commonly used application corresponding to the second button operation, and displays a sixth user interface after the execution of the completed function. The sixth user interface includes at least a third application associated with the third application scenario. Optionally, the sixth user interface may also include an application interface of the second application. For example, the third application scenario may include but is not limited to a game application scenario, a live broadcast application scenario, a video playback application scenario, a social chat application scenario, a shopping application scenario, a navigation application scenario, and the like. This makes it easy for users to quickly see the application interface of associated applications when they need to view associated applications.
[0212] In some embodiments, the first correspondence includes a correspondence between a split-screen display scene, a second button operation, and a function of switching to a floating window display. The third user interface of the above step 1501 includes not only the application interface of the second application, but also the application interface of the third application, and the application interface of the second application and the application interface of the third application are displayed in split screen on the display screen of the electronic device. The electronic device can determine that the third user interface corresponds to the split-screen display scene in response to the second button operation, and then execute the split-screen display scene and the function of switching to a floating window display corresponding to the second button operation, and after executing the completion function, display the application interface of the second application in full screen on the display screen, and display the application interface of the third application in the floating window.
[0213] For example, taking the second application as WeChat and the third application as Douyin live broadcast application, as shown in FIG11A , the display screen displays the Douyin live broadcast application interface 1101 and the WeChat application interface 1102 in split screen. After the electronic device switches to the floating window display function, as shown in FIG11B , the WeChat application interface 1102 is displayed in full screen on the display screen, and the Douyin live broadcast application interface 1101 is displayed in the floating window. In this way, when the user needs to switch the split screen display to the floating window display, they can switch conveniently by pressing a button.
[0214] In some embodiments, the first correspondence includes a correspondence between a floating window display scene, a second button operation, and a function of switching to split screen display. The third user interface of the above step 1501 includes not only the application interface of the second application, but also the application interface of the third application, and the application interface of the second application is displayed in full screen on the display screen, and the application interface of the third application is displayed in a floating window. In response to the second button operation, the electronic device determines that the third user interface corresponds to the floating window display scene, and then executes the floating window display scene and the function of switching to split screen display corresponding to the second button operation, and after executing the completion function, displays the application interface of the second application and the application interface of the third application in split screen on the display screen.
[0215] For example, taking the second application as WeChat and the third application as Douyin live broadcast application, as shown in FIG11B , the WeChat application's application interface 1102 is displayed in full screen on the display screen, and the Douyin live broadcast application's application interface 1101 is displayed in a floating window. After the electronic device executes the function of switching to split-screen display, as shown in FIG11A , the Douyin live broadcast application's application interface 1101 and the WeChat application's application interface 1102 are displayed in split screen on the display screen. In this way, when the user needs to switch the floating window display to split-screen display, the switch can be conveniently performed by key operation.
[0216] In some embodiments, the first correspondence includes a correspondence between a floating window display scene, a second button operation, and a function of switching display modes between applications. The third user interface of the above step 1501 includes not only the application interface of the second application, but also the application interface of the third application, and the application interface of the second application is displayed in full screen on the display screen, and the application interface of the third application is displayed in a floating window. In response to the second button operation, the electronic device determines that the third user interface corresponds to the floating window display scene, executes the floating window display scene and the function of switching display modes between applications corresponding to the second button operation, and displays the application interface of the second application in the floating window after executing the completion function, and displays the application interface of the third application in the full screen on the display screen.
[0217] For example, taking the second application as the Douyin live broadcast application and the third application as the WeChat application, as shown in FIG12A, the application interface 1201 of the Douyin live broadcast application is displayed in full screen on the display screen, and the application interface 1202 of the WeChat application is displayed in a floating window. After the electronic device executes the function of switching the display mode between applications, as shown in FIG12B, the application interface 1202 of the WeChat application is displayed in full screen on the display screen, and the application interface 1201 of the Douyin live broadcast application is displayed in a floating window. In this way, when the user needs to switch between the application interface displayed in the floating window and the application interface displayed in full screen, they can switch conveniently by key operation.
[0218] In some embodiments, the electronic device includes an inner screen and an outer screen, and the first correspondence includes a correspondence between the inner screen display scene, the second button operation, and the function of pushing content from the inner screen to the outer screen. The third user interface of step 1501 is displayed on the inner screen of the electronic device, and the third user interface includes the first content. In response to the second button operation, the electronic device can determine that the third user interface corresponds to the outer screen display scene; and display the first content on the outer screen.
[0219] For example, a third user interface, such as user interface 1404 shown in FIG14B , is displayed on the inner screen, and the first content, such as payment code 1405, is displayed on the outer screen. After the electronic device executes the function of pushing content from the inner screen to the outer screen, payment code 1405 is displayed on the outer screen, as shown in FIG14C . Pushing the first content to the convenient outer screen through key operation makes it easier for the user to view the first content.
[0220] In the embodiments provided in the present application above, the methods provided in the embodiments of the present application are introduced from the perspective of an electronic device as an execution subject. In order to implement the various functions in the methods provided in the embodiments of the present application above, the electronic device may include a hardware structure and / or a software module, and implement the above functions in the form of a hardware structure, a software module, or a hardware structure plus a software module. Whether a function of the above functions is executed in the form of a hardware structure, a software module, or a hardware structure plus a software module depends on the specific application and design constraints of the technical solution.
[0221] When hardware implementation is adopted, the hardware implementation of the electronic device may refer to FIG1 and its related description.
[0222] 16 , the electronic device 100 includes: a touch screen 1601, wherein the touch screen 1601 includes a touch panel 1607 and a display screen 1608; one or more processors 1602; a memory 1603; one or more application programs (not shown); and one or more computer programs 1604; and a sensor 1605. The aforementioned components may be connected via one or more communication buses 1606. The one or more computer programs 1604 are stored in the memory 1603 and configured to be executed by the one or more processors 1602. The one or more computer programs 1604 include instructions, which may be used to execute the method in any of the aforementioned embodiments.
[0223] An embodiment of the present application further provides a computer storage medium, in which computer instructions are stored. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the method in the above-mentioned embodiment.
[0224] The embodiments of the present application also provide a computer program product. When the computer program product is run on a computer, the computer is caused to execute the above-mentioned related steps to implement the method in the above-mentioned embodiment.
[0225] In addition, an embodiment of the present application also provides a device, which can specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer-executable instructions, and when the device is running, the processor can execute the computer-executable instructions stored in the memory to enable the chip to execute the translation method in the above-mentioned method embodiments.
[0226] Among them, the electronic device, computer storage medium, computer program product or chip provided in the embodiments of the present application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.
[0227] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0228] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0229] Units described as separate components may or may not be physically separate, and components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0230] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0231] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0232] The above content is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.
Claims
1. A response method of an electronic device, applied to an electronic device having a display screen and a first button, characterized in that: The method comprises: displaying a first user interface; receiving a first key operation acting on the first key; In response to the first key operation, a first function is executed or a second user interface is displayed, wherein the second user interface includes a shortcut bar, and the shortcut bar includes at least one frequently used service.
2. The method according to claim 1, characterized in that The first user interface includes a main interface or an application interface of a first application, and the first application does not set a function corresponding to a custom key operation.
3. The method according to claim 2, characterized in that The shortcut bar includes a first service, and the method further includes: receiving a first operation acting on the first service; In response to the first operation, displaying a delete control; Receiving a second operation acting on a delete control; In response to the second operation, the first service in the shortcut bar is deleted.
4. The method according to any one of claims 1 to 3, characterized in that: The shortcut bar includes a management control, and the method further includes: receiving a third operation acting on the management control; In response to the third operation, displaying a service list, the service list including at least one service; receiving a fourth operation acting on a first service, the first service being any one of the at least one service; In response to the fourth operation, the first service is added to the shortcut bar.
5. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: receiving a second key operation acting on the first key; In response to the second key operation, closing the shortcut bar.
6. The method according to any one of claims 1 to 4, characterized in that: The shortcut bar includes a close control, and the method further includes: Receiving a touch operation acting on the close control; In response to the touch operation, closing the shortcut bar.
7. The method according to any one of claims 1 to 6, characterized in that: The first button operation includes any of the following operations: Click the button to operate; long press the button to operate; double-click the button to operate; triple-click the button to operate; combination button operation; The combined key operation includes a combined operation of at least two physical keys among a power key, a volume up key, a volume down key and the first key.
8. A response method of an electronic device, applied to an electronic device having a display screen and a first button, characterized in that: The method comprises: displaying a third user interface, wherein the third user interface includes an application interface of the second application; receiving a second key operation acting on the first key; In response to the second button operation, a first function is executed, wherein the first function is determined based on an application scenario corresponding to the third user interface, the second button operation and a first corresponding relationship, wherein the first corresponding relationship includes a corresponding relationship between a preset application scenario, a preset button operation and a preset function.
9. The method according to claim 8, characterized in that Before receiving the second key operation acting on the first key, the method further includes: displaying a fourth user interface, wherein the fourth user interface includes a key function setting item; receiving a fifth operation acting on the key function setting item; In response to the fifth operation, displaying an application scenario list, the application scenario list including at least one application scenario; receiving a sixth operation acting on a first preset application scenario, where the first preset application scenario is any application scenario in the application scenario list; In response to the sixth operation, displaying a fifth user interface, the fifth user interface including at least one preset key operation and a function option list corresponding to each preset key operation, the function option list including at least one preset function; receiving a seventh operation acting on a first preset function, where the first preset function is any preset function in a function option list corresponding to the first preset key operation; In response to the seventh operation, the corresponding relationship setting among the first preset application scenario, the first preset key operation and the first preset function is completed.
10. The method according to claim 8 or 9, characterized in that The first corresponding relationship includes a corresponding relationship between the first application scenario, the second key operation, and a function of opening the message bar; Before receiving the second key operation acting on the first key, the method further includes: A notification message is received, and the notification message is displayed floating on the first user interface; The step of executing the first function in response to the second key operation comprises: In response to the second key operation, determining that the third user interface corresponds to a first application scenario; Execute the function of opening the message bar corresponding to the first application scenario and the second key operation, and after completing the execution of the function, suspend and display the message bar corresponding to the notification message.
11. The method according to claim 8 or 9, characterized in that: The first corresponding relationship includes a corresponding relationship between the second application scenario, the second key operation, and a function of opening a commonly used application; The step of executing the first function in response to the second key operation comprises: In response to the second key operation, determining that the third user interface corresponds to a second application scenario; The function of opening a commonly used application corresponding to the second application scenario and the second key operation is executed, and a sidebar is displayed in a floating manner after the execution of the completed function, wherein the sidebar includes at least one commonly used application.
12. The method according to claim 8 or 9, characterized in that The first corresponding relationship includes a corresponding relationship between the third application scenario, the second key operation, and a function of opening a related application; The step of executing the first function in response to the second key operation comprises: In response to the second key operation, determining that the third user interface corresponds to the third application scenario; Execute the third application scenario and the function of opening the associated application corresponding to the second key operation, and display a sixth user interface after the execution is completed, wherein the sixth user interface at least includes a third application associated with the third application scenario.
13. The method according to claim 7 or 8, characterized in that The first corresponding relationship includes a corresponding relationship between the split-screen display scene, the second button operation, and the function of switching to floating window display; The displaying of the third user interface comprises: Displaying the application interface of the second application and the application interface of the third application on the display screen in split screen; The step of executing the first function in response to the second key operation comprises: In response to the second button operation, determining that the third user interface corresponds to the split-screen display scene; Execute the split-screen display scenario and the function of switching to a floating window display corresponding to the second button operation, and after completing the function, display the application interface of the second application in full screen on the display screen, and display the application interface of the third application in a floating window.
14. The method according to claim 7 or 8, characterized in that The first corresponding relationship includes a corresponding relationship between the floating window display scene, the second button operation, and the function of switching to split screen display; The displaying of the third user interface comprises: Displaying the application interface of the second application in full screen on the display screen, and displaying the application interface of the third application in a floating window; The step of executing the first function in response to the second key operation comprises: In response to the second button operation, determining that the third user interface corresponds to the floating window display scene; Execute the floating window display scene and the function of switching to split screen display corresponding to the second button operation, and after completing the function, display the application interface of the second application and the application interface of the third application in split screen on the display screen.
15. The method according to claim 7 or 8, characterized in that The first correspondence includes a correspondence between the floating window display scene, the second key operation, and a function of switching the display mode between applications; The displaying of the third user interface comprises: Displaying the application interface of the second application in full screen on the display screen, and displaying the application interface of the third application in a floating window; The step of executing the first function in response to the second key operation comprises: In response to the second button operation, determining that the third user interface corresponds to the floating window display scene; Execute the floating window display scene and the function of switching the display mode between applications corresponding to the second button operation, and after completing the function, display the application interface of the second application in the floating window, and display the application interface of the third application in full screen on the display screen.
16. The method according to claim 8 or 9, characterized in that The electronic device includes an inner screen and an outer screen; the first corresponding relationship includes a corresponding relationship between the inner screen display scene, the second key operation, and a function of pushing content from the inner screen to the outer screen; The displaying of the third user interface comprises: Displaying the third user interface on the inner screen, wherein the third user interface includes the first content; The step of executing the first function in response to the second key operation comprises: In response to the second button operation, determining that the third user interface corresponds to the external screen display scene; The first content is displayed on the external screen.
17. The method according to claim 8 or 9, characterized in that The second button operation includes any of the following operations: Click the button to operate; long press the button to operate; double-click the button to operate; triple-click the button to operate; combination button operation; The combined key operation includes a combined operation of at least two physical keys among a power key, a volume up key, a volume down key and the first key.
18. An electronic device, characterized in that: It includes a processor, a memory, a first button and a display screen; The display screen is used to display a user interface; The first button is used to receive a button operation; The memory is used to store one or more computer programs, and when the computer programs are executed by the processor, the electronic device executes the method according to any one of claims 1 to 17.
19. A computer-readable storage medium, characterized in that: The computer-readable storage medium comprises a computer program, and when the computer program is executed on an electronic device, the electronic device is caused to execute the method according to any one of claims 1 to 17.
20. A computer program product, characterized in that The computer program product stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a computer, the computer is caused to perform the method according to any one of claims 1 to 17.
Citation Information
Patent Citations
Suspension display implementing method and device
CN104793838A
Shortcut key customization method and intelligent terminal
CN105573748A
Mobile terminal and entity key triggering scene special effect realization method and system of mobile terminal
CN105791573A
Control method of mobile terminal and mobile terminal
CN106802766A
Interaction method and interaction system
CN109688444A
