Control display method and electronic equipment
By displaying a suspended window on the terminal, and displaying controls not included in the first display interface according to the display parameters of the first APP, the problem that the user needs multiple touch operations to display the required controls is solved, and the effect of simplifying user operations and improving user experience is achieved.
Patent Information
- Application Number
- CN202411778364.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2020-01-21
- Publication Date
- 2025-03-28
- Estimated Expiration
- Not applicable · inactive patent
Smart Images

Figure CN119718513A_ABST
Abstract
Description
[0001] This application is a divisional application. The application number of the original application is 202010071942.4, and the original application date is January 21, 2020. The entire contents of the original application are incorporated into this application by reference. Technical Field
[0002] The present application relates to the field of human-computer interaction technology, and in particular to a control display method and an electronic device. Background Art
[0003] In order to meet the diverse needs of users, the number of applications (APPs) supported by terminals is increasing day by day. In addition, in order to realize various functions of APP, APP will provide controls corresponding to various functions, so that APP can realize the corresponding functions through the controls.
[0004] An APP usually has multiple controls. In order to enable the APP to display the controls required by the user, some controls are usually provided in the display interface of the APP, and after receiving a touch on one of the controls, the terminal can jump to the interface corresponding to the control until the control required by the user is displayed in the display interface of the APP. For example, see Figure 1 (a) to Figure 1 (d) is a schematic diagram of a display interface of an APP for communication, wherein: Figure 1 (a) is the initial interface of the APP. When the APP needs to display the "Do Not Disturb Mode" control, the user needs to click the "Me" control in the initial interface; then, the terminal jumps to display Figure 1 (b) shows the interface, the user then clicks the "settings" control in the interface; after receiving the touch control on the "settings" control, the terminal displays Figure 1 (c) shows the interface where the user clicks on the "Do Not Disturb Mode" control; then, the terminal displays Figure 1 (d) shows the interface which displays the “Do Not Disturb Mode” controls required by the user.
[0005] However, when this method is applied, the user is often required to perform multiple touch operations before the terminal displays the controls the user needs, which is cumbersome. For example, in the above example, the user needs to touch the three controls of "Me", "Settings" and "Do Not Disturb Mode" in the terminal in turn, that is, perform three touch operations before the terminal displays the "Do Not Disturb Mode" control, which is cumbersome. Summary of the invention
[0006] In order to simplify the operations that a user needs to perform when an electronic device displays controls required by the user, an embodiment of the present application discloses a control display method and an electronic device.
[0007] In order to achieve the above objectives, this application adopts the following technical solutions:
[0008] In a first aspect, the present application provides a control display method, comprising:
[0009] Starting a first application APP, and determining a first control of the first APP according to a first display parameter of the first APP, wherein the first display parameter of the first APP includes at least one of the following: a display permission of metadata corresponding to the control of the first APP, a usage frequency of the control of the first APP, a mapping relationship between the type of the first APP and the first control, and an interface identifier of the first display interface;
[0010] The first display interface of the first APP is displayed, and the first control is displayed in a first floating window on the first display interface, wherein the first control is different from the second control, and the second control is the control displayed in the first display interface.
[0011] Through the scheme disclosed in the embodiment of the present application, the electronic device can display a first floating window on the upper layer of the first display interface of the first APP according to the first display parameter of the first APP, and the controls of the first APP that are not included in the first display interface are displayed in the first floating window, thereby displaying a larger number of controls, which can reduce the operations that the user needs to perform on the electronic device when displaying the controls required by the user.
[0012] In a possible implementation, the first control is a function button for enabling editing of a function of the first APP, and the first control is displayed in a first floating window on a first display interface of the first APP, including:
[0013] The name and icon of the first control are displayed in the first floating window.
[0014] The names and icons of the first controls enable the user of the electronic device to identify and distinguish each first control.
[0015] or,
[0016] The first control is a function button for turning on or off a function of the first APP, and the first control is displayed in a first floating window on a first display interface of the first APP, including:
[0017] The name of the first control is displayed in the first floating window, and it is displayed whether the function is in an on state or in a off state.
[0018] Through the name of the first control and the status of the displayed function, a user of the electronic device can identify the first control and determine the status of the function corresponding to the first control.
[0019] In a possible implementation, the method further includes:
[0020] Determining, according to the second display parameter of the first APP, a third control corresponding to the first APP, where the third control is a function button for controlling an operating system of an electronic device on which the first APP is installed;
[0021] The third control is displayed in a second floating window on the first display interface of the first APP.
[0022] In an embodiment of the present application, the third control is used to control the functions supported by the operating system of the electronic device. Exemplarily, the third control includes at least one of the following controls: WLAN control, GPS control, Bluetooth control, NFC control, brightness adjustment control, flight mode control, eye protection mode control, and whether the screen auto-rotation is locked.
[0023] Through the above steps, the third control can be displayed in the second floating window, so that the user can operate the third control in the second floating window, reducing the user operations that need to be performed when the user needs the third control.
[0024] In a possible implementation, the second display parameter includes at least one of the following: system permissions of the first APP, system functions indicated by components of the first APP, and a mapping relationship between the type of the first APP and the third control.
[0025] Through the second display parameter, the electronic device can determine the third control corresponding to the first APP.
[0026] In a possible implementation, the first display parameter of the first APP includes a display permission of metadata corresponding to a control of the first APP;
[0027] The determining, according to the first display parameter of the first APP, the first control of the first APP includes:
[0028] Determine that at least one control corresponding to the metadata having display permission among the controls of the first APP is a first target control;
[0029] Determine that at least one control in the first target controls that is different from the second control is a first control of the first APP.
[0030] In the above manner, the electronic device can determine the first control of the first APP according to the display permission of the metadata corresponding to the control of the first APP. The display permission of the metadata corresponding to the control of the first APP can be set by the developer or provider of the first APP, so that the first control displayed in the first floating window can comply with the setting of the developer or provider of the first APP.
[0031] In a possible implementation, the first display parameter of the first APP includes a usage frequency of a control of the first APP;
[0032] The determining, according to the first display parameter of the first APP, the first control of the first APP includes:
[0033] Determine at least one control of the controls of the first APP whose usage frequency is greater than a first threshold as a second target control, or determine the top n controls of the controls of the first APP with the highest usage frequency as second target controls, where n is a set positive integer;
[0034] Determine that at least one control in the second target control that is different from the second control is a first control of the first APP.
[0035] Through the above method, the electronic device can determine the first control of the first APP according to the usage frequency of the control of the first APP, so that the first control displayed in the first floating window can meet the user's usage habits and improve the user's usage experience.
[0036] In a possible implementation, the first display parameter of the first APP includes a mapping relationship between the type of the first APP and the first control;
[0037] The determining, according to the first display parameter of the first APP, the first control of the first APP includes:
[0038] Determine at least one third target control according to the type of the first APP and the mapping relationship between the type of the first APP and the first control;
[0039] Determine that a control different from the second control in at least one of the third target controls is a first control of the first APP.
[0040] Through the above method, the electronic device can determine the first control of the first APP according to the mapping relationship between the type of the first APP and the first control, and the implementation method is relatively simple.
[0041] In a possible implementation, the first display parameter of the first APP includes an interface identifier of the first display interface;
[0042] The determining, according to the first display parameter of the first APP, the first control of the first APP includes:
[0043] Determine, according to the interface identifier of the first display interface, at least one fourth target control associated with the first display interface, wherein the at least one fourth target control is at least one control displayed in a display interface of a lower level than the first display interface when the electronic device applying the first APP jumps to the display interface of the lower level;
[0044] Determine that a control different from the second control in at least one of the fourth target controls is a first control of the first APP.
[0045] Through the above method, the electronic device can determine the first control of the first APP according to the interface identifier of the first display interface. Since the first control is associated with the first display interface, when the user needs the first control associated with the first display interface, the first control associated with the first display interface can be displayed in the first floating window, thereby reducing the user's touch operations.
[0046] In a possible implementation, the first display parameter of the first APP includes a display permission of metadata corresponding to a control of the first APP and an interface identifier of the first display interface;
[0047] The determining, according to the first display parameter of the first APP, the first control of the first APP includes:
[0048] Determine that at least one control corresponding to the metadata having display permission among the controls of the first APP is a first target control;
[0049] Determine, according to the interface identifier of the first display interface, at least one fifth target control associated with the first display interface in the first target control, wherein at least one of the fifth target controls is a first target control displayed in a display interface of a lower level than the first display interface when the electronic device applying the first APP jumps to the display interface of the lower level;
[0050] Determine that at least one control in the fifth target control that is different from the second control is a first control of the first APP.
[0051] In the above manner, the electronic device can determine the first control of the first APP in combination with the display permission of the metadata corresponding to the control of the first APP and the interface identifier of the first display interface. The metadata corresponding to the first control determined in this way has the display permission, and the first control is also associated with the first display interface, so that the first control can comply with the settings of the developer or provider of the first APP, and when the user needs the first control associated with the first display interface, the first control associated with the first display interface can be displayed in the first floating window, thereby reducing the user's touch operation.
[0052] In a possible implementation, the first display parameter of the first APP includes a usage frequency of a control of the first APP and an interface identifier of the first display interface;
[0053] The determining, according to the first display parameter of the first APP, the first control of the first APP includes:
[0054] Determine at least one control in the controls of the first APP whose usage frequency is greater than the second threshold as the sixth target control, or determine the first m controls with the highest usage frequency in the controls of the first APP as the sixth target control, where m is a set positive integer;
[0055] Determine, according to the interface identifier of the first display interface, at least one seventh target control associated with the first display interface in the sixth target control, wherein at least one of the seventh target controls is a sixth target control displayed in a display interface of a lower level than the first display interface when the electronic device applying the first APP jumps to the display interface of the lower level;
[0056] Determine that at least one control among the seventh target controls that is different from the second control is a first control of the first APP.
[0057] Through the above method, the electronic device can determine the first control of the first APP in combination with the usage frequency of the control of the first APP and the interface identifier of the first display interface. The first control determined in this way is a control with a higher usage frequency, so that it can meet the user's usage habits, and the first control is also associated with the first display interface, so that when the user needs the first control associated with the first display interface, the first control associated with the first display interface can be displayed in the first floating window, reducing the user's touch operation.
[0058] In a possible implementation, the first display parameter of the first APP includes a display permission of metadata corresponding to a control of the first APP and a usage frequency of the control of the first APP;
[0059] The determining, according to the first display parameter of the first APP, the first control of the first APP includes:
[0060] Determine that at least one control corresponding to the metadata having display permission among the controls of the first APP is a first target control;
[0061] Determine at least one control in the first target control whose usage frequency is greater than a third threshold as an eighth target control, or determine the first s controls with the highest usage frequency in the first target control as the eighth target control, where s is a set positive integer;
[0062] Determine that at least one control in the eighth target control that is different from the second control is a first control of the first APP.
[0063] In the above manner, the electronic device can determine the first control of the first APP in combination with the display permission of the metadata corresponding to the control of the first APP and the frequency of use of the control of the first APP. The metadata corresponding to the first control determined in this way has the display permission, and the first control is a control with a high frequency of use, so it can meet the user's usage habits.
[0064] In a possible implementation, before displaying the first control in the first floating window on the first display interface of the first APP, the method further includes:
[0065] Receiving a triggering operation for displaying the first floating window;
[0066] The trigger operation for displaying the first floating window includes at least one of the following: a sliding operation on a touch area, an air gesture operation, a voice input operation, and a click operation on a first prompt icon on the first display interface.
[0067] In this way, the electronic device can display the first control in the first floating window only after receiving the trigger operation for displaying the first floating window, and does not display the first control through the first floating window at other times, thereby reducing the obstruction of the first display interface by the first floating window.
[0068] In a possible implementation, the number of the first controls is M, the maximum number of the first controls displayed in the first floating window at a time is N, and if M is greater than N, displaying the first controls in the first floating window on the first display interface includes:
[0069] sorting the first controls according to the sorting parameters of the first controls;
[0070] In the first floating window, display the first N first controls in the sorting order;
[0071] After receiving a click operation on the first folding icon in the first floating window, more of the first controls are displayed in the first floating window.
[0072] By adopting the above-mentioned method, it is possible to avoid displaying too many first controls in the first floating window, thereby avoiding the phenomenon that the area of the first floating window is large, and further reducing the blocking of the first display interface by the first floating window.
[0073] In a possible implementation, the sorting parameters include at least one of the following: when scanning the installation package of the first APP, the order of scanning the metadata corresponding to the first control, the frequency of use of the first control, and the priority of the metadata corresponding to the first control.
[0074] In a second aspect, the present application provides an electronic device, including:
[0075] one or more processors;
[0076] one or more memories;
[0077] And one or more computer programs, wherein the one or more computer programs are stored in the one or more memories, and the one or more computer programs include instructions, which, when executed by the one or more processors, enable the electronic device to perform the control display method described in the first aspect.
[0078] In a third aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, and when the instructions are executed on an electronic device, the electronic device executes the control display method as described in the first aspect.
[0079] In a fourth aspect, the present application provides a computer program product comprising instructions, and when the computer program product is run on an electronic device, the electronic device executes the control display method as described in the first aspect.
[0080] Through the solution disclosed in the embodiment of the present application, the electronic device can display a first floating window on the upper layer of the first display interface of the first APP according to the first display parameter of the first APP, and the first floating window displays the controls of the first APP that are not included in the first display interface. Compared with the prior art, the solution of the embodiment of the present application can provide a larger number of controls, thereby reducing the operations that the user needs to perform on the electronic device when displaying the controls required by the user.
[0081] Furthermore, in the solution disclosed in the embodiment of the present application, the electronic device determines the first control displayed in the first floating window according to the first display parameter of the first APP. Therefore, for the same first APP, when the first display parameter of the first APP is different, the first control displayed in the first floating window may also be different, thereby meeting the diverse needs of users. BRIEF DESCRIPTION OF THE DRAWINGS
[0082] Figure 1 (a) is a schematic diagram of an interface of an APP disclosed in the prior art;
[0083] Figure 1 (b) is a schematic diagram of the interface of another APP disclosed in the prior art;
[0084] Figure 1 (c) is a schematic diagram of the interface of another APP disclosed in the prior art;
[0085] Figure 1 (d) is a schematic diagram of the interface of another APP disclosed in the prior art;
[0086] Figure 2 A schematic diagram of the structure of an electronic device disclosed in an embodiment of the present application;
[0087] Figure 3 A schematic diagram of a software structure block diagram of an electronic device disclosed in an embodiment of the present application;
[0088] FIG4( a ) is a schematic diagram of a control of the first APP disclosed in an embodiment of the present application;
[0089] FIG4( b ) is a schematic diagram of another control of the first APP disclosed in an embodiment of the present application;
[0090] FIG5( a ) is a schematic diagram of a first control of a first APP disclosed in an embodiment of the present application;
[0091] FIG5( b ) is a schematic diagram of a first control of another first APP disclosed in an embodiment of the present application;
[0092] FIG6( a ) is a schematic diagram of an interface in a control display method disclosed in an embodiment of the present application;
[0093] FIG6( b ) is a schematic diagram of another interface in the control display method disclosed in an embodiment of the present application;
[0094] FIG6( c ) is a schematic diagram of another interface in the control display method disclosed in an embodiment of the present application;
[0095] FIG. 7( a ) is a schematic diagram of a touch operation in a control display method disclosed in an embodiment of the present application;
[0096] FIG7( b ) is a schematic diagram of another touch operation in the control display method disclosed in an embodiment of the present application;
[0097] Figure 8 This is another interface schematic diagram of the control display method disclosed in the embodiment of the present application;
[0098] Fig. 9 A schematic diagram of a workflow of a control display method disclosed in an embodiment of the present application;
[0099] Fig.10 A schematic diagram of a workflow for determining a first control of a first APP in a control display method disclosed in an embodiment of the present application;
[0100] Fig.11 This is a schematic diagram of a workflow for determining a first control of a first APP in the control display method disclosed in an embodiment of the present application;
[0101] Fig.12 This is a schematic diagram of a workflow for determining a first control of a first APP in the control display method disclosed in an embodiment of the present application;
[0102] Fig.13 A schematic diagram of a workflow of another control display method disclosed in an embodiment of the present application;
[0103] Fig.14 A schematic diagram of the structure of an electronic device disclosed in an embodiment of the present application. DETAILED DESCRIPTION
[0104] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
[0105] In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.
[0106] In the following, the terms "first" and "second" are used for description purposes only. In the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.
[0107] The implementation of this embodiment will be described in detail below with reference to the accompanying drawings.
[0108] The control display method disclosed in the embodiments of the present application can be applied to a variety of electronic devices. In some embodiments, the electronic device can be a mobile phone, a tablet computer, a desktop, a laptop, a notebook computer, an ultra-mobile personal computer (UMPC), a handheld computer, a netbook, a personal digital assistant (PDA), a wearable electronic device, a smart watch, and other devices that can be installed with APP. The present application does not impose any special restrictions on the specific form of the electronic device. In this embodiment, the structure of the electronic device can be as follows: Figure 2 As shown, Figure 2 A schematic diagram of the structure of an electronic device to which the control display method provided in an embodiment of the present application is applied.
[0109] like Figure 2 As shown, the electronic device 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, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, etc. The sensor module 180 may include 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.
[0110] Furthermore, when the electronic device is a mobile phone, the electronic device may also include: antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone interface 170D, and subscriber identification module (SIM) card interface 195, etc.
[0111] It is to be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device. In other embodiments, the electronic device may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0112] The processor 110 may include one or more processing units, wherein different processing units may be independent devices or integrated into one or more processors. A memory may also be provided in the processor 110 for storing instructions and data.
[0113] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0114] The charging management module 140 is used to receive charging input from the charger. The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to power the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160.
[0115] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to electronic devices. The wireless communication module 160 can provide solutions for wireless communications 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 technology (NFC), infrared technology (IR), etc., applied to electronic devices. In some embodiments, the antenna 1 of the electronic device is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device can communicate with the network and other devices through wireless communication technology.
[0116] The electronic device implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0117] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. A series of graphical user interfaces (GUIs) can be displayed on the display screen 194 of the electronic device, and these GUIs are the main screens of the electronic device.
[0118] The electronic device can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
[0119] 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. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device by running the instructions stored in the internal memory 121.
[0120] The electronic device can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0121] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.
[0122] Speaker 170A, also called "horn", is used to convert audio electrical signals into sound signals. The electronic device can listen to music or listen to hands-free calls through speaker 170A. Receiver 170B, also called "earpiece", is used to convert audio electrical signals into sound signals. Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting his mouth close to microphone 170C to input the sound signal into microphone 170C. Headphone jack 170D is used to connect wired headphones.
[0123] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The gyroscope sensor 180B can be used to determine the motion posture of the electronic device. The air pressure sensor 180C is used to measure the air pressure. The magnetic sensor 180D includes a Hall sensor. The electronic device can use the magnetic sensor 180D to detect the opening and closing of the flip leather case. The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device in all directions (generally three axes). The distance sensor 180F is used to measure the distance. The proximity light sensor 180G can include a light emitting diode (LED) and a light detector. The ambient light sensor 180L is used to sense the brightness of the ambient light. The fingerprint sensor 180H is used to collect fingerprints. The temperature sensor 180J is used to detect the temperature. The touch sensor 180K is also called a "touch device". The touch sensor 180K can be set on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also known as a "touch screen". The bone conduction sensor 180M can obtain vibration signals. The buttons 190 include a power button, a volume button, etc. The button 190 can be a mechanical button, a touch button, or a virtual button. The motor 191 can generate a vibration prompt. The indicator 192 can be an indicator light, which can be used to indicate the charging status, power changes, messages, missed calls, notifications, etc. The SIM card interface 195 is used to connect a SIM card.
[0124] In addition, an operating system is running on the above components, such as the iOS operating system developed by Apple, the Android open source operating system developed by Google, and the Windows operating system developed by Microsoft. Application programs can be installed and run on the operating system.
[0125] In order to clarify the functional operations performed by various software architectures within the electronic device when the electronic device executes the solution disclosed in the present application, the embodiment of the present application also discloses the software structure of the electronic device.
[0126] The operating system of the electronic device may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture, etc. The embodiment of the present application takes the Android system of the layered architecture as an example to exemplify the software structure of the electronic device.
[0127] in, Figure 3 That is an example diagram of a software structure block diagram of an electronic device according to an embodiment of the present application.
[0128] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, namely, the application layer, the application framework layer, the system library, and the kernel layer from top to bottom.
[0129] The application layer can include a series of application packages. Figure 3 As shown, the application layer may include application packages of applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video and short message. The application may include the APP application installed by default in the electronic device when leaving the factory, and may also include the application installed by the user during the use of the electronic device. For example, when the user installs the application such as Dazhong Pinping and WeChat in the electronic device during the use of the electronic device, the application layer also includes the application packages of the application such as Dazhong Pinping and WeChat.
[0130] Furthermore, in the embodiment of the present application, the application layer also includes: a system user interface (i.e., System UI). The System UI is used to manage the user interface and can provide status bar information (such as remaining battery power, wifi signal 3G / 4G, etc.), notification panel display, screenshot service, and wallpaper service. In the present application, the System UI can display the controls of the APP on the display interface of the APP currently opened by the electronic device.
[0131] The application framework layer provides application programming interface (API) and programming framework for the applications in the application layer. The application framework layer includes some predefined functions. Figure 3 As shown, the application framework layer may include a window manager, an event distribution manager and a task manager. In the embodiment of the present application, the application framework layer may provide the application layer with an API related to control display.
[0132] The task manager is used to determine the relevant information of each program and process running in the electronic device. The event distribution manager sends the event to the corresponding module so that the module can perform subsequent processing. The window manager is used to manage window programs. In this application, the window manager can determine the area of the electronic device that is touched.
[0133] Furthermore, the application framework layer also includes: an installation manager. The installation manager can also be called a package manager service (PMS). The PMS is used to install the Android application package (APK) of the APP, and during the installation process, the PMS scans the APK. By scanning the APK, the PMS can obtain and record the relevant information of the APP.
[0134] In addition, the System UI can determine the APP currently displayed by the electronic device by interacting with the task manager. Moreover, the System UI can also obtain the relevant information of the currently displayed APP recorded by the installation manager through interaction with the installation manager, determine the controls of the APP according to the relevant information of the APP, and display the controls of the APP on the interface of the APP. Exemplarily, the System UI can display a floating window in the display interface of the APP, display the controls of the APP through the floating window, and the controls displayed in the floating window are controls that are not included in the current display interface.
[0135] Among them, by scanning the APK of the APP, the PMS can obtain the components of the APP and the metadata of the components.
[0136] An APP includes multiple components. For example, an APP in an Android system generally includes the following components: an activity component, a service component, a content component, an intent component, a broadcast receiver component, and a notification component. In addition, an APP may include one or more activity components. An activity component is generally presented as a visual user interface. For example, an activity component may be presented as a list of menu items or as some pictures. In addition, a service component may be used to perform some tasks of an electronic device in the background of the electronic device. Metadata, also known as relay data, is a type of data that defines data and is used to describe the properties of the data. The metadata of a component is used to describe the properties of the component.
[0137] In an embodiment of the present application, the PMS can scan the relevant information of the APP by scanning the APK of the APP. The relevant information of the APP generally includes the components of the APP and the metadata of the components, etc. Specifically, the relevant information of the APP generally includes the activity component and the service component of the APP. Correspondingly, the metadata of the component generally includes the metadata of the activity component and the metadata of the service component of the APP.
[0138] System UI can obtain relevant information of the APP scanned by PMS through interaction with PMS. In this case, System UI can determine the metadata included in the relevant information of the APP, and determine the name of the control corresponding to the metadata based on the description of the component for the metadata.
[0139] In addition, the control of the APP can be a function button used to enable editing or switch a function of the APP. For example, an APP includes a "Personal Information" control, which is used to enable editing of the user's personal information (such as avatars and personal introductions, etc.), then the control is a function button that enables editing of a function of the APP; or an APP includes a "User Message Reminder" control, which is used to turn on or off the user message reminder function of the APP, then the control is a function button that turns on and off a function of the APP.
[0140] When the control is a function button for opening editing of a function of the APP, the System UI may also determine the icon of the control corresponding to the metadata according to the description of the component for the metadata, and may display the name and icon of the control in the first floating window, which is set on the upper layer of the interface of the APP. For example, the System UI may display the name and icon of the "Personal Information" control in the first floating window.
[0141] When the control is a function button for switching a function of the APP, the System UI can also interact with the APP through the API set in the application framework layer to obtain the status of the function corresponding to the control, which includes the function on status and the function off status, and display the name of the "User Message Reminder" control in the first floating window, and display whether the function is on or off.
[0142] In addition, the relevant information of the APP scanned by the PMS may also include the system permissions of the APP. The system permissions of the APP refer to the permissions that the APP needs to be provided by the operating system of the electronic device during operation. Accordingly, the System UI can determine the controls corresponding to the system permissions and display them.
[0143] For example, when the system permission of an APP includes "controlling near field communication", the System UI can determine that the controls corresponding to the APP include controls related to near field communication (NFC). Then, the System UI can determine the name and icon of the NFC-related controls based on the description of this system permission in the component.
[0144] Furthermore, the APK may include other information, for example, the priority of each metadata. In this case, by scanning the APK, the relevant information of the APP obtained by the PMS may also include the priority of each metadata.
[0145] The system library includes a status monitoring service, which can perform status detection based on the data reported by the sensor driver of the kernel layer.
[0146] The kernel layer is a layer between hardware and software. The kernel layer includes drivers, which may include sensor drivers.
[0147] It should be noted that although the embodiments of the present application are described using the Android system as an example, its basic principles are also applicable to electronic devices based on operating systems such as iOS or Windows.
[0148] When the software structure diagram of the electronic device is as follows Figure 3 As shown, if the touch area of the electronic device receives a touch operation, the sensor corresponding to the touch area (such as a pressure sensor or a temperature sensor, etc.) outputs the data corresponding to the touch operation. After receiving the data, the touch panel (TP) driver of the kernel layer reports the data to the status monitoring service in the system library. The status monitoring service determines the coordinates of the touched position in the touch area according to the received data, and reports the coordinates of the touched position to the event distribution manager of the application framework layer. The event distribution manager transmits the coordinates of the touched position to the window manager. The window manager determines the type of this touch operation (such as point touch, side slide or pull-down, etc.) and the specific position of the touch according to the coordinates of the touched position. Then, the window manager performs the corresponding operation according to the type of this touch operation and the specific position of the touch.
[0149] In this case, when an APP needs to be installed in an electronic device, the user can touch the application market APP installed in the electronic device, select the APP to be installed this time from the multiple APPs provided by the application market, and the electronic device downloads the installation package of the APP and installs it. In addition, after the electronic device receives the touch operation on the application market APP, the event processor reports the event of the application market APP being touched to the window manager, and the window manager sends feedback to the application market APP. The application market APP then calls the PMS to trigger the PMS to install the APP to be installed this time. After being triggered, the PMS scans the APK of the APP, obtains and records the relevant information of the APP, so that the System UI determines the controls of the APP based on the relevant information.
[0150] In addition, after the APP is installed, when the APP is required to perform a certain operation, the electronic device will also receive the corresponding operation for the APP. Among them, when the operation is a touch operation on a control displayed by the System UI, the event manager will report the event of receiving the touch operation on the control to the window manager, and the window manager will trigger the System UI. The System UI determines the touched position based on the touch point coordinates, determines which application the touched control belongs to based on the touched position, and then notifies the application so that the application responds to the touch operation.
[0151] In the embodiments of the present application, the concepts of "first APP" and "first control of the first APP" are also involved. These two concepts are introduced respectively below.
[0152] A first APP is installed in an electronic device that applies the control display method disclosed in the embodiment of the present application. Through the scheme disclosed in the embodiment of the present application, the electronic device can set a floating window on the upper layer of the display interface of the first APP, and display the controls of the first APP through the floating window. The floating window can be referred to as a first floating window. Among them, when controls are displayed in the display interface of the first APP, the controls displayed in the first floating window are different from the controls displayed in the display interface. In the embodiment of the present application, the controls of the first APP displayed in the first floating window are referred to as the first controls of the first APP, and the controls of the first APP displayed in the display interface are referred to as second controls. The first control and the second control are different controls of the first APP.
[0153] In an embodiment of the present application, an electronic device can install and use a first APP, wherein the first APP can be an APP installed by the electronic device when it leaves the factory, or can be an APP installed by the user according to his or her own needs during the application process of the electronic device. The first APP supports more than two controls, and the control can be a function button for switching or opening a function of the first APP. In addition, the control of the first APP is defined by the application developer of the first APP.
[0154] When the electronic device receives a selection operation for a certain control of the first APP, the first APP will implement the corresponding function. Among them, when a certain control is a function button for opening editing of a function of the first APP, and a selection operation for the control is received, the first APP will enter the interface for opening editing of the function corresponding to the control, so that the user can complete the editing according to his own needs. In addition, when the control is displayed in the first floating window and the display interface of the first APP, the name and icon of the control are usually displayed. Exemplarily, when the first APP includes a "Personal Information" control, and the "Personal Information" control is a control for editing the user's personal information, referring to the schematic diagram shown in Figure 4 (a), when this control is displayed, the name and icon of the "Personal Information" control are usually displayed.
[0155] When a certain control is a function button for switching a function of the first APP, and a selection operation for the control is received, the first APP turns on or off the function corresponding to the control. In addition, when the control is displayed in the first floating window and the display interface of the first APP, the name of the control is usually displayed, and the function is displayed as on or off. Exemplarily, when the first APP includes a "user message reminder" control, and the "user message reminder" control is used to turn on or off the user message reminder function, refer to the schematic diagram shown in Figure 4 (b). When this control is displayed, the name of the "user message reminder" control is usually displayed, and the function is displayed as on or off. In Figure 4 (b), the state of the "user message reminder" control is the function off state, indicating that the first APP has turned off the user message reminder function.
[0156] In one example, the first APP is the Dianping APP, which provides multiple control interfaces. Different control interfaces can provide different controls of the first APP. The controls corresponding to each control interface of the first APP can be shown in Figure 5(a).
[0157] Among them, Figure 5(a) shows that in the initial interface of the Dianping APP, a "My" control is displayed. The initial interface refers to the interface displayed when the electronic device opens the APP but does not operate the APP. After receiving the selection operation for the "My" control, the Dianping APP jumps to display another interface, which includes the "Settings" control and the "Favorites" control. After receiving the selection operation for the "Settings" control, the Dianping APP jumps again to display another interface, which displays the "Personal Information" control and the "Message and Push Notification" control. After receiving the selection operation for the "Personal Information" control, the Dianping APP jumps again to another interface, which displays various controls related to personal information, such as "Avatar", "Personal Information" and "Delivery Address" controls.
[0158] In addition, when the "Personal Information" control and the "Message and Push Notification" control are displayed in the interface, if a selection operation is received for the "Message and Push Notification" control, the Dianping APP will jump to another interface again, which displays various controls related to messages and push notifications, such as "Activity Push", "User Message Reminder" and "Nearby Recommendations" controls.
[0159] When the displayed interface of the Dianping APP includes the "Settings" control and the "Favorites" control, if a selection operation is received for the "Favorites" control, the interface displayed after the Dianping APP jumps usually includes various controls related to the collection, such as "Merchants", "Comments" and "Group Purchase" controls.
[0160] The above controls are used to control the functions of the Dianping APP. Among them, the "Avatar" control is used to adjust the user's avatar displayed in the Dianping APP; the "Personal Information" control is used to determine the user's personal information; the "Delivery Address" control is used to determine the user's delivery address; the "Activity Push" control is used to indicate whether to receive activity push information; the "User Message Reminder" control is used to indicate whether to receive user messages; the "Nearby Recommendations" control is used to indicate whether to receive recommendations for nearby merchants; the "Merchant" control is used to display the merchant information collected by the APP; the "Comments" control is used to display the comments information collected by the APP; and the "Group Purchase" control is used to display the group purchase information collected by the APP.
[0161] Referring to FIG. 5( a ), in this example, the above-mentioned controls, such as the “My” control, the “Settings” control, the “Favorites” control, the “Personal Information” control, the “Message and Push Notification” control, the “Avatar” control, the “Personal Information” control, the “Delivery Address” control, the “Activity Push” control, the “User Message Reminder” control, the “Nearby Recommendations” control, the “Merchant” control, the “Comments” control, and the “Group Purchase” control are controls of the Dianping APP.
[0162] In another example, the first APP is WeChat APP, which provides multiple control interfaces. Different control interfaces can provide different controls of the first APP. The controls corresponding to each control interface of the first APP can be shown in Figure 5(b).
[0163] Among them, Figure 5(b) shows that in the initial interface of the WeChat APP, the "Me" control is displayed. After receiving the selection operation for the "Me" control, the WeChat APP jumps to display another interface, which includes the "Settings" control and the "Favorites" control. After receiving the selection operation for the "Settings" control, the WeChat APP jumps again to display another interface, which displays the "Account and Security" control, the "New Message Reminder" control and the "Do Not Disturb" control. After receiving the selection operation for the "Account and Security" control, the WeChat APP jumps again to another interface, which displays various controls related to the account and security, such as the "Voice Lock", "WeChat Password" and "Emergency Contact" controls.
[0164] In addition, when the "Account and Security" control, "New Message Reminder" control and "Do Not Disturb" control are displayed in the interface, if a selection operation is received for the "New Message Reminder" control, the WeChat APP will jump to another interface again, which displays various controls related to new message reminders, such as "Receive new message notifications", "Receive voice and video call invitations" and "Notification displays message details".
[0165] When the interface displays the "Account and Security" control, the "New Message Reminder" control and the "Do Not Disturb" control, if a selection operation is received for the "Do Not Disturb" control, the WeChat APP will jump to another interface again, which displays the "Do Not Disturb Mode" control.
[0166] When the displayed interface of the WeChat APP includes the "Settings" control and the "Favorites" control, if a selection operation is received for the "Favorites" control, the interface displayed after the WeChat APP jumps usually includes various controls related to the collection, such as "Links", "Files" and "Music" controls.
[0167] The above controls are used to control the functions of WeChat APP. Among them, the "Voice Lock" control is used to set the voice lock of WeChat APP; the "WeChat Password" control is used to adjust the password of WeChat; the "Emergency Contact" control is used to determine the contact information of the emergency contact; the "Receive New Message Notification" control is used to indicate whether to receive new messages; the "Receive Voice and Video Call Invitations" control is used to indicate whether WeChat APP receives voice and video call invitations; the "Notify Display Message Details" control is used to indicate whether to prompt the sender and content summary of the new message when receiving a new message; the "Do Not Disturb Mode" control is used to indicate whether to enter the Do Not Disturb mode. When WeChat APP enters the Do Not Disturb mode and is not running in the foreground, WeChat APP will not ring or vibrate after receiving new information to avoid disturbing the user; the "Link" control is used to display the links collected by WeChat APP; the "File" control is used to display the files collected by WeChat APP; the "Music" control is used to display the music collected by WeChat APP.
[0168] See Figure 5(b). In this example, the above-mentioned controls, such as the "Me" control, the "Settings" control, the "Favorites" control, the "Account and Security" control, the "New Message Reminder" control, the "Do Not Disturb" control, the "Voice Lock" control, the "WeChat Password" control, the "Emergency Contact" control, the "Receive New Message Notification" control, the "Receive Voice and Video Call Invitations" control, the "Notification Displays Message Details" control, the "Do Not Disturb Mode" control, the "Link" control, the "File" control and the "Music" control are controls of the WeChat APP.
[0169] Of course, the first APP may also be other APPs, and correspondingly, the controls of the first APP may also be other controls, which is not limited in this embodiment of the present application.
[0170] Further, in the solution disclosed in the embodiment of the present application, when the electronic device displays the first control through the first floating window located on the first display interface, the third control corresponding to the first APP can also be displayed at the same time, and the third control is usually also displayed through the floating window set on the display interface, and the floating window for displaying the third control can be called a second floating window. The third control is introduced below.
[0171] The third control is a function button for controlling the operating system of the electronic device, and the second floating window displaying the third control can be provided by an operating system other than the first APP. The operating system of the electronic device often supports multiple functions, and the control used to control the functions supported by the operating system of the electronic device is the third control.
[0172] For example, the electronic device may support connection to wireless local area networks (WLAN), and the electronic device needs to be configured with a WLAN control to control whether the electronic device is connected to the wireless network through the WLAN control; the electronic device may support a positioning function, and accordingly, the electronic device needs to be configured with a positioning control, such as a GPS control, to control whether the electronic device turns on the GPS function to achieve positioning through the positioning control; in addition, the electronic device may also support a Bluetooth function, and the electronic device may also be configured with a Bluetooth control to control whether the electronic device turns on the Bluetooth function through the Bluetooth control; when the electronic device supports a near field communication (NFC) function, the electronic device may also be configured with an NFC control to control whether the electronic device turns on the near field communication function through the NFC control. In this case, the WLAN control, the GPS control, the Bluetooth control, and the NFC control may all be referred to as third controls.
[0173] Of course, the third control may also include other controls, such as a brightness adjustment control, an airplane mode control, an eye protection mode control, or a control for locking the automatic rotation of the screen, etc., which is not limited in this embodiment of the present application.
[0174] In an embodiment of the present application, the third control is usually located in a second floating window set on the display interface of the first APP. The first floating window displaying the first control and the second floating window displaying the third control can be different floating windows, or can also be the same floating window.
[0175] In order to clarify the solution disclosed in the present application, the solution disclosed in the present application is introduced and explained below by taking a specific application scenario as an example.
[0176] In scenario one, after the electronic device opens the first APP, without the need for additional user operations, the electronic device automatically sets a first floating window on the upper layer of the first display interface of the first APP, and displays the first control of the first APP through the first floating window. The first display parameter of the first APP includes at least one of the following: the display permission of the metadata corresponding to the control of the first APP, the frequency of use of the control of the first APP, the mapping relationship between the type of the first APP and the first control, and the interface identifier of the first display interface. The specific meaning of each first display parameter and the method of determining the first control according to each first display parameter are explained later.
[0177] Among them, the control displayed in the first display interface of the first APP can be called the second control, and the first control and the second control are different controls. In other words, the controls not included in the first display interface of the first APP are displayed through the first floating window. The first display interface of the first APP refers to the display interface of the first APP that is currently opened and displayed.
[0178] After the electronic device installs the first APP, the icon and name of the first APP are usually displayed on the desktop of the electronic device for the user to select. When the user needs to use the first APP, the user can click the icon of the first APP displayed on the desktop.
[0179] After receiving a click on the icon of the first APP, the electronic device starts the first APP and displays the first display interface of the first APP, which may include some operable controls (i.e., second controls). In addition, on the upper layer of the display interface of the first APP, the electronic device automatically displays a first floating window, which displays the first control of the first APP, and the first control is different from the control displayed on the first display interface.
[0180] Since in this scenario, the first floating window is displayed on the upper layer of the first display interface, and the first floating window includes the first control that is not displayed in the first display interface, when the user views the first display interface, the user can simultaneously view the first control displayed in the first floating window and the second control displayed on the first display interface.
[0181] In addition, the first control is a function button for turning on and off the function of the first APP, and the first control is displayed in a first floating window on the first display interface of the first APP, including displaying the name and icon of the first control in the first floating window; or, the first control is a function button for turning on and off the function of the first APP, and the first control is displayed in a first floating window on the first display interface of the first APP, including: displaying the name and status of the first control in the first floating window, and displaying that the function is in the on state or the function is in the off state.
[0182] When the first floating window includes a control currently needed by the user, the user can directly operate the control in the first floating window, such as opening the first control or closing the first control. After receiving an operation on a first control in the first floating window, the electronic device executes a function corresponding to the operation.
[0183] In the prior art, a user often needs to click on a control in a first APP multiple times before the electronic device can display the first control required by the user.
[0184] In the scenario 1 disclosed in the present application, after the electronic device opens the first APP, the electronic device automatically displays the first floating window on the upper layer of the first display interface of the first APP, and displays the first control through the first floating window, and the first control is different from the second control displayed in the first display interface. Compared with the prior art, the solution of the present application provides users with more selectable controls through the first floating window, which can reduce the user's operations on the controls of the first APP when a certain control is needed, that is, simplifies the user operations required when displaying the controls of the APP.
[0185] For example, when the first control displayed in the first floating window includes a control currently required by the user, the user can directly operate the first control, thereby eliminating the need to click the control multiple times to obtain the required control.
[0186] Furthermore, in the solution disclosed in the embodiment of the present application, the electronic device determines the first control displayed in the first floating window according to the first display parameter of the first APP. Therefore, even for the same first APP, when the first display parameter of the first APP is different, the first control displayed in the first floating window may also be different, thereby meeting the diverse needs of users.
[0187] For example, when it is determined according to user needs that the user wants to display certain controls in the first floating window, the display permissions of the metadata corresponding to these controls may be adjusted so that these controls can be displayed in the first floating window.
[0188] In some feasible embodiments, in this scenario, when the number of first controls that can be displayed in the first floating window is large, the first controls that can be displayed in the first floating window can be divided into at least two groups, one of which can be displayed in the first floating window, and the first folding icon can be displayed. When a touch operation on the first folding icon is received, the remaining group of first controls is selected and displayed in the first floating window.
[0189] The remaining group of first controls can replace the previously displayed first controls, that is, only one group of first controls is displayed in the first floating window at a time. When the first floating window displays the last group of first controls, the electronic device adjusts the first folding icon to the first return icon. After receiving a touch operation on the first return icon, the first floating window displays the previous group of first controls; or, when a touch operation on the first folding icon is received, the currently displayed first controls and the remaining group of first controls can also be displayed at the same time.
[0190] In this way, the first controls can be displayed in the first floating window in a grouped manner. The more first controls are displayed in the first floating window, the larger the area of the first floating window tends to be. When the area of the first floating window is large, it is possible to block the content in the display interface of the first APP. In the above manner, it is possible to avoid displaying more first controls in the first floating window each time, thereby reducing the blocking of the display interface by the first floating window.
[0191] In this case, when the first floating window does not contain the first control required by the user, the electronic device can adjust the first control displayed in the first floating window by receiving the touch operation on the first folding icon, so that the first control displayed in the first floating window meets the user's needs.
[0192] Furthermore, in this case, if the first control required by the user is not displayed in the current first floating window, the user is required to perform a touch operation on the first folding icon. However, in some cases, compared with the prior art, the solution of the present application requires the user to perform fewer touch operations and can still simplify user operations.
[0193] For example, when the first APP is WeChat APP, the relationship between the first APP's controls and each control interface is shown in FIG5(a), and when the user needs to operate the "Notification Display Message Details" control, he needs to click the three controls of "Me" - "Settings" - "New Message Reminder" in sequence, and then the "Notification Display Message Details" control is displayed in the WeChat APP interface so that the user can operate it. That is to say, in the prior art, the user needs to click the control three times in a row to make the electronic device display the "Notification Display Message Details" control.
[0194] In the scheme disclosed in the embodiment of the present application, when the "notification display message details" control belongs to the first group of first controls displayed in the first floating window, the user does not need to touch the first folding icon to display the first control required by the user in the first floating window; when the "notification display message details" control belongs to the second group of first controls displayed in the first floating window, and the first floating window displays the first group of first controls, the user only needs to touch the first folding icon once, and the first floating window will display the "notification display message details" control; when the "notification display message details" control belongs to the third group of first controls displayed in the first floating window, and the first floating window displays the first group of first controls, the user only needs to touch the first folding icon twice, and the first floating window will display the "notification display message details" control. Therefore, compared with the prior art, the operations that the user needs to perform are simplified.
[0195] Furthermore, in this scenario, when the electronic device displays the first control of the first APP through the first floating window, it can also simultaneously display the third control corresponding to the first APP in the second floating window on the first display interface of the first APP, where the third control is a function button for controlling the operating system of the electronic device on which the first APP is installed, and the first floating window and the second floating window can be different floating windows or the same floating window, which is not limited to the embodiments of the present application.
[0196] The electronic device usually determines the third control corresponding to the first APP according to the second display parameter of the first APP. The second display parameter includes at least one of the following: the system permission of the first APP, the system function indicated by the component of the first APP, and the mapping relationship between the type of the first APP and the third control.
[0197] When the first floating window and the second floating window are different floating windows, the electronic device may display the second floating window while displaying the first floating window. Alternatively, upon receiving a trigger operation for displaying the second floating window, the electronic device displays the second floating window. The trigger operation for displaying the second floating window may be a touch operation, a voice input operation, or an air gesture operation on the electronic device, and the touch operation may be a sliding operation on the touch area (such as a pull-down sliding operation or a left-right sliding operation, etc.), or a click operation on a certain setting icon, etc., which is not limited in comparison with the embodiments of the present application.
[0198] In the prior art, a setting icon corresponding to a third control is provided on the desktop of an electronic device. When a click on the setting icon is received, the electronic device jumps to a setting page, which provides multiple types of third controls for the user to select the third control currently required and operate the selected third control.
[0199] However, when applying this method to operate the third control, the user is first required to switch the first APP to background operation so that the electronic device displays the desktop, and then the user clicks the setting control on the desktop to make the electronic device display the setting page including the third control. Only then can the user operate the third control included in the setting page. Therefore, the operation is more cumbersome.
[0200] In scenario one disclosed in the present application, while the first control is displayed through a first floating window located on the first display interface, the third control can also be displayed through a second floating window located on the first display interface, and the user can directly operate the third control displayed in the second floating window.
[0201] Therefore, when the user operates the third control through the solution disclosed in the embodiment of the present application, there is no need to switch the first APP to background operation. Compared with the method of displaying the third control in the prior art, the user operation can be simplified.
[0202] Exemplarily, in this scenario, after the electronic device opens the first APP, that is, after starting the first APP, it automatically sets a second floating window on the upper layer of the first display interface of the first APP. When the first control and the third control are displayed in the same floating window, the interface schematic diagram displayed by the electronic device may be as shown in Figure 6(a). In Figure 6(a), not only the first display interface 601 of the first APP is included, but also a first floating window 600 is included in the upper layer of the first display interface. The first floating window 600 is the same floating window as the second floating window. The first floating window 600 displays the first control 610 and the first folding icon 620 of the first APP, and also displays the third control 630.
[0203] Among them, in Figure 6 (a), the first control 610 includes: a user message reminder control and a personal information control, and the third control 630 includes: a WLAN control and a location control. Of course, in actual application, the first floating window can also display other first controls and third controls, and the embodiment of the present application does not limit this.
[0204] When the first control displayed in the first floating window includes the first control currently required by the user, the user will click the first control. After receiving the click operation on the first control, the electronic device executes the function corresponding to the first control. For example, when the clicked first control is an activity push control, and this click is to open the activity push control, the first APP will subsequently display the activity push message to the user.
[0205] Further, when the first controls displayed in the first floating window do not include the first controls currently required by the user, the user clicks the first folding icon 620. After receiving the click operation on the first folding icon 620, the electronic device displays other first controls in the first floating window for the user to select.
[0206] In addition, when the third control displayed in the first floating window includes the third control currently required by the user, the user can click the third control. Correspondingly, after receiving the click operation on the third control, the electronic device will also execute the function corresponding to the third control.
[0207] In another example, the first control and the third control may be located in different floating windows. In this case, the interface diagram displayed by the electronic device may be as shown in FIG6(b). In FIG6(b), not only the first display interface 601 of the first APP is included, but also the upper layer of the first display interface includes a first floating window 640 and a second floating window 650. The first floating window 640 displays the first control 610 and the first folding icon 620, and the second floating window 650 displays the third control 630.
[0208] In addition, in Figure 6(a) and Figure 6(b), the interface of an APP is displayed on the display screen of the electronic device, that is, the interface of the first APP is displayed in full screen form in the electronic device. In actual application, the display screen of the electronic device can also display the interfaces of more than two different APPs at the same time. In this case, the upper layer of the display interface of different APPs can be respectively provided with the first floating window and the second floating window corresponding to the APP, and the first control of the APP is displayed through the first floating window corresponding to the APP, and the third control of the APP is displayed through the first floating window corresponding to the APP. In addition, the first floating window and the second floating window corresponding to different APPs can be the same floating window or different floating windows.
[0209] Exemplarily, when the electronic device simultaneously displays the display interfaces of two APPs, the two APPs are respectively the first APP and the second APP, and the first floating window and the second floating window corresponding to the two APPs are the same floating window, the interface schematic diagram displayed by the electronic device may be as shown in FIG6(c). In FIG6(c), a first display interface 660 of the first APP is included, and an animated video is displayed in the first display interface 660 in this example. In addition, the upper layer of the first display interface 660 also includes a first floating window 670 corresponding to the first APP, and the first control and the first folding icon of the first APP are displayed in the first floating window 670, and the first control includes an active push control. In addition, in this example, the first floating window 670 of the first APP is the same as the second floating window, and the third control corresponding to the first APP can also be displayed in the first floating window 670, and the third control includes a do not disturb mode control. In addition, Figure 6(c) also includes a second display interface 680 of the second APP, which displays merchants and food, entertainment and other options recommended to the user, and the upper layer of the second display interface 680 also includes a first floating window 690 corresponding to the second APP. The first control and the first folding icon of the second APP are displayed in the first floating window 390. The first control of the second APP includes a user message reminder control and a personal profile control. In addition, the third control of the second APP can also be displayed through the second floating window in the upper layer of the second interface 680 (the second floating window is not shown in Figure 6(c)).
[0210] In scenario 2, when the electronic device opens the first APP and receives a trigger operation for displaying the first floating window, the electronic device displays the first control of the first APP through the first floating window, and the first floating window is located on the upper layer of the first display interface of the first APP. Similar to scenario 1, the first control is determined by the first display parameter of the first APP.
[0211] Among them, the control displayed in the first display interface of the first APP can be called a second control, and the first control displayed in the first floating window is different from the second control.
[0212] In this scenario, when the user needs to operate a certain control and the control required by the user is not displayed in the first display interface of the first APP, the user can perform a trigger operation on the electronic device. After the electronic device receives the trigger operation, the first floating window displays the first control of the first APP.
[0213] The triggering operation for displaying the first floating window may be a variety of operations. Exemplarily, the triggering operation for displaying the first floating window includes at least one of the following: a sliding operation on a touch area, an air gesture operation, a voice input operation, and a click operation on a first prompt icon on the first display interface.
[0214] Exemplarily, the operation for displaying the first floating window may be a sliding operation on the touch area of the electronic device, and the touch operation may be a pull-down sliding operation or a left-right sliding operation on the touch area. Alternatively, in order to reduce the possibility of false triggering, the touch operation may also be a relatively rare sliding operation, for example, referring to the schematic diagram shown in FIG. 7( a ), the touch operation is a touch operation from the lower right corner to the upper left corner of the touch area.
[0215] In the touch area of the electronic device, sensors are usually built in, such as temperature sensors, pressure sensors and / or capacitance sensors. When the user touches the touch area of the electronic device, different vibration and / or acoustic effects may be generated, and the generated effects will cause the built-in sensor of the electronic device to generate corresponding signals, such as temperature signals generated by temperature sensors, pressure signals generated by pressure sensors, capacitance signals generated by capacitance sensors, etc. The electronic device determines the touch point coordinates of the touch operation in the touch area based on the signal generated by the sensor, and determines whether the received touch operation is a pull-down operation or a side-slide operation based on the touch point coordinates. In this case, when it is determined that the user's sliding operation on the touch area is a pull-down sliding operation or a left-right sliding operation, the electronic device displays the first floating window again, and displays the first control of the first APP through the first floating window.
[0216] In another example, the trigger operation for displaying the first floating window may also be a corresponding voice input operation. In this case, the voice collection device (such as a microphone) of the electronic device collects the voice uttered by the user, and performs recognition processing on the voice, and determines whether the first floating window needs to be displayed according to the result of the recognition processing. For example, after the user utters the voice "display the first floating window", the electronic device may display the first floating window, and display the first control through the first floating window.
[0217] Alternatively, in another example, the triggering operation for displaying the first floating window may be a specific gesture operation. The gesture operation may be an air gesture operation. In this case, the electronic device may capture a gesture image including the air gesture operation through an image acquisition device (such as a camera). When the air gesture operation performed by the user is determined to be a specific gesture operation through analysis and processing of the gesture image, the electronic device then displays the first floating window including the first control.
[0218] Exemplarily, the triggering operation for displaying the first floating window may be an air gesture operation as shown in FIG7(b), where the air gesture operation is to place a palm with five fingers together just above the display screen of the electronic device. In this case, when the electronic device determines that the user has made the air gesture operation as shown in FIG7(b), the first floating window is displayed.
[0219] In addition, in another example, a first prompt icon may be set in the upper layer of the first display interface of the first APP. In this case, the triggering operation for displaying the first floating window includes a click operation on the first prompt icon. After receiving the click operation on the first prompt icon, the electronic device displays the first floating window in the upper layer of the first display interface of the first APP, and displays the first control of the first APP through the first floating window.
[0220] Exemplarily, when a first prompt icon is set on the upper layer of the first display interface, the first display interface of the first APP may be as follows: Figure 8 As shown. Figure 8 , including a first prompt icon 810 displayed in the first display interface of the first APP.
[0221] Compared with the first floating window, the first prompt icon occupies a smaller position, thereby reducing the obstruction of the content in the first display interface, and the first prompt icon can serve as a prompt for the user so that the user can click the first prompt icon when the first floating window needs to display the first control.
[0222] Of course, the triggering operation for displaying the first floating window may also be other forms of operations, which is not limited in the embodiments of the present application.
[0223] In this scenario, the electronic device displays the first floating window on the upper layer of the first display interface of the first APP only after receiving a trigger operation, and displays the first control not included in the display interface of the first APP through the first floating window, thereby providing the user with a larger number of first controls through the display interface of the first APP, thereby reducing the touch operations performed by the user on the first APP when the user needs the first control, i.e., simplifying the user operations required to display the first control of the APP.
[0224] Furthermore, in this scenario, the electronic device displays the first floating window only after receiving a trigger operation. Accordingly, when the user does not need the first control displayed in the first floating window, the electronic device will not be triggered, and the first floating window will not be displayed on the upper layer of the first display interface. Therefore, in this scenario, when the user does not need the first control, the first floating window will not be displayed in the first display interface, thereby preventing the first floating window from blocking the display interface.
[0225] In addition, similar to scenario one, in scenario two, when the number of first controls that can be displayed in the first floating window is large, the first controls can also be displayed in the first floating window in a grouped manner, that is, a group of first controls and a first folding icon are displayed in the first floating window, and when a touch operation is received on the first folding icon, another group of first controls is displayed.
[0226] Furthermore, in this scenario, when the electronic device displays the first control of the first APP through the first floating window, it can also display the third control at the same time. The third control is usually displayed through the second floating window, and the first floating window and the second floating window can be the same floating window or different floating windows. Therefore, when the user needs to operate the third control through the solution disclosed in the embodiment of the present application, there is no need to switch the first APP to background operation, which can simplify the user operation compared to the method of displaying the third control in the prior art.
[0227] When the first floating window and the second floating window are different floating windows, the electronic device may display the second floating window while displaying the first floating window. Alternatively, upon receiving a trigger operation for displaying the second floating window, the electronic device displays the second floating window. The trigger operation for displaying the second floating window may be a sliding operation on the touch area of the electronic device, a voice input operation, an air gesture operation, or a click operation on a set icon in the electronic device, etc., which is not limited in comparison with the embodiments of the present application.
[0228] For example, in this scenario, after receiving the trigger operation, the electronic device may display the interface diagram as shown in the following figure: Figures 6(a) to 6(c) As shown in any of the schematic diagrams.
[0229] In the above description, different scenarios for applying the control display method of the embodiment of the present application are disclosed. Of course, the control display method disclosed in the embodiment of the present application can also be applied to other scenarios, and the embodiment of the present application is not limited to this.
[0230] In each of the above scenarios, the electronic device needs to display the first control of the first APP through the first floating window. Fig. 9 The workflow diagram shown in the figure, in the control display method disclosed in the embodiment of the present application, includes the following steps:
[0231] Step S11: start a first application APP, and determine a first control of the first APP according to a first display parameter of the first APP.
[0232] Among them, the first display parameter of the first APP includes at least one of the following: display permission of metadata corresponding to the control of the first APP, frequency of use of the control of the first APP, mapping relationship between the type of the first APP and the first control, and interface identifier of the first display interface.
[0233] The interface identifier of the display interface is an identifier used to distinguish different display interfaces, and different display interfaces have different identifiers. Exemplarily, the identifier of the display interface may include interface elements displayed by the display interface and / or content contained in the source code of the display interface, and the interface elements may be icons, menus, and / or text content, etc.
[0234] Of course, the interface identifier of the display interface may also be other identifiers that can distinguish different display interfaces, and the embodiment of the present application does not limit this.
[0235] In addition, in step S11, the operation of starting the first APP and the operation of determining the first control of the first APP according to the first display parameter of the first APP are disclosed. In the control display method disclosed in the embodiment of the present application, the execution process of these two operations does not have a strict time sequence.
[0236] For example, in an embodiment of the present application, after starting the first APP, the first control of the first APP can be determined according to the first display parameter of the first APP. In this case, when other APPs in the electronic device are not started, the electronic device does not need to determine the first control of the other APPs, thereby reducing the workload of the electronic device.
[0237] In another example, the first control of the first APP can be determined according to the first display parameter of the first APP before the first APP is started. For example, after the first APP is installed, the electronic device determines the first control of the first APP. In this case, the first control of the first APP can be determined before the first APP is started. Therefore, compared with determining the operation of the first control after the first APP is started, the operation after the first APP is started is simplified, and the speed of displaying the first control in the first floating window is improved.
[0238] Step S12: display a first display interface of the first APP, and display the first control in a first floating window on the first display interface.
[0239] The first control is different from the second control, and the second control is a control displayed in the first display interface.
[0240] The electronic device can determine the various controls of the first APP through the metadata of the components contained in the installation package of the first APP and the metadata in the components. Specifically, the names and icons of the various controls of the first APP can be determined. In addition, when a certain control of the first APP is a function button for turning on and off the functions of the first APP, the electronic device can also determine the state of the control through interaction with the first APP, and the state includes: function-on state and function-off state.
[0241] The developer or provider of the first APP sets corresponding display permissions for metadata corresponding to each control that can be displayed in the first floating window in the installation package of the first APP, or the developer or provider of the first APP creates a related file, indicating in the related file that metadata corresponding to each control that can be displayed in the first floating window has display permissions, and the electronic device can determine the display permissions of the metadata of the component through the related file. Through the display permissions of the metadata of the component, the electronic device can determine whether the corresponding control has display permissions.
[0242] Correspondingly, the first display parameter may include the display permission of the metadata corresponding to the first APP control. In this case, the electronic device determines the first control of the first APP according to the display permission of the metadata corresponding to the control of the first APP.
[0243] Exemplarily, the first display parameter of the first APP includes display permission of metadata corresponding to a control of the first APP, and determining the first control of the first APP according to the first display parameter of the first APP includes the following steps:
[0244] First, determine that at least one control corresponding to metadata with display permission among the controls of the first APP is a first target control, that is, the first target control is a control corresponding to metadata with display permission. Then, determine that at least one control among the first target controls that is different from the second control is a first control of the first APP.
[0245] In this way, the electronic device determines that the control corresponding to the metadata with display permission is the first control of the first APP, and whether the metadata has display permission can be set by the developer or provider of the first APP. Therefore, the first control of the first APP can be determined according to the setting of the developer or provider of the first APP.
[0246] In addition, the first display parameter of the first APP may also include the usage frequency of the control of the first APP. In this case, in the embodiment of the present application, determining the first control of the first APP according to the first display parameter of the first APP includes the following steps:
[0247] First, at least one control in the controls of the first APP whose usage frequency is greater than the first threshold is determined as the second target control, or the first n controls with the highest usage frequency in the controls of the first APP are determined as the second target controls, where n is a set positive integer. In the specific implementation process, the controls of the first APP can be sorted in descending order of usage frequency, and the first n controls in the sorting are used as the second target controls.
[0248] Then, at least one control in the second target control that is different from the second control is determined to be a first control of the first APP.
[0249] In addition, in this implementation, the usage frequency of the controls of the first APP includes the usage frequency of the controls of the first APP by users of different electronic devices and / or the usage frequency of the controls of the first APP by the current user of the electronic device.
[0250] If the usage frequency of the controls of the first APP includes the usage frequency of the controls of the first APP by different users, during the use of the first APP, different electronic devices will count the usage frequency of different controls of the first APP by each user, and upload the usage frequency to the server. The server counts the usage frequency of different controls by each user, and feeds the usage frequency back to the electronic device.
[0251] Exemplarily, through the feedback from the server, the usage frequency of each control of the first APP determined by the electronic device is as shown in Table 1:
[0252] Table 1
[0253] First APP Controls Frequency of use Receive new message notifications 23 Receive audio and video call invitations 50 Notification displays message details 15 Do Not Disturb Mode 100 Favorite File 65
[0254] Moreover, in this example, the electronic device determines that among the various controls of the first APP, the control whose usage frequency exceeds the first threshold is the second target control, and the first threshold is 20, and the second target controls include: a do not disturb mode control, a favorite file control, a control for receiving voice and video call invitations, and a control for receiving new message notifications. When none of the four second target controls are displayed on the first display interface, the four second target controls can be determined to be the first controls.
[0255] This method can determine the first control according to the frequency of use of the control of the first APP by users of different electronic devices, and therefore, can make the first control conform to the usage habits of most users.
[0256] In addition, after the electronic device uses the first APP for a period of time, the frequency of use of the first APP's controls by the current user of the electronic device can also be used as the frequency of use of the first APP's controls. In this case, the electronic device can count the frequency of use of each control of the first APP by the user in each use cycle, and determine the first control of the first APP based on the frequency of use of each control of the first APP in the use cycle.
[0257] This method can determine the first control according to the frequency of use of the control of the first APP by the user of the electronic device. Therefore, the determined first control is more in line with the usage habits of the user of the electronic device, thereby improving the user experience.
[0258] Furthermore, the usage frequency of the first APP's controls can also include the usage frequency of the first APP's controls by users of different electronic devices and the usage frequency of the first APP's controls by the current user of the electronic device. In this case, the electronic device can first determine the first control based on the usage frequency of the first APP's controls by users of different electronic devices, and display the first control through a first floating window set on the first display interface. Then, after the electronic device has applied the first APP for a period of time, it can redetermine the first control based on the usage frequency of the first APP's controls by the current user of the electronic device after each use cycle, and display the redetermined first control through the first floating window.
[0259] The usage period can be set by the electronic device when it leaves the factory, and can also be adjusted according to the received user operation. For example, the usage period can be one week. Of course, the usage period can also be other durations, which is not limited in the embodiments of the present application.
[0260] In this way, the electronic device can periodically determine the first control of the first APP, so that the first control meets the usage requirements of the user, further improving the user's usage experience when applying the first APP.
[0261] When the first display parameter of the first APP includes a mapping relationship between the type of the first APP and the first control, the electronic device may further store the mapping relationship between the type of the APP and the first control. In this case, the electronic device determines the first control of the first APP according to the first display parameter of the first APP, including the following steps:
[0262] First, at least one third target control is determined according to the type of the first APP and the mapping relationship between the type of the first APP and the first control.
[0263] Then, it is determined that a control different from the second control in at least one of the third target controls is a first control of the first APP.
[0264] Exemplarily, the mapping relationship between different APP types and the first control may be as shown in Table 2:
[0265] Table 2
[0266] Types of apps First Control (1) First Control (2) Audio and Video Entertainment Video push Do Not Disturb Shopping New message push Add to Favorites Social Communications Photo Album Emoticon settings
[0267] In Table 2, the types of APPs are divided into: audio-visual entertainment, shopping consumption, and social communication. Among them, the first control corresponding to the audio-visual entertainment APP may include a video push control and a do not disturb control; the first control corresponding to the shopping consumption APP may include a new message push control and a favorite store control; the first control corresponding to the social communication APP includes an album control and an emoticon setting control. In this case, after the electronic device determines the type of the first APP, it can determine the first control corresponding to the first APP according to the type of the first APP by querying the mapping relationship.
[0268] Of course, the APP may also be divided into other APP types, which is not limited in the embodiments of the present application.
[0269] In addition, in this implementation, the electronic device can determine the type of the first APP in a variety of ways. In one of the ways, when installing the first APP, the electronic device downloads the installation package of the first APP through the application market, and the application market divides each APP into different types. Therefore, when the electronic device downloads the installation package of the first APP, it can determine the type of the first APP by accessing the application market.
[0270] Alternatively, the electronic device may store a mapping relationship between the name and type of each APP, and determine the type of the first APP through the mapping relationship.
[0271] Furthermore, the electronic device may also update the mapping relationship between the type of the first APP and the first control stored in the electronic device by accessing a server or receiving user input.
[0272] In another feasible implementation, the first display parameter of the first APP includes an interface identifier of the first display interface. Through the interface identifier of the first display interface, the electronic device can determine the interface of the first APP currently displayed.
[0273] In this case, determining the first control of the first APP according to the first display parameter of the first APP includes the following steps:
[0274] First, according to the interface identifier of the first display interface, at least one fourth target control associated with the first display interface is determined. Wherein, at least one of the fourth target controls is at least one control displayed in the display interface of the lower level when the electronic device using the first APP jumps to the display interface of the lower level of the first display interface.
[0275] Then, it is determined that a control different from the second control in at least one of the fourth target controls is a first control of the first APP.
[0276] The following is an example to illustrate the controls associated with the first display interface. In this example, the controls corresponding to the various display interfaces of the first APP are shown in Figure 4(a). When the first display interface is a display interface displaying the "Settings" control and the "Favorites" control, after receiving a selection operation for the "Settings" control, the first APP will jump to the third display interface including the "Personal Information" control and the "Message and Push Notification" control; after receiving a selection operation for the "Personal Information" control, the first APP will jump again to the fourth display interface including the "Avatar" control, the "Personal Information" control and the "Delivery Address" control.
[0277] In addition, when the "Personal Information" control and the "Message and Push Notification" control are displayed in the interface, if a selection operation is received for the "Message and Push Notification" control, the first APP will jump to the fifth display interface including the "Activity Push" control, the "User Message Reminder" control and the "Nearby Recommendations" control.
[0278] When the "Settings" control and the "Favorites" control are displayed in the interface, if a selection operation for the "Favorites" control is received, the first APP jumps to the sixth display interface including the "Merchant" control, the "Comments" control and the "Group Purchase" control.
[0279] In this case, the third display interface, the fourth display interface, the fifth display interface and the sixth display interface are all subordinate display interfaces of the first display interface, and the controls included in the third display interface, the fourth display interface, the fifth display interface and the sixth display interface are the controls associated with the first display interface.
[0280] In an embodiment of the present application, the electronic device can determine the data structure of the metadata of the components of the first APP through the installation package of the first APP, and then determine at least one control associated with the first display interface based on the data structure of the metadata of the components.
[0281] The data structure of the metadata of the component may be a tree structure. In this case, the metadata corresponding to the control included in the first display interface is set as the first metadata, and in the data structure of the metadata of the component, the control corresponding to the subordinate node of the first metadata is the first control associated with the first display interface. The subordinate nodes of the first metadata are the nodes from the child node of the first metadata to the terminal node of the branch in the tree structure where the first metadata is located, and include the child node of the first metadata and the terminal node of the branch.
[0282] Exemplarily, when the controls corresponding to the various display interfaces of the first APP are as shown in Figure 4(a), then in the data structure of the metadata of the component, the metadata corresponding to the "My" control is the parent node of the metadata corresponding to the "Settings" control and the "Favorites" control, respectively; the metadata corresponding to the "Settings" control is the parent node of the metadata corresponding to the "Personal Information" control and the "Messages and Push Notifications" control, respectively; the metadata corresponding to the "Personal Information" control is the parent node of the metadata corresponding to the "Avatar" control, the "Personal Information" control, and the "Delivery Address" control, respectively; the metadata corresponding to the "Message and Push Notification" control is the parent node of the metadata corresponding to the "Activity Push" control, the "User Message Reminder" control, and the "Nearby Recommendations" control, respectively; the metadata corresponding to the "Favorites" control is the parent node of the metadata corresponding to the "Merchant" control, the "Comments" control, and the "Group Purchase" control, respectively.
[0283] In this example, when the first display interface includes the "Settings" control and the "Messages and Push Notifications" control, the metadata corresponding to the "Avatar" control, the "Personal Information" control, the "Delivery Address" control, the "Activity Push" control, the "User Message Reminder" control, and the "Nearby Recommendations" control are all subordinate nodes of the child node of the first metadata. In this case, the "Avatar" control, the "Personal Information" control, the "Delivery Address" control, the "Activity Push" control, the "User Message Reminder" control, and the "Nearby Recommendations" control can be determined as the fourth target control associated with the first display interface.
[0284] In this method, the electronic device determines the first control of the first APP according to the interface identifier of the first display interface. During the application of the first APP, when the first APP displays the first display interface, if the user needs to touch the control associated with the first display interface, it is often necessary to perform at least one touch operation on the first APP to make the first APP jump to the display interface including the first control required by the user. However, through the solution of the embodiment of the present application, the first control associated with the first display interface can be displayed in the first floating window on the first display interface, thereby reducing the user's touch operation.
[0285] In addition, the electronic device can also simultaneously determine the first control of the first APP through more than two first display parameters. In this case, the first controls corresponding to different first display parameters can be determined separately, and then the collection or union of the first controls corresponding to different first display parameters can be used as the first control displayed in the first floating window.
[0286] In a feasible implementation, the first display parameter of the first APP includes the display permission of the metadata corresponding to the control of the first APP and the interface identifier of the first display interface. Fig.10 In the workflow diagram shown in the figure, the electronic device determines the first control of the first APP according to the first display parameter of the first APP, including:
[0287] Step S21: Determine, among the controls of the first APP, that at least one control corresponding to metadata having display permission is a first target control.
[0288] Step S22: Determine, according to the interface identifier of the first display interface, at least one fifth target control in the first target control that is associated with the first display interface.
[0289] Among them, at least one of the fifth target controls is a first target control displayed in a display interface below the first display interface when the electronic device using the first APP jumps to the display interface below the first display interface.
[0290] That is to say, in step S22, the first target controls are screened according to the interface identifier of the first display interface to determine at least one fifth target control in the first target controls.
[0291] Step S23: Determine that at least one control in the fifth target control that is different from the second control is a first control of the first APP.
[0292] Through the operations of step S21 to step S23, the electronic device can determine the first control of the first APP in combination with the display permission of the metadata corresponding to the control of the first APP and the interface identifier of the first display interface. The metadata corresponding to the first control determined in this way has the display permission, and the first control is also associated with the first display interface, so that the first control can comply with the settings of the developer or provider of the first APP, and when the user needs the first control associated with the first display interface, the first control associated with the first display interface can be displayed in the first floating window, thereby reducing the user's touch operation.
[0293] In another feasible implementation, the first display parameter of the first APP includes the usage frequency of the control of the first APP and the interface identifier of the first display interface. Fig.11 In the workflow diagram shown in the figure, the electronic device determines the first control of the first APP according to the first display parameter of the first APP, including:
[0294] Step S24: determine at least one control among the controls of the first APP whose usage frequency is greater than the second threshold as the sixth target control, or determine the top m controls with the highest usage frequency among the controls of the first APP as the sixth target control, where m is a set positive integer.
[0295] The second threshold may be equal to or different from the first threshold, and m and n may be the same positive integer or different, which is not limited in the embodiment of the present application.
[0296] In addition, the usage frequency of the controls of the first APP includes the usage frequency of the controls of the first APP by users of different electronic devices and / or the usage frequency of the controls of the first APP by the current user of the electronic device.
[0297] Step S25: Determine, according to the interface identifier of the first display interface, at least one seventh target control in the sixth target control that is associated with the first display interface.
[0298] Among them, at least one of the seventh target controls is a sixth target control displayed in the lower-level display interface when the electronic device using the first APP jumps to the lower-level display interface of the first display interface.
[0299] Step S26: Determine that at least one control in the seventh target control that is different from the second control is a first control of the first APP.
[0300] Through the operations of step S24 to step S26, the electronic device can determine the first control of the first APP in combination with the usage frequency of the control of the first APP and the interface identifier of the first display interface. The first control determined in this way is a control with a higher usage frequency, so that it can meet the user's usage habits, and the first control is also associated with the first display interface, so that when the user needs the first control associated with the first display interface, the first control associated with the first display interface can be displayed in the first floating window, reducing the user's touch operation.
[0301] In another feasible implementation, the first display parameter of the first APP includes the display permission of the metadata corresponding to the control of the first APP and the usage frequency of the control of the first APP. Fig.12 In the workflow diagram shown in the figure, the electronic device determines the first control of the first APP according to the first display parameter of the first APP, including:
[0302] Step S27: Determine that at least one control corresponding to metadata having display permission among the controls of the first APP is a first target control.
[0303] Step S28: determine at least one control in the first target control whose usage frequency is greater than a third threshold as the eighth target control, or determine the first s controls with the highest usage frequency in the first target control as the eighth target control, where s is a set positive integer.
[0304] The third threshold may be equal to or different from the first threshold, and s and n may be the same positive integer or different, which is not limited in the embodiment of the present application.
[0305] Step S29: Determine that at least one control in the eighth target control that is different from the second control is a first control of the first APP.
[0306] Through the operations of step S27 to step S29, the electronic device can determine the first control of the first APP in combination with the display permission of the metadata corresponding to the control of the first APP and the frequency of use of the control of the first APP. The metadata corresponding to the first control determined in this way has the display permission, and the first control is a control with a high frequency of use, so it can meet the user's usage habits.
[0307] Through the above implementation, the electronic device can determine the first control of the first APP according to the first display parameter, so that the first floating window can be displayed on the upper layer of the display interface of the first APP, and the first control of the first APP can be displayed through the first floating window.
[0308] In another embodiment of the present application, after determining the first control of the first APP, the electronic device may automatically display the first control in the first floating window on the first display interface after starting the first APP. Alternatively, the first control may be displayed in the first floating window on the first display interface after receiving a trigger operation for displaying the first floating window.
[0309] Among them, the trigger operation for displaying the first floating window includes at least one of the following: a sliding operation on the touch area, an air gesture operation, a voice input operation and a click on the first prompt icon on the first display interface.
[0310] In addition, when the first control is a function button for opening and editing a function of the first APP, the name and icon of the first control are displayed in the first floating window. When the first control is a function button for switching a function of the first APP, the name of the first control is displayed in the first floating window, and it is displayed whether the function is on or off.
[0311] Exemplarily, when the first control of the first APP is as shown in Figure 5(a), after determining that the "User Message Reminder" control is the first control of the first APP, the electronic device can determine the state of the control through interaction with the first APP, and display the name and corresponding state of the first control "User Message Reminder" in the first floating window.
[0312] In addition, after determining that the "Personal Information" control is the first control of the first APP, the electronic device can display the name and icon of the first control "Personal Information" in the first floating window.
[0313] The first APP may have many functions, and the first APP may include multiple first controls. In order to avoid the first floating window displaying too many first controls, which may affect the display effect of the first display interface of the first APP, the first controls may be divided into at least two groups, and one group of first controls may be displayed in the first floating window.
[0314] In this case, in the solution disclosed in the embodiment of the present application, after the first control is determined, the first control is further grouped, and then the first control is displayed in the first floating window according to the grouping situation.
[0315] The number of the first controls is M, the maximum number of the first controls displayed in the first floating window at a time is N, and if M is greater than N, displaying the first controls in the first floating window on the first display interface includes the following steps:
[0316] The first step is to sort the first controls according to the sorting parameters of the first controls;
[0317] Step 2: Display the first N first controls in the sorting order in the first floating window;
[0318] The third step is to display more of the first controls in the first floating window after receiving a click operation on the first folding icon in the first floating window.
[0319] Wherein, M and N are set positive integers. N can be a value preset by the electronic device, and the value of N can also be readjusted according to the setting operation of the user.
[0320] In addition, in the second step, when the first N first controls in the sorting are displayed in the first floating window, the sorting of the first N first controls in the first floating window may be determined according to the sorting result of the first controls.
[0321] Through the above steps, the electronic device can divide the first controls into at least two groups according to the sorting parameters, and display one group of the first controls in the first floating window, and display the first folding icon in the first floating window. When a touch operation on the first folding icon is received, the remaining group of the first controls is selected and displayed in the first floating window.
[0322] When more first controls need to be displayed, the remaining group of first controls can replace the previously displayed first controls, that is, only one group of first controls is displayed in the first floating window at a time, and when the first floating window displays the last group of first controls, the electronic device adjusts the first folding icon to the first return icon, and after receiving a touch operation on the first return icon, the first floating window displays the previous group of first controls. Alternatively, when a touch operation on the first folding icon is received, the first floating window can also display the currently displayed first controls and the remaining group of first controls at the same time.
[0323] In this way, the first controls can be displayed in the first floating window in a grouped manner. The more first controls are displayed in the first floating window, the larger the area of the first floating window tends to be. When the area of the first floating window is large, it may block the content in the display interface of the first APP. By displaying the first controls in groups, it is possible to avoid displaying more first controls in the first floating window at a time, thereby reducing the blocking of the display interface by the first floating window.
[0324] In this case, when the first floating window does not contain the first control required by the user, the electronic device can adjust the first control displayed in the first floating window by receiving the touch operation on the first folding icon, so that the first control displayed in the first floating window meets the user's needs.
[0325] Furthermore, in this case, if the first control required by the user is not displayed in the current first floating window, the user is required to perform a touch operation on the first folding icon. However, in some cases, compared with the prior art, the solution of the present application requires the user to perform fewer touch operations and can still simplify user operations.
[0326] For example, when the first APP is WeChat APP, the relationship between the first APP's controls and each control interface is shown in FIG5(a), and when the user needs to operate the "Notification Display Message Details" control, he needs to click the three controls of "Me" - "Settings" - "New Message Reminder" in sequence, and then the "Notification Display Message Details" control is displayed in the WeChat APP interface so that the user can operate it. That is to say, in the prior art, the user needs to click the control three times in a row to make the electronic device display the "Notification Display Message Details" control.
[0327] In the scheme disclosed in the embodiment of the present application, when the "notification display message details" control belongs to the first group of first controls displayed in the first floating window, the user does not need to touch the first folding icon to display the first control required by the user in the first floating window; when the "notification display message details" control belongs to the second group of first controls displayed in the first floating window, and the first floating window displays the first group of first controls, the user only needs to touch the first folding icon once, and the first floating window will display the "notification display message details" control; when the "notification display message details" control belongs to the third group of first controls displayed in the first floating window, and the first floating window displays the first group of first controls, the user only needs to touch the first folding icon twice, and the first floating window will display the "notification display message details" control. Therefore, compared with the prior art, the operations that the user needs to perform are simplified.
[0328] In addition, in an embodiment of the present application, the first control is sorted by a sorting parameter. The sorting parameter includes at least one of the following: when scanning the installation package of the first APP, the order of scanning the metadata corresponding to the first control, the frequency of use of the first control, and the priority of the metadata corresponding to the first control. Accordingly, the electronic device can sort the first control in a variety of ways.
[0329] In one feasible implementation, the sorting parameter is the order in which the metadata corresponding to the first control is scanned when the installation package of the first APP is scanned. In this method, when the electronic device scans the installation package of the first APP, it records the order in which the metadata of each component is scanned, and determines the display order of the first control according to the order.
[0330] Specifically, it may be determined that the first controls corresponding to the metadata scanned earlier are ranked higher in the sorting order of the first controls, that is, the first controls corresponding to the metadata scanned earlier are divided into the first group of controls.
[0331] In this implementation, the electronic device determines the order of the first controls according to the sequence of metadata scanned when scanning the installation package of the first APP, and the implementation is relatively convenient.
[0332] In another feasible implementation, the sorting parameter includes the usage frequency of the first control, that is, the electronic device can determine the sorting of each first control according to the usage frequency of the first control. The display order in the first floating window. Generally, the first control with higher usage frequency is ranked higher.
[0333] Exemplarily, when the sorting parameters include the frequency of use of the first control, and the frequency of use of each control of the first APP is as shown in Table 1, the electronic device can determine that the sorting results of the first controls of the first APP are: Do Not Disturb mode control, favorite file control, receive voice and video call invitation control, and receive new message notification control.
[0334] In addition, when the electronic device periodically determines the usage frequency of the first control, the electronic device can also determine the ranking of the first control according to the usage frequency in each period, thereby achieving periodic adjustment of the ranking of the first control.
[0335] When the ranking of the first controls is determined by the usage frequency of the first controls, the ranking result of the first controls can be made to conform to the usage habits of the users, thereby improving the usage experience of the users.
[0336] In another feasible implementation, when the priority of the metadata of each component is set in the installation package of the first APP, the electronic device can obtain the priority corresponding to each metadata by scanning the installation package of the first APP; or, when the priority of the metadata of each component is set in the relevant file, the electronic device can obtain the priority corresponding to each metadata by parsing the relevant file.
[0337] In this case, the sorting parameter includes the priority of the metadata corresponding to the first control. The electronic device can determine the sorting results of each first control according to the priority of the metadata of the first control. Specifically, the first control corresponding to the metadata with a higher priority is ranked higher in the sorting.
[0338] Exemplarily, the first controls displayed by the first APP in the first floating window include: receiving new message notification controls, receiving voice and video call invitation controls, notification display message details controls, do not disturb mode and favorite file controls, and the priority of metadata corresponding to each first control is shown in Table 3:
[0339] Table 3
[0340] First Control Priority Receive new message notifications N1 Receive audio and video call invitations N2 Notification displays message details N3 Do Not Disturb Mode N4 Favorite File N5
[0341] In Table 3, the priorities represented by N1, N2, N3, N4 and N5 decrease in sequence, that is, the priorities corresponding to the five first controls, namely, the control for receiving new message notifications, the control for receiving voice and video call invitations, the control for notifying and displaying message details, the control for do not disturb mode and the control for favorites, decrease in sequence. In addition, it is set that in the first floating window, three first controls are displayed each time. In this case, the three controls, namely, the control for receiving new message notifications, the control for receiving voice and video call invitations and the control for notifying and displaying message details, can be divided into the first group of controls, and the two first controls, namely, the control for do not disturb mode and the control for favorite files, can be divided into the second group of controls, and the first group of controls can be displayed first. When the first controls are displayed, the first group of controls is displayed first in the first floating window, and when the first group of controls is displayed, they are displayed in the order of the control for receiving new message notifications, the control for receiving voice and video call invitations and the control for notifying and displaying message details, that is, the control for receiving new message notifications is located at the front, the control for receiving voice and video call invitations is located in the middle, and the control for notifying and displaying message details is located at the end. Furthermore, after receiving a click operation on the first folding icon, the first floating window displays a second group of controls, and when displaying the second group of controls, the Do Not Disturb mode control is located before the favorite file control.
[0342] Also, see Fig.13 The workflow diagram shown in the figure further includes the following steps in the control display method disclosed in the embodiment of the present application:
[0343] Step S13: determining a third control corresponding to the first APP according to the second display parameter of the first APP, where the third control is a function button for controlling an operating system of the electronic device on which the first APP is installed;
[0344] Step S14: display the third control in a second floating window on the first display interface of the first APP.
[0345] The first floating window and the second floating window may be the same floating window or different floating windows, which is not limited in this embodiment of the present application.
[0346] In the solution disclosed in the embodiment of the present application, there is no strict time sequence in the execution of the operations from step S11 to step S12, and between step S13 and step S14. Fig.14 In the embodiment, after executing step S11 to step S12, step S13 to step S14 are executed. In the actual application scenario, the operations of step S12 and step S14 can also be executed at the same time, that is, the first control and the third control are displayed at the same time in the floating window on the first display interface of the first APP.
[0347] Among them, the second display parameter includes at least one of the following: the second display parameter includes at least one of the following: the system permissions of the first APP, the system functions indicated by the components of the first APP, and the mapping relationship between the type of the first APP and the third control. Accordingly, in an embodiment of the present application, the electronic device can determine the third control in a variety of ways.
[0348] In one feasible implementation, the electronic device may determine the third control according to the system function indicated by the component of the first APP, that is, the second display parameter includes the system function indicated by the component of the first APP.
[0349] The electronic device can obtain the components of the first APP by scanning the installation package of the first APP, and the components often indicate the system functions required by the electronic device. The system functions required by the electronic device indicated by the components of the first APP are the system functions indicated by the components of the first APP.
[0350] Among them, the components of the first APP usually include an intent filter (i.e., intent-filter), and the electronic device can determine that the function indicated by the intent-filter is a system function indicated by the components of the first APP. Exemplarily, the function indicated by the intent-filter includes a short-distance communication function. In this case, the electronic device can determine that the third control includes an NFC control.
[0351] In addition, the electronic device can also obtain the system privilege of the first APP by scanning the installation package of the first APP, and then determine the third control according to the system privilege. In this case, the second display parameter includes the system privilege of the first APP. The system privilege of the first APP refers to the privilege that the operating system of the electronic device needs to provide during the operation of the first APP.
[0352] Exemplarily, the first APP can only run after connecting to the network, so the operating system of the electronic device provides network connection-related permissions. In this case, the third control includes a WLAN control, through which the operating system of the electronic device can be controlled to connect to a wireless network.
[0353] In another example, during the operation of the first APP, the operating system of the electronic device needs to provide positioning information. In response, the system permissions of the first APP include positioning permissions. Accordingly, the third control includes a positioning control, such as a GPS control, and the GPS control is used to control whether the electronic device turns on the GPS function to achieve positioning.
[0354] The electronic device can obtain the system permissions and intent-filter of the first APP by scanning the installation package of the first APP. When the installation package is an Android system installation package, the application permission (i.e., use-permission) statement usually indicates the system permissions of the first APP, and the use-permission statement and the intent-filter are usually registered in the manifest file (i.e., manifest file) in the installation package. The electronic device can determine the system permissions and the intent-filter by scanning the manifest file in the installation package.
[0355] In another feasible implementation, the second display parameter includes: a mapping relationship between the type of the first APP and the third control. In this method, the electronic device can store the mapping relationship between the type of the APP and the third control, and determine the third control corresponding to the first APP according to the type of the first APP.
[0356] Exemplarily, the mapping relationship between the type of APP and the third control may be as shown in Table 4:
[0357] Table 4
[0358] Types of apps Third Control (1) Third Control (2) Audio and Video Entertainment WLAN Screen Recording Social Communications Ring screenshot
[0359] In Table 4, the types of APPs are divided into: audio-visual entertainment and social communication. Among them, the third control corresponding to the audio-visual entertainment APP may include a WLAN control and a screen recording control; the third control corresponding to the social communication APP includes a ring control and a screenshot control. In this case, after determining the type of the first APP, the electronic device can determine the third control according to the type of the first APP by querying the mapping relationship.
[0360] Of course, the APP may also be divided into other types, which is not limited in the embodiments of the present application.
[0361] Furthermore, the electronic device may also update the mapping relationship between the type of APP stored in the electronic device and the third control by accessing the server or receiving user input.
[0362] In another feasible implementation, the electronic device may also determine the third control based on at least two second display parameters at the same time. In this case, the third control displayed in the display interface of the first APP may be a collection or union of third controls determined by different second display parameters.
[0363] In addition, the third control may include multiple third controls, and each third control determined by the electronic device can be displayed in the second floating window, or the electronic device can selectively display some of the third controls. In an embodiment of the present application, the third control that needs to be displayed in the second floating window can be determined in a variety of ways.
[0364] Furthermore, when there are more third controls displayed in the second floating window, in order to avoid the second floating window being too large and blocking the first display interface of the first APP and affecting the display effect of the first display interface, the third controls can also be displayed in the second floating window through group display.
[0365] In this manner, the number of third controls that can be displayed in the second floating window at a time is set to R, the third controls are divided into different groups, the number of third controls in each group is not greater than R, and a second folding icon is also displayed in the second floating window. When none of the third controls displayed in the second floating window meets the needs of the user, the user can click the second folding icon. After receiving a click on the second folding icon, the electronic device adjusts the third controls displayed in the second floating window so that the second floating window displays another group of third controls that were not displayed before.
[0366] In addition, when the third controls are divided into different groups, the third controls may be sorted, and then the third controls may be grouped according to the sorting result.
[0367] In the embodiment of the present application, when the electronic device determines the third control through the system permissions of the first APP, the electronic device also records the order of the scanned system permissions during the process of scanning the installation package of the first APP, and determines the ranking result of the third control according to the order. Specifically, it can be determined that the third control corresponding to the system permissions scanned earlier has a higher order in the ranking result of the third control.
[0368] Alternatively, when the electronic device determines the third control through the system permissions of the first APP, the developer or provider of the first APP sets the priority of each system permission in the installation package of the first APP, or creates relevant files including the priority of each system permission, and packages the installation package and the relevant files into a file package. When the electronic device downloads the installation package of the first APP, the relevant files will also be obtained.
[0369] In this case, the electronic device can obtain the priority corresponding to each system permission by scanning the installation package of the first APP; or, the electronic device can obtain the priority corresponding to each system permission by parsing the relevant files. Then, the electronic device can determine the sorting result of the third control according to the priority. Specifically, the third control corresponding to the system permission with a higher priority has a higher order in the sorting result of the third control.
[0370] In another implementation, different electronic devices can count the usage frequencies of different third controls by their users and upload the usage frequencies to the server. The server counts the usage frequencies of the third controls by users of different electronic devices and feeds back the statistical results to the electronic devices. Then, the electronic device determines the ranking results of each third control based on the feedback from the server. Generally, the third control with higher usage frequency is ranked higher in the ranking results of the third control.
[0371] Furthermore, after the user has used the first APP for a period of time, the electronic device can also adjust the ranking results of each third control according to the user's usage habits. In this way, the electronic device collects the frequency of use of each third control by the user, and then adjusts the ranking results of the third control according to the frequency of use. Among them, generally, the higher the frequency of the user using a third control, the higher the order in the ranking results of the third control.
[0372] Correspondingly, the present application also discloses an electronic device. Fig.14 The structural schematic diagram of the electronic device shown in the figure, the electronic device includes: a screen 1401 composed of a touch device 1406 and a display 1407; one or more processors 1402; one or more memories 1403; one or more applications (not shown); and one or more computer programs 1404, and the above-mentioned devices can be connected through one or more communication buses 1405. The one or more computer programs 1404 are stored in the above-mentioned memory 1403 and are configured to be executed by the one or more processors 1402. The one or more computer programs 1404 include instructions, and the above-mentioned instructions can be used to execute the various steps in the above-mentioned embodiments, that is, when the instructions are executed by the one or more processors, the electronic device executes the control display method disclosed in the above-mentioned embodiments of the present application. Among them, all relevant contents of each step involved in the above-mentioned method embodiment can be referred to the functional description of the corresponding entity device, and will not be repeated here.
[0373] Furthermore, the electronic device may also include one or more sensors 1408 .
[0374] Exemplarily, the processor 1402 may be Figure 1The processor 110 shown in the figure, the memory 1403 can be specifically Figure 1 The internal memory 114 and / or the external memory 120 shown, the screen 1401 may specifically be Figure 1 The flexible screen 301 shown in FIG. 1 , the sensor 1408 may specifically be Figure 1 The gyroscope sensor 180B, the acceleration sensor 180E, and the proximity light sensor 180G in the sensor module 180 shown may also be one or more of an infrared sensor, a Hall sensor, etc., and the embodiment of the present application does not impose any limitation on this.
[0375] Correspondingly, an embodiment of the present application also discloses a computer-readable storage medium, in which instructions are stored, and it is characterized in that when the instructions are executed on an electronic device, the electronic device executes the control display method disclosed in the above-mentioned embodiments of the present application.
[0376] Correspondingly, an embodiment of the present application also discloses a computer program product comprising instructions, and when the computer program product is run on an electronic device, the electronic device executes the control display method disclosed in the above-mentioned embodiments of the present application.
[0377] The various illustrative logic units and circuits described in the embodiments of the present application can be implemented or operated by a general-purpose processor, a digital information processor, an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic, a discrete hardware component, or the design of any combination of the above functions. The general-purpose processor can be a microprocessor, and optionally, the general-purpose processor can also be any traditional processor, controller, microcontroller or state machine. The processor can also be implemented by a combination of computing devices, such as a digital information processor and a microprocessor, a plurality of microprocessors, one or more microprocessors combined with a digital information processor core, or any other similar configuration to implement.
[0378] The steps of the method or algorithm described in the embodiments of the present application can be directly embedded in hardware, a software unit executed by a processor, or a combination of the two. The software unit can be stored in a RAM memory, a flash memory, a ROM memory, an EPROM memory, an EEPROM memory, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium in the art. Exemplarily, the storage medium can be connected to the processor so that the processor can read information from the storage medium and can write information to the storage medium. Optionally, the storage medium can also be integrated into the processor. The processor and the storage medium can be arranged in an ASIC, and the ASIC can be arranged in a UE. Optionally, the processor and the storage medium can also be arranged in different components in the UE.
[0379] It should be understood that in the various embodiments of the present application, the size of the serial number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0380] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive Solid State Disk (SSD)), etc.
[0381] Each part of this specification is described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and system embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment part.
[0382] Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.
[0383] Those skilled in the art can clearly understand that the technology in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solution in the embodiments of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a disk, an optical disk, etc., and includes a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention or some parts of the embodiments.
[0384] In this specification, the same or similar parts between the various embodiments can be referred to each other. In particular, for the electronic device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description in the method embodiment.
[0385] The above-described embodiments of the present invention do not limit the protection scope of the present invention.
Claims
1. A control display method, applied to an electronic device, characterized in that: include: Displaying a first display interface of a first application; receiving a first trigger operation; In response to the first trigger operation, a first floating window is displayed on the first display interface, wherein the first floating window includes a first control, the first control is used to control a first function supported by the operating system of the electronic device, and the first floating window is provided by the operating system.
2. The method according to claim 1, characterized in that The method further includes: the operating system acquiring information of the first application program, and determining a first control corresponding to the first application program according to the acquired information.
3. The method according to claim 2, characterized in that The information of the first application includes at least one of the following: system permissions of the first application, system functions indicated by components of the first application, and a mapping relationship between the type of the first application and the first control.
4. The method according to claim 3, characterized in that The operating system obtains the system permissions of the first application and / or the system functions indicated by the components of the first application through the installation package of the first application.
5. The method according to claim 1, characterized in that The first control includes at least one of the following controls: WLAN control, screen recording control, ring control, screenshot control, GPS control, Bluetooth control, NFC control, brightness adjustment control, flight mode control, eye protection mode control and whether to lock the automatic rotation of the screen.
6. The method according to claim 1, characterized in that The first trigger operation includes at least one of the following: a sliding operation on a touch area, an air gesture operation, a voice input operation, and a click operation on a first prompt icon on the first display interface.
7. The method according to claim 1, characterized in that The method further comprises: Displaying a second display interface of a second application; receiving a second trigger operation; In response to the second trigger operation, a second floating window is displayed on the second display interface, wherein the second floating window includes a second control, the first control is different from the second control, the second control is used to control a second function supported by the operating system of the electronic device, and the second floating window is provided by the operating system.
8. The method according to claim 7, characterized in that The type of the first application is different from the type of the second application.
9. The method according to claim 8, characterized in that The type of the first application is audio and video entertainment, and the type of the second application is social communication.
10. The method according to claim 9, characterized in that The first control includes a WLAN control and / or a screen recording control, and the second control includes a ring control and / or a screenshot control.
11. The method according to claim 1, characterized in that: The first floating window also includes a target control of the first application, wherein the target control is different from a control displayed in the first display interface.
12. The method according to claim 11, characterized in that The target control is determined based on at least one of the following parameters of the first application: display permission of metadata corresponding to the control of the first application, frequency of use of the control of the first application, mapping relationship between the type of the first application and the target control, and interface identifier of the first display interface.
13. The method according to claim 11, characterized in that The target control is a function button for opening editing of a function of the first application, and the first floating window specifically includes the name and icon of the target control; or, The target control is a function button for turning on or off a function of the first application program. The first floating window specifically includes the name of the target control and displays whether the function is in an on state or in an off state.
14. An electronic device, characterized in that: include: one or more processors; one or more memories; And one or more computer programs, wherein the one or more computer programs are stored in the one or more memories, and the one or more computer programs include instructions, which, when executed by the one or more processors, enable the electronic device to perform the control display method described in any one of claims 1-13.
15. A computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium, characterized in that: When the instruction is executed on an electronic device, the electronic device executes the control display method as described in any one of claims 1 to 13.
16. A computer program product comprising instructions, characterized in that When the computer program product is run on an electronic device, the electronic device executes the control display method according to any one of claims 1 to 13.
Citation Information
Patent Citations
Method and device for controlling execution operation of application procedure
CN107783711A
Screen recording method and apparatus, terminal and storage medium
CN108024079A
Interaction method and device and terminal
CN108803990A
Event response method, event response device and storage medium
CN108829473A
Load device management method, terminal device and mobile platform system
CN110637262A