WO2021147948A1 - 一种控件显示方法及电子设备 - Google Patents

一种控件显示方法及电子设备 Download PDF

Info

Publication number
WO2021147948A1
WO2021147948A1 PCT/CN2021/073043 CN2021073043W WO2021147948A1 WO 2021147948 A1 WO2021147948 A1 WO 2021147948A1 CN 2021073043 W CN2021073043 W CN 2021073043W WO 2021147948 A1 WO2021147948 A1 WO 2021147948A1
Authority
WO
WIPO (PCT)
Prior art keywords
control
app
display
controls
electronic device
Prior art date
Application number
PCT/CN2021/073043
Other languages
English (en)
French (fr)
Inventor
刘震宇
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP21744688.9A priority Critical patent/EP4083791A4/en
Publication of WO2021147948A1 publication Critical patent/WO2021147948A1/zh
Priority to US17/868,446 priority patent/US11934848B2/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus

Definitions

  • This application relates to the field of human-computer interaction technology, and in particular to a control display method and electronic equipment.
  • the number of applications (APP) supported by the terminal is increasing, and in order to realize the functions of the APP, the APP will provide the corresponding controls for each function, so that the APP can realize the corresponding functions through the controls. .
  • Apps usually have multiple controls.
  • the APP’s display interface usually provides some controls, and after receiving a touch for one of the controls, the terminal can jump to the interface corresponding to the control until the The control required by the user is displayed in the display interface of the APP.
  • Figure 1 (a) is the initial interface of the APP.
  • the user is often required to perform multiple touch operations to enable the terminal to display the controls required by the user, and the operation is relatively cumbersome.
  • the user needs to sequentially touch the three controls of "I", “Settings” and "Do Not Disturb Mode” in the terminal, that is, perform three touch operations to make the terminal display the "Do Not Disturb Mode” controls. , The operation is more cumbersome.
  • embodiments of the present application disclose a control display method and an electronic device.
  • this application provides a control display method, including:
  • the first display parameter of the first APP includes at least one of the following: The display authority of the metadata corresponding to the controls of the APP, the frequency of use of the controls 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 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.
  • the first control is different from the second control, and the second control Is a control displayed on the first display interface.
  • the electronic device can display the first floating window on the upper layer of the first display interface of the first APP according to the first display parameters of the first APP, and the first floating window displays the first floating window. Displaying the controls of the first APP that are not included in the interface, so as to display a larger number of controls, can reduce the operations that the user needs to perform on the electronic device when the controls required by the user are displayed.
  • the first control is a function button used to enable editing of functions of the first APP, and is displayed in a first floating window on the first display interface of the first APP
  • the first control includes:
  • the name and icon of the first control are displayed in the first floating window.
  • the user of the electronic device can identify and distinguish each first control.
  • the first control is a function button used to switch the function of the first APP, and displaying the first control in a first floating window on the first display interface of the first APP includes:
  • the name of the first control is displayed in the first floating window, and it is displayed that the function is in the on state or the function is in the off state.
  • the user of the electronic device can recognize the first control and determine the state of the function corresponding to the first control.
  • it also includes:
  • the third control is displayed.
  • the third control is used to control the control of the function supported by the operating system of the electronic device.
  • the third control includes at least one of the following controls: a WLAN control, a GPS control, a Bluetooth control, an NFC control, a brightness adjustment control, a flight mode control, an eye protection mode control, and a control for whether the screen automatic rotation is locked.
  • 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 user operations that need to be performed when the user needs the third control.
  • the second display parameter includes at least one of the following: the system authority of the first APP, the system function indicated by the component of the first APP, and the type of the first APP and the third APP.
  • the mapping relationship between controls includes at least one of the following: the system authority of the first APP, the system function indicated by the component of the first APP, and the type of the first APP and the third APP.
  • the electronic device can determine the third control corresponding to the first APP.
  • the first display parameter of the first APP includes a display permission of metadata corresponding to a control of the first APP
  • the determining the first control of the first APP according to the first display parameter of the first APP includes:
  • At least one control of the first target control that is different from the second control is the first control of the first APP.
  • the electronic device can determine the first control of the first APP according to the display authority of the metadata corresponding to the control of the first APP.
  • the display permission of the metadata corresponding to the controls 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 be made to conform to the settings of the developer or provider of the first APP. .
  • the first display parameter of the first APP includes the frequency of use of the control of the first APP
  • the determining the first control of the first APP according to the first display parameter of the first APP includes:
  • At least one of the controls of the first APP whose use frequency is greater than the first threshold is the second target control, or it is determined that the first n controls of the controls of the first APP with the highest use frequency are the second target controls, n is a set positive integer;
  • At least one control of the second target control that is different from the second control is the first control of the first APP.
  • the electronic device can determine the first control of the first APP according to the frequency of use of the control of the first APP, so that the first control displayed in the first floating window can be adapted to the user's usage habits, and the user can be improved.
  • the first control displayed in the first floating window can be adapted to the user's usage habits, and the user can be improved.
  • the first display parameter of the first APP includes a mapping relationship between the type of the first APP and the first control
  • the determining the first control of the first APP according to the first display parameter of the first APP includes:
  • At least one control of the third target control that is different from the second control is the first control of the first APP.
  • 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.
  • the first display parameter of the first APP includes an interface identifier of the first display interface
  • the determining the first control of the first APP according to the first display parameter of the first APP includes:
  • the interface identifier of the first display interface determine at least one fourth target control associated with the first display interface, and at least one of the fourth target control is when the first APP is applied to the electronic device to jump At least one control displayed on the lower-level display interface when reaching the lower-level display interface of the first display interface;
  • At least one control of the fourth target control that is different from the second control is the first control of the first APP.
  • 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, it can communicate with the user when needed. When a first control associated with the interface is displayed, the first control associated with the first display interface is displayed in the first floating window, thereby reducing the touch operation of the user.
  • the first display parameter of the first APP includes a display authority of metadata corresponding to a control of the first APP and an interface identifier of the first display interface;
  • the determining the first control of the first APP according to the first display parameter of the first APP includes:
  • the interface identifier of the first display interface it is determined that in the first target control, at least one fifth target control associated with the first display interface is determined when the When the electronic device of the first APP jumps to the lower-level display interface of the first display interface, the first target control displayed on the lower-level display interface;
  • At least one control of the fifth target control that is different from the second control is the first control of the first APP.
  • the electronic device can determine the first control of the first APP in combination with the display authority 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 display authority, and the first control is also associated with the first display interface, so that the first control can be made to conform to 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.
  • the first display parameter of the first APP includes the frequency of use of the controls of the first APP and the interface identifier of the first display interface;
  • the determining the first control of the first APP according to the first display parameter of the first APP includes:
  • At least one of the controls of the first APP whose frequency of use is greater than the second threshold is the sixth target control, or it is determined that the first m controls of the controls of the first APP with the highest frequency of use are the sixth target control, m is a set positive integer;
  • the interface identifier of the first display interface it is determined that in the sixth target control, at least one seventh target control associated with the first display interface, at least one of the seventh target control is when the application When the electronic device of the first APP jumps to the lower-level display interface of the first display interface, the sixth target control displayed on the lower-level display interface;
  • At least one control of the seventh target control that is different from the second control is the first control of the first APP.
  • the electronic device can determine the first control of the first APP in combination with the frequency of use of the controls of the first APP and the interface identification of the first display interface.
  • the first control determined in this way is a control with a higher frequency of use, so as to conform to the user's usage habits, and the first control is also associated with the first display interface, so that it can be related to the first display interface when the user needs it.
  • the first control is connected, the first control associated with the first display interface is displayed in the first floating window, reducing the touch operation of the user.
  • the first display parameter of the first APP includes the display authority of the metadata corresponding to the control of the first APP and the frequency of use of the control of the first APP;
  • the determining the first control of the first APP according to the first display parameter of the first APP includes:
  • At least one control in the first target control whose frequency of use is greater than the third threshold is the eighth target control, or it is determined that the first s controls with the highest frequency of use in the first target control are the eighth target control, and s is Set a positive integer;
  • At least one control of the eighth target control that is different from the second control is the first control of the first APP.
  • the electronic device can determine the first control of the first APP in combination with the display authority of the corresponding metadata of the control of the first APP and the use frequency of the control of the first APP.
  • the metadata corresponding to the first control determined in this way has display authority, and the first control is a control with a higher frequency of use, so that it can conform to the user's usage habits.
  • the method before the first control is displayed in the first floating window on the first display interface of the first APP, the method further includes:
  • the trigger operation for displaying the first floating window includes at least one of the following: a sliding operation for a touch area, an air gesture operation, a voice input operation, and a first prompt icon on the first display interface Click action.
  • 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 not pass the first floating window at other times The first control is displayed, thereby reducing the occlusion of the first display interface by the first floating window.
  • the number of the first controls is M
  • the maximum number of the first controls displayed in the first floating window each time is N
  • the The first control displayed in the first floating window on the display interface includes:
  • the sorting parameter includes at least one of the following: when scanning the installation package of the first APP, the sequence of scanning the metadata corresponding to the first control, the The frequency of use of the first control and the priority of the metadata corresponding to the first control.
  • this application provides an electronic device, including:
  • One or more processors are One or more processors;
  • One or more memories are One or more memories
  • the present application provides a computer-readable storage medium having instructions stored in the computer-readable storage medium, and when the instructions are executed on an electronic device, the electronic device is caused to execute as described in the first aspect.
  • the control display method is not limited to:
  • the present application provides a computer program product containing instructions that, when the computer program product runs on an electronic device, causes the electronic device to execute the control display method as described in the first aspect.
  • the electronic device can display the first floating window on the upper layer of the first display interface of the first APP according to the first display parameters of the first APP, and the first floating window displays the first floating window. Display the controls of the first APP that are not included in the interface.
  • 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 the controls required by the user are displayed.
  • 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 parameters of the first APP are different, the first controls displayed in the first floating window may also be different, so that the diversified needs of users can be met.
  • Figure 1(a) is a schematic diagram of the interface of an APP disclosed in the prior art
  • Figure 1(b) is a schematic diagram of another APP interface disclosed in the prior art
  • Figure 1(c) is a schematic diagram of another APP interface disclosed in the prior art
  • Figure 1(d) is a schematic diagram of another APP interface disclosed in the prior art
  • Figure 2 is a schematic structural diagram of an electronic device disclosed in an embodiment of the application.
  • FIG. 3 is a schematic diagram of a software structure block diagram of an electronic device disclosed in an embodiment of the application.
  • Figure 4 (a) is a schematic diagram of a control of the first APP disclosed in an embodiment of the application;
  • Fig. 4(b) is a schematic diagram of another control of the first APP disclosed in an embodiment of the application.
  • Figure 5 (a) is a schematic diagram of a first control of a first APP disclosed in an embodiment of the application;
  • Figure 5(b) is a schematic diagram of another first control of the first APP disclosed in an embodiment of the application.
  • FIG. 6(a) is a schematic diagram of an interface in a control display method disclosed in an embodiment of the application.
  • FIG. 6(b) is a schematic diagram of another interface in the control display method disclosed in the embodiments of this application.
  • FIG. 6(c) is a schematic diagram of another interface in the control display method disclosed in the embodiments of this application.
  • FIG. 7(a) is a schematic diagram of a touch operation in the control display method disclosed in the embodiment of this application.
  • FIG. 7(b) is a schematic diagram of another touch operation in the control display method disclosed in the embodiments of the application.
  • FIG. 8 is a schematic diagram of another interface in the control display method disclosed in the embodiments of the application.
  • FIG. 9 is a schematic diagram of a work flow of a control display method disclosed in an embodiment of the application.
  • FIG. 10 is a schematic diagram of a workflow for determining the first control of the first APP in the control display method disclosed in the embodiment of the application;
  • FIG. 11 is a schematic diagram of another workflow for determining the first control of the first APP in the control display method disclosed in the embodiment of the application;
  • FIG. 12 is a schematic diagram of another workflow for determining the first control of the first APP in the control display method disclosed in the embodiment of the application;
  • FIG. 13 is a schematic diagram of a workflow of another control display method disclosed in an embodiment of the application.
  • FIG. 14 is a schematic structural diagram of an electronic device disclosed in an embodiment of the application.
  • the control display method disclosed in the embodiments of the present application can be applied to various electronic devices.
  • the electronic device may be a mobile phone, a tablet computer, a desktop computer, a laptop, a notebook computer, an Ultra-mobile Personal Computer (UMPC), a handheld computer, a netbook, a personal digital assistant ( Personal Digital Assistant (PDA), wearable electronic devices, smart watches and other devices that can be installed with APP, this application does not impose special restrictions on the specific form of electronic devices.
  • the structure of the electronic device may be as shown in FIG. 2, where FIG. 2 is a schematic diagram of the structure of the electronic device to which the control display method provided by the embodiment of the present application is applied.
  • 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, and a battery 142, Sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display screen 194 and so on.
  • 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 sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light Sensor 180L, bone conduction sensor 180M, etc.
  • the electronic device 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, headset Interface 170D, subscriber identification module (SIM) card interface 195, etc.
  • SIM subscriber identification module
  • the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device.
  • the electronic device may include more or fewer components than shown, or combine certain components, or split certain components, or arrange different components.
  • the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units, where different processing units may be independent devices or integrated in one or more processors.
  • a memory may also be provided in the processor 110 to store instructions and data.
  • the processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / Or Universal Serial Bus (USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transceiver receiver/transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB Universal Serial Bus
  • 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 charge management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160.
  • the mobile communication module 150 can provide a wireless communication solution including 2G/3G/4G/5G and the like applied to electronic devices.
  • the wireless communication module 160 can provide applications on electronic devices including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), and global navigation satellite systems. (global navigation satellite system, GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • WLAN wireless local area networks
  • BT wireless fidelity
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication
  • infrared technology infrared, IR
  • the antenna 1 of the electronic device is coupled with the mobile communication module 150
  • the antenna 2 is coupled with the wireless communication module 160, so that the electronic device can communicate with the network and other devices through wireless communication technology.
  • the electronic device realizes the display function through the GPU, the display screen 194, and the application processor.
  • the GPU is an image processing microprocessor, which is connected to the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations and is used for graphics rendering.
  • the processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
  • 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.
  • Electronic equipment can realize shooting functions through ISP, camera 193, video codec, GPU, display 194, and application processor.
  • the external memory interface 120 may 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 realize the data storage function.
  • the internal memory 121 may be used to store computer executable program code, where the executable program code includes instructions.
  • the processor 110 executes various functional applications and data processing of the electronic device by running instructions stored in the internal memory 121.
  • the electronic device can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. For example, music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal.
  • the audio module 170 can also be used to encode and decode audio signals.
  • the audio module 170 may be provided in the processor 110, or part of the functional modules of the audio module 170 may be provided in the processor 110.
  • the speaker 170A also called “speaker” is used to convert audio electrical signals into sound signals.
  • the electronic device can listen to music through the speaker 170A, or listen to a hands-free call.
  • the receiver 170B also called “earpiece”, is used to convert audio electrical signals into sound signals.
  • the microphone 170C also called “microphone”, “microphone”, is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can make a sound by approaching the microphone 170C through the human mouth, and input the sound signal into the microphone 170C.
  • the earphone interface 170D is used to connect wired earphones.
  • the pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
  • the pressure sensor 180A may be provided on the display screen 194.
  • the gyro sensor 180B can be used to determine the movement posture of the electronic device.
  • the air pressure sensor 180C is used to measure 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 holster.
  • the acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device in various directions (generally three axes).
  • Distance sensor 180F used to measure distance.
  • the proximity light sensor 180G may 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 temperature.
  • Touch sensor 180K also called "touch device”.
  • the touch sensor 180K may be disposed on the display screen 194, and the touch screen is composed of the touch sensor 180K and the display screen 194, which is also called a “touch screen”.
  • the bone conduction sensor 180M can acquire vibration signals.
  • the button 190 includes a power-on button, a volume button, and so on.
  • the button 190 may be a mechanical button, a touch button, or a virtual button.
  • the motor 191 can generate vibration prompts.
  • the indicator 192 may be an indicator light, which may be used to indicate the charging status, power change, or to indicate messages, missed calls, notifications, and so on.
  • the SIM card interface 195 is used to connect to the
  • an operating system runs.
  • the iOS operating system developed by Apple the Android Android open source operating system developed by Google
  • the Windows operating system developed by Microsoft You can install and run applications on this operating system.
  • the operating system of the electronic device may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
  • the embodiment of the present application takes an Android system with a layered architecture as an example to illustrate the software structure of an electronic device.
  • FIG. 3 is an example diagram of a software structure block diagram of an electronic device according to an embodiment of the application.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Communication between layers through software interface.
  • the Android system is divided into four layers, from top to bottom, the application layer, the application framework layer, the system library, and the kernel layer.
  • the application layer can include a series of application packages. As shown in Figure 3, the application layer can include application packages for applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and short message.
  • the application program may include the application program of the APP installed by default in the electronic device when it leaves the factory, and may also include the application program installed by the user during the use of the electronic device. For example, in the process of using an electronic device, a user installs applications such as Volkswagen Review and WeChat in the electronic device, and the application layer also includes application packages of Volkswagen Review and WeChat applications.
  • the application layer further includes: a system user interface (ie, System UI).
  • System UI is used to manage the user interface, and can provide status bar information (such as battery remaining power, wifi signal 3G/4G, etc. display signs) display, notification panel display, screenshot service, wallpaper service, etc.
  • the System UI may display the controls of the APP on the display interface of the APP according to the APP currently opened by the electronic device.
  • the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions. As shown in Figure 3, the application framework layer can 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 APIs related to control display for the application layer.
  • 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 for subsequent processing by the module.
  • the window manager is used to manage window programs. In this application, the window manager can determine the touched area of the electronic device.
  • the application framework layer also includes: an installation manager.
  • the installation manager can also be referred to as an installation package manager (package manager service, PMS).
  • PMS is used to install the Android application package (APK) of the APP, and during the installation process, the PMS checks the APK. Perform a scan. By scanning the APK, the PMS can obtain and record relevant information of the APP.
  • APIK Android application package
  • the System UI can interact with the task manager to determine the APP currently displayed on the electronic device.
  • the System UI can also obtain related information about the currently displayed APP recorded by the installation manager through interaction with the installation manager, determine the APP controls based on the APP related information, and display them on the APP interface Controls of the APP.
  • the System UI may display a floating window in the display interface of the APP, and display the controls of the APP through the floating window, and the controls displayed in the floating window are not included in the current display interface Controls.
  • the PMS can obtain the components of the APP and the metadata of the components (metadata).
  • An APP includes multiple components.
  • an APP of the Android system usually includes the following components: an activity component, a service component, a content component, an intent component, a broadcast receiver component, and Notification (notification) component.
  • an APP may include one or more activity components.
  • An activity component is usually displayed as a visual user interface. Exemplarily, a certain activity component may be displayed as a list of menu items, or as some pictures.
  • the service component can be used to perform some tasks of the electronic device in the background of the electronic device.
  • Metadata also known as relay data, is a kind of data that defines data and is used to describe the attributes of the data. The metadata of the component is used to describe the attributes of the component.
  • the PMS can scan related information of the APP by scanning the APK of the APP.
  • the related information of the APP usually includes the components of the APP and the metadata of the components.
  • the The related information of the APP usually includes the activity component and the service component of the APP.
  • the metadata of the component usually includes the metadata of the activity component of the APP and the metadata of the service component.
  • System UI can obtain relevant information of APP scanned by PMS through interaction with PMS.
  • the System UI may determine the metadata included in the related information of the APP, and determine the name of the control corresponding to the metadata according to the description of the metadata by the component.
  • control of the APP may be a function button used to open, edit or switch a function of the APP.
  • an APP includes a "personal information" control, which is used to enable editing of the user's personal information (such as avatar and personal introduction, etc.), then the control is a function button that enables editing of a function of the APP; or, a certain
  • An APP includes a "user message reminder” control, which is used to turn on or off the user message reminder function of the APP, and the control is a function button that switches a function of the APP.
  • the System UI can also determine the icon of the control corresponding to the metadata according to the description of the metadata by the component, and it can be displayed in the first floating window
  • the name and icon of the control are displayed, and the first floating window is set on the upper layer of the interface of the APP.
  • the System UI can display the name and icon of the "personal information" control through the first floating window.
  • 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, and the control corresponds to
  • the state of the function includes the function on state and the function off state, and the name of the "user message reminder" control is displayed in the first floating window, and the function is displayed in the on state or the function is in the off state.
  • the relevant information of the APP scanned by the PMS may also include the system authority of the APP.
  • the system permissions of the APP refer to the permissions provided by the operating system of the electronic device during the running process of the APP.
  • the System UI may determine and display the control corresponding to the system authority.
  • the System UI may determine that the controls corresponding to the APP include near field communication (NFC) related controls, and then, System UI can determine the name and icon of the NFC-related control according to the description of this system permission in the component.
  • NFC near field communication
  • the APK may also include other information, for example, the priority of each metadata may also be included.
  • the APP-related information obtained by the PMS may also include various The priority of the metadata.
  • the system library includes a status monitoring service, which can perform status detection based on the data reported by the sensor driver at the kernel layer.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer includes a driver, and the driver may include a sensor driver.
  • 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) outputs the corresponding touch operation 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 that the touch area is touched according to the received data. Control the position coordinates, and report the touched position coordinates to the event distribution manager of the application framework layer, and the event distribution manager transmits the touched position coordinates to the window manager.
  • the window manager determines the type of this touch operation (for example, touch, slide, or pull down) and the specific location of the touch according to the coordinate of the touched position. Then, the window manager performs a corresponding operation according to the type of the touch operation and the specific position being touched.
  • the user can touch the application market APP installed by the electronic device, select the APP to be installed this time from a variety of APPs provided by the application market, and download the electronic device The installation package of the APP and install it.
  • the event processor reports the event that the application market APP was touched to the window manager, and the window manager sends feedback to the application market APP.
  • the APP then calls the PMS to trigger the PMS to install the APP to be installed this time.
  • the APK of the APP is scanned, and relevant information of the APP is obtained and recorded, so that the System UI can determine the controls of the APP according to the relevant information.
  • the electronic device will also receive a corresponding operation for the APP.
  • the operation is a touch operation for a certain control displayed by the System UI
  • the event manager reports the event of receiving the touch operation for the control to the window manager
  • the window manager triggers the System UI.
  • the System UI determines the touched position according to the touch point coordinates, determines which application the touched control belongs to according to the touched position, and then notifies the application so that the application responds to the touch operation.
  • the first APP is installed in the electronic device to which the control display method disclosed in the embodiment of the application is applied.
  • 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 called the first APP.
  • a floating window wherein, 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.
  • the control of the first APP displayed in the first floating window is referred to as the first control of the first APP
  • the control of the first APP displayed in the display interface is referred to as The second control, the first control and the second control are different controls of the first APP.
  • the electronic device can install and use the first APP, where the first APP can be an APP installed by the electronic device when it leaves the factory, or it can be the electronic device in the application process, according to the user's own needs.
  • the first APP supports more than two controls, and the controls may be a function button used to switch or enable editing of a function of the first APP.
  • the controls of the first APP are defined by the application developer of the first APP.
  • the first APP When the electronic device receives a selection operation for a certain control of the first APP, the first APP will realize the corresponding function.
  • a certain control is a function button used to enable editing of a function of the first APP
  • a selection operation for the control is received
  • the first APP will enter the function corresponding to the control to enable editing Interface so that users can edit according to their own needs.
  • the control is displayed in the display interface of the first floating window and the first APP
  • the name and icon of the control are usually displayed.
  • the first APP includes a "personal information" control
  • the "personal information" control is a control used to edit the user's personal information
  • the name and icon of the control "personal information" In the case of a control, the name and icon of the control "personal information" are usually displayed.
  • the first APP turns on or turns off the function corresponding to the control.
  • the control is displayed in the display interface of the first floating window and the first APP, the name of the control is usually displayed, and it is displayed that the function is in the on state or the function is in the off state.
  • the first APP includes a "user message reminder” control
  • the "user message reminder” control is used to turn on or off the user message reminder function
  • Figure 4(b) when this In the case of a control, the name of the control "User Message Reminder” is usually displayed, and it is displayed that the function is on or the function is off.
  • the state of the "User Message Reminder" control is The function closed state means that the first APP has closed the user message reminder function.
  • the first APP is the Dianping APP, which provides multiple control interfaces, and different control interfaces can provide different controls of the first APP.
  • the controls corresponding to each control interface of the first APP can be as follows As shown in Figure 5(a).
  • Figure 5 (a) shows that in the initial interface of the Dianping APP, the "my” control is displayed.
  • the initial interface refers to the interface displayed when the electronic device opens the APP, but does not operate on the APP.
  • the Dianping APP jumps to display another interface, which includes a "settings” control and a “favorite” control.
  • the Dianping APP jumps to another interface again, in which the "Personal Information” control and the "Message and Push Notification” control are displayed.
  • the Dianping APP again jumps to another interface, which displays various controls related to personal information, such as “avatar”, “personal information” and “receive”. Shipment address” and other controls.
  • the interface displayed after the Dianping app jumps usually includes collection-related Various controls, such as “merchant”, “review” and “group buying” controls.
  • the above-mentioned controls are used to control the functions of the Dianping APP.
  • the "Portrait” 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 "Receiving Address” control is used to determine the user's delivery address;
  • "Activity Push” The control is used to indicate whether to receive event push information;
  • the "User Message Reminder” control is used to indicate whether to receive user messages;
  • the "Nearby Recommendation” control is used to indicate whether to receive recommendations for nearby merchants;
  • the "Merchant” control is used to display the APP Favorite merchant information;
  • the "review” control is used to display the review information of the APP;
  • the "group purchase” control is used to display the group purchase information of the APP.
  • the first APP is a WeChat APP, which provides multiple control interfaces, and 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 the figure As shown in 5(b).
  • Figure 5(b) shows that the control "I” is displayed in the initial interface of the WeChat APP.
  • the WeChat APP After receiving the selection operation for the "me” control, the WeChat APP jumps to display another interface, which includes a “settings” control and a “favorite” control.
  • the WeChat APP 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.
  • the WeChat APP After receiving the selection operation for the "Account and Security” control, the WeChat APP jumps to another interface again, which displays various controls related to the account and security, such as "Voice Lock”, “WeChat Password” and “Emergency Contact” and other controls.
  • the interface displayed after the WeChat APP jumps usually includes the collection-related items Controls, such as "link”, "file”, and "music” controls.
  • the above-mentioned various controls are used to control the functions of the WeChat APP.
  • the "voice lock” control is used to set the voice lock of WeChat APP
  • the "WeChat password” control is used to adjust the WeChat password
  • the "emergency contact” control is used to determine the emergency contact's contact information
  • "receive new message notification” The control is used to indicate whether to receive new messages
  • the "receive voice and video call invitation” control is used to indicate whether the WeChat APP receives voice and video call invitations
  • the "notification display message details” control is used to indicate whether to prompt when a new message is received
  • the "Do Not Disturb Mode” control is used to indicate whether to enter the do not disturb mode.
  • the WeChat APP When the WeChat APP enters the Do Not Disturb mode and is not running in the foreground, the WeChat APP will not ring after receiving the new message Bell and vibration to avoid disturbing users; the "Link” control is used to display the links of WeChat APP collection; 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.
  • 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 the embodiment of the present application.
  • the electronic device when the electronic device displays the first control through the first floating window located on the first display interface, it can also display the third control corresponding to the first APP at the same time, and
  • the third control is usually also displayed by a floating window set on the display interface, and the floating window used to display the third control may be referred to as a second floating window.
  • the third control is introduced below.
  • the third control is a function button for manipulating the operating system of the electronic device, and the second floating window displaying the third control may 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.
  • the electronic device can support wireless local area networks (WLAN), and the electronic device needs to be equipped with a WLAN control, and the WLAN control controls whether the electronic device is connected to the wireless network; the electronic device can support the positioning function, correspondingly Yes, the electronic device needs to be equipped with a positioning control, such as a GPS control, through which the positioning control controls whether the electronic device turns on the GPS function to achieve positioning; in addition, the electronic device can also support the Bluetooth function, and the electronic device can also be equipped with a Bluetooth control.
  • the Bluetooth control controls whether the electronic device turns on the Bluetooth function; when the electronic device supports the near field communication (NFC) function, the electronic device can also be configured with an NFC control, and the electronic device can be controlled by the NFC control. Turn on the near field communication function.
  • the WLAN control, GPS control, Bluetooth control, and NFC control can all be referred to as the third control.
  • the third control may also include other controls, such as a brightness adjustment control, a flight mode control, an eye protection mode control, or a control whether the screen automatic rotation is locked or not, which is not limited in the embodiment of the present application.
  • the third control is usually located in the 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 may be different floating windows, or may also be the same floating window.
  • the electronic device After the electronic device opens the first APP, no additional operation by the user is required.
  • the electronic device automatically sets a first floating window on the upper layer of the first display interface of the first APP, and passes the first APP.
  • a floating window displays the first control of the first APP.
  • 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 type of the first APP, and The mapping relationship of the first control and the interface identifier of the first display interface. The specific meaning of each first display parameter and the manner of determining the first control according to each first display parameter will be described later.
  • the control displayed on the first display interface of the first APP may be referred to as a second control, and the first control and the second control are different controls.
  • the first floating window controls that are not included in the first display interface of the first APP are displayed.
  • the first display interface of the first APP refers to the display interface currently opened and displayed by 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.
  • the user needs to apply the first APP, he can click the icon of the first APP displayed on the desktop.
  • the electronic device After receiving the 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.
  • the first display interface may include some operable controls (ie The second control).
  • the electronic device automatically displays a first floating window in which the first control of the first APP is displayed, and the first control is different from that on the first display interface. The displayed control.
  • the first floating window is displayed on the upper layer of the first display interface
  • 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 first control displayed in the first floating window and the second control displayed on the first display interface can be viewed at the same time.
  • the first control is a function button for opening and editing the function of the first APP, and displaying the first control in a first floating window on the first display interface of the first APP includes The name and icon of the first control are displayed in the first floating window; or, the first control is a function button used to switch the function of the first APP, which is displayed in the first APP Displaying the first control in the first floating window on the first display interface includes: displaying the name and state of the first control in the first floating window, and displaying that the function is in the on state or the The function is off.
  • the user can directly operate this control in the first floating window, for example, open the first control or close the first control .
  • the electronic device After receiving an operation for a certain first control in the first floating window, the electronic device executes the function corresponding to the operation.
  • the user often needs to click the control in the first APP multiple times before the electronic device can display the first control required by the user.
  • the electronic device 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 , The first control is different from the second control displayed on the first display interface.
  • the solution of the present application provides the user 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, simplify the display of APP The user action required for the control.
  • the user can directly operate the first control, so that the desired control can be obtained without clicking the control multiple times.
  • 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 parameters of the first APP are different, the first controls displayed in the first floating window may be different, so that the diversified needs of users can be met.
  • the display permissions of the metadata corresponding to these controls can be adjusted so that these controls can be displayed in the first floating window. Displayed in the window.
  • the first controls that can be displayed in the first floating window may be divided into at least two groups , A group of first controls can be displayed in the first floating window, and a 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.
  • the remaining set of first controls can replace the previously displayed first controls, that is, only one set of first controls is displayed in the first floating window at a time, and when the first floating window displays the last set of first controls
  • the electronic device adjusts the first folding icon to a first return icon, and after receiving a touch for the first return icon, the first floating window displays the previous group of first controls;
  • the currently displayed first control and the remaining group of first controls can also be displayed at the same time.
  • the first control can be displayed in groups in the first floating window.
  • the content is obscured.
  • the electronic device can adjust the first control displayed in the first floating window through the received touch operation on the first folding icon. A control, so that the first control displayed in the first floating window meets the needs of the user.
  • the user is required to perform a touch operation on the first folding icon.
  • the solution of the present application requires fewer touch operations performed by the user, and can still play a role in simplifying user operations.
  • the relationship between the controls of the first APP and each control interface is as shown in Figure 5(a), and the user needs to operate the "Notification Display Message Details" control .
  • the user 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 enable all
  • the first floating window displays the first control required by the user; 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 first floating window When the user touches the first fold icon once, the first floating window will display the “notification display message details” control; when the “notification display message details” control belongs to the third group displayed in the first floating window One control, and when 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 users need to perform are simplified.
  • the electronic device when the electronic device displays the first control of the first APP through the first floating window, it can also simultaneously display in the second floating window on the first display interface of the first APP
  • the third control corresponding to the first APP the third control is a function button for operating the operating system of the electronic device where the first APP is installed, and the first floating window and the second floating window may be different
  • the floating window of may also be the same floating window, which is not limited in the embodiment of the present application.
  • 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 authority 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.
  • the electronic device may display the second floating window while displaying the first floating window.
  • the electronic device displays the second floating window again.
  • the trigger operation for displaying the second floating window may be a touch operation, a voice input operation, or an air gesture operation for an electronic device, etc.
  • the touch operation may be a sliding operation for a touch area (for example, A pull-down sliding operation or a left-right sliding operation, etc.) can also be a click operation for a certain set icon, etc.
  • the comparison of the embodiments of this application is not limited.
  • the desktop of the electronic device is provided with a setting icon corresponding to the third control.
  • the electronic device After receiving a click on the setting icon, the electronic device jumps to a setting page, which provides multiple types of third controls. For the user to select the currently required third control and operate on the selected third control.
  • the user when using this method to operate the third control, the user first needs to turn the first APP to run in the background so that the electronic device displays the desktop, and then the user clicks on the setting control in the desktop to make the electronic device display including The setting page of the third control, and then the user can operate the third control included in the setting page, so the operation is relatively cumbersome.
  • the third control can also be displayed through the second floating window on the first display interface.
  • the third control displayed in the second floating window can be directly operated.
  • the electronic device automatically sets a second floating window on the upper layer of the first display interface of the first APP after opening the first APP, that is, after starting the first APP.
  • the schematic diagram of the interface displayed by the electronic device may be as shown in FIG. 6(a).
  • FIG. 6(a) not only the first display interface 601 of the first APP is included, but also a first floating window 600 is included on the upper layer of the first display interface.
  • the first floating window 600 is connected to the second floating window 600.
  • the floating window is the same floating window, and the first control 610 of the first APP and the first folding icon 620 are displayed in the first floating window 600, and the third control 630 is also displayed.
  • the first control 610 includes a user message reminder control and a personal information control
  • the third control 630 includes a WLAN control and a location control.
  • the first floating window may also display other first controls and third controls, which are not limited in the embodiment of the present application.
  • the user 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 first control that is clicked is an active push control, and this click is to start the active push control, the first APP will subsequently display an active push message to the user.
  • the user will click 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.
  • 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.
  • the electronic device will also execute the function corresponding to the third control.
  • the first control and the third control may be located in different floating windows.
  • the schematic diagram of the interface displayed by the electronic device may be as shown in FIG. 6(b).
  • FIG. 6(b) it not only includes the first display interface 601 of the first APP, but also includes a first floating window 640 and a second floating window 650 on the upper layer of the first display interface.
  • the first floating window 640 A first control 610 and a first folding icon 620 are displayed in, and a third control 630 is displayed in the second floating window 650.
  • an APP interface is displayed on the display screen of the electronic device, that is, the interface of the first APP is displayed in the electronic device in a full-screen form.
  • the display screen of the electronic device can also display the interfaces of more than two different APPs at the same time.
  • the upper layer of the display interface of the different APPs can be respectively provided with the first floating window and the second floating window corresponding to the APP.
  • Two floating windows, the first floating window corresponding to the APP displays the first control of the APP, and the first floating window corresponding to the APP displays the third control of the APP.
  • the first floating window and the second floating window corresponding to different APPs may be the same floating window or different floating windows.
  • the electronic device displays the display interfaces of two APPs at the same time
  • the two APPs are the first APP and the second APP
  • the first floating window and the second floating window corresponding to the two APPs are the same.
  • the schematic diagram of the interface displayed by the electronic device may be as shown in FIG. 6(c).
  • the first display interface 660 of the first APP is included.
  • the first display interface 660 displays the animation video.
  • the upper layer of the first display interface 660 also includes the first APP corresponding to the
  • the first floating window 670 displays the first control and the first folding icon of the first APP in the first floating window 670, and the first control includes an active push control.
  • the first floating window 670 of the first APP is the same as the second floating window, and a third control corresponding to the first APP may also be displayed in the first floating window 670.
  • the third Controls include do not disturb mode controls.
  • FIG. 6(c) also includes a second display interface 680 of the second APP.
  • the second display interface displays recommended merchants, food, entertainment and other options to the user, and in the second display interface 680
  • the upper layer also includes a first floating window 690 corresponding to the second APP.
  • a first control and a first folding icon of the second APP are displayed, and the first control of the second APP includes a user message reminder.
  • the third control of the second APP can be displayed through the second floating window on the upper layer of the second interface 680 (the second floating window is not shown in Figure 6(c) out).
  • the electronic device 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.
  • the first control is determined by the first display parameter of the first APP.
  • control displayed in the first display interface of the first APP may be referred to as a second control, and the first control displayed in the first floating window is different from the second control.
  • the user 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.
  • the trigger operation for displaying the first floating window may be in various forms.
  • 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 voice input operation on the first display interface. Click operation of the first prompt icon.
  • 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 in the touch area.
  • the touch operation may also be a relatively rare sliding operation.
  • the touch operation is on the right side of the touch area. Touch operation from the lower corner to the upper left corner.
  • Sensors such as temperature sensors, pressure sensors, and/or capacitance sensors, are usually built in the touch area of the electronic device.
  • different effects such as vibration and/or acoustics may be generated, and the resulting effect will cause the sensors built in the electronic device to generate corresponding signals, such as temperature signals generated by temperature sensors, pressure sensors The pressure signal generated, the capacitive signal generated by the capacitive sensor, etc.
  • the electronic device determines the touch point coordinates of the touch operation in the touch area according to the signal generated by the sensor, and determines whether the received touch operation is a pull-down operation or a side-slide operation according to 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.
  • the trigger operation for displaying the first floating window may also be a corresponding voice input operation.
  • the voice collection device for example, a microphone
  • the electronic device collects the voice uttered by the user, 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.
  • the trigger operation for displaying the first floating window may be a specific gesture operation.
  • the gesture operation may be an air gesture operation.
  • the electronic device may collect a gesture image including the air gesture operation through an image acquisition device (such as a camera). When the gesture image is analyzed and processed, it is determined that the user makes When the space gesture operation of is a specific gesture operation, the electronic device then displays the first floating window including the first control.
  • the trigger operation for displaying the first floating window may be an air gesture operation as shown in FIG. 7(b), where the air gesture operation is to place the palm of the five-finger close together on the display screen of the electronic device Directly above.
  • the electronic device determines that the user has made the air gesture operation shown in FIG. 7(b)
  • the first floating window is displayed.
  • a first prompt icon may also be set on the upper layer of the first display interface of the first APP.
  • the trigger operation for displaying the first floating window includes a click operation on the first prompt icon.
  • the electronic device After receiving the click operation on the first prompt icon, the electronic device displays a first floating window on the upper layer of the first display interface of the first APP, and displays the first floating window through the first floating window. The first control of the APP.
  • the first display interface of the first APP may be as shown in FIG. 8.
  • a first prompt icon 810 displayed on the first display interface of the first APP is included.
  • the first prompt icon occupies a smaller position, which can reduce the occlusion of the content in the first display interface, and the first prompt icon can prompt the user
  • the function is so that when the user needs the first floating window to display the first control, click the first prompt icon.
  • the trigger operation for displaying the first floating window may also be another form of operation, which is not limited in the embodiment of the present application.
  • the electronic device displays the first floating window on the upper layer of the first display interface of the first APP, and the display interface of the first APP is displayed through the first floating window.
  • the first control of the first APP thereby providing the user with a larger number of first controls through the display interface of the first APP, can reduce the touch operation of the first APP when the user needs the first control, that is, simplify the display of the first APP The user operation required for a control.
  • the electronic device displays the first floating window only after receiving the trigger operation.
  • the electronic device will not be triggered, and the upper layer of the first display interface will not display the first floating window. Therefore, in this scenario, when the user does not need the first control, the first floating window is not displayed in the first display interface, so as to avoid the first floating window from blocking the display interface.
  • the first controls can also be displayed in groups in the first floating window, that is, in the first floating window.
  • a group of first controls and a first folding icon are displayed in a floating window, and another group of first controls is displayed when a touch operation on the first folding icon is received.
  • the electronic device when the electronic device displays the first control of the first APP through the first floating window, it may also display the third control at the same time.
  • the third control is usually displayed through a second floating window, and the first floating window and the second floating window may 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 embodiments of the present application, there is no need to turn the first APP into a background operation. Compared with the method of displaying the third control in the prior art, the user operation can be simplified. .
  • the electronic device may display the second floating window while displaying the first floating window.
  • the electronic device displays the second floating window again.
  • the trigger operation for displaying the second floating window may be a sliding operation, a voice input operation, an air gesture operation, or a click operation on a certain set icon in the electronic device for the touch area of the electronic device, etc.
  • the displayed interface schematic diagram may also be as shown in any schematic diagram of FIGS. 6(a) to 6(c).
  • the electronic device needs to display the first control of the first APP through the first floating window.
  • the control display method disclosed in the embodiment of the present application includes the following steps:
  • Step S11 Start the first application program APP, and determine the first control of the first APP according to the first display parameter of the first APP.
  • the first display parameter of the first APP includes at least one of the following: the display authority of the metadata corresponding to the control of the first APP, the frequency of use of the control of the first APP, and the control of the first APP.
  • the interface identifier of the display interface is an identifier used to distinguish different display interfaces, and the identifiers of different display interfaces are different.
  • the identifier of the display interface may include interface elements displayed on 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.
  • the interface identifier of the display interface may also be other identifiers that can distinguish different display interfaces, which is not limited in the embodiment of the present application.
  • step S11 the operation of starting the first APP is disclosed, and the operation of determining the first control of the first APP according to the first display parameter of the first APP is disclosed.
  • the execution process of these two operations does not have a strict time sequence.
  • the first control of the first APP may be determined according to the first display parameter of the first APP.
  • the electronic device does not need to determine the first control of the other APP, which can reduce the workload of the electronic device.
  • the first control of the first APP may be determined according to the first display parameter of the first APP. For example, after installing the first APP, 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 the operation of determining the first control after the first APP is started, it is simplified The operation after the first APP is started improves the speed of displaying the first control in the first floating window.
  • Step S12 Display the first display interface of the first APP, and display the first control in a first floating window on the first display interface.
  • the first control is different from the second control, and the second control is a control displayed on the first display interface.
  • the electronic device can determine each control of the first APP through the metadata of the component contained in the installation package of the first APP and the metadata in the component. Specifically, the name and the name of each control of the first APP can be determined. icon. Moreover, when a certain control of the first APP is a function button used to switch the function of the first APP, the electronic device may also determine the state of the control through interaction with the first APP, and the state includes : Function on state and function off state.
  • the developer or provider of the first APP will set the corresponding display authority for the metadata corresponding to each control that can be displayed in the first floating window in the installation package of the first APP, or the second
  • a developer or provider of an APP creates a related file, in which it indicates that the metadata corresponding to each control that can be displayed in the first floating window has display authority, and the electronic device can determine the component through the related file The display permission of the metadata.
  • the electronic device can determine whether the corresponding control has the display authority.
  • the first display parameter may include the display authority of the metadata corresponding to the first APP control.
  • the electronic device determines the display authority of the metadata corresponding to the control of the first APP. Describe the first control of the first APP.
  • the first display parameter of the first APP includes the display authority of the metadata corresponding to the control of the first APP, and the first display parameter of the first APP is determined according to the first display parameter of the first APP.
  • a control including the following steps:
  • At least one control corresponding to metadata with display permission is a first target control, that is, the first target control is a control corresponding to metadata with display permission. Then, it is determined that at least one control of the first target control that is different from the second control is the first control of the first APP.
  • the electronic device determines that the control corresponding to the metadata with the display permission is the first control of the first APP, and whether the metadata has the 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 settings of the developer or provider of the first APP.
  • the first display parameter of the first APP may also include the frequency of use of the control of the first APP.
  • the determining the first control of the first APP according to the first display parameter of the first APP includes the following steps:
  • n is a set positive integer.
  • the controls of the first APP can be sorted in descending order of the frequency of use, and the first n controls in the sorting are used as the second target control.
  • control that is different from the second control in the at least one second target control is the first control of the first APP.
  • the frequency of using the controls of the first APP includes the frequency of using the controls of the first APP by users of different electronic devices, and/or the frequency of using the controls of the first APP by the current user of the electronic device.
  • the frequency of use of an APP's controls includes the frequency of using the controls of the first APP by users of different electronic devices, and/or the frequency of using the controls of the first APP by the current user of the electronic device.
  • the usage frequency of the controls of the first APP includes the usage frequency of the controls of the first APP by different users
  • different electronic devices will count the different controls of the first APP used by each user
  • the server counts the usage frequency of each user for different controls, and feeds the usage frequency back to the electronic device.
  • Controls of the first APP Frequency of use Receive notification of new messages twenty three Receive voice and video call invitations 50 Notification shows message details 15 Do not disturb mode 100 Collection files 65
  • the electronic device determines that among the controls of the first APP, the control whose frequency of use exceeds the first threshold is the second target control, and if the first threshold is 20, the second target control includes: Disturbance mode control, favorite file control, receiving voice and video call invitation control, and receiving new message notification control.
  • the second target control includes: Disturbance mode control, favorite file control, receiving voice and video call invitation control, and receiving new message notification control.
  • the first control can be determined according to the frequency of use of the control of the first APP by users of different electronic devices, and therefore, the first control can be adapted to the usage habits of most users.
  • the frequency of using the controls of the first APP by the current user of the electronic device may also be used as the frequency of using the controls of the first APP.
  • the electronic device can count the frequency of use of each control of the first APP during the use period by the user every other use cycle, and use the control of each control of the first APP during the use period. Frequency determination of the first control of the first APP.
  • the first control can be determined according to the frequency of use of the controls of the first APP by the user of the electronic device. Therefore, the determined first control is more in line with the user's usage habits of the electronic device, thereby improving user experience .
  • the frequency of using the controls of the first APP may also include the frequency of using the controls of the first APP by users of different electronic devices and the frequency of using the controls of the first APP by the current user of the electronic device.
  • the electronic device may first determine the first control according to the frequency of use of the controls of the first APP by users of different electronic devices, and display the first control through the first floating window set on the first display interface. Then, after the electronic device has applied the first APP for a period of time, after every other use period, the first control can be re-determined according to the frequency of use of the controls of the first APP by the current user of the electronic device, and The re-determined first control is displayed through the first floating window.
  • the use period can be set by the electronic device when it leaves the factory, and can also be adjusted according to received user operations.
  • the use period may be one week.
  • the use period may also be other durations, which are not limited in the embodiment of the present application.
  • the electronic device can periodically determine the first control of the first APP, so that the first control meets the user's use requirements, and further improves the user's use experience when applying the first APP.
  • the electronic device may also 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:
  • At least one third target control is determined.
  • control that is different from the second control in the at least one third target control is the first control of the first APP.
  • mapping relationship between different APP types and the first control may be as shown in Table 2:
  • the first control (1) The first control (2) Media entertainment Video push Do not disturb Shopping consumption Push new news Collection shop Social communication Photo album Emoji settings
  • the types of APP are divided into: audio-visual entertainment, shopping consumption, and social communication.
  • the first control corresponding to the audio-visual entertainment APP may include the video push control and the do-not-disturb control;
  • the first control corresponding to the shopping consumer APP may include the new message push control and the favorite shop control;
  • the first control corresponding to the APP includes an album control and an expression setting control.
  • the electronic device can determine the first control corresponding to the first APP according to the type to which the first APP belongs by querying the mapping relationship.
  • the APP can also be classified into other APP types, which is not limited in the embodiment of the present application.
  • the electronic device can determine the type of the first APP in a variety of ways.
  • the ways when the electronic device installs the first APP, it downloads the installation package of the first APP through the application market, and the application market divides each APP into different types. Therefore, the electronic device is downloading the first APP.
  • the type of the first APP can be determined by accessing the application market.
  • 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.
  • 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 the server or receiving user input.
  • 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.
  • determining the first control of the first APP according to the first display parameter of the first APP includes the following steps:
  • At least one fourth target control associated with the first display interface is determined.
  • the at least one fourth target control is at least one control displayed on the lower-level display interface when the electronic device applying the first APP jumps to the lower-level display interface of the first display interface.
  • control that is different from the second control in the at least one fourth target control is the first control of the first APP.
  • the controls corresponding to each display interface of the first APP are shown in Figure 4(a).
  • the first display interface is a display interface displaying a "settings" control and a "favorite” 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 the selection operation for the "Personal Information” control After that, the first APP again jumps to the fourth display interface including the "avatar” control, the "personal information” control, and the "shipping address” control.
  • 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 third display interface and the fourth display interface
  • the controls included in the interface, the fifth display interface, and the sixth display interface are the controls associated with the first display interface.
  • the electronic device can determine the data structure of the metadata of the component of the first APP through the installation package of the first APP, and then determine the data structure of the metadata of the component according to the data structure of the first display. At least one control associated with the interface.
  • the data structure of the metadata of the component may be a tree structure.
  • the metadata corresponding to the control included in the first display interface is set as the first metadata.
  • the lower-level node of the first metadata corresponds to The control of is the first control associated with the first display interface.
  • the lower-level nodes of the first metadata are nodes in the branch of the tree structure where the first metadata is located, from the child node of the first metadata to the terminal node of the branch, And includes the child node of the first metadata and the terminal node of the branch.
  • the metadata corresponding to the "my” control is “Settings”
  • the parent node of the metadata corresponding to the "control” and the “Favorite” control the metadata corresponding to the “Settings” control is the parent node of the metadata corresponding to the "Personal Information” control and "Messages and Push Notifications", "Personal Information”
  • the metadata corresponding to the "control” is the parent node of the metadata corresponding to the "avatar” control, the "personal information” control, and the “shipping address” control.
  • the metadata corresponding to the "message and push notification” control is "Activity Push".
  • the first display interface includes the "Settings” control and the "Message and Push Notification” control
  • the "Portrait” control, “Personal Information” control, “Receiving Address” control, “Activity Push” control, " The metadata corresponding to the "User Message Reminder” control and the “Nearby Recommendation” control are both subordinate nodes of the child node of the first metadata.
  • it can be determined that the "avatar” control, "personal information” control, “shipping address” control, “activity push” control, "user message reminder” control and “nearby recommendation” control are the same as the first display
  • the fourth target control associated with the interface is the same as the first display The fourth target control associated with the interface.
  • the electronic device determines the first control of the first APP according to the interface identifier of the first display interface.
  • the first APP displays the first display interface
  • the user needs to touch the controls associated with the first display interface, it is often necessary to perform at least one touch operation on the first APP , So that the first APP jumps to the display interface including the first control required by the user.
  • 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 touch operation of the user.
  • the electronic device can also determine the first control of the first APP through two or more first display parameters at the same time.
  • the first control corresponding to different first display parameters can be determined separately, and then the first control corresponding to different The collection or union of the first controls corresponding to the first display parameter is used as the first control displayed in the first floating window.
  • the first display parameter of the first APP includes a display authority of metadata corresponding to a control of the first APP and an interface identifier of the first display interface.
  • the electronic device determines the first control of the first APP according to the first display parameter of the first APP, including:
  • Step S21 It is determined that among the controls of the first APP, at least one control corresponding to the metadata with the display permission is the first target control.
  • Step S22 Determine at least one fifth target control associated with the first display interface in the first target control according to the interface identifier of the first display interface.
  • the at least one fifth target control is a first target control displayed on the lower-level display interface when the electronic device applying the first APP jumps to the lower-level display interface of the first display interface.
  • step S22 the first target control is filtered according to the interface identifier of the first display interface, and at least one fifth target control in the first target control is determined.
  • Step S23 Determine that at least one control of the fifth target control that is different from the second control is the first control of the first APP.
  • the electronic device can determine the first control of the first APP in combination with the display authority 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 display authority, and the first control is also associated with the first display interface, so that the first control can be made to conform to 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.
  • the first display parameter of the first APP includes the frequency of use of the controls of the first APP and the interface identifier of the first display interface.
  • the electronic device determines the first control of the first APP according to the first display parameter of the first APP, including:
  • Step S24 Determine that at least one of the controls of the first APP whose frequency of use is greater than the second threshold is the sixth target control, or determine that the first m controls of the controls of the first APP with the highest frequency of use are the sixth Target control, m is a set positive integer.
  • the second threshold value may be equal to or not equal to the first threshold value, and m and n may be the same positive integer or different, which is not limited in the embodiment of the present application.
  • the frequency of use of the controls of the first APP includes the frequency of use of the controls of the first APP by users of different electronic devices, and/or the use of the controls of the first APP by the current user of the electronic device frequency.
  • Step S25 According to the interface identifier of the first display interface, determine at least one seventh target control in the sixth target control that is associated with the first display interface.
  • At least one of the seventh target control is the sixth target control displayed on the lower display interface when the electronic device applying the first APP jumps to the lower display interface of the first display interface.
  • Step S26 Determine that at least one control of the seventh target control that is different from the second control is the first control of the first APP.
  • the electronic device can determine the first control of the first APP in combination with the frequency of use 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 frequency of use, so as to conform to the user's usage habits, and the first control is also associated with the first display interface, so that it can be related to the first display interface when the user needs it.
  • the first control is connected, the first control associated with the first display interface is displayed in the first floating window, reducing the touch operation of the user.
  • the first display parameter of the first APP includes the display authority of the metadata corresponding to the control of the first APP and the frequency of use of the control of the first APP.
  • the electronic device determines the first control of the first APP according to the first display parameter of the first APP, including:
  • Step S27 Determine that among the controls of the first APP, at least one control corresponding to the metadata with the display permission is the first target control.
  • Step S28 Determine that at least one control in the first target control whose frequency of use is greater than a third threshold is the eighth target control, or determine that the first s controls in the first target control with the highest frequency of use are the eighth target control , S is a set positive integer.
  • the third threshold value may be equal to or not equal to the first threshold value, and s and n may be the same positive integer or different, which is not limited in the embodiment of the present application.
  • Step S29 Determine that at least one control of the eighth target control that is different from the second control is the first control of the first APP.
  • the electronic device can determine the first control of the first APP in combination with the display authority of the corresponding metadata of the control of the first APP and the use frequency of the control of the first APP.
  • the metadata corresponding to the first control determined in this way has display authority, and the first control is a control with a higher frequency of use, so that it can conform to the user's usage habits.
  • 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 floating window can be displayed through the first floating window.
  • the first control of the first APP can be determined 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 floating window can be displayed through the first floating window.
  • the electronic device may automatically display the first control in the first floating window on the first display interface after starting the first APP.
  • the first control may be displayed on the first floating window on the first display interface.
  • 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 an operation on the first display interface on the first display interface. Prompt the click of the icon.
  • the first control is a function button used to open and edit the function of the first APP
  • the name and icon of the first control are displayed in the first floating window.
  • the first control is a function button used to switch the function of the first APP
  • the name of the first control is displayed in the first floating window and the function is displayed or The function is off.
  • the electronic device can pass An APP interaction determines the state of the control, and displays the name of the first control "User Message Reminder" and the corresponding state in the first floating window.
  • the electronic device may display the name and icon of the first control "personal information" in the first floating window.
  • the first APP may implement many functions, and the corresponding first APP may include multiple first controls.
  • the first controls can be divided into at least two groups, which can be displayed in the first floating window One of the first controls.
  • the first control is also grouped, and then the first control is displayed in the first floating window according to the grouping situation.
  • the number of the first controls is M
  • the maximum number of the first controls displayed in the first floating window each time is N
  • the first floating on the first display interface Displaying the first control in the window includes the following steps:
  • the first step is to sort the first control according to the sorting parameters of the first control
  • the second step is to display the top N first controls in the sorting in the first floating window
  • N can be a preset value of the electronic device, and the value of N can be readjusted according to the user's setting operation.
  • the first N first controls in the sort when the first N first controls in the sort are displayed in the first floating window, the first N first controls may also be determined according to the sort result of the first controls Sorting in the first floating window.
  • 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 control in the first floating window.
  • Collapse icon 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.
  • the remaining group of first controls can be replaced with the previously displayed first controls, that is, only a group of first controls are displayed in the first floating window at a time.
  • the electronic device adjusts the first folding icon to a first return icon, and after receiving a touch for the first return icon, the The first floating window displays the first control of the previous group.
  • the currently displayed first control and the remaining group of first controls can also be displayed in the first floating window at the same time.
  • the first control can be displayed in groups in the first floating window.
  • the content is obscured.
  • the electronic device can adjust the first control displayed in the first floating window through the received touch operation on the first folding icon. A control, so that the first control displayed in the first floating window meets the needs of the user.
  • the user is required to perform a touch operation on the first folding icon.
  • the solution of the present application requires fewer touch operations performed by the user, and can still play a role in simplifying user operations.
  • the relationship between the controls of the first APP and each control interface is as shown in Figure 5(a), and the user needs to operate the "Notification Display Message Details" control .
  • the user 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 enable all controls.
  • the first floating window displays the first control required by the user; 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 first floating window When the user touches the first fold icon once, the first floating window will display the “notification display message details” control; when the “notification display message details” control belongs to the third group displayed in the first floating window One control, and when 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 users need to perform are simplified.
  • the first control is sorted by sorting parameters.
  • the sorting parameter includes at least one of the following: when scanning the installation package of the first APP, the order in which the metadata corresponding to the first control is scanned, the frequency of use of the first control, and the The priority of the metadata corresponding to the first control.
  • the electronic device can sort the first controls in a variety of ways.
  • the sorting parameter is the sequence in which the metadata corresponding to the first control is scanned when the installation package of the first APP is scanned.
  • the electronic device scans the installation package of the first APP, it records the sequence of the scanned metadata of each component, and determines the display sequence of the first control according to the sequence.
  • the first control corresponding to the metadata scanned earlier can be determined, and the order of sorting the first control is higher, that is, the first control corresponding to the metadata scanned earlier is divided into The first group of controls.
  • the electronic device determines the order of the first control according to the sequence of the scanned metadata when scanning the installation package of the first APP, which is relatively convenient.
  • the ranking parameter includes the frequency of use of the first control, that is, the electronic device may determine the ranking of each first control according to the frequency of use of the first control.
  • the display order in the first floating window usually the higher the frequency of use, the higher the ranking result of the first control.
  • the electronic device may determine the frequency of use of the first control of the first APP
  • the sorting results are: do not disturb mode control, favorite file control, receive voice and video call invitation control, and receive new message notification control.
  • the electronic device when the electronic device periodically determines the frequency of use of the first control, the electronic device can also determine the ordering of the first control according to the frequency of use in each cycle, thereby realizing the periodicity of the ordering of the first control. adjust.
  • the sorting result of the first control can be made to conform to the user's use habits, and the user's use experience can be improved.
  • the electronic device 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 corresponding metadata by scanning the installation package of the first APP. Or, when the priority of the metadata of each component is set in the related file, the electronic device can obtain the priority corresponding to each metadata by parsing the related file.
  • the sorting parameter includes the priority of the metadata corresponding to the first control.
  • the electronic device may determine the sorting result 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 higher in the sorting.
  • the first control displayed by the first APP in the first floating window includes: a notification control for receiving new messages, a control for receiving voice and video call invitations, a notification display for message details, a do not disturb mode, and a favorite file control, and each The priority of the metadata corresponding to the first control is shown in Table 3:
  • the priorities represented by N1, N2, N3, N4, and N5 are successively lowered, namely, receive new message notification control, receive voice and video call invitation control, notification display message details control, do not disturb mode control, and favorite control.
  • the priority corresponding to the five first controls is sequentially reduced.
  • it is set in the first floating window to display three first controls at a time.
  • three controls can be set to receive new message notification control, receive voice and video call invitation control, and notify display message details.
  • Divide into the first group of controls and divide the two first controls, the Do Not Disturb mode control and the favorite file control, into the second group of controls, and display the first group of controls first.
  • the first control When the first control is displayed, the first set of controls is displayed first in the first floating window, and when the first set of controls is displayed, the notification control for receiving new messages, the control for receiving voice and video call invitations and the notification for displaying message details are displayed in accordance with the control for receiving new messages.
  • the receiving new message notification control is located in the first position
  • the receiving voice and video call invitation control is located in the middle position
  • the notification display message details control is located in the last position.
  • the first floating window displays a second group of controls, and when the second group of controls is displayed, the Do Not Disturb mode control is located before the favorite file control.
  • control display method disclosed in the embodiment of the present application further includes the following steps:
  • Step S13 Determine 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 of controlling the operating system of the electronic device in which the first APP is installed Button
  • Step S14 Display the third control in a second floating window on the first display interface of the first APP.
  • first floating window and the second floating window may be the same floating window or different floating windows, which is not limited in the embodiment of the present application.
  • step S11 to step S12 there is no strict chronological order in the execution of the operations from step S11 to step S12 and between step S13 to step S14.
  • step S13 to step S14 are performed.
  • the operations of step S12 and step S14 can also be performed at the same time, that is, in the first APP In the floating window on the first display interface, the first control and the third control are displayed at the same time.
  • the second display parameter includes at least one of the following: the second display parameter includes at least one of the following: the system authority of the first APP, the system function indicated by the component of the first APP, and the type of the first APP
  • the electronic device may determine the third control in a variety of ways for the mapping relationship with the third control.
  • 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 function indicated by the component of the first APP System functions.
  • 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 component of the first APP indicates the system function required by the electronic device, which is the system function indicated by the component of the first APP.
  • the components of the first APP usually include an intent filter (ie, intent-filter), and the electronic device can determine that the function indicated by the intent-filter is the system function indicated by the component of the first APP.
  • intent-filter includes a near field communication function.
  • the electronic device may determine that the third control includes an NFC control.
  • the electronic device can also obtain the system privilege of the first APP (ie system privilege) by scanning the installation package of the first APP, and then determine the third control according to the system privilege.
  • the second The display parameter includes the system authority of the first APP.
  • the system permission of the first APP refers to the permission provided by the operating system of the electronic device during the operation of the first APP.
  • the first APP can be run after connecting to the network, so the operating system of the electronic device provides permissions related to network connection.
  • the third control includes a WLAN control, and the WLAN control can be used to control whether the operating system of the electronic device is connected to a wireless network.
  • the operating system of the electronic device needs to provide positioning information.
  • the system authority of the first APP includes the authority of positioning.
  • the third control It includes a positioning control, such as a GPS control, which is used to control whether the electronic device turns on the GPS function to achieve positioning.
  • the electronic device can obtain the system permission and intent-filter of the first APP by scanning the installation package of the first APP.
  • the installation package is an installation package of the Android system
  • the application permission (ie use-permission) declaration usually indicates the system permission of the first APP
  • the use-permission declaration and the intent-filter are usually in Register in the manifest file (manifest file) in the installation package.
  • the electronic device can determine the system right item and the intent-filter by scanning the manifest file in the installation package.
  • the second display parameter includes: a mapping relationship between the type of the first APP and the third control.
  • the electronic device may store the mapping relationship between the type of APP and the third control, and determine the third control corresponding to the first APP according to the type of the first APP.
  • mapping relationship between the type of APP and the third control may be as shown in Table 4:
  • the third control (1) The third control (2) Media entertainment WLAN Screen recording Social communication Ring the bell Screenshot
  • the types of APP are divided into: audio-visual entertainment and social communication.
  • 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 bell control and a screenshot control.
  • the electronic device can determine the third control according to the type to which the first APP belongs by querying the mapping relationship.
  • the APP can also be classified into other types, which are not limited in the embodiment of the present application.
  • the electronic device can also update the mapping relationship between the type of APP and the third control stored in the electronic device by accessing the server or receiving user input.
  • the electronic device may also determine the third control based on at least two second display parameters at the same time.
  • the third control displayed on the display interface of the first APP may be a collection or union of third controls determined by different second display parameters.
  • the third control may include multiple, and each third control determined by the electronic device may be displayed in the second floating window, or the electronic device may selectively display some of the third controls.
  • the third control that needs to be displayed in the second floating window can be determined in various ways.
  • third controls displayed in the second floating window in order to prevent the second floating window from being too large, causing occlusion of the first display interface of the first APP, affecting the display effect of the first display interface, and also
  • the third control may be displayed in the second floating window in a group display manner.
  • the number of third controls that can be displayed in the second floating window each 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
  • in the The second fold icon is also displayed in the second floating window.
  • the user can click the second folding icon.
  • the electronic device adjusts the third control displayed in the second floating window so that the second floating window displays another group of third controls that have not been displayed before.
  • the third controls when the third controls are divided into different groups, the third controls may be sorted, and then the third controls are grouped according to the sorting result.
  • the electronic device when the electronic device determines the third control through the system authority of the first APP, the electronic device also records the sequence of the scanned system authority during the process of scanning the installation package of the first APP, and The sorting result of the third control is determined according to the sequence. Specifically, it can be determined that the earlier the third control corresponding to the system authority is scanned, the higher the order in the sorting result of the third control.
  • the developer or provider of the first APP sets the priority of each system authority in the installation package of the first APP, or creates a priority that includes each
  • the relevant files of the priority of the system authority are packaged into a file package with the installation package and related files.
  • the electronic device downloads the installation package of the first APP, it will also obtain the related files.
  • 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 related file . 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 authority with a higher priority is ranked higher in the sorting result of the third control.
  • different electronic devices can count the usage frequency of different third controls used by their users, and upload the usage frequency to the server.
  • the server counts the usage frequency of the third control by users of different electronic devices, and feeds back the statistical result to the electronic device. Then, the electronic device determines the sorting result of each third control according to the feedback of the server. Among them, the third control that is usually used more frequently has the higher the order in the sorting result of the third control.
  • the electronic device may also adjust the sorting results of each third control according to the user's usage habits. In this manner, the electronic device collects the usage frequency of each third control used by the user, and then adjusts the sorting result of the third control according to the usage frequency. Among them, generally, the higher the frequency of the user applying a certain third control, the higher the order in the sorting result of the third control.
  • the embodiment of the present application also discloses an electronic device.
  • 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 Programs (not shown); and one or more computer programs 1404, the above-mentioned devices may be connected through one or more communication buses 1405.
  • the one or more computer programs 1404 are stored in the aforementioned memory 1403 and configured to be executed by the one or more processors 1402, and the one or more computer programs 1404 include instructions, and the aforementioned instructions can be used to execute the aforementioned implementations.
  • the electronic device may further include one or more sensors 1408.
  • the above-mentioned processor 1402 may specifically be the processor 110 shown in FIG. 1, the above-mentioned memory 1403 may specifically be the internal memory 121 and/or the external memory interface 120 shown in FIG. 2, and the above-mentioned screen 1401 may specifically be as shown in FIG. 1
  • the above-mentioned sensor 1408 may specifically be a gyroscope sensor 180B, an acceleration sensor 180E, and a proximity light sensor 180G in the sensor module 180 shown in FIG. 2, or may be one or more of an infrared sensor, a Hall sensor, etc. Item, the embodiment of the application does not impose any restriction on this.
  • an embodiment of the present application also discloses a computer-readable storage medium, which stores instructions in the computer-readable storage medium, and is characterized in that, when the instructions run on an electronic device, the electronic device executes The control display method disclosed in the foregoing embodiments of the present application.
  • the embodiments of the present application also disclose a computer program product containing instructions, which when the computer program product runs on an electronic device, cause the electronic device to execute the control display method disclosed in the foregoing embodiments of the present application.
  • the various illustrative logic units and circuits described in the embodiments of this application can be implemented by general-purpose processors, digital information processors, application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, Discrete gates or transistor logic, discrete hardware components, or any combination of the above are designed to implement or operate the described functions.
  • the general-purpose processor may be a microprocessor.
  • the general-purpose processor may 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, multiple microprocessors, one or more microprocessors combined with a digital information processor core, or any other similar configuration. accomplish.
  • 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 RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, removable disk, CD-ROM or any other storage medium in the art.
  • the storage medium may be connected to the processor, so that the processor can read information from the storage medium, and can store and write information to the storage medium.
  • the storage medium may also be integrated into the processor.
  • the processor and the storage medium may be set in the ASIC, and the ASIC may be set in the UE.
  • the processor and the storage medium may also be provided in different components in the UE.
  • the size of the sequence 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 correspond to the difference in the embodiments of the present application.
  • the implementation process constitutes any limitation.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
  • 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, computer, server, or data center.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center integrated with one or more available media.
  • the usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, and a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk (SSD)).
  • the technology in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform.
  • the technical solutions in the embodiments of the present invention can be embodied in the form of software products, which can be stored in a storage medium, such as ROM/RAM. , Magnetic disks, optical disks, etc., including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute the methods described in the various embodiments or some parts of the embodiments of the present invention.

Abstract

一种控件显示方法及电子设备,该方法包括:启动第一APP,根据第一APP的第一显示参数,确定第一APP的第一控件(S11),显示第一APP的第一显示界面,并在所述第一显示界面上的第一悬浮窗口显示第一控件(S12),根据所述第一APP的第二显示参数,确定所述第一APP对应的第三控件(S13),在所述第一APP的第一显示界面上的第二悬浮窗口中,显示所述第三控件(S14)。与现有技术相比,该方法能够提供更多数量的控件,从而减少当显示用户所需的控件时,需要用户执行的操作。进一步的,当第一显示参数不同时,第一悬浮窗口中显示的第一控件也可能不同,从而满足用户的多样化需求。

Description

一种控件显示方法及电子设备 技术领域
本申请涉及人机交互技术领域,具体涉及一种控件显示方法及电子设备。
背景技术
为了满足用户的多样化需求,终端支持的应用程序(application,APP)日益增多,并且,为了实现APP的各项功能,APP会提供各项功能对应的控件,以便通过控件使APP实现相应的功能。
APP通常具有多个控件。为了使APP能够显示用户所需的控件,APP的显示界面中通常会提供部分控件,并且在接收到针对其中某一控件的触控之后,终端可跳转至该控件所对应的界面,直到所述APP的显示界面中显示用户所需的控件。例如,参见图1(a)至图1(d)所示的某一用于通信的APP的显示界面的示意图,其中,图1(a)为该APP的初始界面,当需要APP显示“勿扰模式”这一控件时,需要用户点击该初始界面中的“我”控件;然后,终端跳转显示图1(b)所示的界面,用户再点击该界面中的“设置”控件;接收到针对“设置”控件的触控之后,终端显示图1(c)所示的界面,用户点击其中的“勿扰模式”这一控件;然后,终端显示图1(d)所示的界面,该界面中显示用户所需的“勿扰模式”控件。
但是,在应用这一方式时,往往需要用户进行多次触控操作,才能使终端显示用户所需的控件,操作较为繁琐。例如,在上述示例中,用户需要依次触控终端中的“我”、“设置”和“勿扰模式”这三个控件,即进行三次触控操作,才能使终端显示“勿扰模式”控件,操作较为繁琐。
发明内容
为了简化当电子设备显示用户所需的控件时,需要用户执行的操作,本申请实施例公开一种控件显示方法及电子设备。
为达到上述目的,本申请采用如下技术方案:
第一方面,本申请提供一种控件显示方法,包括:
启动第一应用程序APP,根据第一APP的第一显示参数,确定所述第一APP的第一控件,其中,所述第一APP的第一显示参数包括以下至少一种:所述第一APP的控件对应的元数据的显示权限、所述第一APP的控件的使用频次、所述第一APP的类型与所述第一控件的映射关系以及所述第一显示界面的界面标识;
显示所述第一APP的第一显示界面,并在所述第一显示界面上的第一悬浮窗口中显示所述第一控件,所述第一控件与第二控件不同,所述第二控件为所述第一显示界面中显示的控件。
通过本申请实施例公开的方案,电子设备能够根据第一APP的第一显示参数,在第一APP的第一显示界面上层显示第一悬浮窗口,所述第一悬浮窗口中显示所述第一显示界面中未包含的第一APP的控件,从而显示更多数量的控件,能够减少当显示用户所需的控件时,需要用户对所述电子设备执行的操作。
在一种可能的实现方式中,所述第一控件为用于对所述第一APP的功能开启编辑的功能按钮,在所述第一APP的第一显示界面上的第一悬浮窗口中显示所述第一控件,包括:
在所述第一悬浮窗口中显示所述第一控件的名称和图标。
通过所述第一控件的名称和图标,能够使电子设备的用户识别和区分各个第一控件。
或者,
所述第一控件为用于对所述第一APP的功能进行开关的功能按钮,在所述第一APP的第一显示界面上的第一悬浮窗口中显示所述第一控件,包括:
在所述第一悬浮窗口中显示所述第一控件的名称,并显示所述功能为开启状态或者所述功能为关闭状态。
通过所述第一控件的名称和显示的功能的状态,能够使电子设备的用户识别所述第一控件,以及确定所述第一控件对应的功能的状态。
在一种可能的实现方式中,还包括:
根据所述第一APP的第二显示参数,确定所述第一APP对应的第三控件,所述第三控件为对安装所述第一APP的电子设备的操作系统进行操控的功能按钮;
在所述第一APP的第一显示界面上的第二悬浮窗口中,显示所述第三控件。
在本申请实施例中,所述第三控件用于控制所述电子设备的操作系统所支持的功能的控件。示例性的,所述第三控件包括以下至少一种控件:WLAN控件、GPS控件、蓝牙控件、NFC控件、亮度调节控件、飞行模式控件、护眼模式控件和屏幕自动旋转是否锁定的控件。
通过上述步骤,能够在第二悬浮窗口显示第三控件,从而可使用户对第二悬浮窗口中的第三控件进行操作,减少当用户需要第三控件时,需要执行的用户操作。
在一种可能的实现方式中,所述第二显示参数包括以下至少一种:第一APP的系统权限、所述第一APP的组件指示的系统功能以及第一APP的类型与所述第三控件之间的映射关系。
通过所述第二显示参数,能够使电子设备确定所述第一APP对应的第三控件。
在一种可能的实现方式中,所述第一APP的第一显示参数包括所述第一APP的控件对应的元数据的显示权限;
所述根据第一APP的第一显示参数,确定所述第一APP的第一控件,包括:
确定所述第一APP的控件中,具备显示权限的元数据对应的至少一个控件为第一目标控件;
确定至少一个所述第一目标控件中与所述第二控件不同的控件为所述第一APP的第一控件。
通过上述方式,能够使电子设备根据第一APP的控件对应的元数据的显示权限,确定所述第一APP的第一控件。而第一APP的控件对应的元数据的显示权限可由第一APP的开发者或提供者设置,从而能够使第一悬浮窗口中显示的第一控件符合第一APP的开发者或提供者的设置。
在一种可能的实现方式中,所述第一APP的第一显示参数包括所述第一APP的控件的使用频次;
所述根据第一APP的第一显示参数,确定所述第一APP的第一控件,包括:
确定所述第一APP的控件中使用频次大于第一阈值的至少一个控件为第二目标控件,或者,确定所述第一APP的控件中使用频次最高的前n个控件为第二目标控件,n为设定的正整数;
确定至少一个所述第二目标控件中与所述第二控件不同的控件为所述第一APP的第一控件。
通过上述方式,能够使电子设备根据第一APP的控件的使用频次,确定所述第一APP的第一控件,从而能够使第一悬浮窗口中显示的第一控件符合用户的使用习惯,提高用户的使用体验。
在一种可能的实现方式中,所述第一APP的第一显示参数包括所述第一APP的类型与所述第一控件的映射关系;
所述根据第一APP的第一显示参数,确定所述第一APP的第一控件,包括:
根据所述第一APP的类型,以及所述第一APP的类型与所述第一控件的映射关系,确定至少一个 第三目标控件;
确定至少一个所述第三目标控件中与所述第二控件不同的控件为所述第一APP的第一控件。
通过上述方式,能够使电子设备根据所述第一APP的类型与所述第一控件的映射关系,确定所述第一APP的第一控件,实现方式较为简洁。
在一种可能的实现方式中,所述第一APP的第一显示参数包括所述第一显示界面的界面标识;
所述根据第一APP的第一显示参数,确定所述第一APP的第一控件,包括:
根据所述第一显示界面的界面标识,确定与所述第一显示界面相关联的至少一个第四目标控件,至少一个所述第四目标控件为当应用所述第一APP的电子设备跳转至所述第一显示界面下级的显示界面时,所述下级的显示界面中显示的至少一个控件;
确定至少一个所述第四目标控件中与所述第二控件不同的控件为所述第一APP的第一控件。
通过上述方式,能够使电子设备根据所述第一显示界面的界面标识,确定所述第一APP的第一控件,由于该第一控件与第一显示界面相关联,从而能够在用户需要与第一显示界面相关联的第一控件时,在第一悬浮窗口显示所述与第一显示界面相关联的第一控件,减少用户的触控操作。
在一种可能的实现方式中,所述第一APP的第一显示参数包括所述第一APP的控件对应的元数据的显示权限以及所述第一显示界面的界面标识;
所述根据第一APP的第一显示参数,确定所述第一APP的第一控件,包括:
确定所述第一APP的控件中,具备显示权限的元数据对应的至少一个控件为第一目标控件;
根据所述第一显示界面的界面标识,确定所述第一目标控件中,与所述第一显示界面相关联的至少一个第五目标控件,至少一个所述第五目标控件为当应用所述第一APP的电子设备跳转至所述第一显示界面下级的显示界面时,所述下级的显示界面中显示的第一目标控件;
确定至少一个所述第五目标控件中与所述第二控件不同的控件为所述第一APP的第一控件。
通过上述方式,电子设备能够结合第一APP的控件对应的元数据的显示权限以及第一显示界面的界面标识,共同确定所述第一APP的第一控件。通过这一方式确定的第一控件所对应的元数据具备显示权限,并且该第一控件还与第一显示界面相关联,从而能够使第一控件符合第一APP的开发者或提供者的设置,以及能够在用户需要与第一显示界面相关联的第一控件时,在第一悬浮窗口显示所述与第一显示界面相关联的第一控件,从而减少用户的触控操作。
在一种可能的实现方式中,所述第一APP的第一显示参数包括所述第一APP的控件的使用频次以及所述第一显示界面的界面标识;
所述根据第一APP的第一显示参数,确定所述第一APP的第一控件,包括:
确定所述第一APP的控件中使用频次大于第二阈值的至少一个控件为第六目标控件,或者,确定所述第一APP的控件中使用频次最高的前m个控件为第六目标控件,m为设定的正整数;
根据所述第一显示界面的界面标识,确定所述第六目标控件中,与所述第一显示界面相关联的至少一个第七目标控件,至少一个所述第七目标控件为当应用所述第一APP的电子设备跳转至所述第一显示界面下级的显示界面时,所述下级的显示界面中显示的第六目标控件;
确定至少一个所述第七目标控件中与所述第二控件不同的控件为所述第一APP的第一控件。
通过上述方式,电子设备能够结合第一APP的控件的使用频次以及第一显示界面的界面标识,共同确定所述第一APP的第一控件。通过这一方式确定的第一控件为使用频次较高为控件,从而能够符合用户的使用习惯,并且该第一控件还与第一显示界面相关联,从而能够在用户需要与第一显示界面相关联的第一控件时,在第一悬浮窗口显示所述与第一显示界面相关联的第一控件,减少用户的触控操作。
在一种可能的实现方式中,所述第一APP的第一显示参数包括所述第一APP的控件对应的元数据的显示权限和所述第一APP的控件的使用频次;
所述根据第一APP的第一显示参数,确定所述第一APP的第一控件,包括:
确定所述第一APP的控件中,具备显示权限的元数据对应的至少一个控件为第一目标控件;
确定所述第一目标控件中使用频次大于第三阈值的至少一个控件为第八目标控件,或者,确定所述第一目标控件中使用频次最高的前s个控件为第八目标控件,s为设定的正整数;
确定至少一个所述第八目标控件中与所述第二控件不同的控件为所述第一APP的第一控件。
通过上述方式,电子设备能够结合第一APP的控件的对应的元数据的显示权限和所述第一APP的控件的使用频次,共同确定所述第一APP的第一控件。通过这一方式确定的第一控件对应的元数据具备显示权限,并且该第一控件为使用频次较高为控件,从而能够符合用户的使用习惯。
在一种可能的实现方式中,在所述第一APP的第一显示界面上的第一悬浮窗口中显示所述第一控件之前,还包括:
接收用于显示所述第一悬浮窗口的触发操作;
所述用于显示所述第一悬浮窗口的触发操作包括以下至少一种:针对触控区域的滑动操作、隔空手势操作、语音输入操作和针对所述第一显示界面上的第一提示图标的点击操作。
通过这一方式,能够使电子设备接收到所述用于显示所述第一悬浮窗口的触发操作之后,才在所述第一悬浮窗口中显示第一控件,而其他时刻不通过第一悬浮窗口显示所述第一控件,从而减少所述第一悬浮窗口对第一显示界面的遮挡。
在一种可能的实现方式中,所述第一控件的数量为M,所述第一悬浮窗口每次显示的第一控件的最大数量为N,如果M大于N,所述在所述第一显示界面上的第一悬浮窗口中显示所述第一控件,包括:
根据所述第一控件的排序参数,对所述第一控件进行排序;
在所述第一悬浮窗口中,显示排序中的前N个第一控件;
在接收到针对所述第一悬浮窗口中的第一折叠图标的点击操作之后,在所述第一悬浮窗口中显示更多的所述第一控件。
通过上述方式,能够避免第一悬浮窗口中显示数量过多的第一控件,从而避免第一悬浮窗口的面积较大的现象,进一步减少所述第一悬浮窗口对第一显示界面的遮挡。
在一种可能的实现方式中,所述排序参数包括以下至少一种:在对所述第一APP的安装包进行扫描时,扫描到所述第一控件对应的元数据的先后顺序、所述第一控件的使用频次以及所述第一控件对应的元数据的优先级。
第二方面,本申请提供一种电子设备,包括:
一个或多个处理器;
一个或多个存储器;
以及一个或多个计算机程序,其中所述一个或多个计算机程序被存储在所述一个或多个存储器中,所述一个或多个计算机程序包括指令,当所述指令被所述一个或多个处理器执行时,使得所述电子设备执行如第一方面所述的控件显示方法。
第三方面,本申请提供一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当所述指令在电子设备上运行时,使得所述电子设备执行如第一方面所述的控件显示方法。
第四方面,本申请提供一种包含指令的计算机程序产品,当所述计算机程序产品在电子设备上运行 时,使得所述电子设备执行如第一方面所述的控件显示方法。
通过本申请实施例公开的方案,电子设备能够根据第一APP的第一显示参数,在第一APP的第一显示界面上层显示第一悬浮窗口,所述第一悬浮窗口中显示所述第一显示界面中未包含的第一APP的控件。与现有技术相比,本申请实施例的方案能够提供更多数量的控件,从而减少当显示用户所需的控件时,需要用户对所述电子设备执行的操作。
进一步的,在本申请实施例公开的方案中,电子设备根据第一APP的第一显示参数确定在所述第一悬浮窗口中显示的第一控件。因此,针对同一个第一APP,当所述第一APP的第一显示参数不同时,所述第一悬浮窗口中显示的第一控件也可能不同,从而能够满足用户的多样化需求。
附图说明
图1(a)为现有技术公开的一种APP的界面示意图;
图1(b)为现有技术公开的又一种APP的界面示意图;
图1(c)为现有技术公开的又一种APP的界面示意图;
图1(d)为现有技术公开的又一种APP的界面示意图;
图2为本申请实施例公开的一种电子设备的结构示意图;
图3为本申请实施例公开的一种电子设备的软件结构框图的示意图;
图4(a)为本申请实施例公开的第一APP的一种控件的示意图;
图4(b)为本申请实施例公开的第一APP的又一种控件的示意图;
图5(a)为本申请实施例公开的一种第一APP的第一控件的示意图;
图5(b)为本申请实施例公开的又一种第一APP的第一控件的示意图;
图6(a)为本申请实施例公开的控件显示方法中的一种界面示意图;
图6(b)为本申请实施例公开的控件显示方法中的又一种界面示意图;
图6(c)为本申请实施例公开的控件显示方法中的又一种界面示意图;
图7(a)为本申请实施例公开的控件显示方法中的一种触控操作示意图;
图7(b)为本申请实施例公开的控件显示方法中的又一种触控操作示意图;
图8为本申请实施例公开的控件显示方法中的又一种界面示意图;
图9为本申请实施例公开的一种控件显示方法的工作流程示意图;
图10为本申请实施例公开的控件显示方法中,一种确定第一APP的第一控件的工作流程示意图;
图11为本申请实施例公开的控件显示方法中,又一种确定第一APP的第一控件的工作流程示意图;
图12为本申请实施例公开的控件显示方法中,又一种确定第一APP的第一控件的工作流程示意图;
图13为本申请实施例公开的又一种控件显示方法的工作流程示意图;
图14为本申请实施例公开的一种电子设备的结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。
其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,在本申请实施例的描述中,“多个”是指两个或多于两个。
以下,术语“第一”、“第二”仅用于描述目的。在本申请实施例的描述中,除非另有说明,“多 个”的含义是两个或两个以上。
下面将结合附图对本实施例的实施方式进行详细描述。
本申请实施例所公开的控件显示方法可应用于多种电子设备。在一些实施例中,所述电子设备可以是手机、平板电脑、桌面型、膝上型、笔记本电脑、超级移动个人计算机(Ultra-mobile Personal Computer,UMPC)、手持计算机、上网本、个人数字助理(Personal Digital Assistant,PDA)、可穿戴电子设备和智能手表等可安装APP的设备,本申请对电子设备的具体形式不做特殊限制。在本实施例中,电子设备的结构可以如图2所示,其中,图2为应用本申请实施例提供的控件显示方法的电子设备的结构示意图。
如图2所示,电子设备可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
进一步的,当所述电子设备为手机时,所述电子设备还可以包括:天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及用户标识模块(subscriber identification module,SIM)卡接口195等。
可以理解的是,本实施例示意的结构并不构成对电子设备的具体限定。在另一些实施例中,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。处理器110中还可以设置存储器,用于存储指令和数据。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
充电管理模块140用于从充电器接收充电输入。电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。
移动通信模块150可以提供应用在电子设备上的包括2G/3G/4G/5G等无线通信的解决方案。无线通信模块160可以提供应用在电子设备上的包括无线局域网(wireless local area networks,WLAN)(例如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。在一些实施例中,电子设备的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备可以通过无线通信技术与网络以及其他设备通信。
电子设备通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器, 连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。电子设备的显示屏194上可以显示一系列图形用户界面(graphical user interface,GUI),这些GUI都是该电子设备的主屏幕。
电子设备可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备的各种功能应用以及数据处理。
电子设备可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备可以通过扬声器170A收听音乐,或收听免提通话。受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。耳机接口170D用于连接有线耳机。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。陀螺仪传感器180B可以用于确定电子设备的运动姿态。气压传感器180C用于测量气压。磁传感器180D包括霍尔传感器。电子设备可以利用磁传感器180D检测翻盖皮套的开合。加速度传感器180E可检测电子设备在各个方向上(一般为三轴)加速度的大小。距离传感器180F,用于测量距离。接近光传感器180G可以包括发光二极管(LED)和光检测器。环境光传感器180L用于感知环境光亮度。指纹传感器180H用于采集指纹。温度传感器180J用于检测温度。触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。骨传导传感器180M可以获取振动信号。按键190包括开机键,音量键等。按键190可以是机械按键,也可以是触摸式按键,或者为虚拟按键。马达191可以产生振动提示。指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。SIM卡接口195用于连接SIM卡。
另外,在上述部件之上,运行有操作系统。例如苹果公司所开发的iOS操作系统,谷歌公司所开发的安卓Android开源操作系统,微软公司所开发的Windows操作系统等。在该操作系统上可以安装运行应用程序。
为了明确电子设备在执行本申请公开的方案时,电子设备内的各软件架构所执行的功能操作,本申请实施例还公开了电子设备的软件结构。
电子设备的操作系统可以采用分层架构、事件驱动架构、微核架构、微服务架构或云架构等。本申请实施例以分层架构的安卓Android系统为例,示例性说明电子设备的软件结构。
其中,图3即为本申请实施例的一种电子设备的软件结构框图的示例图。
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层、应用程序框架层、系统库以及内核层。
应用程序层可以包括一系列应用程序包。如图3所示,应用程序层中可以包括相机、图库、日历、通话、地图、导航、WLAN、蓝牙、音乐、视频和短信息等应用程序的应用程序包。该应用程序可以包括在出厂时,电子设备内默认安装的APP的应用程序,还可以包括电子设备在使用过程中,由用户安装的应用程序。例如,用户在使用电子设备的过程中,在电子设备中安装了大众品评和微信等应用程序,则在应用程序层还包括大众品评和微信等应用程序的应用程序包。
进一步的,在本申请实施例中,应用程序层还包括:系统用户界面(即System UI)。其中,System UI用于管理用户界面,可提供状态栏信息(例如电池剩余电量、wifi信号3G/4G等显示标识)显示、通知面板显示、截图服务和壁纸服务等。在本申请中,System UI可根据电子设备当前打开的APP,在该APP的显示界面上显示该APP的控件。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。如图3所示,应用程序框架层可以包括窗口管理器、事件分发管理器和任务管理器。在本申请实施例中,应用程序框架层可以为应用程序层提供控件显示相关的API。
任务管理器用于确定电子设备中运行的各个程序和进程的相关信息。事件分发管理器将该事件发生至相应的模块,以便该模块进行后续处理。窗口管理器用于管理窗口程序。在本申请中,窗口管理器可确定电子设备被触控的区域。
进一步的,在应用程序框架层还包括:安装管理器。所述安装管理器又可称为安装包管理器(package manager service,PMS),PMS用于对APP的安卓应用程序包(android application package,APK)进行安装,并且在安装过程中,PMS对APK进行扫描。通过扫描所述APK,PMS能够获取该APP的相关信息并记录。
另外,System UI可通过与任务管理器进行交互,确定电子设备当前显示的APP。并且,System UI还可通过与安装管理器的交互,获取安装管理器所记录的当前显示的APP的相关信息,根据所述APP的相关信息确定所述APP的控件,并在APP的界面上显示该APP的控件。示例性的,所述System UI可在该APP的显示界面中显示一个悬浮窗口,通过该悬浮窗口显示所述APP的控件,并且,所述悬浮窗口中显示的控件为当前的显示界面中未包含的控件。
其中,通过扫描APP的APK,PMS能够获取所述APP的组件和组件的元数据即(metadata)。
APP包括多个组件,例如,Android系统的APP通常包括以下组件:活动(activity)组件、服务(service)组件、内容(content)组件、意图(intent)组件、广播接收器(broadcast receiver)组件和通知(notification)组件。并且,一个APP可包括一个或多个activity组件,一个activity组件通常展现为一个可视化的用户界面,示例性的,某一个activity组件可展现为一个菜单项列表,或者展现为一些图片等。另外,service组件可用于在电子设备的后台,执行电子设备的一些任务。元数据又称中继数据,为一种定义数据的数据,用于描述数据的属性,组件的元数据则用于描述组件的属性。
在本申请实施例中,PMS通过扫描所述APP的APK,能够扫描所述APP的相关信息,所述APP的相关信息通常包括所述APP的组件和组件的元数据等,具体的,所述APP的相关信息通常包括所述APP的activity组件和service组件,相应的,所述组件的元数据通常包括所述APP的activity组件的元 数据和service组件的元数据。
System UI通过与PMS的交互,可获取PMS扫描到的APP的相关信息。这种情况下,System UI可确定所述APP的相关信息中包括的元数据,根据组件针对所述元数据的描述,确定所述元数据对应的控件的名称。
另外,APP的控件可以为用于对所述APP的一个功能开启编辑或进行开关的功能按钮。例如,某一APP包括“个人信息”控件,该控件用于对用户的个人信息(例如头像和个人介绍等)开启编辑,则该控件为对APP的一个功能开启编辑的功能按钮;或者,某一APP包括“用户消息提醒”控件,该控件用于开启或关闭APP的用户消息提醒功能,则该控件为对APP的一个功能进行开关的功能按钮。
当所述控件为对APP的一个功能开启编辑的功能按钮时,System UI还可根据组件针对所述元数据的描述,确定所述元数据对应的控件的图标,并且可在第一悬浮窗口中显示所述控件的名称和图标,所述第一悬浮窗口设置在所述APP的界面的上层。例如,System UI可通过第一悬浮窗口显示“个人信息”控件的名称和图标。
当所述控件为对APP的一个功能进行开关的功能按钮时,System UI还可通过应用程序框架层内设置的API,与所述APP进行交互,获取该控件对应的功能的状态,该控件对应的功能的状态包括功能开启状态和功能关闭状态,并在所述第一悬浮窗口中显示“用户消息提醒”控件的名称,以及显示所述功能为开启状态或者所述功能为关闭状态。
另外,PMS扫描到的所述APP的相关信息还可以包括所述APP的系统权限。所述APP的系统权限指的是所述APP在运行过程中,需要电子设备的操作系统提供的权限。相应的,所述System UI可以确定所述系统权限对应的控件并显示。
示例性的,当某一APP的系统权限包括“控制近距离通信”时,所述System UI可以确定所述APP对应的控件包括近距离无线通讯(near field communication,NFC)相关的控件,然后,System UI根据组件中针对这一系统权限的描述,可确定该NFC相关的控件的名称和图标。
进一步的,在APK中还可包括其他信息,例如,还可以包括各个元数据的优先级,这种情况下,通过对APK的扫描,PMS获取到的所述APP的相关信息还可以包括各个的元数据的优先级。
在系统库中包括状态监测服务,该状态监测服务可根据内核层的传感器驱动上报的数据,进行状态检测。
内核层是硬件和软件之间的层。内核层中包括驱动,该驱动可包括传感器驱动。
需要说明的是,本申请实施例虽然以Android系统为例进行说明,但是其基本原理同样适用于基于iOS或Windows等操作系统的电子设备。
当电子设备的软件结构框图如图3所示时,如果电子设备的触控区域接收到触控操作,该触控区域对应的传感器(例如压力传感器或温度传感器等)输出该触控操作对应的数据。内核层的触控面板(touch panel,TP)驱动在接收到该数据之后,将该数据上报至系统库中的状态监测服务,所述状态监测服务根据接收到的数据确定触控区域中被触控的位置坐标,并将被触控的位置坐标上报至应用程序框架层的事件分发管理器,该事件分发管理器将被触控的位置坐标传输至窗口管理器。所述窗口管理器根据被触控的位置坐标,确定本次触控操作的类型(例如点触、侧滑或下拉等)以及被触控的具体位置。然后,所述窗口管理器再根据本次触控操作的类型和被触控的具体位置,执行相应的操作。
这种情况下,当需要在电子设备内安装某一APP时,用户可触控电子设备安装的应用市场APP,从应用市场所提供的多种APP中选择本次待安装的APP,电子设备下载该APP的安装包并安装。并且,在电子设备接收到针对应用市场APP的触控操作之后,事件处理器将本次应用市场APP被触控的事件 上报至窗口管理器,窗口管理器再向应用市场APP发出反馈,应用市场APP再调用PMS,以触发PMS安装所述本次待安装的APP。所述PMS在被触发之后,对该APP的APK进行扫描,获取并记录该APP的相关信息,以便System UI根据该相关信息确定所述APP的控件。
另外,APP在被安装之后,当需要该APP执行某一操作时,电子设备还会接收到针对该APP的相应操作。其中,当该操作为针对System UI所显示的某一控件的触控操作时,事件管理器将接收到针对该控件的触控操作这一事件上报至窗口管理器,窗口管理器触发System UI,该System UI根据触点坐标,确定被触控的位置,根据被触控的位置确定被触控的控件属于哪一个应用,再通知该应用,以使该应用响应该触控操作。
在本申请实施例中,还涉及“第一APP”与“第一APP的第一控件”的概念,以下分别对这两个概念进行介绍。
应用本申请实施例公开的控件显示方法的电子设备中安装有第一APP。通过本申请实施例公开的方案,所述电子设备能够在所述第一APP的显示界面的上层设置一个悬浮窗口,并通过所述悬浮窗口显示第一APP的控件,该悬浮窗口可称为第一悬浮窗口。其中,当所述第一APP的显示界面中显示有控件时,所述第一悬浮窗口中显示的控件与所述显示界面中显示的控件不同。在本申请实施例中,将在所述第一悬浮窗口中显示的第一APP的控件称为第一APP的第一控件,并将在所述显示界面中显示的第一APP的控件称为第二控件,第一控件与第二控件为第一APP的不同的控件。
在本申请实施例中,电子设备可安装并使用第一APP,其中,所述第一APP可以为电子设备在出厂时安装的APP,也可以为电子设备在应用过程中,由用户根据自身需求所安装的APP。所述第一APP支持两个以上控件,所述控件可以为用于对所述第一APP的一个功能进行开关或者开启编辑的功能按钮。并且,第一APP的控件由第一APP的应用开发者定义。
当电子设备接收到针对第一APP的某一个控件的选择操作时,所述第一APP会实现相应的功能。其中,当某一个控件为用于对所述第一APP的一个功能开启编辑的功能按钮,并接收到针对该控件的选择操作时,所述第一APP会进入对该控件对应的功能开启编辑的界面,以便用户根据自身需求完成编辑。并且,当在所述第一悬浮窗口和所述第一APP的显示界面中显示该控件时,通常会显示该控件的名称和图标。示例性的,当第一APP中包括“个人信息”控件,并且“个人信息”控件为用于对用户的个人信息进行编辑的控件时,参见图4(a)所示的示意图,当显示这一控件时,通常显示“个人信息”这一控件的名称和图标。
当某一个控件为用于对所述第一APP的一个功能进行开关的功能按钮,并接收到针对该控件的选择操作时,所述第一APP开启或者关闭该控件对应的功能。并且,当在所述第一悬浮窗口和所述第一APP的显示界面中显示该控件时,通常会显示该控件的名称,并显示所述功能为开启状态或者所述功能为关闭状态。示例性的,当第一APP中包括“用户消息提醒”控件,并且“用户消息提醒”控件为用于开启或者关闭用户消息提醒功能时,参见图4(b)所示的示意图,当显示这一控件时,通常显示“用户消息提醒”这一控件的名称,并显示所述功能为开启状态或者所述功能为关闭状态,在图4(b)中,“用户消息提醒”控件的状态为功能关闭状态,表示第一APP关闭了用户消息提醒功能。
在其中一个示例中,第一APP为大众点评APP,该APP提供多个控件界面,不同控件界面可提供该第一APP的不同的控件,该第一APP的各个控件界面所对应的控件可如图5(a)所示。
其中,图5(a)表示在大众点评APP的初始界面中,显示有“我的”控件。所述初始界面指的是电子设备在打开APP,但并未针对该APP进行操作时所显示的界面。在接收到针对“我的”控件的选择操作之后,大众点评APP跳转显示另一界面,该界面中包括“设置”控件与“收藏”控件。在接收 到针对“设置”控件的选择操作之后,大众点评APP再次跳转显示另一界面,该界面中显示有“个人信息”控件和“消息与推送通知”控件。在接收到针对“个人信息”控件的选择操作之后,大众点评APP再次跳转至另一界面,该界面中显示有与个人信息相关的各个控件,例如“头像”、“个人信息”和“收货地址”等控件。
另外,当界面中显示有“个人信息”控件和“消息与推送通知”控件时,如果接收到针对“消息与推送通知”这一控件的选择操作,大众点评APP再次跳转至另一个界面,该界面中显示有与消息与推送通知相关的各个控件,例如“活动推送”、“用户消息提醒”和“附近推荐”等控件。
当显示的大众点评APP的界面包括“设置”控件与“收藏”控件时,如果接收到针对“收藏”这一控件的选择操作,大众点评APP跳转后显示的界面中通常包括与收藏相关的各个控件,例如“商户”、“点评”和“团购”等控件。
上述各个控件用于对大众点评APP的功能进行操控。其中,“头像”控件用于调整大众点评APP中显示的用户头像;“个人信息”控件用于确定用户的个人信息;“收货地址”控件用于确定用户的收货地址;“活动推送”控件用于指示是否接收活动推送信息;“用户消息提醒”控件用于指示是否接收用户消息;“附近推荐”这控件用于指示是否接收对附近商户的推荐;“商户”控件用于显示该APP收藏的商户信息;“点评”控件用于显示该APP收藏的点评信息;“团购”控件用于显示该APP收藏的团购信息。
参见图5(a),在这一示例中,上述的各个控件,例如“我的”控件、“设置”控件、“收藏”控件、“个人信息”控件、“消息与推送通知”控件、“头像”控件、“个人信息”控件、“收货地址”控件、活动推送”控件、“用户消息提醒”控件、“附近推荐”控件、“商户”控件、“点评”控件和“团购”控件为大众点评APP的控件。
在另外一个示例中,第一APP为微信APP,该APP提供多个控件界面,不同控件界面可提供该第一APP的不同的控件,该第一APP的各个控件界面所对应的控件可如图5(b)所示。
其中,图5(b)表示在微信APP的初始界面中,显示有“我”这一控件。在接收到针对“我”控件的选择操作之后,微信APP跳转显示另一界面,该界面中包括“设置”控件与“收藏”控件。在接收到针对“设置”控件的选择操作之后,微信APP再次跳转显示另一界面,该界面中显示有“账号与安全”控件、“新消息提醒”控件和“勿扰”控件。在接收到针对“账号与安全”控件的选择操作之后,微信APP再次跳转至另一界面,该界面中显示有与账号与安全相关的各个控件,例如“声音锁”、“微信密码”和“应急联系人”等控件。
另外,当界面中显示有“账号与安全”控件、“新消息提醒”控件和“勿扰”控件时,如果接收到针对“新消息提醒”这一控件的选择操作,微信APP再次跳转至另一界面,该界面中显示有与新消息提醒相关的各个控件,例如“接收新消息通知”、“接收语音和视频通话邀请”和“通知显示消息详情”等控件。
当界面中显示有“账号与安全”控件、“新消息提醒”控件和“勿扰”控件时,如果接收到针对“勿扰”这一控件的选择操作,微信APP再次跳转至另一界面,该界面中显示有“勿扰模式”控件。
当显示的微信APP的界面中包括“设置”控件与“收藏”控件时,如果接收到针对“收藏”这一控件的选择操作,微信APP跳转后显示的界面中通常包括与收藏相关的各个控件,例如“链接”、“文件”和“音乐”等控件。
上述各个控件用于对微信APP的功能进行操控。其中,“声音锁”控件用于设置微信APP的声音锁;“微信密码”控件用于调整微信的密码;“应急联系人”控件用于确定应急联系人的联系方式;“接 收新消息通知”控件用于指示是否接收新消息;“接收语音和视频通话邀请”控件用于指示微信APP是否接收语音和视频通话邀请;“通知显示消息详情”控件用于指示在接收到新消息时,是否提示该新消息的发信人和内容摘要;“勿扰模式”控件用于指示是否进入勿扰模式,当微信APP进入勿扰模式,且不在前台运行时,微信APP在接收到新信息后不会响铃和振动,避免对用户的打扰;“链接”控件用于显示微信APP收藏的链接;“文件”控件用于显示微信APP收藏的文件;“音乐”控件用于显示微信APP收藏的音乐。
参见图5(b),在这一示例中,上述的各个控件,例如“我”控件、“设置”控件、“收藏”控件、“账号与安全”控件、“新消息提醒”控件、“勿扰”控件、“声音锁”控件、“微信密码”控件、“应急联系人”控件、“接收新消息通知”控件、“接收语音和视频通话邀请”控件、“通知显示消息详情”控件、“勿扰模式”控件、“链接”控件、“文件”控件和“音乐”控件为微信APP的控件。
当然,所述第一APP还可以为其他APP,相应的,所述第一APP的控件还可其他的控件,本申请实施例对此不做限定。
进一步的,在本申请实施例公开的方案中,当电子设备通过位于第一显示界面上的第一悬浮窗口显示所述第一控件时,还可以同时显示第一APP对应的第三控件,并且,所述第三控件通常也通过设置在显示界面上的悬浮窗口显示,用于显示第三控件的悬浮窗口可称为第二悬浮窗口。以下对第三控件进行介绍。
所述第三控件为对电子设备的操作系统进行操控的功能按钮,显示第三控件的第二悬浮窗口可以由第一APP之外的操作系统提供。所述电子设备的操作系统往往支持多项功能,用于控制所述电子设备的操作系统所支持的功能的控件,为所述第三控件。
例如,所述电子设备可支持连接无线局域网(wireless local area networks,WLAN),电子设备需要配置WLAN控件,通过WLAN控件控制所述电子设备是否连接无线网络;所述电子设备可支持定位功能,相应的,电子设备需要配置定位控件,如GPS控件,通过定位控件控制所述电子设备是否开启GPS功能以实现定位;另外,所述电子设备还可支持蓝牙功能,电子设备还可配置蓝牙控件,通过蓝牙控件控制所述电子设备是否开启蓝牙功能;当所述电子设备支持近场通信(near field communication,NFC)功能时,所述电子设备还可配置NFC控件,通过NFC控件控制所述电子设备是否开启近场通信功能。这种情况下,WLAN控件、GPS控件、蓝牙控件和NFC控件均可称为第三控件。
当然,所述第三控件还可以包括其他的控件,例如亮度调节控件、飞行模式控件、护眼模式控件或屏幕自动旋转是否锁定的控件等,本申请实施例对此不作限定。
在本申请实施例中,所述第三控件通常位于设置在第一APP的显示界面上的第二悬浮窗口中。显示所述第一控件的第一悬浮窗口与显示所述第三控件的第二悬浮窗口可以为不同的悬浮窗口,或者,也可以为同一悬浮窗口。
为了明确本申请公开的方案,以下以具体的应用场景为例,对本申请所公开的方案进行介绍说明。
在场景一中,在电子设备打开第一APP后,无需用户的另外的操作,所述电子设备自动在所述第一APP的第一显示界面的上层设置第一悬浮窗口,并通过所述第一悬浮窗口显示所述第一APP的第一控件。所述第一APP的第一显示参数包括以下至少一种:所述第一APP的控件对应的元数据的显示权限、所述第一APP的控件的使用频次、所述第一APP的类型与所述第一控件的映射关系以及所述第一显示界面的界面标识。各第一显示参数的具体含义以及分别根据各第一显示参数确定所述第一控件的方式,在后文进行说明。
其中,所述第一APP的第一显示界面中显示的控件可称为第二控件,所述第一控件与所述第二控件为不同的控件。也就是说,通过所述第一悬浮窗口,显示所述第一APP的第一显示界面中未包括的控件。所述第一APP的第一显示界面,指的是所述第一APP在当前打开并显示的显示界面。
电子设备安装所述第一APP之后,在电子设备的桌面上,通常会显示所述第一APP的图标和名称,以供用户选择。当用户需要应用所述第一APP时,可点击桌面上显示的所述第一APP的图标。
电子设备在接收到针对所述第一APP的图标的点击之后,启动所述第一APP并显示所述第一APP的第一显示界面,该第一显示界面可包括一些可操作的控件(即第二控件)。并且,在所述第一APP的显示界面的上层,电子设备自动显示第一悬浮窗口,该第一悬浮窗口中显示所述第一APP的第一控件,第一控件不同于第一显示界面上已显示的控件。
由于在这一场景中,在第一显示界面的上层显示第一悬浮窗口,所述第一悬浮窗口中包括第一显示界面中未显示的第一控件,当用户查看所述第一显示界面时,可以同时查看到第一悬浮窗口中显示的第一控件和第一显示界面显示的第二控件。
另外,所述第一控件为用于对所述第一APP的功能开启编辑的功能按钮,在所述第一APP的第一显示界面上的第一悬浮窗口中显示所述第一控件,包括在所述第一悬浮窗口中显示所述第一控件的名称和图标;或者,所述第一控件为用于对所述第一APP的功能进行开关的功能按钮,在所述第一APP的第一显示界面上的第一悬浮窗口中显示所述第一控件,包括:在所述第一悬浮窗口中显示所述第一控件的名称和状态,并显示所述功能为开启状态或者所述功能为关闭状态。
当所述第一悬浮窗口中包括用户当前需要的某一控件时,用户可直接对所述第一悬浮窗口中的这一控件进行操作,例如打开所述第一控件或关闭所述第一控件。电子设备在接收到针对所述第一悬浮窗口中的某一第一控件的操作之后,执行该操作所对应的功能。
在现有技术中,用户往往需要对第一APP中的控件进行多次点击之后,才能使电子设备显示用户所需的第一控件。
而在本申请公开的场景一中,在电子设备打开第一APP之后,所述电子设备自动在第一APP的第一显示界面的上层显示第一悬浮窗口,通过第一悬浮窗口显示第一控件,所述第一控件与所述第一显示界面中显示的第二控件不同。与现有技术相比,本申请的方案通过第一悬浮窗口为用户提供更多可选择的控件,能够减少用户在需要某一控件时,对第一APP的控件进行的操作,即简化显示APP的控件时所需的用户操作。
例如,当所述第一悬浮窗口中显示的第一控件包括用户当前需要的控件时,用户可直接对所述第一控件进行操作,从而不需要通过多次点击控件才能获取到所需的控件。
进一步的,在本申请实施例公开的方案中,电子设备根据第一APP的第一显示参数确定在所述第一悬浮窗口中显示的第一控件。因此,即使针对同一个第一APP,当所述第一APP的第一显示参数不同时,所述第一悬浮窗口中显示的第一控件也可能不同,从而能够满足用户的多样化需求。
例如,当根据用户需求,确定用户希望在第一悬浮窗口中显示某几个控件时,可调整这几个控件对应的元数据的显示权限,以使这几个控件能够在所述第一悬浮窗口中显示。
在一些可行的实施例中,在该场景中,当所述第一悬浮窗口可显示的第一控件的数量较多时,可将所述第一悬浮窗口可显示的第一控件划分为至少两组,在所述第一悬浮窗口中可以显示其中一组第一控件,并且显示第一折叠图标。当接收到针对第一折叠图标的触控操作时,选择剩余的一组第一控件并在所述第一悬浮窗口中显示。
所述剩余的一组第一控件可替换之前显示的第一控件,即在第一悬浮窗口中每次只显示一组第一控 件,当所述第一悬浮窗口显示的是最后一组第一控件时,所述电子设备将所述第一折叠图标调整为第一返回图标,在接收到针对所述第一返回图标的触控之后,所述第一悬浮窗口显示上一组第一控件;或者,当接收到针对第一折叠图标的触控操作时,还可同时显示当前显示的第一控件以及剩余的一组第一控件。
通过这种方式,能够使第一控件在第一悬浮窗口中以分组的方式显示。所述第一悬浮窗口显示的第一控件的数量越多,所述第一悬浮窗口的面积往往越大,而第一悬浮窗口的面积较大时,有可能对第一APP的显示界面中的内容造成遮挡。通过上述方式,能够避免所述第一悬浮窗口中每次显示较多第一控件,从而减少所述第一悬浮窗口对所述显示界面的遮挡。
这种情况下,当第一悬浮窗口中不包含用户所需的第一控件时,电子设备可通过接收到的针对第一折叠图标的触控操作,调整所述第一悬浮窗口中显示的第一控件,从而使第一悬浮窗口中显示的第一控件符合用户需求。
进一步的,这种情况下,如果当前的第一悬浮窗口中未显示用户所需的第一控件,需要用户对第一折叠图标进行触控操作,但有些情况下,与现有技术相比,本申请的方案需要用户执行的触控操作的次数较少,仍能起到简化用户操作的作用。
例如,当所述第一APP为微信APP,所述第一APP的控件与各个控件界面之间的关系如图5(a)所示,并且用户需要对“通知显示消息详情”控件进行操作时,需要依次点击“我”—“设置”—“新消息提醒”这三个控件,然后微信APP的界面中才显示“通知显示消息详情”控件,以便用户对其进行操作。也就是说,在现有技术中,需要用户连续点击三次控件,才能使电子设备显示“通知显示消息详情”控件。
而在本申请实施例公开的方案中,当“通知显示消息详情”控件属于第一悬浮窗口中显示的第一组第一控件时,无需用户触控所述第一折叠图标,就可使所述第一悬浮窗口中显示用户所需的第一控件;当“通知显示消息详情”控件属于第一悬浮窗口中显示的第二组第一控件,并且第一悬浮窗口显示第一组第一控件时,只需用户触控一次第一折叠图标,第一悬浮窗口就会显示所述“通知显示消息详情”控件;当“通知显示消息详情”控件属于第一悬浮窗口中显示的第三组第一控件,并且第一悬浮窗口显示第一组第一控件时,只需用户触控两次第一折叠图标,第一悬浮窗口就会显示所述“通知显示消息详情”控件。因此,与现有技术相比,简化了用户所需执行的操作。
进一步的,在该场景中,电子设备在通过第一悬浮窗口显示所述第一APP的第一控件时,还可以在所述第一APP的第一显示界面上的第二悬浮窗口中同时显示第一APP对应的第三控件,所述第三控件为对安装所述第一APP的电子设备的操作系统进行操控的功能按钮,并且,所述第一悬浮窗口和第二悬浮窗口可以为不同的悬浮窗口,也可为同一悬浮窗口,本申请实施例对此不做限定。
其中,电子设备通常根据所述第一APP的第二显示参数,确定所述第一APP对应的第三控件。所述第二显示参数包括以下至少一种:第一APP的系统权限、所述第一APP的组件指示的系统功能以及第一APP的类型与所述第三控件之间的映射关系。
当所述第一悬浮窗口与所述第二悬浮窗口为不同的悬浮窗口时,电子设备可在显示所述第一悬浮窗口的同时,显示所述第二悬浮窗口。或者,在接收到用于显示所述第二悬浮窗口的触发操作时,所述电子设备再显示所述第二悬浮窗口。所述用于显示所述第二悬浮窗口的触发操作可为针对电子设备的触控操作、语音输入操作或隔空手势操作等,所述触控操作可为针对触控区域的滑动操作(例如下拉滑动操作或左右滑动操作等),还可以为针对某一设定图标的点击操作等,本申请实施例对比不做限定。
在现有技术中,电子设备的桌面提供有第三控件对应的设置图标,当接收到针对设置图标的点击之后,电子设备跳转至设置页面,该设置页面提供多种类型的第三控件,以供用户选择当前所需的第三控 件并对选择的第三控件进行操作。
但是,在应用该种方式对第三控件进行操作时,首先需要用户将第一APP转为后台运行,以使电子设备显示桌面,再由用户点击桌面中的设置控件,以使电子设备显示包括第三控件的设置页面,然后,用户才可对设置页面中包括的第三控件进行操作,因此,操作较为繁琐。
而在本申请公开的场景一中,在通过位于第一显示界面上的第一悬浮窗口显示第一控件的同时,还可以通过位于第一显示界面上的第二悬浮窗口显示第三控件,用户可直接对所述第二悬浮窗口中显示的第三控件进行操作。
因此,在用户通过本申请实施例公开的方案对第三控件进行操作时,无需将第一APP转为后台操作,相对于现有技术中显示第三控件的方法来说,能够简化用户操作。
示例性的,在本场景中,电子设备在打开第一APP,即启动第一APP之后,自动在所述第一APP的第一显示界面的上层设置第二悬浮窗口,当第一控件和第三控件在同一个悬浮窗口中显示时,所述电子设备显示的界面示意图可如图6(a)所示。在图6(a)中,不仅包括所述第一APP的第一显示界面601,并且,在第一显示界面的上层还包括一个第一悬浮窗口600,所述第一悬浮窗口600与第二悬浮窗口为同一个悬浮窗口,该第一悬浮窗口600中显示有第一APP的第一控件610和第一折叠图标620,并且,还显示有第三控件630。
其中,在图6(a)中,所述第一控件610包括:用户消息提醒控件和个人信息控件,所述第三控件630包括:WLAN控件和位置控件。当然,在实际应用过程中,第一悬浮窗口还可以显示其他的第一控件和第三控件,本申请实施例对此不做限定。
当所述第一悬浮窗口中显示的第一控件包括用户当前所需的第一控件时,用户会点击该第一控件。电子设备在接收到针对所述第一控件的点击操作之后,执行所述第一控件所对应的功能。例如,当被点击的第一控件为活动推送控件,本次点击为开启所述活动推送控件时,第一APP后续会向用户显示活动推送消息。
进一步的,当所述第一悬浮窗口中显示的第一控件不包括用户当前所需的第一控件时,用户会点击第一折叠图标620。在接收到针对所述第一折叠图标620的点击操作后,电子设备在第一悬浮窗口中显示其他第一控件,以供用户选择。
另外,当所述第一悬浮窗口中显示的第三控件包括用户当前所需的第三控件时,用户可点击该第三控件。相应的,电子设备在接收到针对所述第三控件的点击操作之后,也会执行所述第三控件所对应的功能。
在另一示例中,第一控件和第三控件可位于不同的悬浮窗口,这种情况下,所述电子设备显示的界面示意图可如图6(b)所示。在图6(b)中,不仅包括所述第一APP的第一显示界面601,并且,在第一显示界面的上层还包括第一悬浮窗口640和第二悬浮窗口650,第一悬浮窗口640中显示有第一控件610和第一折叠图标620,第二悬浮窗口650显示有第三控件630。
另外,在图6(a)和图6(b)中,电子设备的显示屏中显示一个APP的界面,即第一APP的界面以全屏形式在电子设备中显示。在实际应用过程中,电子设备的显示屏还可同时显示两个以上不同的APP的界面,这种情况下,不同APP的显示界面的上层可分别设置有该APP对应的第一悬浮窗口和第二悬浮窗口,并通过该APP对应的第一悬浮窗口,显示该APP的第一控件,以及通过该APP对应的第一悬浮窗口,显示该APP的第三控件。并且,不同APP分别对应的第一悬浮窗口和第二悬浮窗口可为同一个悬浮窗口,也可为不同的悬浮窗口。
示例性的,当所述电子设备同时显示两个APP的显示界面,这两个APP分别为第一APP和第二 APP,并且两个APP对应的第一悬浮窗口和第二悬浮窗口均为同一个悬浮窗口时,所述电子设备显示的界面示意图可如图6(c)所示。在图6(c)中,包括第一APP的第一显示界面660,该示例中的第一显示界面660中显示动画视频,另外,在第一显示界面660的上层还包括第一APP对应的第一悬浮窗口670,在所述第一悬浮窗口670中显示第一APP的第一控件和第一折叠图标,所述第一控件包括活动推送控件。另外,在该示例中,第一APP的第一悬浮窗口670与第二悬浮窗口相同,在所述第一悬浮窗口670中还可以显示所述第一APP对应的第三控件,所述第三控件包括勿扰模式控件。另外,在图6(c)中还包括第二APP的第二显示界面680,所述第二显示界面中显示向用户推荐的商户和美食、娱乐等选项,并且,在第二显示界面680的上层还包括第二APP对应的第一悬浮窗口690,在所述第一悬浮窗口390中显示第二APP的第一控件和第一折叠图标,所述第二APP的第一控件包括用户消息提醒控件和个人资料控件,另外,在所述第二界面680的上层还可以通过第二悬浮窗口显示所述第二APP的第三控件(所述第二悬浮窗口在图6(c)中未示出)。
在场景二中,当电子设备打开第一APP,并且接收到用于显示第一悬浮窗口的触发操作时,所述电子设备通过第一悬浮窗口显示所述第一APP的第一控件,所述第一悬浮窗口位于所述第一APP的第一显示界面的上层。与场景一相同,所述第一控件由所述第一APP的第一显示参数确定。
其中,所述第一APP的第一显示界面中显示的控件可称为第二控件,所述第一悬浮窗口中显示的第一控件与所述第二控件不同。
在这一场景中,当用户需要对某一控件进行操作,并且所述第一APP的第一显示界面中未显示用户所需的控件时,用户可对电子设备执行触发操作。电子设备在接收到所述触发操作之后,所述第一悬浮窗口显示所述第一APP的第一控件。
其中,用于显示第一悬浮窗口的触发操作可为多种形式的操作。示例性的,所述用于显示所述第一悬浮窗口的触发操作包括以下至少一种:针对触控区域的滑动操作、隔空手势操作、语音输入操作和针对所述第一显示界面上的第一提示图标的点击操作。
示例性的,所述用于显示第一悬浮窗口的操作可为针对电子设备的触控区域的滑动操作,该触控操作可为在所述触控区域的下拉滑动操作或左右滑动操作。或者,为了减少误触发的可能性,所述触控操作还可以为较为少见的滑动操作,例如参见图7(a)所示的示意图,所述触控操作为在所述触控区域的右下角划至左上角的触控操作。
在电子设备的触控区域中,通常内置有传感器,例如温度传感器、压力传感器和/或电容传感器等。当用户接触所述电子设备的触控区域时,可能产生不同的振动和/或声学等效果,产生的效果会使电子设备内置的传感器生成对应的信号,例如温度传感器产生的温度信号,压力传感器产生的压力信号,电容传感器产生的电容信号等。电子设备根据所述传感器生成的信号,确定所述触控操作在触控区域中的触点坐标,并根据该触点坐标确定接收到的触控操作是否为下拉操作或侧滑操作。这种情况下,当确定用户对触控区域的滑动操作为下拉滑动操作或左右滑动时,电子设备再显示第一悬浮窗口,并通过所述第一悬浮窗口显示第一APP的第一控件。
在另一示例中,所述用于显示第一悬浮窗口的触发操作还可为相应的语音输入操作。这种情况下,电子设备的语音采集装置(例如麦克风)采集用户发出的语音,并对该语音进行识别处理,根据识别处理的结果确定是否需要显示所述第一悬浮窗口。例如,当用户发出“显示第一悬浮窗口”的语音之后,电子设备可显示所述第一悬浮窗口,并通过所述第一悬浮窗口显示所述第一控件。
或者,在另一示例中,所述用于显示第一悬浮窗口的触发操作可以为特定的手势操作。该手势操作可为隔空手势操作,这种情况下,电子设备可通过图像采集装置(例如摄像头)采集包括所述隔空手势 操作的手势图像,当通过对手势图像的分析处理,确定用户作出的隔空手势操作为特定的手势操作时,电子设备再显示所述包括第一控件的第一悬浮窗口。
示例性的,所述用于显示第一悬浮窗口的触发操作可以为如图7(b)所示的隔空手势操作,该隔空手势操作为将五指并拢的手掌放置在电子设备的显示屏幕的正上方。这种情况下,当电子设备确定用户作出图7(b)所示的隔空手势操作时,显示所述第一悬浮窗口。
另外,在另一示例中,在第一APP的第一显示界面的上层,还可以设置第一提示图标。这种情况下,所述用于显示第一悬浮窗口的触发操作包括针对所述第一提示图标的点击操作。所述电子设备在接收到针对所述第一提示图标的点击操作之后,在所述第一APP的第一显示界面的上层显示第一悬浮窗口,通过所述第一悬浮窗口显示所述第一APP的第一控件。
示例性的,当所述第一显示界面的上层设置有第一提示图标时,所述第一APP的第一显示界面可如图8所示。在图8中,包括显示在所述第一APP的第一显示界面中的第一提示图标810。
相对于第一悬浮窗口来说,所述第一提示图标占据的位置较小,从而能够减少对第一显示界面中的内容造成的遮挡,并且,所述第一提示图标能够起到提示用户的作用,以便用户需要第一悬浮窗口显示第一控件时,对所述第一提示图标进行点击。
当然,所述用于显示第一悬浮窗口的触发操作还可以为其他形式的操作,本申请实施例对此不做限定。
在这一场景中,电子设备在接收到触发操作之后,才在第一APP的第一显示界面的上层显示第一悬浮窗口,通过第一悬浮窗口显示所述第一APP的显示界面中未包含的第一控件,从而通过第一APP的显示界面为用户提供较多数量的第一控件,能够减少用户在需要第一控件时,对第一APP进行的触控操作,即简化显示APP的第一控件时所需的用户操作。
进一步的,在这一场景中,电子设备在接收到触发操作之后,才显示所述第一悬浮窗口。相应的,当用户不需要所述第一悬浮窗口中显示的第一控件时,不会对电子设备进行触发操作,第一显示界面的上层也不会显示所述第一悬浮窗口。因此,在这一场景中,当用户不需要第一控件时,第一显示界面中不显示所述第一悬浮窗口,从而能够避免所述第一悬浮窗口对所述显示界面造成遮挡。
另外,与场景一相同,在场景二中,当所述第一悬浮窗口可显示的第一控件的数量较多时,第一控件在第一悬浮窗口中也可以通过分组的方式显示,即在第一悬浮窗口中显示一组第一控件和第一折叠图标,当接收到针对所述第一折叠图标的触控操作时,再显示另一组第一控件。
进一步的,在该场景中,电子设备在通过第一悬浮窗口显示所述第一APP的第一控件时,也可同时显示第三控件。该第三控件通常通过第二悬浮窗口显示,并且,所述第一悬浮窗口和第二悬浮窗口可为同一悬浮窗口,也可为不同的悬浮窗口。因此,在用户通过本申请实施例公开的方案需要对第三控件进行操作时,无需将第一APP转为后台操作,相对于现有技术中显示第三控件的方法来说,能够简化用户操作。
当所述第一悬浮窗口与所述第二悬浮窗口为不同的悬浮窗口时,电子设备可在显示所述第一悬浮窗口的同时,显示所述第二悬浮窗口。或者,在接收到用于显示所述第二悬浮窗口的触发操作时,所述电子设备再显示所述第二悬浮窗口。所述用于显示所述第二悬浮窗口的触发操作可为针对电子设备的触控区域的滑动操作、语音输入操作、隔空手势操作或针对电子设备中某一设定的图标的点击操作等,本申请实施例对比不做限定。
示例性的,在本场景中,电子设备在接收到触发操作之后,显示的界面示意图也可如图6(a)至6(c)中的任意一个示意图所示。
在上述描述中,公开了应用本申请实施例的控件显示方法的不同场景,当然,本申请实施例公开的控件显示方法还可以应用于其他场景中,本申请实施例对此不作限定。
在上述各个场景中,电子设备需要通过第一悬浮窗口显示第一APP的第一控件。参见图9所示的工作流程示意图,在本申请实施例公开的控件显示方法中,包括以下步骤:
步骤S11、启动第一应用程序APP,根据第一APP的第一显示参数,确定所述第一APP的第一控件。
其中,所述第一APP的第一显示参数包括以下至少一种:所述第一APP的控件对应的元数据的显示权限、所述第一APP的控件的使用频次、所述第一APP的类型与所述第一控件的映射关系以及所述第一显示界面的界面标识。
显示界面的界面标识为用于区分不同显示界面的标识,不同的显示界面的标识不同。示例性的,所述显示界面的标识可以包括该显示界面显示的界面元素和/或该显示界面的源代码包含的内容,所述界面元素可以为图标、菜单和/或文本内容等。
当然,所述显示界面的界面标识还可以为其他可区分不同显示界面的标识,本申请实施例对此不做限定。
另外,在步骤S11中,公开了启动第一APP的操作,以及公开了根据第一APP的第一显示参数,确定所述第一APP的第一控件的操作。在本申请实施例公开的控件显示方法中,这两个操作的执行过程并未有严格的时间先后顺序。
示例性的,在本申请实施例中,可在启动第一APP之后,再根据所述第一APP的第一显示参数,确定所述第一APP第一控件。这种情况下,电子设备内的其他APP未启动时,电子设备无需确定所述其他APP的第一控件,从而能够减少电子设备的工作量。
在另一示例中,还可在启动第一APP之前,就根据所述第一APP的第一显示参数,确定所述第一APP的第一控件。例如,在安装第一APP之后,电子设备就确定所述第一APP的第一控件。这种情况下,在启动第一APP之前,即可确定所述第一APP的第一控件,因此,与在启动第一APP之后,再去确定所述第一控件的操作相比,简化了第一APP启动之后的操作,提高了在第一悬浮窗口中显示第一控件的速度。
步骤S12、显示所述第一APP的第一显示界面,并在所述第一显示界面上的第一悬浮窗口中显示所述第一控件。
其中,所述第一控件与第二控件不同,所述第二控件为所述第一显示界面中显示的控件。
电子设备可通过第一APP的安装包中包含的组件的元数据,以及该组件中的元数据,确定第一APP的各个控件,具体的,可以确定所述第一APP的各个控件的名称和图标。并且,当第一APP的某一个控件为用于对所述第一APP的功能进行开关的功能按钮时,电子设备还可通过与第一APP的交互,确定该控件的状态,所述状态包括:功能开启状态和功能关闭状态。
所述第一APP的开发者或提供者等会在所述第一APP的安装包中,为可在第一悬浮窗口中显示的各个控件对应的元数据设置相应的显示权限,或者所述第一APP的开发者或提供者创建相关文件,在所述相关文件中指示可在第一悬浮窗口中显示的各个控件对应的元数据具备显示权限,所述电子设备可通过所述相关文件确定组件的元数据的显示权限。通过所述组件的元数据的显示权限,电子设备可确定对应的控件是否具备显示权限。
相应的,所述第一显示参数可包括所述第一APP控件对应的元数据的显示权限,这种情况下,电子设备在根据所述第一APP的控件对应的元数据的显示权限确定所述第一APP的第一控件。
示例性的,所述第一APP的第一显示参数包括所述第一APP的控件对应的元数据的显示权限,所述根据第一APP的第一显示参数,确定所述第一APP的第一控件,包括以下步骤:
首先,确定所述第一APP的控件中,具备显示权限的元数据对应的至少一个控件为第一目标控件,即所述第一目标控件为具备显示权限的元数据对应的控件。然后,确定至少一个所述第一目标控件中与所述第二控件不同的控件为所述第一APP的第一控件。
通过这一方式,电子设备确定具备显示权限的元数据对应的控件为第一APP的第一控件,而所述元数据是否具备显示权限可由第一APP的开发者或提供者设置。因此,可根据第一APP的开发者或提供者的设置,确定所述第一APP的第一控件。
另外,所述第一APP的第一显示参数还可以包括所述第一APP的控件的使用频次。这种情况下,在本申请实施例中,所述根据第一APP的第一显示参数,确定所述第一APP的第一控件,包括以下步骤:
首先,确定所述第一APP的控件中使用频次大于第一阈值的至少一个控件为第二目标控件,或者,确定所述第一APP的控件中使用频次最高的前n个控件为第二目标控件,n为设定的正整数。具体实现过程中,可按照使用频次从大到小的顺序对所述第一APP的各个控件进行排序,将排序中的前n个控件作为第二目标控件
然后,确定至少一个所述第二目标控件中与所述第二控件不同的控件为所述第一APP的第一控件。
另外,这一实现方式中,所述第一APP的控件的使用频次包括不同电子设备的用户对所述第一APP的控件的使用频次,和/或所述电子设备当前的用户对所述第一APP的控件的使用频次。
如果所述第一APP的控件的使用频次包括不同用户对所述第一APP的控件的使用频次,在第一APP的使用过程中,不同的电子设备会统计各个用户使用第一APP的不同控件的使用频次,并将该使用频次上传至服务器。服务器统计各个用户针对不同控件的使用频次,并将该使用频次反馈至电子设备。
示例性的,通过服务器的反馈,电子设备确定的第一APP的各个控件的使用频次如表1所示:
表1
第一APP的控件 使用频次
接收新消息通知 23
接收语音和视频通话邀请 50
通知显示消息详情 15
勿扰模式 100
收藏文件 65
并且,在该示例中,电子设备确定第一APP的各个控件中,使用频次超过第一阈值的控件为所述第二目标控件,所述第一阈值为20,则第二目标控件包括:勿扰模式控件、收藏文件控件、接收语音和视频通话邀请控件和接收新消息通知控件。当这四个第二目标控件均未在第一显示界面上显示时,可确定这四个第二目标控件为第一控件。
这一方式由于能够根据不同电子设备的用户对所述第一APP的控件的使用频次确定第一控件,因此,能够使第一控件符合大部分用户的使用习惯。
另外,在电子设备应用第一APP一段时间之后,还可将所述电子设备当前的用户对所述第一APP的控件的使用频次作为所述第一APP的控件的使用频次。这种情况下,电子设备可每隔一个使用周期,统计该用户对所述第一APP的各个控件在该使用周期内的使用频次,并根据第一APP的各个控件在该 使用周期内的使用频次确定所述第一APP的第一控件。
这一方式由于能够根据该电子设备的用户对所述第一APP的控件的使用频次确定第一控件,因此,所确定的第一控件较为符合该电子设备的用户的使用习惯,从而提高用户体验。
进一步的,所述第一APP的控件的使用频次还可以同时包括不同电子设备的用户对所述第一APP的控件的使用频次和所述电子设备当前的用户对所述第一APP的控件的使用频次。这种情况下,电子设备可首先根据不同电子设备的用户对所述第一APP的控件的使用频次确定第一控件,并通过设置在第一显示界面上的第一悬浮窗口显示所述第一控件,然后,在电子设备应用第一APP一段时间之后,可每隔一个使用周期之后,再根据所述电子设备当前的用户对所述第一APP的控件的使用频次重新确定第一控件,并通过所述第一悬浮窗口显示重新确定的第一控件。
其中,所述使用周期可由电子设备在出厂时设定,并且,还可以根据接收到的用户的操作进行调整。示例性的,所述使用周期可以为一周,当然,所述使用周期还可以为其他时长,本申请实施例对此不做限定。
通过这一方式,电子设备能够周期性确定第一APP的第一控件,从而使第一控件符合该用户的使用需求,进一步提高用户在应用第一APP时的使用体验。
当所述第一APP的第一显示参数包括所述第一APP的类型与所述第一控件的映射关系时,电子设备还可存储APP的类型与第一控件之间的映射关系。这种情况下,电子设备根据第一APP的第一显示参数,确定所述第一APP的第一控件,包括以下步骤:
首先,根据所述第一APP的类型,以及所述第一APP的类型与所述第一控件的映射关系,确定至少一个第三目标控件。
然后,确定至少一个所述第三目标控件中与所述第二控件不同的控件为所述第一APP的第一控件。
示例性的,不同的APP的类型与第一控件之间的映射关系可如表2所示:
表2
APP的类型 第一控件(1) 第一控件(2)
影音娱乐 视频推送 免打扰
购物消费 上新消息推送 收藏店铺
社交通讯 相册 表情设置
在表2中,APP的类型划分为:影音娱乐、购物消费和社交通讯等类型。其中,影音娱乐类的APP所对应的第一控件可包括视频推送控件和免打扰控件;购物消费类的APP所对应的第一控件可包括上新消息推送控件和收藏店铺控件;社交通讯类的APP所对应的第一控件包括相册控件和表情设置控件。这种情况下,电子设备在确定第一APP所属的类型之后,通过查询该映射关系,即可根据第一APP所属的类型确定所述第一APP对应的第一控件。
当然,所述APP还可以划分为其他APP的类型,本申请实施例对此不做限定。
另外,这一实现方式,电子设备可通过多种方式确定第一APP的类型。其中一种方式中,电子设备在安装第一APP时,通过应用市场下载所述第一APP的安装包,而应用市场会将各个APP划分为不同的类型,因此,电子设备在下载所述第一APP的安装包时,通过访问所述应用市场,可确定所述第一APP的类型。
或者,电子设备可存储各个APP的名称与类型之间的映射关系,并通过该映射关系确定所述第一APP的类型。
进一步的,电子设备还可通过访问服务器,或者接收用户的输入等方式,对电子设备中存储的第一 APP的类型与第一控件之间的映射关系进行更新。
在另一种可行的实现方式中,所述第一APP的第一显示参数包括所述第一显示界面的界面标识。通过所述第一显示界面的界面标识,电子设备可确定当前显示的第一APP的界面。
这种情况下,所述根据第一APP的第一显示参数,确定所述第一APP的第一控件,包括以下步骤:
首先,根据所述第一显示界面的界面标识,确定与所述第一显示界面相关联的至少一个第四目标控件。其中,至少一个所述第四目标控件为当应用所述第一APP的电子设备跳转至所述第一显示界面下级的显示界面时,所述下级的显示界面中显示的至少一个控件。
然后,确定至少一个所述第四目标控件中与所述第二控件不同的控件为所述第一APP的第一控件。
以下结合一个示例对第一显示界面相关联的控件进行说明。在该示例中,第一APP的各个显示界面对应的控件如图4(a)所示,当所述第一显示界面为显示有“设置”控件与“收藏”控件的显示界面时,在接收到针对“设置”控件的选择操作之后,第一APP会跳转至包括“个人信息”控件和“消息与推送通知”控件的第三显示界面;在接收到针对“个人信息”控件的选择操作之后,第一APP再次跳转至包括“头像”控件、“个人信息”控件和“收货地址”控件的第四显示界面。
另外,当界面中显示有“个人信息”控件和“消息与推送通知”控件时,如果接收到针对“消息与推送通知”这一控件的选择操作,第一APP会跳转至包括“活动推送”控件、“用户消息提醒”控件和“附近推荐”控件的第五显示界面。
当界面中显示有“设置”控件与“收藏”控件时,如果接收到针对“收藏”这一控件的选择操作,第一APP跳转至显示包括“商户”控件、“点评”控件和“团购”控件的第六显示界面。
这种情况下,第三显示界面、第四显示界面、第五显示界面和第六显示界面均为所述第一显示界面的下级的显示界面,并且,所述第三显示界面、第四显示界面、第五显示界面和第六显示界面中包括的控件即为与所述第一显示界面相关联的控件。
在本申请实施例中,电子设备可通过第一APP的安装包,确定第一APP的组件的元数据的数据结构,再根据所述组件的元数据的数据结构,确定与所述第一显示界面相关联的至少一个控件。
其中,所述组件的元数据的数据结构可为树形结构。这种情况下,设定所述第一显示界面中包括的控件对应的元数据为第一元数据,在所述组件的元数据的数据结构中,所述第一元数据的下级结点对应的控件为所述第一显示界面相关联的第一控件。所述第一元数据的下级结点为所述第一元数据所在树形结构的分支中,从所述第一元数据的子结点到该分支的终端结点所经的各个结点,并且包括所述第一元数据的子结点和所述分支的终端结点。
示例性的,当第一APP的各个显示界面对应的控件如图4(a)所示,则在所述组件的元数据的数据结构中,“我的”控件对应的元数据分别为“设置”控件与“收藏”控件对应的元数据的父结点,“设置”控件对应的元数据分别为“个人信息”控件和“消息与推送通知”对应的元数据的父结点,“个人信息”控件对应的元数据分别为“头像”控件、“个人信息”控件和“收货地址”控件对应的元数据的父结点,“消息与推送通知”控件对应的元数据分别为“活动推送”控件、“用户消息提醒”控件和“附近推荐”控件对应的元数据的父结点,“收藏”控件对应的元数据分别为“商户”控件、“点评”控件和“团购”控件对应的元数据的父结点。
这一示例中,当第一显示界面包括“设置”控件与“消息与推送通知”控件时,“头像”控件、“个人信息”控件、“收货地址”控件、“活动推送”控件、“用户消息提醒”控件和“附近推荐”控件所对应的元数据,均为第一元数据的子结点的下级结点。这种情况下,可确定“头像”控件、“个人信息”控件、“收货地址”控件、“活动推送”控件、“用户消息提醒”控件和“附近推荐”控件为与所述第 一显示界面相关联的第四目标控件。
在这一方法中,电子设备根据第一显示界面的界面标识确定所述第一APP的第一控件。在第一APP的应用过程中,当第一APP显示第一显示界面时,如果用户需要对第一显示界面相关联的控件进行触控,往往需要对所述第一APP进行至少一次触控操作,以使第一APP跳转至包括用户所需的第一控件的显示界面。而通过本申请实施例的方案,可在第一显示界面上的第一悬浮窗口中显示与第一显示界面相关联的第一控件,从而减少用户的触控操作。
另外,电子设备还可同时通过两种以上的第一显示参数共同确定所述第一APP的第一控件,这种情况下,可分别确定不同第一显示参数对应的第一控件,然后将不同第一显示参数对应的第一控件的合集或并集,作为所述第一悬浮窗口中显示的第一控件。
在一种可行的实现方式中,所述第一APP的第一显示参数包括所述第一APP的控件对应的元数据的显示权限以及所述第一显示界面的界面标识。这种情况下,参见图10所示的工作流程示意图,电子设备根据第一APP的第一显示参数,确定所述第一APP的第一控件,包括:
步骤S21、确定所述第一APP的控件中,具备显示权限的元数据对应的至少一个控件为第一目标控件。
步骤S22、根据所述第一显示界面的界面标识,确定所述第一目标控件中,与所述第一显示界面相关联的至少一个第五目标控件。
其中,至少一个所述第五目标控件为当应用所述第一APP的电子设备跳转至所述第一显示界面下级的显示界面时,所述下级的显示界面中显示的第一目标控件。
也就是说,在步骤S22中,根据第一显示界面的界面标识,对所述第一目标控件进行筛选,确定所述第一目标控件中的至少一个第五目标控件。
步骤S23、确定至少一个所述第五目标控件中与所述第二控件不同的控件为所述第一APP的第一控件。
通过步骤S21至步骤S23的操作,电子设备能够结合第一APP的控件对应的元数据的显示权限以及第一显示界面的界面标识,共同确定所述第一APP的第一控件。通过这一方式确定的第一控件所对应的元数据具备显示权限,并且该第一控件还与第一显示界面相关联,从而能够使第一控件符合第一APP的开发者或提供者的设置,以及能够在用户需要与第一显示界面相关联的第一控件时,在第一悬浮窗口显示所述与第一显示界面相关联的第一控件,从而减少用户的触控操作。
在另一种可行的实现方式中,所述第一APP的第一显示参数包括所述第一APP的控件的使用频次以及所述第一显示界面的界面标识。这种情况下,参见图11所示的工作流程示意图,电子设备根据第一APP的第一显示参数,确定所述第一APP的第一控件,包括:
步骤S24、确定所述第一APP的控件中使用频次大于第二阈值的至少一个控件为第六目标控件,或者,确定所述第一APP的控件中使用频次最高的前m个控件为第六目标控件,m为设定的正整数。
其中,所述第二阈值可与第一阈值相等,也可不相等,以及m与n可为相同的正整数,也可不同,本申请实施例对此不做限定。
另外,所述第一APP的控件中使用频次包括不同电子设备的用户对所述第一APP的控件的使用频次,和/或所述电子设备当前的用户对所述第一APP的控件的使用频次。
步骤S25、根据所述第一显示界面的界面标识,确定所述第六目标控件中,与所述第一显示界面相关联的至少一个第七目标控件。
其中,至少一个所述第七目标控件为当应用所述第一APP的电子设备跳转至所述第一显示界面下 级的显示界面时,所述下级的显示界面中显示的第六目标控件。
步骤S26、确定至少一个所述第七目标控件中与所述第二控件不同的控件为所述第一APP的第一控件。
通过步骤S24至步骤S26的操作,电子设备能够结合第一APP的控件的使用频次以及第一显示界面的界面标识,共同确定所述第一APP的第一控件。通过这一方式确定的第一控件为使用频次较高为控件,从而能够符合用户的使用习惯,并且该第一控件还与第一显示界面相关联,从而能够在用户需要与第一显示界面相关联的第一控件时,在第一悬浮窗口显示所述与第一显示界面相关联的第一控件,减少用户的触控操作。
在另一种可行的实现方式中,所述第一APP的第一显示参数包括所述第一APP的控件对应的元数据的显示权限和所述第一APP的控件的使用频次。这种情况下,参见图12所示的工作流程示意图,电子设备根据第一APP的第一显示参数,确定所述第一APP的第一控件,包括:
步骤S27、确定所述第一APP的控件中,具备显示权限的元数据对应的至少一个控件为第一目标控件。
步骤S28、确定所述第一目标控件中使用频次大于第三阈值的至少一个控件为第八目标控件,或者,确定所述第一目标控件中使用频次最高的前s个控件为第八目标控件,s为设定的正整数。
其中,所述第三阈值可与第一阈值相等,也可不相等,以及s与n可为相同的正整数,也可不同,本申请实施例对此不做限定。
步骤S29、确定至少一个所述第八目标控件中与所述第二控件不同的控件为所述第一APP的第一控件。
通过步骤S27至步骤S29的操作,电子设备能够结合第一APP的控件的对应的元数据的显示权限和所述第一APP的控件的使用频次,共同确定所述第一APP的第一控件。通过这一方式确定的第一控件对应的元数据具备显示权限,并且该第一控件为使用频次较高为控件,从而能够符合用户的使用习惯。
通过上述实现方式,电子设备可根据第一显示参数,确定第一APP的第一控件,从而能够在第一APP的显示界面的上层显示第一悬浮窗口,通过所述第一悬浮窗口显示所述第一APP的第一控件。
在本申请另一实施例中,在确定第一APP的第一控件之后,电子设备可在启动第一APP之后,自动在第一显示界面上的第一悬浮窗口显示所述第一控件。或者,还可以在接收用于显示所述第一悬浮窗口的触发操作之后,再在所述第一显示界面上的第一悬浮窗口显示所述第一控件。
其中,所述用于显示所述第一悬浮窗口的触发操作包括以下至少一种:针对触控区域的滑动操作、隔空手势操作、语音输入操作和针对所述第一显示界面上的第一提示图标的点击。
另外,当所述第一控件为用于对所述第一APP的功能开启编辑的功能按钮时,在所述第一悬浮窗口中显示所述第一控件的名称和图标。当所述第一控件为用于对所述第一APP的功能进行开关的功能按钮时,在所述第一悬浮窗口中显示所述第一控件的名称,并显示所述功能为开启状态或者所述功能为关闭状态。
示例性的,当所述第一APP的第一控件如图5(a)所示时,在确定“用户消息提醒”控件为所述第一APP的第一控件后,电子设备可通过与第一APP的交互,确定该控件的状态,并在第一悬浮窗口显示“用户消息提醒”这一第一控件的名称和相应的状态。
另外,在确定“个人信息”控件为所述第一APP的第一控件后,电子设备可在第一悬浮窗口显示“个人信息”这一第一控件的名称和图标。
第一APP可实现的功能可能较多,相应的所述第一APP可能包括多个第一控件。为了避免第一悬 浮窗口显示的第一控件的数量过多,影响第一APP的第一显示界面的显示效果,可将第一控件分为至少两组,在所述第一悬浮窗口中可以显示其中一组第一控件。
这种情况下,在本申请实施例公开的方案中,在确定第一控件之后,还要对所述第一控件进行分组,然后根据分组情况,在所述第一悬浮窗口中显示所述第一控件。
其中,所述第一控件的数量为M,所述第一悬浮窗口每次显示的第一控件的最大数量为N,如果M大于N,所述在所述第一显示界面上的第一悬浮窗口中显示所述第一控件,包括以下步骤:
第一步,根据所述第一控件的排序参数,对所述第一控件进行排序;
第二步,在所述第一悬浮窗口中,显示排序中的前N个第一控件;
第三步,在接收到针对所述第一悬浮窗口中的第一折叠图标的点击操作之后,在所述第一悬浮窗口中显示更多的所述第一控件。
其中,M和N为设定的正整数。N可为电子设备预先设定的数值,并且,还可以根据用户的设置操作,对N的数值进行重新调整。
另外,在第二步中,在所述第一悬浮窗口中显示排序中的前N个第一控件时,还可根据对所述第一控件的排序结果,确定所述前N个第一控件在所述第一悬浮窗口中的排序。
通过上述步骤,电子设备能够根据排序参数,将第一控件分为至少两组,并在所述第一悬浮窗口中显示其中一组第一控件,并在所述第一悬浮窗口中显示第一折叠图标。当接收到针对第一折叠图标的触控操作时,选择剩余的一组第一控件并在所述第一悬浮窗口中显示。
其中,当需要显示更多的第一控件时,可将剩余的一组第一控件替换之前显示的第一控件,即在第一悬浮窗口中每次只显示一组第一控件,当所述第一悬浮窗口显示的是最后一组第一控件时,所述电子设备将所述第一折叠图标调整为第一返回图标,在接收到针对所述第一返回图标的触控之后,所述第一悬浮窗口显示上一组第一控件。或者,当接收到针对第一折叠图标的触控操作时,在第一悬浮窗口还可同时显示当前显示的第一控件以及剩余的一组第一控件。
通过这种方式,能够使第一控件在第一悬浮窗口中以分组的方式显示。所述第一悬浮窗口显示的第一控件的数量越多,所述第一悬浮窗口的面积往往越大,而第一悬浮窗口的面积较大时,有可能对第一APP的显示界面中的内容造成遮挡。而通过使第一控件以分组形式显示,能够避免所述第一悬浮窗口中每次显示较多第一控件,从而减少所述第一悬浮窗口对所述显示界面的遮挡。
这种情况下,当第一悬浮窗口中不包含用户所需的第一控件时,电子设备可通过接收到的针对第一折叠图标的触控操作,调整所述第一悬浮窗口中显示的第一控件,从而使第一悬浮窗口中显示的第一控件符合用户需求。
进一步的,这种情况下,如果当前的第一悬浮窗口中未显示用户所需的第一控件,需要用户对第一折叠图标进行触控操作,但有些情况下,与现有技术相比,本申请的方案需要用户执行的触控操作的次数较少,仍能起到简化用户操作的作用。
例如,当所述第一APP为微信APP,所述第一APP的控件与各个控件界面之间的关系如图5(a)所示,并且用户需要对“通知显示消息详情”控件进行操作时,需要依次点击“我”—“设置”—“新消息提醒”这三个控件,然后微信APP的界面中才显示“通知显示消息详情”控件,以便用户对其进行操作。也就是说,在现有技术中,需要用户连续点击三次控件,才能使电子设备显示“通知显示消息详情”控件。
而在本申请实施例公开的方案中,当“通知显示消息详情”控件属于第一悬浮窗口中显示的第一组第一控件时,无需用户触控所述第一折叠图标,就可使所述第一悬浮窗口中显示用户所需的第一控件; 当“通知显示消息详情”控件属于第一悬浮窗口中显示的第二组第一控件,并且第一悬浮窗口显示第一组第一控件时,只需用户触控一次第一折叠图标,第一悬浮窗口就会显示所述“通知显示消息详情”控件;当“通知显示消息详情”控件属于第一悬浮窗口中显示的第三组第一控件,并且第一悬浮窗口显示第一组第一控件时,只需用户触控两次第一折叠图标,第一悬浮窗口就会显示所述“通知显示消息详情”控件。因此,与现有技术相比,简化了用户所需执行的操作。
另外,在本申请实施例中,通过排序参数对第一控件进行排序。所述排序参数包括以下至少一种:在对所述第一APP的安装包进行扫描时,扫描到所述第一控件对应的元数据的先后顺序、所述第一控件的使用频次以及所述第一控件对应的元数据的优先级。相应的,电子设备可通过多种方式对所述第一控件进行排序。
在其中一种可行的实现方式中,所述排序参数为在对所述第一APP的安装包进行扫描时,扫描到所述第一控件对应的元数据的先后顺序。这一方式中,电子设备在对第一APP的安装包进行扫描时,记录扫描到的各个组件的元数据的先后顺序,并根据该先后顺序确定所述第一控件的显示顺序。
具体的,可确定在越早扫描到的元数据所对应的第一控件,在对所述第一控件进行排序的顺序越靠前,即将较早扫描到的元数据对应的第一控件划分为第一组控件。
这一实现方式中,电子设备根据扫描第一APP的安装包时,扫描到的元数据的先后顺序确定第一控件的排序,实现方式较为便捷。
在另外一种可行的实现方式中,所述排序参数包括所述第一控件的使用频次,即电子设备可以根据所述第一控件的使用频次确定各个第一控件的排序。在第一悬浮窗口中的显示顺序。其中,通常使用频次越高的第一控件的排序结果越靠前。
示例性的,当所述排序参数包括所述第一控件的使用频次,并且第一APP的各个控件的使用频次如表1所示时,电子设备可确定所述第一APP的第一控件的排序结果为:勿扰模式控件、收藏文件控件、接收语音和视频通话邀请控件和接收新消息通知控件。
另外,当电子设备周期性确定所述第一控件的使用频次时,电子设备还可根据每个周期内的使用频次确定所述第一控件的排序,从而实现对第一控件的排序的周期性调整。
通过所述第一控件的使用频次确定各个第一控件的排序时,能够使第一控件的排序结果符合用户的使用习惯,提高用户的使用体验。
在另外一种可行的实现方式中,当在第一APP的安装包中设置有各个组件的元数据的优先级时,电子设备通过扫描所述第一APP的安装包,可以获取各个元数据对应的优先级;或者,各个组件的元数据的优先级设置在所述相关文件内时,所述电子设备可通过解析所述相关文件,获取各个元数据对应的优先级。
这种情况下,所述排序参数包括所述第一控件对应的元数据的优先级。电子设备可根据第一控件的元数据的优先级,确定各个第一控件的排序结果。具体的,优先级越高的元数据所对应的第一控件在排序中越靠前。
示例性的,第一APP在第一悬浮窗口中显示的第一控件包括:接收新消息通知控件、接收语音和视频通话邀请控件、通知显示消息详情控件、勿扰模式和收藏文件控件,并且各个第一控件对应的元数据的优先级如表3所示:
表3
Figure PCTCN2021073043-appb-000001
Figure PCTCN2021073043-appb-000002
在表3中,N1、N2、N3、N4和N5表征的优先级依次降低,即接收新消息通知控件、接收语音和视频通话邀请控件、通知显示消息详情控件、勿扰模式控件和收藏控件这五个第一控件对应的优先级依次降低。并且,设定在第一悬浮窗口中,每次显示3个第一控件,这种情况下,则可将接收新消息通知控件、接收语音和视频通话邀请控件和通知显示消息详情这三个控件划分为第一组控件,并将勿扰模式控件和收藏文件控件这两个第一控件划分为第二组控件,并优先显示第一组控件。当显示第一控件时,在第一悬浮窗口中首先显示第一组控件,并且,在显示第一组控件时,按照接收新消息通知控件、接收语音和视频通话邀请控件和通知显示消息详情控件的顺序显示,即接收新消息通知控件位于最前的位置,接收语音和视频通话邀请控件位于中间的位置,通知显示消息详情控件位于最后的位置。并且,在接收到针对第一折叠图标的点击操作之后,所述第一悬浮窗口再显示第二组控件,并且,在显示所述第二组控件时,勿扰模式控件位于收藏文件控件之前。
另外,参见图13所示的工作流程示意图,在本申请实施例公开的控件显示方法中,还包括以下步骤:
步骤S13、根据所述第一APP的第二显示参数,确定所述第一APP对应的第三控件,所述第三控件为对安装所述第一APP的电子设备的操作系统进行操控的功能按钮;
步骤S14、在所述第一APP的第一显示界面上的第二悬浮窗口中,显示所述第三控件。
其中,所述第一悬浮窗口和第二悬浮窗口可为同一悬浮窗口,也可为不同的悬浮窗口,本申请实施例对此不做限定。
在本申请实施例公开的方案中,步骤S11至步骤S12的操作,以及步骤S13至步骤S14之间,在执行时并没有严格的时间先后顺序。在上述描述以及图14中,在执行步骤S11至步骤S12之后,再执行步骤S13至步骤S14,而在实际的应用场景中,也可同时执行步骤S12和步骤S14的操作,即在第一APP的第一显示界面上的悬浮窗口中,同时显示第一控件和第三控件。
其中,所述第二显示参数包括以下至少一种:所述第二显示参数包括以下至少一种:第一APP的系统权限、所述第一APP的组件指示的系统功能以及第一APP的类型与所述第三控件之间的映射关系,相应的,在本申请实施例中,电子设备可通过多种方式确定所述第三控件。
在其中一种可行的实现方式中,电子设备可根据所述第一APP的组件指示的系统功能,确定所述第三控件,即所述第二显示参数包括所述第一APP的组件指示的系统功能。
所述电子设备通过扫描所述第一APP的安装包,可获取到第一APP的组件,该组件往往会指示电子设备所需的系统功能。其中,第一APP的组件指示电子设备所需的系统功能,为所述第一APP的组件指示的系统功能。
其中,在第一APP的组件中,通常包括意图过滤器(即intent-filter),电子设备可确定intent-filter所指示的功能为所述第一APP的组件指示的系统功能。示例性的,所述intent-filter指示的功能包括近距离通信功能,这种情况下,电子设备可确定第三控件包括NFC控件。
另外,电子设备通过扫描所述第一APP的安装包,还可获取到第一APP的系统权限(即system privilege),然后根据该系统权限确定第三控件,这种情况下,所述第二显示参数包括所述第一APP的系统权限。其中,第一APP的系统权限指的是第一APP在运行过程中,需要电子设备的操作系统提供 的权限。
示例性的,所述第一APP在连接网络之后才能运行,因此电子设备的操作系统提供网络连接相关的权限。这种情况下,所述第三控件包括WLAN控件,通过所述WLAN控件可控制所述电子设备的操作系统是否连接无线网络。
在另一示例中,所述第一APP在运行过程中,需要电子设备的操作系统提供定位信息,响应的,所述第一APP的系统权限包括定位的权限,相应的,所述第三控件包括定位控件,例如GPS控件,所述GPS控件用于控制所述电子设备是否开启GPS功能,以实现定位。
电子设备通过扫描所述第一APP的安装包,即可获取所述第一APP的系统权限和intent-filter。其中,当所述安装包为安卓系统的安装包时,应用权限(即use-permission)声明中通常指示所述第一APP的系统权限,所述use-permission声明和所述intent-filter通常在安装包中清单文件(即manifest文件)中注册。电子设备通过扫描安装包中的manifest文件,即可确定所述系统权项和所述intent-filter。
在另外一种可行的实现方式中,第二显示参数包括:第一APP的类型与所述第三控件之间的映射关系。这一方式中,电子设备可存储APP的类型与第三控件之间的映射关系,并根据所述第一APP的类型,确定所述第一APP对应的第三控件。
示例性的,APP的类型与第三控件之间的映射关系可如表4所示:
表4
APP的类型 第三控件(1) 第三控件(2)
影音娱乐 WLAN 屏幕录制
社交通讯 响铃 截屏
在表4中,APP的类型划分为:影音娱乐和社交通讯。其中,影音娱乐类的APP所对应的第三控件可包括WLAN控件和屏幕录制控件;社交通讯类的APP所对应的第三控件包括响铃控件和截屏控件。这种情况下,电子设备在确定第一APP所属的类型之后,通过查询该映射关系,即可根据第一APP所属的类型确定所述第三控件。
当然,所述APP还可以划分为其他类型,本申请实施例对此不做限定。
进一步的,电子设备还可通过访问服务器,或者接收用户的输入等方式,对电子设备中存储的APP的类型与第三控件之间的映射关系进行更新。
在另外一种可行的实现方式中,电子设备还可以同时根据至少两种第二显示参数,确定所述第三控件。这种情况下,第一APP的显示界面中显示的第三控件可以为通过不同的第二显示参数确定的第三控件的合集或并集。
另外,第三控件可能包括多个,在第二悬浮窗口中可显示电子设备确定的各个第三控件,或者,电子设备可选择性的显示其中的部分第三控件,在本申请实施例中,可通过多种方式确定需要在所述第二悬浮窗口中显示的第三控件。
进一步的,当第二悬浮窗口中显示的第三控件较多时,为了避免第二悬浮窗口面积过大,造成对第一APP的第一显示界面的遮挡,影响第一显示界面的显示效果,也可通过分组显示的方式在所述第二悬浮窗口中显示所述第三控件。
在该方式中,设定第二悬浮窗口每次可显示的第三控件的数量为R,将第三控件分为不同组,每组中的第三控件的数量不大于R,并且在所述第二悬浮窗口中还显示第二折叠图标。当所述第二悬浮窗口中显示的第三控件均不满足用户的需求时,用户可点击所述第二折叠图标。接收到针对所述第二折叠图标的点击之后,所述电子设备调整所述第二悬浮窗口中显示的第三控件,使所述第二悬浮窗口显示另一 组之前未显示的第三控件。
另外,在将第三控件划分为不同组时,可对所述第三控件进行排序,再根据排序结果对所述第三控件进行分组。
在本申请实施例中,当电子设备通过第一APP的系统权限确定第三控件时,电子设备对第一APP的安装包进行扫描的过程中,还记录扫描到的系统权限的先后顺序,并根据该先后顺序确定所述第三控件的排序结果。具体的,可确定越早扫描到的系统权限所对应的第三控件,在第三控件的排序结果中的顺序越靠前。
或者,当电子设备通过第一APP的系统权限确定第三控件时,所述第一APP的开发者或提供者等在第一APP的安装包中设置各个系统权限的优先级,或者创建包括各个系统权限的优先级的相关文件,并将所述安装包与相关文件打包为一个文件包,电子设备下载所述第一APP的安装包时,还会获取到所述相关文件。
这种情况下,电子设备通过扫描所述第一APP的安装包,可以获取各个系统权限对应的优先级;或者,所述电子设备可通过解析所述相关文件,获取各个系统权限对应的优先级。然后,电子设备可根据所述优先级确定第三控件的排序结果。具体的,优先级越高的系统权限所对应的第三控件,在第三控件的排序结果中的顺序越靠前。
在另一种实现方式中,不同的电子设备可统计自身用户使用不同第三控件的使用频次,并将该使用频次上传至服务器。服务器统计不同电子设备的用户针对所述第三控件的使用频次,并将统计结果反馈至电子设备。然后,电子设备根据服务器的反馈,确定各个第三控件在的排序结果。其中,通常使用频次越高的第三控件,在第三控件的排序结果中的顺序越靠前。
进一步的,在用户应用第一APP一段时间之后,电子设备还可根据用户的使用习惯对各个第三控件的排序结果进行调整。这一方式中,电子设备采集用户使用各个第三控件的使用频次,再根据该使用频次调整所述第三控件的排序结果。其中,通常该用户应用某一第三控件的频次越高,在第三控件的排序结果中的顺序越靠前。
相应的,本申请实施例还公开一种电子设备。参见图14所示的电子设备的结构示意图,所述电子设备包括:触控器件1406和显示器1407构成的屏幕1401;一个或多个处理器1402;一个或多个存储器1403;一个或多个应用程序(未示出);以及一个或多个计算机程序1404,上述各器件可以通过一个或多个通信总线1405连接。其中该一个或多个计算机程序1404被存储在上述存储器1403中并被配置为被该一个或多个处理器1402执行,该一个或多个计算机程序1404包括指令,上述指令可以用于执行上述实施例中的各个步骤,即当所述指令被所述一个或多个处理器执行时,所述电子设备执行本申请上述各个实施例公开的控件显示方法。其中,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应实体器件的功能描述,在此不再赘述。
进一步的,所述电子设备还可以包括一个或多个传感器1408。
示例性的,上述处理器1402具体可以为图1所示的处理器110,上述存储器1403具体可以为图2所示的内部存储器121和/或外部存储器接口120,上述屏幕1401具体可以为图1所示的柔性屏幕,上述传感器1408具体可以为图2所示的传感器模块180中的陀螺仪传感器180B、加速度传感器180E、接近光传感器180G,还可以是红外传感器、霍尔传感器等一项或多项,本申请实施例对此不做任何限制。
相应的,本申请实施例还公开一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,其特征在于,当所述指令在电子设备上运行时,使得所述电子设备执行本申请上述各个实施例公开的控 件显示方法。
相应的,本申请实施例还公开一种包含指令的计算机程序产品,当所述计算机程序产品在电子设备上运行时,使得所述电子设备执行本申请上述各个实施例公开的控件显示方法。
本申请实施例中所描述的各种说明性的逻辑单元和电路可以通过通用处理器,数字信息处理器,专用集成电路(ASIC),现场可编程门阵列(FPGA)或其它可编程逻辑装置,离散门或晶体管逻辑,离散硬件部件,或上述任何组合的设计来实现或操作所描述的功能。通用处理器可以为微处理器,可选地,该通用处理器也可以为任何传统的处理器、控制器、微控制器或状态机。处理器也可以通过计算装置的组合来实现,例如数字信息处理器和微处理器,多个微处理器,一个或多个微处理器联合一个数字信息处理器核,或任何其它类似的配置来实现。
本申请实施例中所描述的方法或算法的步骤可以直接嵌入硬件、处理器执行的软件单元、或者这两者的结合。软件单元可以存储于RAM存储器、闪存、ROM存储器、EPROM存储器、EEPROM存储器、寄存器、硬盘、可移动磁盘、CD-ROM或本领域中其它任意形式的存储媒介中。示例性地,存储媒介可以与处理器连接,以使得处理器可以从存储媒介中读取信息,并可以向存储媒介存写信息。可选地,存储媒介还可以集成到处理器中。处理器和存储媒介可以设置于ASIC中,ASIC可以设置于UE中。可选地,处理器和存储媒介也可以设置于UE中的不同的部件中。
应理解,在本申请的各种实施例中,各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。
本说明书的各个部分均采用递进的方式进行描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点介绍的都是与其他实施例不同之处。尤其,对于装置和系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例部分的说明即可。
尽管已描述了本申请的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本申请范围的所有变更和修改。
本领域的技术人员可以清楚地了解到本发明实施例中的技术可借助软件加必需的通用硬件平台的方式来实现。基于这样的理解,本发明实施例中的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例或者实施例的某些部分所述的方法。
本说明书中各个实施例之间相同相似的部分互相参见即可。尤其,对于电子设备的实施例而言,由 于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例中的说明即可。
以上所述的本发明实施方式并不构成对本发明保护范围的限定。

Claims (17)

  1. 一种控件显示方法,其特征在于,包括:
    启动第一应用程序APP,根据第一APP的第一显示参数,确定所述第一APP的第一控件,其中,所述第一APP的第一显示参数包括以下至少一种:所述第一APP的控件对应的元数据的显示权限、所述第一APP的控件的使用频次、所述第一APP的类型与所述第一控件的映射关系以及所述第一显示界面的界面标识;
    显示所述第一APP的第一显示界面,并在所述第一显示界面上的第一悬浮窗口中显示所述第一控件,所述第一控件与第二控件不同,所述第二控件为所述第一显示界面中显示的控件。
  2. 根据权利要求1所述的方法,其特征在于,
    所述第一控件为用于对所述第一APP的功能开启编辑的功能按钮,在所述第一APP的第一显示界面上的第一悬浮窗口中显示所述第一控件,包括:
    在所述第一悬浮窗口中显示所述第一控件的名称和图标;或者,
    所述第一控件为用于对所述第一APP的功能进行开关的功能按钮,在所述第一APP的第一显示界面上的第一悬浮窗口中显示所述第一控件,包括:
    在所述第一悬浮窗口中显示所述第一控件的名称,并显示所述功能为开启状态或者所述功能为关闭状态。
  3. 根据权利要求1或2所述的方法,其特征在于,还包括:
    根据所述第一APP的第二显示参数,确定所述第一APP对应的第三控件,所述第三控件为对安装所述第一APP的电子设备的操作系统进行操控的功能按钮;
    在所述第一APP的第一显示界面上的第二悬浮窗口中,显示所述第三控件。
  4. 根据权利要求3所述的方法,其特征在于,
    所述第二显示参数包括以下至少一种:第一APP的系统权限、所述第一APP的组件指示的系统功能以及第一APP的类型与所述第三控件之间的映射关系。
  5. 根据权利要求1至4任一项所述的方法,其特征在于,所述第一APP的第一显示参数包括所述第一APP的控件对应的元数据的显示权限;
    所述根据第一APP的第一显示参数,确定所述第一APP的第一控件,包括:
    确定所述第一APP的控件中,具备显示权限的元数据对应的至少一个控件为第一目标控件;
    确定至少一个所述第一目标控件中与所述第二控件不同的控件为所述第一APP的第一控件。
  6. 根据权利要求1至4任一项所述的方法,其特征在于,所述第一APP的第一显示参数包括所述第一APP的控件的使用频次;
    所述根据第一APP的第一显示参数,确定所述第一APP的第一控件,包括:
    确定所述第一APP的控件中使用频次大于第一阈值的至少一个控件为第二目标控件,或者,确定所述第一APP的控件中使用频次最高的前n个控件为第二目标控件,n为设定的正整数;
    确定至少一个所述第二目标控件中与所述第二控件不同的控件为所述第一APP的第一控件。
  7. 根据权利要求1至4任一项所述的方法,其特征在于,所述第一APP的第一显示参数包括所述第一APP的类型与所述第一控件的映射关系;
    所述根据第一APP的第一显示参数,确定所述第一APP的第一控件,包括:
    根据所述第一APP的类型,以及所述第一APP的类型与所述第一控件的映射关系,确定至少一个第三目标控件;
    确定至少一个所述第三目标控件中与所述第二控件不同的控件为所述第一APP的第一控件。
  8. 根据权利要求1至4任一项所述的方法,其特征在于,所述第一APP的第一显示参数包括所述第一显示界面的界面标识;
    所述根据第一APP的第一显示参数,确定所述第一APP的第一控件,包括:
    根据所述第一显示界面的界面标识,确定与所述第一显示界面相关联的至少一个第四目标控件,至少一个所述第四目标控件为当应用所述第一APP的电子设备跳转至所述第一显示界面下级的显示界面时,所述下级的显示界面中显示的至少一个控件;
    确定至少一个所述第四目标控件中与所述第二控件不同的控件为所述第一APP的第一控件。
  9. 根据权利要求1至4任一项所述的方法,其特征在于,所述第一APP的第一显示参数包括所述第一APP的控件对应的元数据的显示权限以及所述第一显示界面的界面标识;
    所述根据第一APP的第一显示参数,确定所述第一APP的第一控件,包括:
    确定所述第一APP的控件中,具备显示权限的元数据对应的至少一个控件为第一目标控件;
    根据所述第一显示界面的界面标识,确定所述第一目标控件中,与所述第一显示界面相关联的至少一个第五目标控件,至少一个所述第五目标控件为当应用所述第一APP的电子设备跳转至所述第一显示界面下级的显示界面时,所述下级的显示界面中显示的第一目标控件;
    确定至少一个所述第五目标控件中与所述第二控件不同的控件为所述第一APP的第一控件。
  10. 根据权利要求1至4任一项所述的方法,其特征在于,所述第一APP的第一显示参数包括所述第一APP的控件的使用频次以及所述第一显示界面的界面标识;
    所述根据第一APP的第一显示参数,确定所述第一APP的第一控件,包括:
    确定所述第一APP的控件中使用频次大于第二阈值的至少一个控件为第六目标控件,或者,确定所述第一APP的控件中使用频次最高的前m个控件为第六目标控件,m为设定的正整数;
    根据所述第一显示界面的界面标识,确定所述第六目标控件中,与所述第一显示界面相关联的至少一个第七目标控件,至少一个所述第七目标控件为当应用所述第一APP的电子设备跳转至所述第一显示界面下级的显示界面时,所述下级的显示界面中显示的第六目标控件;
    确定至少一个所述第七目标控件中与所述第二控件不同的控件为所述第一APP的第一控件。
  11. 根据权利要求1至4任一项所述的方法,其特征在于,所述第一APP的第一显示参数包括所述第一APP的控件对应的元数据的显示权限和所述第一APP的控件的使用频次;
    所述根据第一APP的第一显示参数,确定所述第一APP的第一控件,包括:
    确定所述第一APP的控件中,具备显示权限的元数据对应的至少一个控件为第一目标控件;
    确定所述第一目标控件中使用频次大于第三阈值的至少一个控件为第八目标控件,或者,确定所述第一目标控件中使用频次最高的前s个控件为第八目标控件,s为设定的正整数;
    确定至少一个所述第八目标控件中与所述第二控件不同的控件为所述第一APP的第一控件。
  12. 根据权利要求1至11任一项所述的方法,其特征在于,在所述第一APP的第一显示界面上的第一悬浮窗口中显示所述第一控件之前,还包括:
    接收用于显示所述第一悬浮窗口的触发操作;
    所述用于显示所述第一悬浮窗口的触发操作包括以下至少一种:针对触控区域的滑动操作、隔空手势操作、语音输入操作和针对所述第一显示界面上的第一提示图标的点击操作。
  13. 根据权利要求1至11任一项所述的方法,其特征在于,所述第一控件的数量为M,所述第一悬浮窗口每次显示的第一控件的最大数量为N,如果M大于N,所述在所述第一显示界面上的第一悬 浮窗口中显示所述第一控件,包括:
    根据所述第一控件的排序参数,对所述第一控件进行排序;
    在所述第一悬浮窗口中,显示排序中的前N个第一控件;
    在接收到针对所述第一悬浮窗口中的第一折叠图标的点击操作之后,在所述第一悬浮窗口中显示更多的所述第一控件。
  14. 根据权利要求13所述的方法,其特征在于,
    所述排序参数包括以下至少一种:在对所述第一APP的安装包进行扫描时,扫描到所述第一控件对应的元数据的先后顺序、所述第一控件的使用频次以及所述第一控件对应的元数据的优先级。
  15. 一种电子设备,其特征在于,包括:
    一个或多个处理器;
    一个或多个存储器;
    以及一个或多个计算机程序,其中所述一个或多个计算机程序被存储在所述一个或多个存储器中,所述一个或多个计算机程序包括指令,当所述指令被所述一个或多个处理器执行时,使得所述电子设备执行如权利要求1-14中任一项所述的控件显示方法。
  16. 一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,其特征在于,当所述指令在电子设备上运行时,使得所述电子设备执行如权利要求1-14中任一项所述的控件显示方法。
  17. 一种包含指令的计算机程序产品,其特征在于,当所述计算机程序产品在电子设备上运行时,使得所述电子设备执行如权利要求1-14中任一项所述的控件显示方法。
PCT/CN2021/073043 2020-01-21 2021-01-21 一种控件显示方法及电子设备 WO2021147948A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP21744688.9A EP4083791A4 (en) 2020-01-21 2021-01-21 CONTROL DISPLAY METHOD AND ELECTRONIC DEVICE
US17/868,446 US11934848B2 (en) 2020-01-21 2022-07-19 Control display method and electronic device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010071942.4A CN111309418A (zh) 2020-01-21 2020-01-21 一种控件显示方法及电子设备
CN202010071942.4 2020-01-21

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/868,446 Continuation US11934848B2 (en) 2020-01-21 2022-07-19 Control display method and electronic device

Publications (1)

Publication Number Publication Date
WO2021147948A1 true WO2021147948A1 (zh) 2021-07-29

Family

ID=71154710

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/073043 WO2021147948A1 (zh) 2020-01-21 2021-01-21 一种控件显示方法及电子设备

Country Status (4)

Country Link
US (1) US11934848B2 (zh)
EP (1) EP4083791A4 (zh)
CN (1) CN111309418A (zh)
WO (1) WO2021147948A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114706602A (zh) * 2022-04-01 2022-07-05 珠海读书郎软件科技有限公司 一种基于Android的通过app更新触摸屏参数的方法
CN114995714A (zh) * 2022-06-07 2022-09-02 深圳市星卡软件技术开发有限公司 界面状态栏动态显示方法和装置

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111309418A (zh) 2020-01-21 2020-06-19 华为技术有限公司 一种控件显示方法及电子设备
CN111913761B (zh) * 2020-08-18 2023-04-07 网易(杭州)网络有限公司 直播频道的插件处理方法、装置、设备和存储介质
CN112083847A (zh) * 2020-09-09 2020-12-15 北京小米移动软件有限公司 一种文档显示控制方法、装置、移动终端及存储介质
CN112163174B (zh) * 2020-09-29 2024-01-09 广州博冠信息科技有限公司 消息的显示方法、装置、存储介质及计算机设备
CN113778603A (zh) * 2021-09-14 2021-12-10 珠海格力电器股份有限公司 应用界面的调整方法、装置、电子设备及存储介质
CN114168020A (zh) * 2021-12-10 2022-03-11 Oppo广东移动通信有限公司 交互方法、装置、终端设备及可读存储介质
CN114546554B (zh) * 2022-02-14 2023-11-07 支付宝(杭州)信息技术有限公司 一种控件的展示方法、装置以及设备
CN114995715B (zh) * 2022-07-13 2022-12-27 荣耀终端有限公司 悬浮球的控制方法和相关装置
CN114911390B (zh) * 2022-07-17 2022-11-22 荣耀终端有限公司 显示方法及电子设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140310647A1 (en) * 2011-10-14 2014-10-16 Tencent Technology (Shenzhen) Company Limited Method for controlling interface and terminal therefor
CN107783711A (zh) * 2017-11-07 2018-03-09 北京小米移动软件有限公司 控制应用程序执行操作的方法及装置
CN107943359A (zh) * 2017-11-09 2018-04-20 深圳市金立通信设备有限公司 一种应用程序的控制的方法、终端及计算机可读介质
CN110083289A (zh) * 2019-04-23 2019-08-02 努比亚技术有限公司 一种按钮显示方法、可穿戴设备和计算机可读存储介质
CN111309418A (zh) * 2020-01-21 2020-06-19 华为技术有限公司 一种控件显示方法及电子设备

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6384849B1 (en) * 1997-07-14 2002-05-07 Microsoft Corporation Method for displaying controls in a system using a graphical user interface
KR20110037040A (ko) * 2009-10-05 2011-04-13 삼성전자주식회사 휴대 단말기 및 그의 화면 표시 방법
RU2596575C2 (ru) * 2014-04-30 2016-09-10 Общество С Ограниченной Ответственностью "Яндекс" Способ обработки пользовательского запроса, электронное устройство и постоянный машиночитаемый носитель
US20160117372A1 (en) * 2014-10-28 2016-04-28 KrafftlT AB Software application that determines the optimal times for outdoor activities based on outdoor conditions
CN109814768A (zh) * 2018-12-14 2019-05-28 中国平安财产保险股份有限公司 悬浮框的位置优化的方法、装置、计算机设备和存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140310647A1 (en) * 2011-10-14 2014-10-16 Tencent Technology (Shenzhen) Company Limited Method for controlling interface and terminal therefor
CN107783711A (zh) * 2017-11-07 2018-03-09 北京小米移动软件有限公司 控制应用程序执行操作的方法及装置
CN107943359A (zh) * 2017-11-09 2018-04-20 深圳市金立通信设备有限公司 一种应用程序的控制的方法、终端及计算机可读介质
CN110083289A (zh) * 2019-04-23 2019-08-02 努比亚技术有限公司 一种按钮显示方法、可穿戴设备和计算机可读存储介质
CN111309418A (zh) * 2020-01-21 2020-06-19 华为技术有限公司 一种控件显示方法及电子设备

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4083791A4 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114706602A (zh) * 2022-04-01 2022-07-05 珠海读书郎软件科技有限公司 一种基于Android的通过app更新触摸屏参数的方法
CN114706602B (zh) * 2022-04-01 2023-03-24 珠海读书郎软件科技有限公司 一种基于Android的通过app更新触摸屏参数的方法
CN114995714A (zh) * 2022-06-07 2022-09-02 深圳市星卡软件技术开发有限公司 界面状态栏动态显示方法和装置

Also Published As

Publication number Publication date
EP4083791A1 (en) 2022-11-02
US20220350624A1 (en) 2022-11-03
EP4083791A4 (en) 2023-06-21
CN111309418A (zh) 2020-06-19
US11934848B2 (en) 2024-03-19

Similar Documents

Publication Publication Date Title
WO2021147948A1 (zh) 一种控件显示方法及电子设备
US11861161B2 (en) Display method and apparatus
US10853979B2 (en) Electronic device and method for displaying screen thereof
TWI762485B (zh) 可折疊裝置及其控制方法
WO2018040010A1 (zh) 一种应用界面显示方法以及终端设备
EP3182245B1 (en) Method and apparatus for providing user interface of electronic device
US10088977B2 (en) Electronic device and method for providing content according to field attribute
EP3342172B1 (en) Method of controlling the sharing of videos and electronic device adapted thereto
EP3249519A1 (en) Electronic device for controlling plurality of displays and control method
US20150333971A1 (en) Method and device for managing processes of application program
US20180275840A1 (en) Method for executing program and electronic device thereof
KR20210134675A (ko) 사용자 시연을 통하여 명령들을 학습하고 실행 가능하게 하기 위한 방법 및 시스템
US11086497B2 (en) Electronic apparatus and notification displaying method for electronic apparatus
KR20150025613A (ko) 애플리케이션의 관련 정보를 표시하는 전자 장치 및 방법
US11204681B2 (en) Program orchestration method and electronic device
US11861382B2 (en) Application starting method and apparatus, and electronic device
WO2021063090A1 (zh) 一种建立应用组合的方法与电子设备
US11681411B2 (en) Method of selecting one or more items according to user input and electronic device therefor
AU2014288039A1 (en) Remote operation of applications using received data
CN107193524B (zh) 多显示设备及其操作方法
US20220214891A1 (en) Interface display method and electronic device
US20140173521A1 (en) Shortcuts for Application Interfaces
US10235030B2 (en) Electronic device and user interface display method for the same
EP3073368B1 (en) Human interface device input fusion
EP4280058A1 (en) Information display method and electronic device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21744688

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2021744688

Country of ref document: EP

Effective date: 20220725

NENP Non-entry into the national phase

Ref country code: DE