WO2021143805A1 - 一种微件处理方法以及相关装置 - Google Patents

一种微件处理方法以及相关装置 Download PDF

Info

Publication number
WO2021143805A1
WO2021143805A1 PCT/CN2021/072026 CN2021072026W WO2021143805A1 WO 2021143805 A1 WO2021143805 A1 WO 2021143805A1 CN 2021072026 W CN2021072026 W CN 2021072026W WO 2021143805 A1 WO2021143805 A1 WO 2021143805A1
Authority
WO
WIPO (PCT)
Prior art keywords
widget
electronic device
widgets
collection
icon
Prior art date
Application number
PCT/CN2021/072026
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 US17/793,326 priority Critical patent/US20230068100A1/en
Priority to CN202180008707.5A priority patent/CN114930289A/zh
Priority to JP2022543513A priority patent/JP7412572B2/ja
Priority to EP21741059.6A priority patent/EP4080356A4/en
Publication of WO2021143805A1 publication Critical patent/WO2021143805A1/zh

Links

Images

Classifications

    • 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/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • 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
    • G06F3/04845Interaction 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 for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • 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
    • G06F3/0485Scrolling or panning
    • 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
    • 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

Definitions

  • This application relates to the field of terminal technology, and in particular to a widget processing method and related devices.
  • Widget is a mini-application view that can be embedded on the desktop of an electronic device, and can support users to preview information or perform quick operations on the view.
  • the embodiment of the present application provides a widget processing method and a related device, which can switch a target icon to a widget set including multiple widgets, so as to realize quick addition of widgets on the desktop of an electronic device.
  • the first aspect of the embodiments of the present application provides a widget processing method.
  • the method includes: an electronic device displays a target icon; a user can perform a first operation on the target icon, and the electronic device receives the first operation on the target icon; In one operation, the electronic device switches the target icon to a widget set, the widget set includes multiple widgets with multiple applications; the electronic device displays the widget set.
  • the target icon corresponds to the multiple application programs, and the multiple application programs respectively correspond to widgets. Therefore, the multiple widgets of the multiple application programs corresponding to the target icon can be determined according to the target icon.
  • the electronic device may switch the target icon to a widget set including multiple widgets.
  • the electronic device receives a long-press operation on the target icon; in response to the long-press operation, the electronic device displays a border on the edge of the target icon, for example, displays and A frame matching the size and shape of the target icon; the electronic device receives a stretching operation on the frame, and in response to the stretching operation, switches the target icon to a widget set.
  • the target icon may be an icon of an application program or an icon of a folder.
  • the aforementioned multiple application programs include one or more application programs associated with the first application program.
  • the first application can be a wallet application, which can be associated with multiple payment applications, and the electronic device can switch the icon of the wallet application to a widget collection.
  • the widget collection includes The multiple widgets are widgets of multiple payment applications associated with the wallet application.
  • the aforementioned multiple application programs may also include a first application program.
  • the above-mentioned multiple application programs may be the first application program and other applications of the same type as the first application program.
  • the widgets of the first application program are also included among the multiple widgets included in the widget set.
  • the categories of the first application include, but are not limited to, payment, entertainment, education, reading, and health.
  • the user can perform a first operation on the icon of the folder displayed by the electronic device to switch the icon of the folder to a widget set.
  • the aforementioned multiple applications are multiple applications included in the folder, and the multiple widgets included in the widget set are widgets of each application in the folder.
  • a folder may include application A and application B.
  • the multiple widgets included in the widget collection are the widgets and applications of application A Widget for program B.
  • the widget collection includes the widgets of multiple applications in the folder, and the widgets of the applications in the folder can be quickly added to the electronic device for the convenience of users Conveniently view or operate the widgets of the applications in the folder, avoiding the tedious process of adding the widgets of the applications in the folder one by one on the electronic device, and saving the user's operation.
  • the electronic device can determine the widgets displayed on the widget collection according to the following methods. For example, the electronic device can determine the widgets displayed on the widget set according to the order in which the widgets are used in the widget set, that is, the display order of the widgets used last time by the user in the widget set is the first, and the user is second from the bottom.
  • the display order of the second-used widget in the widget collection is second, and so on; for another example, an electronic device can determine the widgets displayed on the widget collection according to the frequency of use of the widget, within a certain time range (For example, one day or one week), the display order of the widget with the most frequently used by the user in the widget collection is first, the display order of the widget with the second most frequently used by the user in the widget collection is the second, and so on ; For another example, the electronic device can also determine the widgets displayed on the widget collection according to user-defined settings.
  • the electronic device can change the widgets displayed in the widget collection.
  • the method further includes: the electronic device receives a second operation on the widget collection; in response to the second operation, the electronic device changes the widget collection The widget displayed on the.
  • the second operation may specifically include a sliding operation.
  • the electronic device can sequentially change the widgets displayed on the widget collection; the electronic device can determine the order of multiple widgets included in the widget collection according to usage time, usage frequency, or application type.
  • the electronic device can determine how to change the widgets displayed on the widget collection according to the direction of the sliding operation. Specifically, if the second operation is a sliding operation in the first direction, the electronic device changes the first widget displayed on the widget set to a second widget of the same type as the first widget. It should be noted that the same type of widget A and widget B means that the type of application A corresponding to widget A and application B corresponding to widget B are the same. If the second operation is a sliding operation in the second direction, the electronic device changes the first widget displayed on the widget set to a third widget of a different type from the first widget. When multiple applications are of different types, the user can quickly change the widget to be displayed.
  • the method may further include: the electronic device receives a third operation on the target widget, the target widget being displayed on the widget collection In response to the third operation, the electronic device displays the application program interface corresponding to the target widget.
  • the third operation may specifically be a click operation, that is, in response to a click operation on the target widget displayed on the widget set, the electronic device may display the application program interface corresponding to the target widget.
  • the method may further include: the electronic device receives a fourth operation on the widget collection; in response to the fourth operation, the electronic device switches the widget The collection switches to the target icon.
  • the electronic device receives a long-press gesture operation on the widget collection; in response to the long-press gesture operation, the electronic device displays a border on the edge of the widget collection; the electronic device receives a gesture operation to shrink the border; the electronic device responds to the contraction Gesture operation to switch the widget collection to the target icon.
  • the fourth operation the widget collection can be switched to the target icon.
  • the widget collection that occupies a larger space can be switched to a target icon that occupies a smaller space, thereby saving electronic equipment. The space on the display area.
  • the method may further include: the electronic device receives a fifth operation on the widget set; in response to the fifth operation, the electronic device changes the widget Set the size of the display area, for example, change a widget collection with a smaller display area to a widget collection with a larger display area, or change a widget collection with a larger display area to a widget collection with a smaller display area.
  • a second aspect of the embodiments of the present application provides an electronic device, including: a display screen; a processor; and a memory, the memory is used to store a computer program; the computer program includes instructions, when the instructions are executed by the processor , The electronic device is caused to perform the following steps: the electronic device displays the target icon; the user can perform a first operation on the target icon, and the electronic device receives the first operation on the target icon; in response to the first operation, the electronic device displays the target icon Switch to a widget set, which includes multiple widgets with multiple applications; the electronic device displays the widget set.
  • the target icon corresponds to the multiple application programs, and the multiple application programs respectively correspond to widgets. Therefore, the multiple widgets of the multiple application programs corresponding to the target icon can be determined according to the target icon. In other words, when the target icon corresponds to multiple widgets, the electronic device may switch the target icon to a widget set including multiple widgets.
  • the electronic device receives a long-press operation on the target icon; in response to the long-press operation, the electronic device displays a border on the edge of the target icon, for example, displays and A frame matching the size and shape of the target icon; the electronic device receives a stretching operation on the frame, and in response to the stretching operation, switches the target icon to a widget set.
  • the target icon may be an icon of an application program or an icon of a folder.
  • the electronic device switches the icon of the first application to the widget set.
  • the aforementioned multiple application programs include one or more application programs associated with the first application program.
  • the first application can be a wallet application, which can be associated with multiple payment applications, and the electronic device can switch the icon of the wallet application to a widget collection.
  • the widget collection includes The multiple widgets are widgets of multiple payment applications associated with the wallet application.
  • the aforementioned multiple application programs may also include a first application program.
  • the above-mentioned multiple application programs may be the first application program and other applications of the same type as the first application program. That is, the widgets of the first application program are also included among the multiple widgets included in the widget set.
  • the categories of the first application include, but are not limited to, payment, entertainment, education, reading, and health.
  • the electronic device switches the icon of the folder to the widget set.
  • the aforementioned multiple applications are multiple applications included in the folder
  • the multiple widgets included in the widget set are widgets of each application in the folder.
  • a folder may include application A and application B.
  • the multiple widgets included in the widget collection are the widgets and applications of application A Widget for program B.
  • the electronic device can determine the widgets displayed on the widget collection according to the following methods. For example, the electronic device can determine the widgets displayed on the widget set according to the order in which the widgets are used in the widget set, that is, the display order of the widgets used last time by the user in the widget set is the first, and the user is second from the bottom.
  • the display order of the second-used widget in the widget collection is second, and so on; for another example, an electronic device can determine the widgets displayed on the widget collection according to the frequency of use of the widget, within a certain time range (For example, one day or one week), the display order of the widget with the most frequently used by the user in the widget collection is first, the display order of the widget with the second most frequently used by the user in the widget collection is the second, and so on ; For another example, the electronic device can also determine the widgets displayed on the widget collection according to user-defined settings.
  • the electronic device may also execute the following steps: the electronic device may change the widgets displayed in the widget set.
  • the method further includes: the electronic device receives a second operation on the widget collection; in response to the second operation, the electronic device changes the widget collection The widget displayed on the.
  • the second operation may specifically include a sliding operation.
  • the electronic device can sequentially change the widgets displayed on the widget collection in order; the electronic device can determine the order of the multiple widgets included in the widget collection according to the frequency of use, type, and so on.
  • the electronic device may also be caused to perform the following steps: the electronic device may determine how to change the widgets displayed on the widget set according to the direction of the sliding operation. Specifically, if the second operation is a sliding operation in the first direction, the electronic device changes the first widget displayed on the widget set to a second widget of the same type as the first widget. It should be noted that the same type of widget A and widget B means that the type of application A corresponding to widget A and application B corresponding to widget B are the same. If the second operation is a sliding operation in the second direction, the electronic device changes the first widget displayed on the widget set to a third widget of a different type from the first widget. When multiple applications are of different types, the user can quickly change the widget to be displayed.
  • the electronic device when the instructions are executed by the processor, the electronic device may also be caused to perform the following steps: after the electronic device switches the target icon to a widget set, the electronic device receives In the third operation of the widget, the target widget is a widget displayed on the widget set; in response to the third operation, the electronic device displays an application program interface corresponding to the target widget.
  • the third operation may specifically be a click operation, that is, in response to a click operation on the target widget displayed on the widget set, the electronic device may display the application program interface corresponding to the target widget.
  • the electronic device when the instruction is executed by the processor, the electronic device may also be caused to perform the following steps: after the electronic device switches the target icon to a widget set, the electronic device receives The fourth operation of the collection; in response to the fourth operation, the electronic device switches the widget collection to the target icon. Specifically, the electronic device receives a long-press gesture operation on the widget collection; in response to the long-press gesture operation, the electronic device displays a border on the edge of the widget collection; the electronic device receives a gesture operation to shrink the border; the electronic device responds to the contraction Gesture operation to switch the widget collection to the target icon.
  • the electronic device when the instruction is executed by the processor, the electronic device may also be caused to perform the following steps: after the electronic device switches the target icon to a widget set, the electronic device receives The fifth operation of the collection; in response to the fifth operation, the electronic device changes the size of the widget collection display area, such as changing a widget collection with a smaller display area to a widget collection with a larger display area, or changing the display area to a larger display area The widget collection of is changed to a widget collection with a smaller display area.
  • a third aspect of the embodiments of the present application provides a computer program product containing instructions, which when the instructions run on a computer, cause the computer to execute the method described in any one of the first aspects.
  • a fourth aspect of the embodiments of the present application provides a computer-readable storage medium, including computer program instructions, which when the computer program instructions run on a computer, cause the computer to execute the method described in any one of the first aspect.
  • the electronic equipment described in the second aspect, the computer program product described in the third aspect, and the computer-readable storage medium described in the fourth aspect provided above are all used to execute the corresponding Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, which will not be repeated here.
  • FIG. 1 is a schematic structural diagram of an electronic device provided by an embodiment of this application.
  • FIG. 2 is a schematic flowchart of a widget processing method provided by an embodiment of this application.
  • FIG. 3 is a schematic diagram of a set of display interfaces provided by an embodiment of the application.
  • FIG. 4 is a schematic diagram of another set of display interfaces provided by an embodiment of the application.
  • FIG. 5 is a schematic diagram of another set of display interfaces provided by an embodiment of the application.
  • FIG. 6 is a schematic diagram of another set of display interfaces provided by an embodiment of the application.
  • FIG. 7 is a schematic diagram of another set of display interfaces provided by an embodiment of the application.
  • FIG. 8 is a schematic diagram of another set of display interfaces provided by an embodiment of the application.
  • FIG. 9 is a schematic diagram of another set of display interfaces provided by an embodiment of the application.
  • FIG. 10 is a schematic diagram of another set of display interfaces provided by an embodiment of the application.
  • FIG. 11 is a schematic diagram of another set of display interfaces provided by an embodiment of the application.
  • FIG. 12 is a schematic diagram of another set of display interfaces provided by an embodiment of the application.
  • FIG. 13 is a schematic diagram of another set of display interfaces provided by an embodiment of the application.
  • FIG. 14 is a schematic diagram of another set of display interfaces provided by an embodiment of the application.
  • 15 is a schematic diagram of another set of display interfaces provided by an embodiment of the application.
  • FIG. 16 is a schematic diagram of another set of display interfaces provided by an embodiment of the application.
  • FIG. 17 is a schematic diagram of another set of display interfaces provided by an embodiment of the application.
  • FIG. 18 is a schematic diagram of another set of display interfaces provided by an embodiment of the application.
  • FIG. 19 is a schematic flowchart of another example of a widget processing method provided by an embodiment of this application.
  • first and second are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined with “first” and “second” may explicitly or implicitly include one or more of these features. In the description of the present embodiment, unless otherwise specified, “plurality” means two or more.
  • electronic devices may include mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (AR)/virtual reality (VR) devices, notebook computers, ultra-mobile personal computers (ultra-mobile personal computers). , UMPC), netbooks, personal digital assistants (personal digital assistant, PDA) and other equipment.
  • AR augmented reality
  • VR virtual reality
  • PDA personal digital assistant
  • FIG. 1 shows a block diagram of a part of the structure of a mobile phone 100 related to an embodiment of the present application.
  • the mobile phone 100 includes a radio frequency (RF) circuit 110, a memory 120, other input devices 130, a display screen 140, a sensor 150, an audio circuit 160, an I/O subsystem 170, a processor 180, and a power supply 190 and other parts.
  • RF radio frequency
  • the structure of the mobile phone shown in FIG. 1 does not constitute a limitation on the mobile phone, and may include more or fewer components than those shown in the figure, or combine certain components, or split certain components, or Different component arrangements.
  • the display screen 140 belongs to a user interface (UI), and the mobile phone 100 may include a user interface that is less than that shown or less.
  • UI user interface
  • the RF circuit 110 can be used for receiving and sending signals during information transmission or communication. In particular, after receiving the downlink information of the base station, it is processed by the processor 180; in addition, the designed uplink data is sent to the base station.
  • the RF circuit includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (LNA), a duplexer, and the like.
  • the RF circuit 110 can also communicate with the network and other devices through wireless communication.
  • the wireless communication can use any communication standard or protocol, including but not limited to global system of mobile communication (GSM), general packet radio service (GPRS), code division multiple access (code division multiple access) multiple access, CDMA), wideband code division multiple access (WCDMA), long term evolution (LTE), email, short messaging service (SMS), etc.
  • GSM global system of mobile communication
  • GPRS general packet radio service
  • code division multiple access code division multiple access
  • CDMA code division multiple access
  • WCDMA wideband code division multiple access
  • LTE long term evolution
  • email short messaging service
  • the memory 120 may be used to store software programs and modules.
  • the processor 180 executes various functional applications and data processing of the mobile phone 100 by running the software programs and modules stored in the memory 120.
  • the memory 120 may mainly include a storage program area and a storage data area.
  • the storage program area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.;
  • the storage data area may store Data (such as audio data, phone book, etc.) created according to the use of the mobile phone 100, etc.
  • the memory 120 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the other input device 130 may be used to receive inputted numeric or character information, and generate key signal input related to user settings and function control of the mobile phone 100.
  • other input devices 130 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, optical mice (optical mice are touch sensitive that do not display visual output). A surface, or an extension of a touch-sensitive surface formed by a touch screen).
  • the other input device 130 is connected to the other input device controller 171 of the I/O subsystem 170, and performs signal interaction with the processor 180 under the control of the other device input controller 171.
  • the display screen 140 can be used to display information input by the user or information provided to the user and various menus of the mobile phone 100, and can also accept user input.
  • the specific display screen 140 may include a display panel 141 and a touch panel 142.
  • the display panel 141 may be configured with the display panel 141 in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
  • the touch panel 142 also known as a touch screen, a touch-sensitive screen, etc., can collect user contact or non-contact operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 142
  • the operations near the touch panel 142 may also include somatosensory operations; the operations include single-point control operations, multi-point control operations and other types of operations.), and drive the corresponding connection device according to a preset program.
  • the touch panel 142 may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the user's touch position and posture, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device and converts it into a processor capable of The processed information is then sent to the processor 180, and can receive and execute commands from the processor 180.
  • the touch panel 142 can be realized by various types such as resistive, capacitive, infrared, and surface acoustic wave, or any technology developed in the future can be adopted to realize the touch panel 142.
  • the touch panel 142 can cover the display panel 141, and the user can display content on the display panel 141 according to the content displayed on the display panel 141 (the display content includes, but is not limited to, soft keyboard, virtual mouse, virtual keys, icons, etc.)
  • the touch panel 142 detects a touch operation on or near it, it is transmitted to the processor 180 through the I/O subsystem 170 to determine the type of touch event to determine the user
  • the processor 180 provides corresponding visual output on the display panel 141 through the I/O subsystem 170 according to the user input on the display panel according to the type of the touch event.
  • the touch panel 142 and the display panel 141 are used as two independent components to implement the input and input functions of the mobile phone 100, in some embodiments, the touch panel 142 and the display panel 141 may be integrated The input and output functions of the mobile phone 100 are realized.
  • the mobile phone 100 may also include at least one sensor 150, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor can include an ambient light sensor and a proximity sensor.
  • the ambient light sensor can adjust the brightness of the display panel 141 according to the brightness of the ambient light.
  • the proximity sensor can close the display panel 141 and the display panel 141 when the mobile phone 100 is moved to the ear. / Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three-axis), and can detect the magnitude and direction of gravity when it is stationary.
  • mobile phone posture applications such as horizontal and vertical screen switching, related Games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, percussion), etc.; as for the gyroscope, barometer, hygrometer, thermometer, infrared sensor and other sensors that can be configured in the mobile phone 100, here is not Go into details again.
  • the audio circuit 160, the speaker 161, and the microphone 162 can provide an audio interface between the user and the mobile phone 100.
  • the audio circuit 160 can transmit the converted signal of the received audio data to the speaker 161, which is converted into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into a signal, which is received by the audio circuit 160
  • the audio data is converted into audio data, and then the audio data is output to the RF circuit 108 to be sent to, for example, another mobile phone, or the audio data is output to the memory 120 for further processing.
  • the I/O subsystem 170 is used to control input and output external devices, and may include other device input controllers 171, sensor controllers 172, and display controllers 173.
  • one or more other input control device controllers 171 receive signals from other input devices 130 and/or send signals to other input devices 130, and other input devices 130 may include physical buttons (press buttons, rocker buttons, etc.) , Dial, slide switch, joystick, click wheel, optical mouse (optical mouse is a touch-sensitive surface that does not display visual output, or an extension of the touch-sensitive surface formed by a touch screen).
  • the other input control device controller 171 may be connected to any one or more of the above-mentioned devices.
  • the display controller 173 in the I/O subsystem 170 receives signals from the display screen 140 and/or sends signals to the display screen 140. After the display screen 140 detects the user input, the display controller 173 converts the detected user input into an interaction with a user interface object displayed on the display screen 140, that is, a human-computer interaction is realized.
  • the sensor controller 172 may receive signals from one or more sensors 150 and/or send signals to one or more sensors 150.
  • the processor 180 is the control center of the mobile phone 100. It uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and/or modules stored in the memory 120, and calling data stored in the memory 120, Perform various functions of the mobile phone 100 and process data, so as to monitor the mobile phone as a whole.
  • the processor 180 may include one or more processing units; preferably, the processor 180 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, application programs, etc. , The modem processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 180.
  • the mobile phone 100 also includes a power source 190 (such as a battery) for supplying power to various components.
  • a power source 190 such as a battery
  • the power source may be logically connected to the processor 180 through a power management system, so that functions such as charging, discharging, and power consumption can be managed through the power management system.
  • the mobile phone 100 may also include a camera, a Bluetooth module, etc., which will not be repeated here.
  • the embodiment of the present application provides a widget processing method.
  • the target icon By operating the target icon on the desktop of the electronic device, the target icon can be switched to a widget, so that the widget can be quickly added on the desktop of the electronic device.
  • the operation is simple and quick.
  • the target icon when the target icon corresponds to multiple widgets, by operating the target icon, the target icon can be switched to a widget set that includes multiple widgets, so that multiple different widgets can be added to the desktop of the electronic device. Widgets.
  • FIG. 2 is a schematic flowchart of a widget processing method provided by an embodiment of the application. As shown in Figure 2, the widget processing method may include:
  • the mobile phone receives operation 1 on the target icon.
  • operation 1 is used to switch the target icon to a widget.
  • Operation 1 may be a preset gesture operation or voice command input by the user. The embodiment of the present application does not limit operation 1.
  • the target icon includes an icon of an application program or an icon of a folder, etc., which can be set on the desktop of the mobile phone and used as a shortcut to enter the application or folder; the target icon can also be an icon on another interface, such as a target.
  • the icon may also include a button icon on the control center interface, which is used as a shortcut to start a certain function.
  • the embodiment of the present application does not limit the target icon.
  • the target icon may be an icon of an application program on the mobile phone desktop
  • the preset gesture input by the user may be a long-press gesture operation and a stretching gesture operation.
  • the icon of the application "wallet” hereinafter referred to as the wallet icon
  • the mobile phone receives the user's long press on the wallet icon Gesture operation
  • the mobile phone displays a frame around the wallet icon in response to the user's long-press gesture operation on the wallet icon, and the frame is used to instruct the user to stretch the frame.
  • the user can click on the frame around the wallet icon and stretch the frame.
  • the mobile phone receives the user's stretching gesture operation for the frame around the wallet icon, that is, the mobile phone receives operation 1 for the wallet icon.
  • the voice command input by the user may be a voice directed to the target icon.
  • the user can input the voice "switch wallet icon to widget collection".
  • the mobile phone receives the voice input by the user through the microphone, the mobile phone receives operation 1 for the wallet icon.
  • the mobile phone switches the target icon to a widget.
  • the target icon corresponds to a widget
  • the target icon is switched to a widget.
  • the target icon When the target icon corresponds to multiple widgets, the target icon can be switched to a widget set.
  • the widget set includes multiple widgets, and the multiple widgets are widgets corresponding to multiple applications.
  • the widget may refer to a miniature application view embedded on the desktop of the mobile phone, and the widget may also refer to other miniature windows containing application information, such as cards, embedded on the display interface of the mobile phone.
  • the widget is a display mode for displaying application information on the display interface of the mobile phone, and the widget may also be other display modes.
  • the embodiment of the present application does not limit the specific display mode of the widget.
  • the mobile phone responds to the operation 1 and switches the target icon on the desktop to the widget set.
  • the widget collection includes a plurality of different widgets, and the mobile phone can display one or more widgets in the widget collection in the display area occupied by the widget collection.
  • the wallet icon is associated with the "Alipay Payment Code” widget and the "WeChat Payment Code” widget, and the mobile phone responds to the user's operation 1 on the wallet icon and turns the wallet icon Switch to a widget collection that includes the "Alipay Payment Code” widget and the "WeChat Payment Code” widget.
  • the implementation of the mobile phone switching the target icon to the widget set includes but is not limited to: after the mobile phone receives operation 1, the desktop process on the mobile phone determines the multiple widgets associated with the application corresponding to the target icon.
  • Widgets bind multiple widgets to the AppWidgetHost container, so as to display a collection of widgets on the desktop.
  • the AppWidgetHost container is used to accommodate widgets and display the widgets in the container on the desktop.
  • the stacking of multiple widgets in the widget collection can be achieved through a top-to-bottom stacking scheme.
  • the mobile phone can display one widget in the widget set in the display area occupied by the widget set. For example, as shown in (c) of Figure 3, the mobile phone displays the "Alipay Payment Code” widget in the widget set in the display area of the widget set.
  • the mobile phone can also display multiple widgets in the widget collection in the display area occupied by the widget collection. For example, as shown in (e) in Figure 3, the mobile phone displays the "Alipay Payment Code” widget and the "WeChat Payment Code” widget in the widget collection in the display area of the widget collection.
  • the mobile phone may receive operation 2 for the target widget, and the target widget may be a widget in the widget set.
  • the mobile phone enters the application program interface corresponding to the target widget. That is, operation 2 is used to display the application program interface corresponding to the target widget.
  • Operation 2 may be a preset gesture operation or voice command input by the user.
  • the preset gesture input by the user may be any one of a tap gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double press gesture, and a double tap gesture.
  • the preset gesture input by the user may be a tap gesture.
  • operation 2 is displayed, as shown in Figure 3(d), the mobile phone enters the "Alipay Payment Code”
  • the payment interface corresponding to the widget that is, displays the corresponding payment code in the application "Alipay” in the form of a QR code.
  • it responds to operation 2 of the user clicking the "WeChat payment code” widget displayed in the widget set.
  • the mobile phone enters the payment interface corresponding to the "WeChat payment code” widget, that is, displays the corresponding payment code in the application "WeChat” in the form of a QR code.
  • the mobile phone receives operation 1 to switch the wallet icon to a widget collection that includes multiple widgets, which can quickly and easily add multiple widgets on the mobile phone desktop so that the user can use the desktop Operate the widget and quickly enter the corresponding application program interface.
  • the widget collection may not be able to simultaneously display all the widgets in the widget collection on the mobile phone desktop at the same time.
  • the mobile phone can change the widgets displayed in the widget collection in response to the user's operation 3 on the widget collection. That is, operation 3 is used to change the widgets displayed on the widget collection.
  • the user can click on the switched "WeChat payment code” widget on the widget collection to enter the corresponding payment interface.
  • the mobile phone enters the payment interface corresponding to the "WeChat payment code” widget in response to the user's click operation on the "WeChat payment code” widget in the widget collection.
  • the mobile phone changes the widgets displayed on the widget collection, including but not limited to: in response to the user sliding the top-level widget to the right, the most displayed widget is displayed. The animation effect of the upper level widget sliding out, and the next application widget is displayed to the top level.
  • the operation 3 is a rightward sliding operation as an example for description. It is understandable that the embodiment of the present application does not limit the operation 3.
  • operation 3 may be an up-slide operation or a down-slide operation as shown in (a) in FIG. 5, or as shown in (b) in FIG. 5
  • the mobile phone can display a virtual button for changing the widgets displayed on the widget collection, then operation 3 can be to click the above virtual button, and the display position of the virtual button can be different.
  • the display position of the virtual button can be as shown in the figure.
  • the upper and lower sides of the widget collection shown in (d) in Figure 5, or the left and right sides of the widget collection shown in Figure 5 (e), or the widgets shown in Figure 5 (f) Both sides of the diagonal corners of the collection.
  • the mobile phone can switch the target icon to a collection of widgets of different sizes according to different operations of the user on the target icon.
  • the mobile phone can determine the area of the widget set according to operation 1, that is, determine the size of the display area in the widget set.
  • the mobile phone can switch the target icon to a widget collection of a preset size according to the determined area of the widget collection.
  • the mobile phone After the user performs a long-press operation on the wallet icon, the mobile phone generates a size similar to the wallet icon around the wallet icon in response to the user's long-press operation on the wallet icon , A border with matching shapes, one or more small dots can be displayed on the four sides of the border, which is used to prompt the user to press and hold the dot to stretch the border.
  • the phone when the user presses and holds the dot on the frame of the wallet icon to stretch the frame, the phone can respond to the user's stretching operation on the frame and display it on the phone desktop The animation process of the frame being stretched.
  • the mobile phone After the user stops stretching the border, that is, after the user releases the border, the mobile phone can detect the user's stretched border area. When the border area meets the preset conditions, the mobile phone will switch the wallet icon to a corresponding size micro Pieces collection.
  • the frame obtained by the user after stretching is a square frame with a small area.
  • the mobile phone when the mobile phone detects that the area of the stretched frame reaches the first threshold, the mobile phone switches the wallet icon to "2 ⁇ 2" (the area unit of a single application icon is 1, that is, The area of the application icon is a “1 ⁇ 1”) size widget collection, and the “2 ⁇ 2” size widget collection can display one widget.
  • the frame obtained by the user after stretching is a rectangular frame with a larger area.
  • the mobile phone detects that the stretched frame area reaches the second threshold, the mobile phone switches the wallet icon to a widget set of "4 ⁇ 2" size, which is "4 ⁇ 2"
  • a collection of large and small widgets can display two widgets at the same time.
  • the first threshold and the second threshold may be preset values. For example, if the area corresponding to a single application icon on the mobile phone desktop is 1, the first threshold can be 4 and the second threshold can be 8.
  • multiple thresholds may be preset on the mobile phone, and when the stretched frame area reaches the corresponding threshold, the mobile phone can switch the target icon to a widget set of the corresponding size under the threshold. For example, when the stretched frame area reaches 6, the phone can switch the target icon to a widget set of "2 ⁇ 3" or "3 ⁇ 2"; when the stretched frame area reaches 12, the phone can Switch the target icon to a widget collection of "4 ⁇ 3" or "3 ⁇ 4" size.
  • the embodiment of the present application does not limit the size and quantity of the threshold.
  • the mobile phone can determine the area corresponding to the frame obtained after stretching, so as to determine the size of the widget collection according to the area of the frame, so that the mobile phone can set the target The icon switches to a collection of widgets with a preset size.
  • the mobile phone can determine the area and aspect ratio of the widget collection (that is, the ratio of the length to the width of the widget collection) according to the operation 1.
  • the mobile phone can switch the target icon to a widget collection of preset size according to the determined area and aspect ratio of the widget collection.
  • the mobile phone determines that the area of the widget collection is 6, and the aspect ratio is 3/2, that is, The mobile phone can switch the target icon to a "3 ⁇ 2" size widget collection.
  • the mobile phone determines that the area of the widget collection is 8 and the aspect ratio is 4/2, that is, the mobile phone can switch the target icon to "4 ⁇ 2" A collection of small and large widgets.
  • the mobile phone can determine the area and aspect ratio of the frame obtained after stretching.
  • the phone switches the target icon to a collection of widgets with a preset size.
  • the user may need to switch the widget collection back to the icon.
  • the user may need to switch the widget collection to occupy a smaller space because the widget collection occupies a large space on the mobile desktop and the space on the mobile desktop is insufficient.
  • the icon of the space for another example, when the user's frequency of using widgets in the widget collection decreases, the user may also need to switch the widget collection to icons to ensure the beauty of the mobile desktop.
  • the user can perform operation 4 on the widget collection, and in response to the above operation 4, the mobile phone switches the widget collection to the target icon. That is, operation 4 is used to switch the widget collection to the target icon.
  • the operation 4 for switching the widget set to an icon may be a long-press gesture operation and a contraction gesture operation.
  • the user performs a long-press operation on the widget collection on the mobile phone desktop, and the mobile phone receives the user's long-press operation for the widget collection; as shown in Figure 7 (b)
  • the mobile phone in response to the user’s long-press operation on the widget collection, the mobile phone generates a frame around the widget collection that matches the size and shape of the widget collection.
  • One or more borders can be displayed on the four sides of the frame.
  • a small dot is used to prompt the user to press and hold the dot to control the size of the border; the user can control the border to shrink to the lower left corner by holding down the dot on the border, and the phone can receive the user's shrinking operation for the widget collection As shown in (c) in Figure 7, the mobile phone switches the widget collection to a wallet icon in response to the user's contraction operation for the widget collection.
  • the operation 4 for switching the widget set to an icon may be a long-press gesture operation and a two-finger pinch gesture operation.
  • the user performs a long-press operation on the widget collection on the mobile phone desktop, and the mobile phone can receive the user's long-press operation for the widget collection;
  • Figure 8 (b) As shown, the mobile phone responds to the user's long-press operation on the widget collection, and generates a frame around the widget collection that matches the size and shape of the widget collection to prompt the user to change the shape of the widget collection ;
  • the user performs a pinch and pinch inward operation on the widget collection, and the mobile phone can receive the user's pinch gesture operation for the widget collection; as shown in Figure 8 (c), the mobile phone responds to the user's In the shrinking operation of the widget collection, the widget collection is switched to the wallet icon.
  • the user may need to change the size of the widget collection display area. For example, when the widget collection occupies a large space on the mobile desktop, the user may need to change the widget collection to a smaller shape; for example, in the widget When the collection can display fewer widgets, the user may need to change the widget collection to a larger shape.
  • the user can perform operation 5 on the widget collection
  • the mobile phone receives the user's operation 5 on the widget collection
  • the mobile phone will change the size of the widget collection display area, for example, change a smaller widget collection to a smaller widget collection.
  • operation 5 is used to change the size of the widget collection display area.
  • the operation 5 for changing the size of the widget collection may be a long-press gesture operation and a contraction gesture operation.
  • the user performs a long-press operation on the widget collection on the desktop of the mobile phone, and the mobile phone can receive the user's long-press operation for the widget collection.
  • the mobile phone in response to the user’s long-press operation on the widget collection, the mobile phone generates a frame around the widget collection that matches the size and shape of the widget collection; the user presses The dot on the border controls the border to shrink to the left and shrinks the border to a size that can display a widget.
  • the mobile phone can receive the user's shrinking operation for the widget collection.
  • the mobile phone responds to the user's shrinking operation for the widget collection and changes the widget collection with the original size of "4 ⁇ 2" to the widget collection with the size of "2 ⁇ 2" .
  • the user can continue to shrink the widget collection after being reduced, and the mobile phone can receive the user's contraction operation for the widget collection after the reduction.
  • the mobile phone switches the widget set to a wallet icon in response to the user's shrinking operation for the smaller widget set.
  • the wallet icon is used as an example in the above example for description, but the icon that can be switched to the widget collection is not limited to this, and it can be the icon of any type of application, such as an application for playing music or It is an icon corresponding to an application such as an application used for communication.
  • the icon of the application "Music” (hereinafter referred to as the music icon) is displayed on the desktop of the mobile phone.
  • the music icon is associated with the "Music 1" widget and "Music 2".
  • the widget has a corresponding relationship.
  • the mobile phone switches the music icon to the widget set shown in (c) in Figure 10, and the widget set displays the "Music 1" widget and "Music 2".
  • “Widget.” For the specific handover process, reference may be made to the corresponding descriptions from (a) in FIG. 3 to (c) in FIG.
  • the mobile phone in the process of switching the target icon to the widget collection, the mobile phone often needs to first determine multiple widgets in the widget collection.
  • the mobile phone may automatically determine multiple widgets corresponding to the widget set according to the target icon, or the mobile phone may also determine multiple widgets corresponding to the widget set according to user settings.
  • the mobile phone automatically determines the multiple widgets corresponding to the target icon, including but not limited to the following methods:
  • a wallet icon is displayed on the desktop of the mobile phone.
  • the application “Wallet” corresponding to the wallet icon is associated with the application “Alipay” and the application “WeChat”.
  • the application “Alipay” has the “Alipay Payment Code” widget.
  • the program “WeChat” has a “WeChat Payment Code” widget, and the “Alipay Payment Code” widget and the “WeChat Payment Code” widget associated with the application "Wallet” can be determined based on the wallet icon.
  • the target icon is an application icon
  • the mobile phone can determine other multiple applications associated with the application according to the application corresponding to the target icon, and then determine multiple widgets corresponding to the other multiple applications ,
  • the multiple widgets are the widgets corresponding to the widget set.
  • a folder icon is displayed on the desktop of the mobile phone.
  • the folder includes the application “Alipay” and the application “WeChat”, and the application “Alipay” has the “Alipay payment code” widget, and the application “WeChat” Has a “WeChat payment code” widget.
  • the "Alipay Payment Code” widget and the "WeChat Payment Code” widget corresponding to the application in the folder can be determined according to the folder icon.
  • the mobile phone first determines which applications the folder includes, and then determines the widgets corresponding to each application included in the folder to determine the number of widgets corresponding to the widget set. Widgets.
  • a wallet icon is displayed on the mobile phone desktop, and the applications “WeChat” and “Alipay” are installed on the phone.
  • the phone can determine the same type of applications “WeChat” and “Alipay” as the application “Wallet” based on the wallet icon ", and then determine the "Alipay Payment Code” widget and the "WeChat Payment Code” widget corresponding to the wallet icon; or, the music icon is displayed on the mobile phone desktop, and the apps “Music 1" and “Music 2" are installed on the mobile phone.
  • the mobile phone can determine the application “Music 1” and “Music 2" of the same type as the application “Music” according to the music icon, and then determine the "Music 1” and “Music 2” widgets corresponding to the music icon.
  • the mobile phone when the target icon is an application icon, the mobile phone first determines the type of application corresponding to the target icon (such as payment type, music type, or game type), and then determines the application in the mobile phone with the target icon For other applications of the same type, multiple widgets corresponding to the other applications are finally determined, and the multiple widgets are the widgets corresponding to the widget set.
  • the type of application corresponding to the target icon such as payment type, music type, or game type
  • the mobile phone can determine multiple widgets corresponding to the widget set according to the user's settings, including but not limited to the following methods:
  • the user clicks on the wallet icon, and the mobile phone receives the user’s click on the wallet icon; as shown in Figure 11 (b), the mobile phone enters the application in response to the user’s click on the wallet icon.
  • the user can click the payment code component in the homepage interface; as shown in Figure 11 (c), the mobile phone responds to the user's click operation on the payment code component and enters the payment code
  • the payment code interface can display the payment code associated with the application "wallet”, and the user can click the setting component in the payment code interface; as shown in Figure 11 (d), the mobile phone responds to the user’s The click operation of the setting component in the payment code interface enters the payment code setting interface.
  • the payment code setting interface displays the widget-associated setting component, and the user can click the widget-associated setting component; as shown in Figure 11
  • the mobile phone responds to the user's click operation on the widget association setting component in the payment code setting interface, and enters the widget association setting interface.
  • the widget association setting interface can display the micro-widgets that can be associated with the application "wallet”. Widgets, such as the "WeChat Payment Code” widget and the "Alipay Payment Code” widget, the user can click on the select all widgets in the widget association setting interface to choose to associate all the widgets in the current widget association setting interface to implement the application The association between the program "wallet” and the "WeChat payment code” widget and the "Alipay payment code” widget.
  • the mobile phone can determine the “WeChat Payment Code” widget and the "Wallet” corresponding to the wallet icon.
  • the "Alipay Payment Code” widget, the “WeChat Payment Code” widget and the “Alipay Payment Code” widget are the widgets that have a corresponding relationship with the wallet icon.
  • the user can set the application corresponding to the target icon on the mobile phone to associate with the widgets of other applications. In this way, multiple widgets associated with the application corresponding to the target icon are corresponding to the widget set. Of multiple widgets.
  • the widgets in the widget set can display one or more widgets, and the user can operate the widgets on the widget.
  • the mobile phone responds to the user's operations on the widgets and enters the widget corresponding to the widget.
  • the "Music 2" widget in the widget collection on the mobile desktop displays a playback component.
  • the playback component is a triangular-shaped virtual button. Click operation; as shown in Figure 12 (b), the mobile phone enters the music playback interface in the application "Music 2" in response to the user's click operation of the playback component on the "Music 2" widget.
  • the "Music 1" widget in the widget collection on the mobile desktop displays a playback component, and the user can click on the playback component; (d) in Figure 12 As shown in ), the mobile phone enters the music playing interface in the application "Music 1" in response to the user's click operation on the playback component on the "Music 1" widget.
  • the "Music 2" widget in the widget collection on the mobile desktop displays a playback component.
  • the user can click on the playback component.
  • the mobile phone responds to the user's response to the "Music 2" widget. 2"
  • the click operation of the playback component on the widget the mobile phone plays the music in the application "Music 2", which realizes the music playback function in Music 2.
  • the widgets in the widget set can display one or more components, and the user can operate on areas other than the displayed components on the widget. 2.
  • the mobile phone responds to the user’s targeting of the widget on the widget. Operation 2 in the area of the widget, enter the main interface of the application corresponding to the widget.
  • the "Music 2" widget in the widget collection on the desktop of the mobile phone displays a playback component, and the user can select the area outside the playback component on the "Music 2" widget ( It can also be called the waste heat zone) to perform a click operation; as shown in Figure 13(b), the mobile phone responds to the user's click operation on the waste heat zone on the "Music 2" widget to enter the main application "Music 2" interface.
  • the "Music 1" widget in the widget collection on the desktop of the mobile phone displays the playback component, and the area outside the playback component on the "Music 1" widget is the waste heat area ,
  • the user can click the waste heat area on the "Music 1" widget; as shown in Figure 13 (d), the mobile phone responds to the user's click operation on the waste heat area on the "Music 1" widget and enters the application The main interface in "Music 1".
  • operation 2 may specifically be used to trigger entry into the application program interface corresponding to the target widget.
  • the target icon is an application program icon as an example for description.
  • the icons that can be switched to the widget set are not limited to this.
  • the target icon may also be an icon of a folder including multiple applications.
  • the desktop of the mobile phone includes a payment folder, and the user can click on the payment folder to enter the payment folder; or, the user can also lengthen the payment folder. After pressing the operation, stretch the payment folder to switch the payment folder icon to a widget collection.
  • the mobile phone can receive the user's click operation for the payment folder, and the mobile phone responds to the user's click operation and enters the payment folder interface , Displays the applications included in the payment folder, such as Alipay application and WeChat application.
  • the user can perform a long-press operation on the payment folder. The mobile phone receives the user’s long-press operation for the payment folder.
  • the mobile phone responds to the user’s long-press operation and clicks on the payment folder icon.
  • a border that matches the size and size of the payment folder icon is displayed around it to instruct the user to stretch the payment folder icon.
  • the user can stretch the frame on the payment folder icon.
  • the mobile phone receives the user's stretching operation for the payment folder icon.
  • the mobile phone responds to the user's stretching operation.
  • the payment folder icon switches to a widget collection, which includes the "WeChat Payment Code" widget and the "Alipay Payment Code” widget, and the widget collection displays the "WeChat Payment Code” widget; as shown in Figure 14.
  • the user can further stretch the widget collection.
  • the mobile phone receives the user's stretch operation for the widget collection, and the mobile phone responds to the user's stretching operation and changes the widget collection to a new Widget collection.
  • the new widget collection has a larger display area, which can display both the "WeChat payment code” widget and the "Alipay payment code” widget.
  • the folder may include multiple applications of the same type.
  • the payment folder includes two payment applications, Alipay and WeChat.
  • the folder may also include multiple applications of different types.
  • the desktop of the mobile phone includes a folder
  • the folder is named by the user as a frequently used folder
  • the frequently used folder includes applications frequently used by the user.
  • the mobile phone responds to the user's click operation and enters the frequently used folder interface to display the applications included in the frequently used folder, namely Alipay Application, WeChat application, application "Music 1" and application “Music 2", of which Alipay application and WeChat application are payment applications, application "Music 1" and application "Music 2" It is a music application.
  • the user can perform a long-press operation on the frequently-used folder.
  • the mobile phone displays a size and size corresponding to the frequently-used folder icon on the periphery of the icon Matching borders to instruct users to stretch frequently used folder icons.
  • the user can stretch the frame on the icon of the frequently used folder, and the mobile phone will switch the icon of the frequently used folder to the widget collection in response to the user's stretching operation.
  • the "WeChat payment code” widget and the "Alipay payment code” widget are displayed; as shown in Figure 15 (d), the user can slide and page the widget collection, and the mobile phone responds to the user’s request for the widget collection. Slide the page to change the widgets displayed in the widget collection, that is, change the "WeChat Payment Code” and "Alipay Payment Code” widgets displayed in the widget collection to "Music 1" and “Music” 2" widget.
  • the user when the folder contains multiple different types of applications, the user can perform the above operation 3 for the widget collection, and the mobile phone changes the widget in response to the user's operation 3 for the widget collection.
  • operation 3 can be used to change the widgets displayed in the widget collection. Specifically, reference may be made to the descriptions corresponding to (a) to (f) in FIG. 5, which will not be repeated here.
  • the user when multiple applications of different types are included in the folder, the user can also perform different operations 6 on the widget collection, thereby changing the types of widgets displayed on the widget collection. . That is to say, the mobile phone can receive the user's different operations 6 for the widget collection. The mobile phone responds to the user's different operations 6 for the widget collection, and changes the widgets displayed on the widget collection. The changed widgets The type of has a corresponding relationship with the gesture operation. Among them, operation 6 is used to change the category of the widget displayed in the widget collection.
  • the widget collection on the mobile phone desktop includes multiple different types of widgets.
  • the widget displayed on the widget collection is the "WeChat payment code” widget, and the user can Swipe to the right to turn pages on the widget collection.
  • the mobile phone can receive the user's right swipe and page turning operation for the widget collection, and the mobile phone responds to the user's right swipe and page turning operation for the widget collection to collect the widgets Change the widget displayed on the “Alipay Payment Code” widget.
  • the user can also perform a right-swiping and page-turning operation on the widget collection.
  • the mobile phone can receive the user's right-swiping and page-turning operation for the widget collection.
  • Swipe to the right to turn the page of the widget collection to change the widget displayed on the widget collection to the "WeChat payment code" widget.
  • the user can change the widgets displayed on the widget collection by swiping right or left to turn the page gesture operation, and the changed widgets are all payment type widgets;
  • the user can change the display widgets belonging to the payment category in the widget collection by swiping to the right or swiping to the left.
  • the "WeChat payment code” widget is displayed on the widget collection, and the user can also slide down the widget collection to turn pages.
  • the mobile phone can receive the user's sliding down operation for the widget collection, and the mobile phone responds to the user's sliding down operation for the widget collection, and the widget collection The widget displayed on is changed to the "Music 1" widget.
  • the user can also continue to slide down the widget collection to turn pages.
  • the mobile phone can receive the user's slide down and page turning operations for the widget collection, and the mobile phone responds to the user's Swipe down on the widget collection to turn the page and change the widget displayed on the widget collection to the "Music 2" widget.
  • the user can change the widgets displayed on the widget collection by sliding down or up to turn the page gesture operation, and the changed widgets are all music type widgets.
  • the gesture operation used to change the widgets displayed in the widget set may also be other gesture operations, such as an oblique sliding gesture operation.
  • This embodiment does not limit the gesture operation.
  • This embodiment does not limit the correspondence between the gesture operation and the changed widget type. It can be the left and right sliding gesture operation corresponding to the payment type widget, or the up and down sliding gesture operation and the payment type widget.
  • the diagonal sliding gesture operation corresponds to the payment widget and so on.
  • the gesture operation to trigger the change of the widget displayed in the widget set is used to trigger the change
  • the gesture operations of the categories of widgets displayed in the widget set can be set to different gesture operations. That is, operation 3 and operation 6 may be different operations. Exemplarily, operation 3 may be a left-right sliding operation, and operation 6 may be a vertical sliding operation; or, operation 3 may be a vertical sliding operation, and operation 6 may be a left-right sliding operation.
  • the mobile phone can adjust the size of the widgets displayed on the widget set according to the number of widgets of different types.
  • the mobile phone can receive the user's stretching operation for the frequently-used folder.
  • the mobile phone responds to the user's stretching operation for the frequently-used folder, and the icon Switch to the widget collection.
  • Two payment types of widgets are displayed on the widget collection at the same time, namely the "WeChat Payment Code” widget and the "Alipay Payment Code” widget; as shown in Figure 17 (c), the user can Perform a sliding page turning operation on the widget collection, the mobile phone can receive the user's sliding page turning operation for the widget collection, and the mobile phone responds to the user's sliding page turning operation for the widget collection, and changes the widgets displayed on the widget collection.
  • Widget that is, change the widgets on the widget collection to widgets of three music types.
  • the mobile phone can adjust the size of the widgets displayed on the widget collection according to the number of widgets of different types, so that as many widgets of the same type can be displayed on the widget collection as much as possible. For example, when the widget collection on the desktop of the mobile phone has a size of "4 ⁇ 2", the mobile phone can adjust the size of the widgets so that two or three widgets of the same type can be displayed on the widget collection at the same time.
  • the mobile phone adjusts the size of the widget to "2 ⁇ 2", that is, two widgets of the same type are displayed on the widget collection at the same time;
  • the mobile phone adjusts the size of the widget to "1.3 ⁇ 2", that is, three widgets of the same type are displayed on the widget collection at the same time.
  • the way of adjusting the size of the widgets in the widget set according to the number of widgets can also be set according to actual needs, and this embodiment does not limit the way of adjusting the size of the widgets.
  • the order of the widgets displayed on the widget collection can be adjusted.
  • the user can perform operation 7 on the target icon, and the mobile phone receives the user's operation 7 on the target icon, and in response to the user's operation 7 on the target icon, adjusts the display order of the widgets in the widget set. That is, operation 7 is used to adjust the display order of the widgets in the widget set.
  • the mobile phone receives the user’s click operation on the wallet icon, and the mobile phone responds to the user’s click on the wallet icon.
  • Click the icon to enter the home page interface of the wallet application and the user can click the payment code component in the home page interface
  • the mobile phone receives the user’s click operation on the payment code component
  • the mobile phone enters the payment code display interface, and the user can click the setting component in the payment code display interface
  • the mobile phone receives the user For the click operation of the setting component, the mobile phone enters the setting interface in response to the user's click operation on the setting component, and the user can click the widget order setting component in the setting interface
  • the mobile phone receives the user's click operation on the widget sequence setting component, and the mobile phone enters the widget sequence setting interface in response
  • the user can choose to arrange the widgets displayed in the widget collection in the order of use, the last time the user used the widget in the widget collection is displayed in the first order, and the second last time the user used the widget in the widget collection.
  • the display order in the collection is second, and so on.
  • the user can choose to arrange the widgets displayed in the widget collection by frequency of use. Within a certain time range (for example, one day or a week), the display order of the widgets with the most frequent use by the user in the widget collection is First, the display order of the widget with the second highest frequency of user use in the widget collection is second, and so on.
  • users can customize the display order of widgets in the widget collection according to their actual needs.
  • FIG. 19 is a schematic flowchart of another example of a widget processing method provided by an embodiment of this application.
  • a widget processing method provided by an embodiment of the present application includes:
  • the electronic device displays the target icon.
  • the electronic device may display a target icon on the desktop, or display the target icon on an interface such as a control center.
  • the electronic device receives a first operation on the target icon.
  • the first operation may be the same as operation 1 in the foregoing embodiment.
  • the electronic device receiving the first operation on the target icon may specifically include: the electronic device receives a long-press operation on the target icon; in response to the long-press operation, the electronic device is on the edge of the target icon A frame is displayed; the electronic device receives a stretching operation on the frame.
  • the electronic device switches the target icon to a widget set, and the widget set includes multiple widgets of multiple applications.
  • the target icon corresponds to the multiple application programs
  • the multiple application programs respectively correspond to widgets. Therefore, the multiple widgets of the multiple application programs corresponding to the target icon can be determined according to the target icon.
  • the electronic device displays the widget set.
  • the method further includes: the electronic device receives a second operation on the widget set; In the second operation, the electronic device changes the widgets displayed on the widget set.
  • the second operation may specifically be the aforementioned operation 3.
  • the target icon is an icon of a first application; the multiple applications include applications associated with the first application. That is, the first application can be associated with multiple applications, and the electronic device switches the icon of the first application to a widget set, and the multiple widgets included in the widget set are related to the first application. Widgets for multiple associated applications.
  • the multiple application programs include the first application program. That is, the widgets of the first application program are also included among the multiple widgets included in the widget set.
  • the first application program may be associated with the same type of application program in the electronic device.
  • the first application program is a payment type application program, and the first application program may be related to other payment type application programs in the electronic device. United.
  • the target icon is an icon of a folder
  • the multiple applications are applications included in the folder.
  • the folder contains multiple applications
  • the electronic device switches the icon of the folder to a widget collection
  • the multiple widgets included in the widget collection are the widgets of multiple applications in the folder.
  • the folder can include application A and application B, and the electronic device can switch the icon of the folder to a widget set.
  • the multiple widgets included in the widget set are the widgets and applications of application A. Widget for program B.
  • the plurality of widgets include a first widget, a second widget, and a third widget; the electronic device changing the widgets displayed on the widget collection includes: If the second operation is a sliding operation in the first direction, the electronic device changes the first widget displayed on the widget set to the second widget, and the second widget and The types of the first widgets are the same; if the second operation is a sliding operation in the second direction, the electronic device changes the first widget displayed on the widget set to the third A widget, the third widget and the first widget are of different types; the first direction and the second direction are different directions.
  • the method may further include: the electronic device receives a third operation on the target widget, and the target widget is the widget set on the widget collection.
  • the displayed widget in response to the third operation, the electronic device displays the application program interface corresponding to the target widget.
  • the third operation may be specifically the operation 2 described above.
  • the third operation may specifically be a click operation, that is, in response to a click operation on the target widget displayed on the widget set, the electronic device may display the application program interface corresponding to the target widget.
  • the method may further include: the electronic device receives a fourth operation on the widget collection; in response to the fourth operation, the electronic device The piece set is switched to the target icon.
  • the fourth operation may specifically be the aforementioned operation 4.
  • the fourth operation may be a long-press gesture operation and a contraction gesture operation.
  • the electronic device receives a long-press gesture operation on the widget collection; in response to the long-press gesture operation, the electronic device displays a frame on the edge of the widget collection; electronic device Receive a contraction gesture operation on the frame; the electronic device switches the widget set to a target icon in response to the contraction gesture operation.
  • the method may further include: the electronic device receives a fifth operation on the widget set; in response to the fifth operation, the electronic device changes the widget set.
  • the size of the widget collection display area such as changing a widget collection with a smaller display area to a widget collection with a larger display area, or changing a widget collection with a larger display area to a widget collection with a smaller display area.
  • the fifth operation may specifically be the aforementioned operation 5.
  • the disclosed system, device, and method can be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components may be combined or It can be integrated into another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • the technical solution of this application essentially or the part that contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium.
  • Including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory, random access memory, magnetic disk or optical disk and other media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • User Interface Of Digital Computer (AREA)
  • Digital Computer Display Output (AREA)
  • Telephone Function (AREA)

Abstract

本申请实施例公开了一种微件处理方法以及相关装置,能够将目标图标切换为包括有多个微件的微件集合,用于在电子设备上快速添加微件。本申请实施例方法包括:电子设备显示目标图标;电子设备接收对目标图标的第一操作;响应于该第一操作,电子设备将目标图标切换为微件集合,该微件集合包括有多个应用程序的多个微件;电子设备显示该微件集合。

Description

一种微件处理方法以及相关装置
本申请要求于2020年1月17日提交中国专利局、申请号为202010058434.2、发明名称为“一种微件处理方法以及相关装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及终端技术领域,尤其涉及一种微件处理方法以及相关装置。
背景技术
微件(Widget)是可以嵌入到电子设备桌面上的微型应用程序视图,能够支持用户在视图上进行信息预览或者快捷操作。在电子设备的桌面上,常常可以看到各种微件,比如时钟、天气、音乐播放器等等。
目前,在电子设备的桌面上添加微件时,往往需要进入电子设备的桌面编辑界面,然后在桌面编辑界面的特定区域上点击微件的小部件,从而实现在桌面上添加微件,操作较为繁琐。
发明内容
本申请实施例提供了一种微件处理方法以及相关装置,能够将目标图标切换为包括有多个微件的微件集合,从而实现在电子设备的桌面上快速添加微件。
本申请实施例第一方面提供一种微件处理方法,该方法包括:电子设备显示目标图标;用户可以对目标图标进行第一操作,电子设备接收对目标图标的第一操作;响应于该第一操作,电子设备将目标图标切换为微件集合,该微件集合包括有多个应用程序的多个微件;电子设备显示该微件集合。其中,目标图标与该多个应用程序对应,且该多个应用程序分别对应有微件,因此根据目标图标可以确定与其对应的多个应用程序的多个微件。也就是说,在目标图标与多个微件对应时,电子设备可以将该目标图标切换为包括有多个微件的微件集合。通过对目标图标进行操作,将该目标图标切换为包括有多个微件的微件集合,能够实现在电子设备上显示多个不同的微件,操作简单快捷。
将目标图标切换为微件集合的一种可能方式,电子设备接收对目标图标的长按操作;响应于该长按操作,电子设备在目标图标的边缘显示边框,例如在目标图标的边缘显示与目标图标的大小、形状相匹配的边框;电子设备接收对所述边框的拉伸操作,响应于该拉伸操作,将上述目标图标切换为微件集合。
其中,目标图标可以为应用程序的图标或者是文件夹的图标。
当目标图标为第一应用程序的图标时,用户可以对电子设备显示的第一应用程序的图标进行第一操作,以将第一应用程序的图标切换为微件集合。此时,前述多个应用程序包括与该第一应用程序相关联的一个或多个应用程序。例如,第一应用程序可以为钱包应用程序,钱包应用程序可以与多个支付类的应用程序相关联,电子设备可以将钱包应用程序的图标切换为微件集合,该微件集合中所包括的多个微件是与钱包应用程序相关联的多个支付类的应用程序的微件。此外,前述多个应用程序还可以包括第一应用程序。例如,上述多个应用程序可以是第一应用程序和与第一应用程序同类型的其他应用程序。也就是说,微件集合所包括的多个微件中还包括有第一应用程序的微件。其中,第一应用程序的类别 包括但不限于支付类,娱乐类,教育类,阅读类,健康类。通过将第一应用程序的图标切换为微件集合,微件集合中包括有第一应用程序关联的多个应用程序的微件,可以快速在电子设备上添加与第一应用程序相关的多个微件,避免了用户确定第一应用程序所关联的多个应用程序,再在电子设备上逐一添加多个应用程序对应的微件的繁琐过程,节省了用户的操作。
当目标图标为任一文件夹的图标时,用户可以对电子设备显示的文件夹的图标进行第一操作以将文件夹的图标切换为微件集合。此时,前述多个应用程序为文件夹中包括的多个应用程序,该微件集合中所包括的多个微件是文件夹中的各个应用程序的微件。例如,文件夹中可以包括应用程序A和应用程序B,则该文件夹的图标被切换为微件集合时,该微件集合中所包括的多个微件是应用程序A的微件以及应用程序B的微件。通过将文件夹的图标切换为微件集合,微件集合中包括有文件夹中的多个应用程序的微件,可以快速在电子设备上添加文件夹中的应用程序的微件,以便于用户便捷地查看或者操作文件夹中的应用程序的微件,避免了用户在电子设备上逐一添加文件夹中的应用程序的微件的繁琐过程,节省了用户的操作。
可以理解的是,在微件集合包括有较多微件时,在微件集合上可能无法显示微件集合中的所有微件。此时,电子设备可以根据以下几种方式确定微件集合上显示的微件。例如,电子设备可以根据微件集合中微件的使用顺序来确定微件集合上显示的微件,即用户最后一次使用的微件在微件集合中的显示顺序为第一,用户倒数第二次使用的微件在微件集合中的显示顺序为第二,以此类推;又例如,电子设备可以按微件的使用频率来确定微件集合上显示的微件,在一定的时间范围内(比如一天或者一周),用户使用频率最高的微件在微件集合中的显示顺序为第一,用户使用频率第二高的微件在微件集合中的显示顺序为第二,以此类推;再例如,电子设备还可以按用户自定义的设置来确定微件集合上显示的微件。
此外,电子设备可以更改微件集合显示的微件。在一种可能的设计中,在电子设备将目标图标切换为微件集合之后,该方法还包括:电子设备接收对微件集合的第二操作;响应于第二操作,电子设备更改微件集合上所显示的微件。其中,第二操作具体可以包括滑动操作。
一种可能的方式,电子设备可以按序依次更改微件集合上显示的微件;电子设备可以根据使用时间,使用频率,或应用类型确定微件集合包括的多个微件的排序。
另一种可能的方式,电子设备可以根据滑动操作的方向确定如何更改微件集合上显示的微件。具体地,若第二操作为第一方向上的滑动操作,电子设备将微件集合上所显示的第一微件更改为与第一微件类型相同的第二微件。需要说明的是,微件A与微件B的类型相同指微件A对应的应用程序A与微件B对应的应用程序B的类型是相同。若第二操作为第二方向上的滑动操作,电子设备将微件集合上所显示的第一微件更改为与第一微件类型不同的第三微件。当多个应用程序为不同类型的应用程序时,用户可以快速地更改欲显示的微件。
上述两种更改微件集合显示的微件的方式可以结合。
在一种可能的设计中,在电子设备将目标图标切换为微件集合之后,该方法还可以包括:电子设备接收对目标微件的第三操作,该目标微件为微件集合上所显示的微件;响应于第三操作,电子设备显示目标微件对应的应用程序界面。其中,该第三操作具体可以为点击操作,也就是说,电子设备响应于对微件集合上所显示的目标微件的点击操作,可以显示目标微件对应的应用程序界面。
在一种可能的设计中,在电子设备将目标图标切换为微件集合之后,该方法还可以包括:电子设备接收对微件集合的第四操作;响应于第四操作,电子设备将微件集合切换为目标图标。具体地,电子设备接收对微件集合的长按手势操作;响应于长按手势操作,电子设备在微件集合的边缘显示边框;电子设备接收对边框的收缩手势操作;电子设备响应于该收缩手势操作,将微件集合切换为目标图标。通过第四操作能够将微件集合切换为目标图标,可以在用户不需要使用微件的时候,将占据较大面积空间的微件集合切换为占据较小面积空间的目标图标,从而节省电子设备的显示区域上的空间。
在一种可能的设计中,在电子设备将目标图标切换为微件集合之后,该方法还可以包括:电子设备接收对微件集合的第五操作;响应于第五操作,电子设备更改微件集合显示区域的大小,例如将显示区域较小的微件集合更改为显示区域较大的微件集合,或者将显示区域较大的微件集合更改为显示区域较小的微件集合。
本申请实施例第二方面提供一种电子设备,包括:显示屏;处理器;和存储器,所述存储器用于存储计算机程序;所述计算机程序包括指令,当所述指令被所述处理器执行时,使得所述电子设备执行以下步骤:电子设备显示目标图标;用户可以对目标图标进行第一操作,电子设备接收对目标图标的第一操作;响应于该第一操作,电子设备将目标图标切换为微件集合,该微件集合包括有多个应用程序的多个微件;电子设备显示该微件集合。其中,目标图标与该多个应用程序对应,且该多个应用程序分别对应有微件,因此根据目标图标可以确定与其对应的多个应用程序的多个微件。也就是说,在目标图标与多个微件对应时,电子设备可以将该目标图标切换为包括有多个微件的微件集合。
将目标图标切换为微件集合的一种可能方式,电子设备接收对目标图标的长按操作;响应于该长按操作,电子设备在目标图标的边缘显示边框,例如在目标图标的边缘显示与目标图标的大小、形状相匹配的边框;电子设备接收对所述边框的拉伸操作,响应于该拉伸操作,将上述目标图标切换为微件集合。
其中,目标图标可以为应用程序的图标或者是文件夹的图标。
当目标图标为第一应用程序的图标时,在用户对电子设备显示的第一应用程序的图标进行第一操作之后,电子设备将第一应用程序的图标切换为微件集合。此时,前述多个应用程序包括与该第一应用程序相关联的一个或多个应用程序。例如,第一应用程序可以为钱包应用程序,钱包应用程序可以与多个支付类的应用程序相关联,电子设备可以将钱包应用程序的图标切换为微件集合,该微件集合中所包括的多个微件是与钱包应用程序相关联的多个支付类的应用程序的微件。此外,前述多个应用程序还可以包括第一应用程序。例如,上述多个应用程序可以是第一应用程序和与第一应用程序同类型的其他应用程序。也就是说,微件集合所包括的多个微件中还包括有第一应用程序的微件。其中,第一应用 程序的类别包括但不限于支付类,娱乐类,教育类,阅读类,健康类。
当目标图标为任一文件夹的图标时,在用户对电子设备显示的文件夹的图标进行第一操作之后,电子设备将文件夹的图标切换为微件集合。此时,前述多个应用程序为文件夹中包括的多个应用程序,该微件集合中所包括的多个微件是文件夹中的各个应用程序的微件。例如,文件夹中可以包括应用程序A和应用程序B,则该文件夹的图标被切换为微件集合时,该微件集合中所包括的多个微件是应用程序A的微件以及应用程序B的微件。
可以理解的是,在微件集合包括有较多微件时,在微件集合上可能无法显示微件集合中的所有微件。此时,电子设备可以根据以下几种方式确定微件集合上显示的微件。例如,电子设备可以根据微件集合中微件的使用顺序来确定微件集合上显示的微件,即用户最后一次使用的微件在微件集合中的显示顺序为第一,用户倒数第二次使用的微件在微件集合中的显示顺序为第二,以此类推;又例如,电子设备可以按微件的使用频率来确定微件集合上显示的微件,在一定的时间范围内(比如一天或者一周),用户使用频率最高的微件在微件集合中的显示顺序为第一,用户使用频率第二高的微件在微件集合中的显示顺序为第二,以此类推;再例如,电子设备还可以按用户自定义的设置来确定微件集合上显示的微件。
此外,当所述指令被所述处理器执行时,还可以使得所述电子设备执行以下步骤:电子设备可以更改微件集合显示的微件。在一种可能的设计中,在电子设备将目标图标切换为微件集合之后,该方法还包括:电子设备接收对微件集合的第二操作;响应于第二操作,电子设备更改微件集合上所显示的微件。其中,第二操作具体可以包括滑动操作。
一种可能的方式,电子设备可以按序依次更改微件集合上显示的微件;电子设备可以根据使用频率,类型等确定微件集合包括的多个微件的排序。
另一种可能的方式,当所述指令被所述处理器执行时,还可以使得所述电子设备执行以下步骤:电子设备可以根据滑动操作的方向确定如何更改微件集合上显示的微件。具体地,若第二操作为第一方向上的滑动操作,电子设备将微件集合上所显示的第一微件更改为与第一微件类型相同的第二微件。需要说明的是,微件A与微件B的类型相同指微件A对应的应用程序A与微件B对应的应用程序B的类型是相同。若第二操作为第二方向上的滑动操作,电子设备将微件集合上所显示的第一微件更改为与第一微件类型不同的第三微件。当多个应用程序为不同类型的应用程序时,用户可以快速地更改欲显示的微件。
上述两种更改微件集合显示的微件的方式可以结合。
在一种可能的设计中,当所述指令被所述处理器执行时,还可以使得所述电子设备执行以下步骤:在电子设备将目标图标切换为微件集合之后,电子设备接收对目标微件的第三操作,该目标微件为微件集合上所显示的微件;响应于第三操作,电子设备显示目标微件对应的应用程序界面。其中,该第三操作具体可以为点击操作,也就是说,电子设备响应于对微件集合上所显示的目标微件的点击操作,可以显示目标微件对应的应用程序界面。
在一种可能的设计中,当所述指令被所述处理器执行时,还可以使得所述电子设备执行以下步骤:在电子设备将目标图标切换为微件集合之后,电子设备接收对微件集合的第四操作;响应于第四操作,电子设备将微件集合切换为目标图标。具体地,电子设备接收 对微件集合的长按手势操作;响应于长按手势操作,电子设备在微件集合的边缘显示边框;电子设备接收对边框的收缩手势操作;电子设备响应于该收缩手势操作,将微件集合切换为目标图标。
在一种可能的设计中,当所述指令被所述处理器执行时,还可以使得所述电子设备执行以下步骤:在电子设备将目标图标切换为微件集合之后,电子设备接收对微件集合的第五操作;响应于第五操作,电子设备更改微件集合显示区域的大小,例如将显示区域较小的微件集合更改为显示区域较大的微件集合,或者将显示区域较大的微件集合更改为显示区域较小的微件集合。
本申请实施例第三方面提供一种包含指令的计算机程序产品,当所述指令在计算机上运行时,使得所述计算机执行如第一方面中任一项所述的方法。
本申请实施例第四方面提供一种计算机可读存储介质,包括计算机程序指令,当计算机程序指令在计算机上运行时,使得所述计算机执行如第一方面中任一项所述的方法。
可以理解的是,上述提供的第二方面所述的电子设备、第三方面所述的计算机程序产品,以及第四方面所述的计算机可读存储介质均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。
附图说明
图1为本申请实施例提供的一种电子设备的结构示意图;
图2为本申请实施例提供的一种微件处理方法的流程示意图;
图3为本申请实施例提供的一组显示界面示意图;
图4为本申请实施例提供的另一组显示界面示意图;
图5为本申请实施例提供的另一组显示界面示意图;
图6为本申请实施例提供的另一组显示界面示意图;
图7为本申请实施例提供的另一组显示界面示意图;
图8为本申请实施例提供的另一组显示界面示意图;
图9为本申请实施例提供的另一组显示界面示意图;
图10为本申请实施例提供的另一组显示界面示意图;
图11为本申请实施例提供的另一组显示界面示意图;
图12为本申请实施例提供的另一组显示界面示意图;
图13为本申请实施例提供的另一组显示界面示意图;
图14为本申请实施例提供的另一组显示界面示意图;
图15为本申请实施例提供的另一组显示界面示意图;
图16为本申请实施例提供的另一组显示界面示意图;
图17为本申请实施例提供的另一组显示界面示意图;
图18为本申请实施例提供的另一组显示界面示意图;
图19为本申请实施例提供的一种微件处理方法的另一示例的流程示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,在本申请实施例的描述中,“多个”是指两个或多于两个。
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。
本申请实施例提供的方法可以应用于电子设备上。其中,电子设备可以包括手机、平板电脑、可穿戴设备、车载设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)等设备。本申请实施例对电子设备的具体类型不作任何限制。
以电子设备为手机为例,图1示出的是与本申请实施例相关的手机100的部分结构的框图。参考图1,手机100包括、射频(radio frequency,RF)电路110、存储器120、其他输入设备130、显示屏140、传感器150、音频电路160、I/O子系统170、处理器180、以及电源190等部件。本领域技术人员可以理解,图1中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。本领领域技术人员可以理解显示屏140属于用户界面(user interface,UI),且手机100可以包括比图示或者更少的用户界面。
下面结合图1对手机100的各个构成部件进行具体的介绍:
RF电路110可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器180处理;另外,将设计上行的数据发送给基站。通常,RF电路包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(low noise amplifier,LNA)、双工器等。此外,RF电路110还可以通过无线通信与网络和其他设备通信。该无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(global system of mobile communication,GSM)、通用分组无线服务(general packet radio service,GPRS)、码分多址(code division multiple access,CDMA)、宽带码分多址(wideband code division multiple access,WCDMA)、长期演进(long term evolution,LTE)、电子邮件、短消息服务(short messaging service,SMS)等。
存储器120可用于存储软件程序以及模块,处理器180通过运行存储在存储器120的软件程序以及模块,从而执行手机100的各种功能应用以及数据处理。存储器120可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图象播放功能等)等;存储数据区可存储根据手机100的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器120可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其 他易失性固态存储器件。
其他输入设备130可用于接收输入的数字或字符信息,以及产生与手机100的用户设置以及功能控制有关的键信号输入。具体地,其他输入设备130可包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆、光鼠(光鼠是不显示可视输出的触摸敏感表面,或者是由触摸屏形成的触摸敏感表面的延伸)等中的一种或多种。其他输入设备130与I/O子系统170的其他输入设备控制器171相连接,在其他设备输入控制器171的控制下与处理器180进行信号交互。
显示屏140可用于显示由用户输入的信息或提供给用户的信息以及手机100的各种菜单,还可以接受用户输入。具体的显示屏140可包括显示面板141,以及触控面板142。其中显示面板141可以采用液晶显示器(liquid crystal display,LCD)、有机发光二极管(organic light-emitting diode,OLED)等形式来配置显示面板141。触控面板142,也称为触摸屏、触敏屏等,可收集用户在其上或附近的接触或者非接触操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板142上或在触控面板142附近的操作,也可以包括体感操作;该操作包括单点控制操作、多点控制操作等操作类型。),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板142可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位、姿势,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成处理器能够处理的信息,再送给处理器180,并能接收处理器180发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板142,也可以采用未来发展的任何技术实现触控面板142。进一步的,触控面板142可覆盖显示面板141,用户可以根据显示面板141显示的内容(该显示内容包括但不限于,软键盘、虚拟鼠标、虚拟按键、图标等等),在显示面板141上覆盖的当触控面板142上或者附近进行操作,触控面板142检测到在其上或附近的触摸操作后,通过I/O子系统170传送给处理器180以确定触摸事件的类型以确定用户输入,随后处理器180根据触摸事件的类型在显示面板根据用户输入通过I/O子系统170在显示面板141上提供相应的视觉输出。虽然在图1中,触控面板142与显示面板141是作为两个独立的部件来实现手机100的输入和输入功能,但是在某些实施例中,可以将触控面板142与显示面板141集成而实现手机100的输入和输出功能。
手机100还可包括至少一种传感器150,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板141的亮度,接近传感器可在手机100移动到耳边时,关闭显示面板141和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机100还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。
音频电路160、扬声器161,麦克风162可提供用户与手机100之间的音频接口。音频 电路160可将接收到的音频数据转换后的信号,传输到扬声器161,由扬声器161转换为声音信号输出;另一方面,麦克风162将收集的声音信号转换为信号,由音频电路160接收后转换为音频数据,再将音频数据输出至RF电路108以发送给比如另一手机,或者将音频数据输出至存储器120以便进一步处理。
I/O子系统170用来控制输入输出的外部设备,可以包括其他设备输入控制器171、传感器控制器172、显示控制器173。可选的,一个或多个其他输入控制设备控制器171从其他输入设备130接收信号和/或者向其他输入设备130发送信号,其他输入设备130可以包括物理按钮(按压按钮、摇臂按钮等)、拨号盘、滑动开关、操纵杆、点击滚轮、光鼠(光鼠是不显示可视输出的触摸敏感表面,或者是由触摸屏形成的触摸敏感表面的延伸)。值得说明的是,其他输入控制设备控制器171可以与任一个或者多个上述设备连接。该I/O子系统170中的显示控制器173从显示屏140接收信号和/或者向显示屏140发送信号。显示屏140检测到用户输入后,显示控制器173将检测到的用户输入转换为与显示在显示屏140上的用户界面对象的交互,即实现人机交互。传感器控制器172可以从一个或者多个传感器150接收信号和/或者向一个或者多个传感器150发送信号。
处理器180是手机100的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器120内的软件程序和/或模块,以及调用存储在存储器120内的数据,执行手机100的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器180可包括一个或多个处理单元;优选的,处理器180可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器180中。
手机100还包括给各个部件供电的电源190(比如电池),可选的,电源可以通过电源管理系统与处理器180逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗等功能。
尽管未示出,手机100还可以包括摄像头、蓝牙模块等,在此不再赘述。
目前,当用户需要在电子设备的桌面上添加微件时,往往需要在电子设备的桌面上通过双指捏合或者长按的方式,进入电子设备的桌面编辑界面。然后在桌面编辑界面底部的工具栏上点击微件的小部件,来实现在桌面上添加微件。在用户需要添加多个不同的微件时,用户通常还需要通过在工具栏上进行滑动选择,以便于从工具栏上的众多微件中选择需要添加的微件,操作方式繁琐,不便于用户进行微件的添加。
有鉴于此,本申请实施例提供一种微件处理方法,通过在电子设备的桌面上对目标图标进行操作,可以将目标图标切换为微件,实现在电子设备的桌面上快速添加微件,操作简单快捷。此外,在目标图标对应有多个微件时,通过对目标图标进行操作,可以将该目标图标切换为包括有多个微件的微件集合,从而实现在电子设备的桌面上添加多个不同的微件。
下面将结合附图具体阐述本申请实施例提供的微件处理方法。为了便于描述,下面以电子设备是手机为例说明。
图2为本申请实施例提供的一种微件处理方法的流程示意图。如图2所示,该微件处 理方法可以包括:
201、手机接收对目标图标的操作1。
在用户需要在手机的桌面上添加微件时,用户可以对手机桌面上的目标图标进行操作1,以触发手机将目标图标切换为微件。也就是说,操作1用于将目标图标切换为微件。操作1可以是用户输入的预设手势操作或语音指令。本申请实施例对操作1不做限定。
其中,目标图标包括应用程序的图标或文件夹的图标等可以设置于手机桌面上的图标,用于作为进入应用程序或者文件夹的快捷方式;目标图标还可以是其他界面上的图标,例如目标图标还可以包括控制中心界面上的按钮图标,用于作为开启某一功能的快捷方式。本申请实施例对目标图标不做限定。
在一种可能的实现方式中,目标图标可以是手机桌面上一应用程序的图标,用户输入的预设手势可以是长按手势操作以及拉伸手势操作。例如,如图3中的(a)所示,手机的桌面上显示应用程序“钱包”的图标(以下简称钱包图标),用户可以长按钱包图标,手机接收到用户针对于钱包图标的长按手势操作;如图3中的(b)所示,手机响应于用户针对于钱包图标的长按手势操作,在钱包图标的周边显示边框,该边框用于指示用户对边框进行拉伸。用户可以点击钱包图标周边的边框,并且对该边框进行拉伸,手机接收用户针对于钱包图标周边的边框的拉伸手势操作,即手机接收到针对于钱包图标的操作1。
在一种可能的实现方式中,用户输入的语音指令可以是一段针对于目标图标的语音。例如,用户可以输入“将钱包图标切换为微件集合”语音,手机通过麦克风接收到用户输入的语音时,手机接收到针对于钱包图标的操作1。
202、手机响应于操作1,将目标图标切换为微件。
在目标图标与一个微件对应时,该目标图标被切换为微件。
在目标图标与多个微件对应时,该目标图标可以被切换为微件集合。微件集合包括有多个微件,多个微件分别为多个应用程序对应的微件。
其中,微件可以是指嵌入到手机桌面上的微型应用程序视图,微件还可以是指嵌入到手机显示界面上的其他包含有应用信息的微型窗口,例如卡片等。也就是说,微件是手机显示界面上用于显示应用信息的一种显示方式,微件还可以是其他的显示方式,本申请实施例不对微件的具体显示方式进行限定。
具体地,在手机接收到用户针对于桌面上的目标图标的操作1之后,手机响应于该操作1,将桌面上的目标图标切换为微件集合。该微件集合包括有多个不同的微件,手机可以在微件集合所占据的显示区域内显示微件集合中的一个或多个微件。
例如,如图3中的(c)所示,钱包图标与“支付宝付款码”微件和“微信付款码”微件相关联,则手机响应于用户针对于钱包图标的操作1,将钱包图标切换为包括“支付宝付款码”微件和“微信付款码”微件的微件集合。
需要说明的是,手机将目标图标切换为微件集合的实现方式,包括但不限于:在手机接收到操作1之后,手机上的桌面进程确定与目标图标对应的应用程序相关联的多个微件,将多个微件绑定到AppWidgetHost容器中,从而实现在桌面上显示微件集合。其中,AppWidgetHost容器用于容纳微件且在桌面上显示容器内的微件。在AppWidgetHost容器 中,可以通过由上到下的堆叠方案来实现微件集合中多个微件的堆叠。
可以理解的是,手机可以在微件集合所占据的显示区域内显示微件集合中的一个微件。例如,如图3中的(c)所示,手机在该微件集合的显示区域内显示微件集合中的“支付宝付款码”微件。手机也可以在微件集合所占据的显示区域内显示微件集合中的多个微件。例如,如图3中的(e)所示,手机在该微件集合的显示区域内显示微件集合中的“支付宝付款码”微件以及“微信付款码”微件。
在一些实施例中,在手机将目标图标切换为微件集合之后,手机可以接收针对于目标微件的操作2,该目标微件可以为微件集合中的一个微件。手机响应于操作2,进入目标微件对应的应用程序界面。也就是说,操作2用于显示目标微件对应的应用程序界面。操作2可以是用户输入的预设手势操作或语音指令。例如,用户输入的预设手势可以为点击手势、压力识别手势、长按手势、面积变化手势、双按手势、双击手势中的任意一种。
在一种可能的实现方式中,用户输入的预设手势可以为点击手势。例如,如图3中的(c)所示响应于用户点击微件集合中所显示的“支付宝付款码”微件的操作2,如图3中的(d)所示手机进入“支付宝付款码”微件对应的支付界面,即以二维码的形式展示应用程序“支付宝”中相应的付款码。又例如,如图3中的(e)所示,响应于用户点击微件集合中所显示的“微信付款码”微件的操作2。如图3中的(f)所示,手机进入“微信付款码”微件对应的收款界面,即以二维码的形式展示应用程序“微信”中相应的付款码。
可以理解的是,在人们的日常生活中,人们往往会频繁地使用到手机中某一些应用程序的功能。例如手机中不同的支付应用程序的支付功能,人们可能在购买商品或者到餐馆进行消费时,需要使用到手机中应用程序“支付宝”的支付功能,即需要向商家展示应用程序“支付宝”中的支付界面;人们还可能在与他人进行交易时,需要使用到手机中“微信”应用程序的收款或付款功能,即需要向他人展示“微信”应用程序的收款或付款界面。在本实施例中,手机通过接收操作1,将钱包图标切换为包括有多个微件的微件集合,能够快捷简单地在手机桌面上添加多个微件,以便于用户能够在桌面上通过对微件进行操作,快速地进入相应的应用程序界面中。
当用于显示微件集合的空间较小的时候,即微件集合所占据的显示区域面积较小时,微件集合可能无法同时将微件集合中的所有微件同时展示在手机桌面上。为了便于用户对微件集合中其他没有显示的微件进行预览或者操作,手机可以响应于用户对微件集合的操作3,更改微件集合所显示的微件。也就是说,操作3用于更改微件集合上所显示的微件。
例如,如图4中的(a)至(c)所示,响应于操作1,将钱包图标切换为如图4中的(c)所示的微件集合,具体的切换过程可以参考图3中的(a)至图3中的(c)对应的描述,在此不再赘述。如图4中的(d)所示,用户对微件集合上进行滑动操作,即用户按住微件集合上的所显示的“支付宝付款码”微件并且向右滑动;如图4中的(e)所示,手机响应于用户针对于微件集合的滑动操作,手机将微件集合上所显示的微件更改为“微信付款码”微件。用户可以对微件集合上切换后的“微信付款码”微件进行点击操作,从而进入相应的收款界面。如图4中的(f)所示,手机响应于用户针对于微件集合中的“微信付款码”微件的点击操作,手机进入“微信付款码”微件对应的收款界面。
需要说明的是,通过AppWidgetHost容器实现微件集合的显示时,手机更改微件集合上所显示的微件的方式,包括但不限于:响应于用户对最上层微件的向右滑动,显示最上层微件滑出的动画效果,并将下一个应用的微件显示到最上层。
上述实施例中,以操作3为向右滑动操作为例进行了说明,可以理解的是,本申请实施例对操作3不做限定。例如,如图5中的(a)至图5中的(c)所示,操作3可以是图5中(a)所示的上滑动操作或下滑动操作,或者图5中(b)所示的左滑动操作或右滑动操作,或者图5中(c)所示的斜向滑动操作。又如,手机可以显示用于更改微件集合上所显示的微件的虚拟按钮,则操作3可以是点击上述虚拟按钮,虚拟按钮的显示位置可以不同,例如虚拟按钮的显示位置可以是如图5中(d)所示的微件集合的上下两侧,或者是如图5中(e)所示的微件集合的左右两侧,或者是如图5中(f)所示的微件集合的斜向边角两侧。
可以理解的是,针对于在手机桌面上所显示的微件集合的大小,不同用户的需求可能是不一样的。一些用户可能希望在手机桌面上显示的微件集合能够尽可能地大,以使得微件集合能够同时显示多个用户经常使用的微件;一些用户可能希望在手机桌面上显示的微件集合能够尽可能地小,以避免微件集合占据了手机桌面上过多的空间而影响了其他应用程序图标的正常分布。因此,在本实施例中,手机可以根据用户针对于目标图标的不同操作,将目标图标切换为不同大小的微件集合。
在一些实施例中,在手机接收到针对于目标图标的操作1之后,手机可以根据操作1确定微件集合的面积,即确定微件集合中显示区域的面积大小。在手机将目标图标切换为微件集合时,手机可以根据确定好的微件集合的面积,将目标图标切换为预设大小的微件集合。
例如,如图(6)中的(a)所示,用户对钱包图标进行长按操作之后,手机响应于用户针对于钱包图标的长按操作,在钱包图标的周边产生一个与钱包图标的尺寸、形状相匹配的边框,该边框上的四条边上分别可以显示一个或多个小圆点,用于提示用户按按住圆点来拉伸边框。如图6中的(b)所示,在用户按按住钱包图标边框上的圆点,对边框进行拉伸的过程中,手机可以响应于用户对边框的拉伸操作,在手机桌面上显示边框被拉伸的动画过程。在用户停止对边框进行拉伸操作之后,即用户松开边框之后,手机可以对用户拉伸后的边框面积进行检测,在边框面积满足预设条件时,手机将钱包图标切换为对应大小的微件集合。如图6中的(b)中所示,用户拉伸后得到的边框为一个面积较小的方形边框。如图6中的(c)所示,在手机检测到拉伸后的边框面积达到第一阈值时,手机将钱包图标切换为“2×2”(单个应用程序图标的面积单位为1,即应用程序图标的面积为“1×1”)大小的微件集合,该“2×2”大小的微件集合可以显示一个微件。
又例如,如图6中的(b)所示,在用户对边框进行拉伸之后,用户拉伸后得到的边框为一个面积较大的长方形边框。如图6中的(e)所示,在手机检测到拉伸后的边框面积达到第二阈值时,手机将钱包图标切换为“4×2”大小的微件集合,该“4×2”大小的微件集合可以同时显示两个微件。
其中,第一阈值和第二阈值可以是预先设置好的数值。比如,假设手机桌面上单个应 用程序图标对应的面积为1,则第一阈值可以是4,第二阈值可以是8。
在一些可能的实现方式中,在手机上可以预先设置有多个阈值,在拉伸后的边框面积达到对应的阈值时,手机可以将目标图标切换为该阈值下对应大小的微件集合。例如,在拉伸后的边框面积达到6时,手机可以将目标图标切换为“2×3”或者“3×2”大小的微件集合;在拉伸后的边框面积达到12时,手机可以将目标图标切换为“4×3”或者“3×4”大小的微件集合。本申请实施例对阈值的大小和数量不做限定。
也就是说,在本实施例中,手机可以在用户对边框进行拉伸之后,确定拉伸后所得到的边框对应的面积,从而根据边框面积确定微件集合的大小,以使得手机可以将目标图标切换为预设大小的微件集合。
在一些实施例中,在手机接收到针对于目标图标的操作1之后,手机可以根据操作1确定微件集合的面积以及长宽比(即微件集合的长与宽的比值),在手机将目标图标切换为微件集合时,手机可以根据确定好的微件集合的面积以及长宽比,将目标图标切换为预设大小的微件集合。
例如,在用户对目标图标上的边框进行拉伸之后,在边框的面积达到6且长宽比达到3/2时,手机确定微件集合的面积为6,长宽比为3/2,即手机可以将目标图标切换为“3×2”大小的微件集合。又例如,在边框的面积达到8且长宽比达到4/2时,手机确定微件集合的面积为8,长宽比为4/2,即手机可以将目标图标切换为“4×2”大小的微件集合。
也就是说,在本实施例中,手机可以在用户对边框进行拉伸之后,确定拉伸后所得到的边框对应的面积和长宽比,在边框的面积和长宽比均满足一定条件时,手机将目标图标切换为预设大小的微件集合。
可以理解的是,在一些情况下,在用户将目标图标切换为微件集合之后,用户可能需要将微件集合切换回图标。例如,在用户在手机上新安装了其他的应用程序之后,由于微件集合在手机桌面上占据较大的空间而导致手机桌面上空间不足时,用户可能需要将微件集合切换为占据较小空间的图标;又例如,在用户对微件集合中微件的使用频率降低的情况下,用户也可能需要将微件集合切换为图标,以保证手机桌面的美观。
因此,在一些实施例中,用户可以对微件集合进行操作4,响应于上述操作4,手机将微件集合切换为目标图标。也就是说,操作4用于将微件集合切换为目标图标。
在一些可能的实现方式中,用于将微件集合切换为图标的操作4可以是长按手势操作和收缩手势操作。例如,如图7中的(a)所示,用户对手机桌面上的微件集合进行长按操作,手机接收到用户针对于微件集合的长按操作;如图7中的(b)所示,手机响应于用户针对于微件集合的长按操作,在微件集合的周边产生一个与微件集合的尺寸、形状相匹配的边框,该边框上的四条边上分别可以显示一个或多个小圆点,用于提示用户按住圆点来控制边框的大小;用户通过按住边框上的圆点,控制边框往左下角进行收缩,手机可以接收到用户针对于微件集合的收缩操作;如图7中的(c)所示,手机响应于用户针对于微件集合的收缩操作,将微件集合切换为钱包图标。
在另一些可能的实现方式中,用于将微件集合切换为图标的操作4可以是长按手势操作和双指捏合手势操作。例如,如图8中的(a)所示,用户对手机桌面上的微件集合进行 长按操作,手机可以接收到用户针对于微件集合的长按操作;如图8中的(b)所示,手机响应于用户针对于微件集合的长按操作,在微件集合的周边产生一个与微件集合的尺寸、形状相匹配的边框,以提示用户可以对微件集合的形状进行改变;用户在微件集合上进行双指捏合往内收缩的操作,手机可以接收到用户针对于微件集合的双指捏合手势操作;如图8中的(c)所示,手机响应于用户针对于微件集合的收缩操作,将微件集合切换为钱包图标。
在一些情况下,用户可能需要改变微件集合显示区域的大小,例如在微件集合占据手机桌面较大空间时,用户可能需要将微件集合更改为较小的形状;又例如,在微件集合能够显示的微件较少时,用户可能需要将微件集合更改为较大的形状。
在一些实施例中,用户可以对微件集合进行操作5,手机接收用户针对于微件集合的操作5,手机将更改微件集合显示区域的大小,例如将较小的微件集合更改为较大的微件集合,或者将较大的微件集合更改为较小的微件集合。也就是说,操作5用于更改微件集合显示区域的大小。
在一些可能的实现方式中,用于更改微件集合大小的操作5可以是长按手势操作和收缩手势操作。例如,如图9中的(a)所示,用户对手机桌面上的微件集合进行长按操作,手机可以接收到用户针对于微件集合的长按操作。如图9中的(b)所示,手机响应于用户针对于微件集合的长按操作,在微件集合的周边产生一个与微件集合的尺寸、形状相匹配的边框;用户通过按住边框上的圆点,控制边框往左侧进行收缩,并且将边框收缩至能够显示一个微件的大小,手机可以接收到用户针对于微件集合的收缩操作。如图9中的(c)所示,手机响应于用户针对于微件集合的收缩操作,将原来大小为“4×2”的微件集合更改成大小为“2×2”的微件集合。如图9中的(d)所示,用户可以继续对变小后的微件集合进行收缩,手机可以接收到用户针对于变小后的微件集合的收缩操作。如图9中的(e)所示,手机响应于用户针对于变小后的微件集合的收缩操作,将微件集合切换为钱包图标。
可以理解的是,上述示例中以钱包图标为例进行了说明,但能够实现切换为微件集合的图标并不限于此,可以是任意类型应用程序的图标,例如用于播放音乐的应用程序或者是用于通讯的应用程序等应用程序所对应的图标。
例如,如图10中的(a)至(c)所示,手机的桌面上显示应用程序“音乐”的图标(以下简称音乐图标),该音乐图标与“音乐1”微件以及“音乐2”微件具有对应关系,手机响应于操作1,将音乐图标切换为如图10中的(c)所示的微件集合,该微件集合中显示有“音乐1”微件以及“音乐2”微件。具体的切换过程可以参考图3中的(a)至图3中的(c)对应的描述,在此不再赘述。
可以理解的是,在将目标图标切换为微件集合的过程中,手机往往需要先确定微件集合中的多个微件。在一些可能的实现方式中,手机可以根据目标图标自动确定微件集合对应的多个微件,或者,手机也可以根据用户的设置来确定微件集合对应的多个微件。
手机自动确定目标图标对应的多个微件,包括但不限于以下的多种方式:
例如,手机桌面上显示有钱包图标,钱包图标对应的应用程序“钱包”与应用程序“支付宝”以及应用程序“微信”具有关联关系,应用程序“支付宝”具有“支付宝付款码” 微件,应用程序“微信”具有“微信付款码”微件,则可以根据钱包图标确定与应用程序“钱包”所关联的“支付宝付款码”微件以及“微信付款码”微件。也就是说,当目标图标为一应用程序的图标时,手机可以根据目标图标对应的应用程序确定与该应用程序关联的其他多个应用程序,进而确定其他多个应用程序对应的多个微件,该多个微件即为微件集合对应的微件。
又如,手机桌面上显示有一文件夹的图标,该文件夹包括有应用程序“支付宝”以及应用程序“微信”,且应用程序“支付宝”具有“支付宝付款码”微件,应用程序“微信”具有“微信付款码”微件。则可以根据该文件夹图标确定与该文件夹中的应用程序对应的“支付宝付款码”微件以及“微信付款码”微件。也就是说,当目标图标为一文件夹的图标时,手机首先确定该文件夹包括哪些应用程序,再确定该文件夹中包括的各应用程序对应的微件,以确定微件集合对应的多个微件。
再如,手机桌面上显示有钱包图标,且手机上安装有应用程序“微信”和“支付宝”,手机可以根据钱包图标确定与应用程序“钱包”属于同一类型的应用程序“微信”和“支付宝”,进而确定钱包图标对应的“支付宝付款码”微件以及“微信付款码”微件;或者,手机桌面上显示有音乐图标,且手机上安装有应用程序“音乐1”和“音乐2”,手机可以根据音乐图标确定与应用程序“音乐”属于同一类型的应用程序“音乐1”和“音乐2”,进而确定音乐图标对应的“音乐1”微件以及“音乐2”微件。也就是说,当目标图标为一应用程序的图标时,手机首先确定目标图标对应的应用程序所属的类型(例如支付类型、音乐类型或者游戏类型等),再确定手机中与目标图标的应用程序类型相同的其他应用程序,最后确定其他应用程序对应的多个微件,该多个微件即为微件集合对应的微件。
手机可以根据用户的设置来确定微件集合对应的多个微件,包括但不限于以下的方式:
例如,如图11中的(a)所示,用户点击钱包图标,手机接收用户点击钱包图标的操作;如图11中的(b)所示,手机响应于用户点击钱包图标的操作,进入应用程序“钱包”的首页界面中,用户可以在首页界面中对支付码部件进行点击操作;如图11中的(c)所示,手机响应于用户对支付码部件的点击操作,进入到支付码界面中,该支付码界面可以显示应用程序“钱包”所关联的付款码,用户可以在支付码界面中对设置部件进行点击操作;如图11中的(d)所示,手机响应于用户对支付码界面中的设置部件的点击操作,进入到支付码设置界面中,该支付码设置界面中显示有微件关联设置部件,用户可以对微件关联设置部件进行点击操作;如图11中的(e)所示,手机响应于用户对支付码设置界面中微件关联设置部件的点击操作,进入微件关联设置界面,该微件关联设置界面中可以显示应用程序“钱包”可以关联的微件,例如“微信付款码”微件和”支付宝付款码”微件,用户可以点击微件关联设置界面中的全选部件,从而选择关联当前微件关联设置界面中的所有微件,实现应用程序“钱包”与“微信付款码”微件以及”支付宝付款码”微件之间的关联。在用户设置了应用程序“钱包”与“微信付款码”微件以及”支付宝付款码”微件进行关联之后,手机可以根据钱包图标对应的应用程序“钱包”确定“微信付款码”微件以及”支付宝付款码”微件,“微信付款码”微件以及”支付宝付款码”微件即为与钱包图标具有对应关系的微件。也就是说,用户可以在手机上设置目标图标对应的应用程序与 其他应用程序的微件进行关联,这样一来,目标图标对应的应用程序所关联的多个微件即为微件集合所对应的多个微件。
需要说明的是,本申请实施例确定微件集合对应的多个微件的情况,包括但不限于上述的多种情况,本申请实施例不做限定。
在一些实施例中,微件集合中的微件可以显示一个或多个部件,用户可以对微件上的部件进行操作,手机响应于用户针对于微件上部件的操作,进入该微件对应的应用程序中特定的界面,或者实现相应的功能。
例如,如图12中的(a)所示,手机桌面上微件集合中的“音乐2”微件上显示有播放部件,该播放部件为一个三角形形状的虚拟按键,用户可以对播放部件进行点击操作;如图12中的(b)所示,手机响应于用户对“音乐2”微件上播放部件的点击操作,手机进入应用程序“音乐2”中的音乐播放界面。同样地,如图12中的(c)所示,手机桌面上微件集合中的“音乐1”微件上显示有播放部件,用户可以对播放部件进行点击操作;如图12中的(d)所示,手机响应于用户对“音乐1”微件上播放部件的点击操作,手机进入应用程序“音乐1”中的音乐播放界面。
又例如,如图12中的(a)所示,手机桌面上微件集合中的“音乐2”微件上显示有播放部件,用户可以对播放部件进行点击操作,手机响应于用户对“音乐2”微件上播放部件的点击操作,手机播放应用程序“音乐2”中的音乐,即实现音乐2中的音乐播放功能。
在一些实施例中,微件集合中的微件可以显示一个或多个部件,用户可以对微件上所显示的部件之外的区域进行操作2,手机响应于用户针对于微件上部件外的区域的操作2,进入该微件对应的应用程序中的主界面。
例如,如图13中的(a)所示,手机桌面上微件集合中的“音乐2”微件上显示有播放部件,用户可以对“音乐2”微件上播放部件之外的区域(也可以称为余热区)进行点击操作;如图13中的(b)所示,手机响应于用户对“音乐2”微件上余热区的点击操作,进入应用程序“音乐2”中的主界面。同样地,如图13中的(c)所示,手机桌面上微件集合中的“音乐1”微件上显示有播放部件,“音乐1”微件上播放部件之外的区域为余热区,用户可以对“音乐1”微件上的余热区进行点击操作;如图13中的(d)所示,手机响应于用户对“音乐1”微件上余热区的点击操作,进入应用程序“音乐1”中的主界面。也就是说,操作2具体可以是用于触发进入目标微件对应的应用程序界面。
可以理解的是,上述实施例中以目标图标为应用程序的图标为例,进行了说明。但能够实现切换为微件集合的图标并不限于此,例如,目标图标还可以为包括有多个应用程序的文件夹的图标。
例如,如图14中的(a)所示,手机的桌面上包括有支付文件夹,用户可以对支付文件夹进行点击操作,以进入支付文件夹;或者,用户也可以对支付文件夹进行长按操作后对支付文件夹进行拉伸操作,以将支付文件夹图标切换为微件集合。如图14中的(e)所示,用户对支付文件夹进行点击操作之后,手机可以接收到用户针对于支付文件夹的点击操作,手机响应于用户的点击操作,进入支付文件夹的界面中,显示支付文件夹中所包括 的应用程序,如,支付宝应用程序和微信应用程序。如图14中的(b)所示,用户可以对支付文件夹进行长按操作,手机接收用户针对于支付文件夹的长按操作,手机响应于用户的长按操作,在支付文件夹图标的周边显示一个与支付文件夹图标的尺寸、大小相匹配的边框,以指示用户拉伸支付文件夹图标。如图14中的(c)所示,用户可以对支付文件夹图标上的边框进行拉伸操作,手机接收用户针对于支付文件夹图标的拉伸操作,手机响应于用户的拉伸操作,将支付文件夹图标切换为微件集合,该微件集合中包括有“微信付款码”微件和“支付宝付款码”微件,该微件集合显示“微信付款码”微件;如图14中的(d)所示,用户可以进一步对微件集合进行拉伸操作,手机接收到用户针对于微件集合的拉伸操作,手机响应于用户的拉伸操作,将微件集合更改为新的微件集合,新的微件集合的显示区域更大,能够同时显示“微信付款码”微件和“支付宝付款码”微件。
在一种可能的实现方式中,文件夹中可以包括多个相同类型的应用程序。如图14中的(e)所示,支付文件夹中包括有支付宝和微信这两个支付类的应用程序。
在另一种可能的实现方式中,文件夹中还可以包括多个不同类型的应用程序。如图15中的(a)所示,手机的桌面上包括有文件夹,该文件夹被用户命名为常用文件夹,该常用文件夹中包括有用户经常使用的应用程序。如图15中的(e)所示,用户对常用文件夹进行点击操作之后,手机响应于用户的点击操作,进入常用文件夹的界面中,显示常用文件夹中所包括的应用程序,即支付宝应用程序、微信应用程序、应用程序“音乐1”和应用程序“音乐2”,其中,支付宝应用程序和微信应用程序为支付类的应用程序,应用程序“音乐1”和应用程序“音乐2”为音乐类的应用程序。如图15中的(b)所示,用户可以对常用文件夹进行长按操作,手机响应于用户的长按操作,在常用文件夹图标的周边显示一个与常用文件夹图标的尺寸、大小相匹配的边框,以指示用户拉伸常用文件夹图标。如图15中的(c)所示,用户可以对常用文件夹图标上的边框进行拉伸操作,手机响应于用户的拉伸操作,将常用文件夹图标切换为微件集合,该微件集合显示“微信付款码”微件和“支付宝付款码”微件;如图15中的(d)所示,用户可以对微件集合进行滑动翻页操作,手机响应于用户针对于微件集合的滑动翻页操作,更改微件集合中所显示的微件,即将微件集合中所显示的“微信付款码”微件和“支付宝付款码”微件更改为“音乐1”微件和“音乐2”微件。
在一些实施例中,在文件夹中包括有多个不同类型的应用程序的情况下,用户可以针对微件集合进行上述的操作3,手机响应于用户针对于微件集合的操作3,更改微件集合上所显示的微件。也就是说,操作3可以用于更改微件集合中所显示的微件。具体地,可以参考上述图5中的(a)至(f)对应的描述,在此不再赘述。
在一些实施例中,在文件夹中包括有多个不同类型的应用程序的情况下,用户还可以针对于微件集合进行不同的操作6,从而更改微件集合上所显示的微件的类型。也就是说,手机可以接收用户针对于微件集合不同的操作6,手机响应于用户针对于微件集合不同的操作6,将微件集合上所显示的微件进行更改,更改后的微件的类型与手势操作具有对应关系。其中,操作6用于更改微件集合中所显示的微件的类别。
例如,如图16中的(a)所示,手机桌面上的微件集合包括有多个不同类型的微件, 微件集合上所显示的微件为”微信付款码”微件,用户可以对微件集合进行向右滑动翻页操作。如图16中的(b)所示,手机可以接收到用户针对于微件集合的向右滑动翻页操作,手机响应于用户针对于微件集合的向右滑动翻页操作,将微件集合上显示的微件更改为“支付宝付款码”微件。如图16中的(c)所示,用户还可以对微件集合进行向右滑动翻页操作,手机可以接收到用户针对于微件集合的向右滑动翻页操作,手机响应于用户针对于微件集合的向右滑动翻页操作,将微件集合上显示的微件更改为“微信付款码”微件。也就是说,用户可以通过向右滑动翻页手势操作或者向左滑动翻页手势操作,来更改微件集合上所显示的微件,且更改后的微件均为支付类型的微件;换句话说,用户可以通过向右滑动翻页手势操作或者向左滑动翻页手势操作,更改显示微件集合中属于支付类的微件。
如图16中的(d)所示,微件集合上显示“微信付款码”微件,用户还可以对微件集合进行向下滑动翻页操作。如图16中的(e)所示,手机可以接收到用户针对于微件集合的向下滑动翻页操作,手机响应于用户针对于微件集合的向下滑动翻页操作,将微件集合上显示的微件更改为“音乐1”微件。如图16中的(f)所示,用户还可以继续对微件集合进行向下滑动翻页操作,手机可以接收到用户针对于微件集合的向下滑动翻页操作,手机响应于用户针对于微件集合的向下滑动翻页操作,将微件集合上显示的微件更改为“音乐2”微件。也就是说,用户可以通过向下滑动翻页手势操作或者向上滑动翻页手势操作,来更改微件集合上所显示的微件,且更改后的微件均为音乐类型的微件。
本实施例中,用于更改微件集合中所显示的微件的手势操作还可以是其他的手势操作,例如斜向滑动手势操作等,本实施例并不对手势操作做限定。本实施例中也不对手势操作与更改后的微件类型之间的对应关系做限定,可以是左右滑动手势操作与支付类的微件对应,也可以是上下滑动手势操作与支付类的微件对应,还可以是斜向滑动手势操作与支付类的微件对应等等。
需要说明的是,在文件夹的图标所对应的微件集合同时支持操作3和操作6的情况下,为了避免混淆,触发更改微件集合中所显示的微件的手势操作和用于触发更改微件集合中所显示的微件的类别的手势操作可以设置为不同的手势操作。也就是说,操作3和操作6可以为不同的操作。示例性地,操作3可以是左右滑动操作,操作6则可以是上下滑动操作;或者,操作3是上下滑动操作,操作6是左右滑动操作。
在一些实施例中,在文件夹中包括有多个不同类型的微件的情况下,手机可以根据不同类型下微件的数量,调整微件集合上所显示的微件的大小。
例如,如图17中的(a)所示,手机桌面上包括有常用文件夹,该常用文件夹包括有两个支付类型的微件和三个音乐类型的微件,用户可以对常用文件夹进行拉伸操作;如图17中的(b)所示,手机可以接收到用户针对于常用文件夹的拉伸操作,手机响应于用户针对于常用文件夹的拉伸操作,将常用文件夹图标切换为微件集合,微件集合上同时显示两个支付类型的微件,即“微信付款码”微件和“支付宝付款码”微件;如图17中的(c)所示,用户可以对微件集合进行滑动翻页操作,手机可以接收到用户针对于微件集合的滑动翻页操作,手机响应于用户针对于微件集合的滑动翻页操作,更改微件集合上所显示的微件,即将微件集合上的微件更改为三个音乐类型的微件。
具体来说,手机可以根据不同类型下微件的数量,调整微件集合上所显示的微件的大小,从而实现能够在微件集合上尽可能多地显示同一类型下的微件。例如,在手机桌面上的微件集合为“4×2”大小的情况下,手机可以对微件大小进行调整,以使得微件集合上能够同时显示两个或者三个同类型的微件。比如,在具有两个或两个的倍数以上的同一类型微件时,手机调整微件的大小为“2×2”,即在微件集合上同时显示两个同类型的微件;又比如,在具有三个或三个的倍数以上的同一类型微件时,手机调整微件的大小为“1.3×2”,即在微件集合上同时显示三个同类型的微件。
在实际应用中,根据微件数量来调整微件集合上微件大小的方式还可以根据实际需要进行相应的设置,本实施例不对调整微件大小的方式进行限定。
在一些实施例中,在手机将目标图标切换为微件集合之后,在微件集合上所显示的微件的顺序是可以进行调整的。用户可以对目标图标进行操作7,手机接收到用户针对于目标图标的操作7,响应于用户针对于目标图标的操作7,调整微件集合中微件的显示顺序。也就是说,操作7用于调整微件集合中微件的显示顺序。
例如,如图18中的(a)所示,用户可以对钱包图标进行点击操作;如图18中的(b)所示,手机接收到用户对钱包图标的点击操作,手机响应于用户对钱包图标的点击操作,进入钱包应用程序的首页界面中,用户可以对首页界面中的支付码部件进行点击操作;如图18中的(c)所示,手机接收到用户对支付码部件的点击操作,手机响应于用户对支付码部件的点击操作,进入支付码展示界面中,用户可以对支付码展示界面中的设置部件进行点击操作;如图18中的(d)所示,手机接收到用户对设置部件的点击操作,手机响应于用户对设置部件的点击操作,进入设置界面中,用户可以对设置界面中的微件顺序设置部件进行点击操作;如图18中的(e)所示,手机接收到用户对微件顺序设置部件的点击操作,手机响应于用户对微件顺序设置部件的点击操作,进入微件顺序设置界面中,该微件顺序设置界面中包括有多个用于调整微件显示顺序的部件,用户可以通过点击不同的部件来选择微件显示的方式。
比如,用户可以选择按使用顺序来排列微件集合中所显示的微件,用户最后一次使用的微件在微件集合中的显示顺序为第一,用户倒数第二次使用的微件在微件集合中的显示顺序为第二,以此类推。又比如,用户可以选择按使用频率来排列微件集合中所显示的微件,在一定的时间范围内(例如一天或者一周),用户使用频率最高的微件在微件集合中的显示顺序为第一,用户使用频率第二高的微件在微件集合中的显示顺序为第二,以此类推。又比如,用户可以根据自己的实际需要,自定义设置微件集合中微件的显示顺序。
可以参阅图19,图19为本申请实施例提供的一种微件处理方法的另一示例流程示意图。如图19所示,本申请实施例提供的一种微件处理方法,包括:
1901、电子设备显示目标图标。
示例性地,电子设备可以在桌面上显示目标图标,或者是在控制中心等界面上显示目标图标。
1902、所述电子设备接收对目标图标的第一操作。
示例性地,第一操作可以如前述实施例中的操作1。所述电子设备接收对目标图标的 第一操作具体可以包括:所述电子设备接收对所述目标图标的长按操作;响应于所述长按操作,所述电子设备在所述目标图标的边缘显示边框;所述电子设备接收对所述边框的拉伸操作。
1903、响应于所述第一操作,所述电子设备将所述目标图标切换为微件集合,所述微件集合包括多个应用程序的多个微件。
其中,目标图标与该多个应用程序对应,且该多个应用程序分别对应有微件,因此根据目标图标可以确定与其对应的多个应用程序的多个微件。
1904、所述电子设备显示所述微件集合。
在一个可选的实施例中,所述电子设备将所述目标图标切换为微件集合之后,所述方法还包括:所述电子设备接收对所述微件集合的第二操作;响应于所述第二操作,所述电子设备更改所述微件集合上所显示的微件。示例性地,该第二操作具体可以如前述的操作3。
在一个可选的实施例中,所述目标图标为第一应用程序的图标;所述多个应用程序包括与所述第一应用程序相关联的应用程序。也就是说,第一应用程序可以与多个应用程序相关联,电子设备将第一应用程序的图标切换为微件集合,该微件集合中所包括的多个微件是与第一应用程序相关联的多个应用程序的微件。
在一个可选的实施例中,所述多个应用程序包括所述第一应用程序。也就是说,微件集合所包括的多个微件中还包括有第一应用程序的微件。其中,第一应用程序可以与电子设备中与其同类型的应用程序相关联,例如第一应用程序为支付类型的应用程序,第一应用程序可以与电子设备中同属于支付类型的其他应用程序相关联。
在一个可选的实施例中,所述目标图标为文件夹的图标,所述多个应用程序为所述文件夹包括的应用程序。也就是说,文件夹中包括有多个应用程序,电子设备将文件夹的图标切换为微件集合,该微件集合中所包括的多个微件是文件夹中的多个应用程序的微件。例如,文件夹中可以包括应用程序A和应用程序B,电子设备可以将文件夹的图标切换为微件集合,该微件集合中所包括的多个微件是应用程序A的微件以及应用程序B的微件。
在一个可选的实施例中,所述多个微件包括第一微件,第二微件和第三微件;所述电子设备更改所述微件集合上所显示的微件,包括:若所述第二操作为第一方向上的滑动操作,所述电子设备将所述微件集合上显示的所述第一微件更改为所述第二微件,所述第二微件与所述第一微件的类型相同;若所述第二操作为第二方向上的滑动操作,所述电子设备将所述微件集合上显示的所述第一微件更改为所述第三微件,所述第三微件与所述第一微件的类型不同;所述第一方向与所述第二方向为不同的方向。
在一个可选的实施例中,在电子设备将目标图标切换为微件集合之后,该方法还可以包括:电子设备接收对目标微件的第三操作,该目标微件为微件集合上所显示的微件;响应于第三操作,电子设备显示目标微件对应的应用程序界面。示例性地,该第三操作具体可以如前述的操作2。其中,该第三操作具体可以为点击操作,也就是说,电子设备响应于对微件集合上所显示的目标微件的点击操作,可以显示目标微件对应的应用程序界面。
在一个可选的实施例中,在电子设备将目标图标切换为微件集合之后,该方法还可以 包括:电子设备接收对微件集合的第四操作;响应于第四操作,电子设备将微件集合切换为目标图标。示例性地,该第四操作具体可以如前述的操作4。具体地,第四操作可以为长按手势操作和收缩手势操作,电子设备接收对微件集合的长按手势操作;响应于长按手势操作,电子设备在微件集合的边缘显示边框;电子设备接收对边框的收缩手势操作;电子设备响应于该收缩手势操作,将微件集合切换为目标图标。
在一个可选的实施例中,在电子设备将目标图标切换为微件集合之后,该方法还可以包括:电子设备接收对微件集合的第五操作;响应于第五操作,电子设备更改微件集合显示区域的大小,例如将显示区域较小的微件集合更改为显示区域较大的微件集合,或者将显示区域较大的微件集合更改为显示区域较小的微件集合。示例性地,该第五操作具体可以如前述的操作5。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器、随机存取存储器、磁碟或者光盘等各种可以存储程序代码的介质。

Claims (16)

  1. 一种微件处理方法,其特征在于,包括:
    电子设备显示目标图标;
    所述电子设备接收对所述目标图标的第一操作;
    响应于所述第一操作,所述电子设备将所述目标图标切换为微件集合,所述微件集合包括多个应用程序的多个微件;
    所述电子设备显示所述微件集合。
  2. 根据权利要求1所述的微件处理方法,其特征在于,所述电子设备将所述目标图标切换为微件集合之后,所述方法还包括:
    所述电子设备接收对所述微件集合的第二操作;
    响应于所述第二操作,所述电子设备更改所述微件集合上显示的微件。
  3. 根据权利要求1或2所述的微件处理方法,其特征在于,所述目标图标为第一应用程序的图标;
    所述多个应用程序包括与所述第一应用程序相关联的应用程序。
  4. 根据权利要求3所述的微件处理方法,其特征在于,所述多个应用程序包括所述第一应用程序。
  5. 根据权利要求1或2所述的微件处理方法,其特征在于,所述目标图标为文件夹的图标,所述多个应用程序为所述文件夹包括的应用程序。
  6. 根据权利要求5所述的微件处理方法,其特征在于,所述多个微件包括第一微件,第二微件和第三微件;
    所述电子设备更改所述微件集合上所显示的微件,包括:
    若所述第二操作为第一方向上的滑动操作,所述电子设备将所述微件集合上显示的所述第一微件更改为所述第二微件,所述第二微件与所述第一微件的类型相同;
    若所述第二操作为第二方向上的滑动操作,所述电子设备将所述微件集合上显示的所述第一微件更改为所述第三微件,所述第三微件与所述第一微件的类型不同;
    所述第一方向与所述第二方向为不同的方向。
  7. 根据权利要求1-6任一项权利要求所述的微件处理方法,其特征在于,所述电子设备接收对目标图标的第一操作,包括:
    所述电子设备接收对所述目标图标的长按操作;
    响应于所述长按操作,所述电子设备在所述目标图标的边缘显示边框;
    所述电子设备接收对所述边框的拉伸操作。
  8. 一种电子设备,其特征在于,包括:
    显示屏;
    处理器;
    存储器,用于存储计算机程序;
    所述计算机程序包括指令,当所述指令被所述处理器执行时,使得所述电子设备执行以下步骤:
    显示目标图标;
    接收对所述目标图标的第一操作;
    响应于所述第一操作,将所述目标图标切换为微件集合,所述微件集合包括多个应用程序的多个微件;
    显示所述微件集合。
  9. 根据权利要求8所述的电子设备,其特征在于,当所述指令被所述处理器执行时,使得所述电子设备执行以下步骤:
    在将所述目标图标切换为微件集合之后,接收对所述微件集合的第二操作;
    响应于所述第二操作,更改所述微件集合上显示的微件。
  10. 根据权利要求8或9所述的电子设备,其特征在于,所述目标图标为第一应用程序的图标;
    所述多个应用程序包括与所述第一应用程序相关联的应用程序。
  11. 根据权利要求10所述的电子设备,其特征在于,所述多个应用程序包括所述第一应用程序。
  12. 根据权利要求8或9所述的电子设备,其特征在于,所述目标图标为文件夹的图标,所述多个应用程序为所述文件夹包括的应用程序。
  13. 根据权利要求12所述的电子设备,其特征在于,所述多个微件包括第一微件,第二微件和第三微件;
    所述更改所述微件集合上所显示的微件,包括:
    若所述第二操作为第一方向上的滑动操作,将所述微件集合上显示的所述第一微件更改为所述第二微件,所述第二微件与所述第一微件的类型相同;
    若所述第二操作为第二方向上的滑动操作,将所述微件集合上显示的所述第一微件更改为所述第三微件,所述第三微件与所述第一微件的类型不同;
    所述第一方向与所述第二方向为不同的方向。
  14. 根据权利要求8-13任一项权利要求所述的电子设备,其特征在于,所述接收对目标图标的第一操作,包括:
    接收对所述目标图标的长按操作;
    响应于所述长按操作,在所述目标图标的边缘显示边框;
    接收对所述边框的拉伸操作。
  15. 一种包含指令的计算机程序产品,其特征在于,当所述指令在计算机上运行时,使得所述计算机执行如权利要求1-7中任一所述的方法。
  16. 一种计算机可读存储介质,其特征在于,包括计算机程序指令,当计算机程序指令在计算机上运行时,使得所述计算机执行如权利要求1-7中任一项所述的方法。
PCT/CN2021/072026 2020-01-17 2021-01-15 一种微件处理方法以及相关装置 WO2021143805A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
US17/793,326 US20230068100A1 (en) 2020-01-17 2021-01-15 Widget processing method and related apparatus
CN202180008707.5A CN114930289A (zh) 2020-01-17 2021-01-15 一种微件处理方法以及相关装置
JP2022543513A JP7412572B2 (ja) 2020-01-17 2021-01-15 ウィジェット処理方法及び関連する機器
EP21741059.6A EP4080356A4 (en) 2020-01-17 2021-01-15 METHOD OF WIDGET PROCESSING AND RELATED DEVICE

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010058434.2 2020-01-17
CN202010058434.2A CN111240789B (zh) 2020-01-17 2020-01-17 一种微件处理方法以及相关装置

Publications (1)

Publication Number Publication Date
WO2021143805A1 true WO2021143805A1 (zh) 2021-07-22

Family

ID=70874728

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/072026 WO2021143805A1 (zh) 2020-01-17 2021-01-15 一种微件处理方法以及相关装置

Country Status (5)

Country Link
US (1) US20230068100A1 (zh)
EP (1) EP4080356A4 (zh)
JP (1) JP7412572B2 (zh)
CN (4) CN115220838A (zh)
WO (1) WO2021143805A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114968018A (zh) * 2022-07-26 2022-08-30 荣耀终端有限公司 卡片显示方法、终端设备
ES2938810A1 (es) * 2021-10-11 2023-04-14 Seat Sa Metodo implementado por ordenador de configuracion de un monitor tactil, programa de ordenador y sistema

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115220838A (zh) * 2020-01-17 2022-10-21 华为技术有限公司 一种微件处理方法以及相关装置
CN112148178A (zh) * 2020-09-30 2020-12-29 维沃移动通信有限公司 应用切换方法、装置、电子设备及可读存储介质
CN113515227A (zh) * 2021-05-21 2021-10-19 腾讯科技(深圳)有限公司 卡片单元展示方法、装置、计算机设备和存储介质
CN113268305A (zh) * 2021-06-01 2021-08-17 中兴通讯股份有限公司 微件的显示方法、装置、终端及计算机可读存储介质
CN115794272B (zh) * 2021-11-03 2023-06-27 华为技术有限公司 一种显示方法及电子设备
CN114416242B (zh) * 2021-12-30 2024-02-20 北京五八信息技术有限公司 一种数据处理方法、装置、电子设备及存储介质
CN116841421A (zh) * 2022-03-24 2023-10-03 深圳市欢太科技有限公司 界面显示方法、装置、终端设备及存储介质
CN115098204A (zh) * 2022-06-17 2022-09-23 深圳传音控股股份有限公司 一种微件显示方法、智能终端及存储介质
CN114860674B (zh) * 2022-07-06 2022-12-13 深圳传音控股股份有限公司 文件处理方法、智能终端及存储介质
CN115357156A (zh) * 2022-08-18 2022-11-18 维沃移动通信有限公司 显示方法、装置、电子设备及可读存储介质
CN116661645B (zh) * 2022-11-30 2024-04-05 荣耀终端有限公司 显示应用卡片的方法、电子设备及可读存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090249231A1 (en) * 2008-03-31 2009-10-01 Julia Mohr System and method for accessing documents
CN103139371A (zh) * 2011-11-29 2013-06-05 Lg电子株式会社 移动终端及其控制方法
CN103279261A (zh) * 2013-04-23 2013-09-04 惠州Tcl移动通信有限公司 无线通讯设备及其窗口小部件的添加方法
CN103605457A (zh) * 2013-11-26 2014-02-26 广东欧珀移动通信有限公司 一种窗口小部件与图标的转换方法及智能终端
CN104714723A (zh) * 2015-01-22 2015-06-17 上海华豚科技有限公司 应用软件的微件启动、退出方法
CN111240789A (zh) * 2020-01-17 2020-06-05 华为技术有限公司 一种微件处理方法以及相关装置

Family Cites Families (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20110023977A (ko) * 2009-09-01 2011-03-09 삼성전자주식회사 휴대단말기의 위젯 관리 방법 및 장치
CN102693120B (zh) * 2011-03-21 2016-08-10 联想(北京)有限公司 微件显示方法、显示装置及电子设备
KR101879333B1 (ko) * 2011-12-06 2018-07-17 엘지전자 주식회사 이동 단말기 및 그의 아이콘 배열방법
US9146655B2 (en) * 2012-04-06 2015-09-29 Samsung Electronics Co., Ltd. Method and device for executing object on display
US9377937B2 (en) * 2012-04-06 2016-06-28 Samsung Electronics Co., Ltd. Method and device for executing object on display
US8732617B1 (en) * 2013-01-16 2014-05-20 Google Inc. Systems and methods for enhanced function access in mobile applications
CN104142798A (zh) * 2013-05-10 2014-11-12 北京三星通信技术研究有限公司 启动应用程序的方法及触摸屏智能终端设备
US9811250B2 (en) * 2014-05-31 2017-11-07 Apple Inc. Device, method, and graphical user interface for displaying widgets
KR20160023188A (ko) * 2014-08-21 2016-03-03 엘지전자 주식회사 이동 단말기 및 그 제어 방법
US10304163B2 (en) * 2014-09-08 2019-05-28 Apple Inc. Landscape springboard
JP6060983B2 (ja) * 2015-01-30 2017-01-18 カシオ計算機株式会社 ネットワーク・サービスシステム及び端末、表示方法、プログラム
KR102488461B1 (ko) * 2015-11-24 2023-01-13 엘지전자 주식회사 플렉서블 디스플레이 장치 및 그의 동작 방법
CN105426082B (zh) * 2015-12-03 2018-09-14 魅族科技(中国)有限公司 一种应用界面窗口切换方法及终端
CN106020796A (zh) * 2016-05-09 2016-10-12 北京小米移动软件有限公司 界面显示方法及装置
CN106528252B (zh) * 2016-12-09 2018-04-24 北京小米移动软件有限公司 对象启动方法及装置
CN107526493A (zh) * 2017-08-29 2017-12-29 努比亚技术有限公司 一种小工具显示方法、设备及计算机可读存储介质

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090249231A1 (en) * 2008-03-31 2009-10-01 Julia Mohr System and method for accessing documents
CN103139371A (zh) * 2011-11-29 2013-06-05 Lg电子株式会社 移动终端及其控制方法
CN103279261A (zh) * 2013-04-23 2013-09-04 惠州Tcl移动通信有限公司 无线通讯设备及其窗口小部件的添加方法
CN103605457A (zh) * 2013-11-26 2014-02-26 广东欧珀移动通信有限公司 一种窗口小部件与图标的转换方法及智能终端
CN104714723A (zh) * 2015-01-22 2015-06-17 上海华豚科技有限公司 应用软件的微件启动、退出方法
CN111240789A (zh) * 2020-01-17 2020-06-05 华为技术有限公司 一种微件处理方法以及相关装置

Non-Patent Citations (1)

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

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
ES2938810A1 (es) * 2021-10-11 2023-04-14 Seat Sa Metodo implementado por ordenador de configuracion de un monitor tactil, programa de ordenador y sistema
CN114968018A (zh) * 2022-07-26 2022-08-30 荣耀终端有限公司 卡片显示方法、终端设备
CN114968018B (zh) * 2022-07-26 2022-12-16 荣耀终端有限公司 卡片显示方法、终端设备

Also Published As

Publication number Publication date
JP7412572B2 (ja) 2024-01-12
EP4080356A4 (en) 2023-01-25
CN111240789A (zh) 2020-06-05
JP2023510421A (ja) 2023-03-13
CN115220838A (zh) 2022-10-21
CN112527431B (zh) 2022-02-25
US20230068100A1 (en) 2023-03-02
CN111240789B (zh) 2022-07-22
CN112527431A (zh) 2021-03-19
CN114930289A (zh) 2022-08-19
EP4080356A1 (en) 2022-10-26

Similar Documents

Publication Publication Date Title
WO2021143805A1 (zh) 一种微件处理方法以及相关装置
US11074117B2 (en) Copying and pasting method, data processing apparatus, and user equipment
US9035883B2 (en) Systems and methods for modifying virtual keyboards on a user interface
US11054988B2 (en) Graphical user interface display method and electronic device
AU2011324252B2 (en) Touch control method and portable terminal supporting the same
US10534509B2 (en) Electronic device having touchscreen and input processing method thereof
US8214768B2 (en) Method, system, and graphical user interface for viewing multiple application windows
JP5759660B2 (ja) タッチ・スクリーンを備える携帯式情報端末および入力方法
KR102020345B1 (ko) 터치스크린을 구비하는 단말에서 홈 화면의 구성 방법 및 장치
WO2018082269A1 (zh) 菜单显示方法及终端
KR20190100339A (ko) 애플리케이션 스위칭 방법, 디바이스 및 그래픽 사용자 인터페이스
CN102272707A (zh) 手势映射的滚动
KR20150032392A (ko) 지문 인식기를 구비한 단말 및 이 지문 인식기를 통한 사용자 입력의 처리 방법
KR20200009164A (ko) 전자 장치
WO2018133285A1 (zh) 显示方法及终端
US11567725B2 (en) Data processing method and mobile device
KR20140067334A (ko) 터치 입력 방법 및 휴대 단말
CN108509138B (zh) 一种任务栏按钮显示的方法及其终端
EP3674867B1 (en) Human-computer interaction method and electronic device
US20140085340A1 (en) Method and electronic device for manipulating scale or rotation of graphic on display
EP4307091A1 (en) Input method and terminal
KR20130140361A (ko) 터치스크린을 구비하는 단말에서 데이터 입력 방법 및 장치

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: 21741059

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2022543513

Country of ref document: JP

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 2021741059

Country of ref document: EP

Effective date: 20220718

NENP Non-entry into the national phase

Ref country code: DE