This application relates to the field of terminal technologies, and in particular, to an application icon management method and an electronic device.
With the popularization of smart wearable devices, developers have developed various application programs (applications, APPs, application for short below) to enrich functions of the smart wearable devices, and a user may install many apps on the smart wearable devices. For the apps installed on the smart wearable device, icons corresponding to the apps may be displayed on one or more screens of the smart wearable device, where the one or more screens include a home screen (which may also be referred to as a desktop). Currently, most smart wearable devices support customization of a position of an app icon. To be specific, an app icon displayed on a screen of the smart wearable device is arranged by dragging the app icon to a specific position.
Due to a small screen of the smart wearable device, limited by a screen size, one screen of the smart wearable device may usually display only a preset quantity of app icons. When a quantity of apps installed on the smart wearable device is greater than the preset quantity, one screen usually cannot display all the app icons installed on the smart wearable device, and a plurality of screens are needed to display all the app icons. Therefore, if an app icon displayed on a home screen needs to be moved to a target position on another screen for display, the user needs to drag the app icon to scroll at an edge of the screen to find the target position. In this solution, although the app icon can be moved, a process of moving the app icon is complex, and human-machine interaction performance is poor.
This application provides an application icon management method and an electronic device, to resolve problems of complex operation and poor human-machine interaction experience during moving of an app icon.
The technical solutions are as follows.
According to a first aspect, an application icon management method is provided, applied to an electronic device with a display. The electronic device has N application icons, N is an integer greater than or equal to 2, and the method includes:
The electronic device in this embodiment of this application is a smartwatch. After a user performs the first operation on the first application icon, a touchscreen of the smartwatch may enter the second interface from the first interface. The second interface is an interface that can display all icons. On the second interface, the first application icon is partially scaled up, which is more conducive to moving the first application icon to a target position and exchanging positions with the second application icon. In addition, in the solutions of this application, the target position can be further adjusted for a plurality of times, so that the user optimizes the icon more conveniently.
In a possible implementation of this application, in a case of the exchanging positions of the first application icon and a second application icon, the method further includes:
In a possible implementation of this application, after the exchanging positions of the first application icon and a second application icon, the method further includes:
In a possible implementation of this application, after the exchanging positions of the first application icon and a second application icon, if it is detected that the second operation is canceled, third interface is displayed on the display immediately or after a preset time.
In a possible implementation of this application, in a process of controlling the first application icon to move on the second interface, a display parameter of at least one application icon is adjusted if it is detected that the first application icon overlaps with the second application icon and the moving speed of the first application icon is lower than the preset moving speed threshold, so that the display parameter of the at least one application icon is better than the display parameter of the another application icon on the second interface, where the at least one application icon includes the second application icon.
In a possible implementation of this application, the displaying a second interface on the display of the electronic device in response to the first operation includes:
In a possible implementation of this application, the exchanging positions of the first application icon and a second application icon when an overlapping area between the first application icon and the second application icon is greater than or equal to a preset overlapping area threshold and a moving speed of the first application icon is lower than a preset moving speed threshold includes:
In a possible implementation of this application, in a process of controlling the first application icon to move on the second interface, the second interface is displayed if it is detected that the second operation is canceled.
In a possible implementation of this application, the display parameter includes a display size and/or display brightness.
According to a second aspect, another application icon management method is provided, applied to an electronic device with a display. The electronic device has N application icons, Nis an integer greater than or equal to 2, and the method includes:
The electronic device in this embodiment of this application is a smartwatch. After a user performs the first operation on the first application icon, a touchscreen of the smartwatch may enter the fourth interface from the first interface. The fourth interface includes the second control. When the operation for the second control is detected, the sixth interface including the first application icon and the at least one target application icon is displayed. In this way, the user can gather associated application icons, which is more convenient for the user to use.
In a possible implementation of this application, before the displaying a sixth interface on the display when detecting an operation for the second control on the fourth interface, the method includes: displaying a fifth interface on the display, where at least one application icon in the N application icons is displayed on the fifth interface; detecting a selection operation that is input on the fifth interface for the at least one target application icon in the N application icons; and displaying the sixth interface in response to the selection operation.
In a possible implementation of this application, before the displaying the sixth interface, the method further includes: associating the at least one target application icon with the first application icon after detecting the selection operation for the at least one target application icon; and displaying the fourth interface, where the displaying the sixth interface correspondingly includes: displaying the sixth interface when detecting the operation for the second control on the fourth interface.
In a possible implementation of this application, the at least one target application icon on the sixth interface is distributed around the first application icon by using the first application icon as a center.
According to a third aspect, an electronic device is provided, including a processor. The processor is coupled to a memory, and the processor is configured to execute a computer program or instructions stored in the memory, so that the electronic device implements the application icon management method.
An electronic device includes a processor. The processor is coupled to a memory, and the processor is configured to execute a computer program or instructions stored in the memory, so that the electronic device implements the method for determining a head posture.
According to a fourth aspect, a computer-readable storage medium is provided. The computer-readable storage medium stores a computer program. When the computer program runs on an electronic device, the electronic device is enabled to perform the application icon management method.
It may be understood that, for beneficial effects of the third aspect and the fourth aspect, reference may be made to related descriptions in the first aspect or the second aspect. Details are not described herein.
To clearly describe the technical solutions in embodiments of this application, terms such as “first” and “second” are used in embodiments of this application to distinguish between same items or similar items that provide basically same functions or purposes. For example, a first application icon and a second application icon are merely used to distinguish between different application icons, and a sequence of the first application icon and the second application icon is not limited. A person skilled in the art may understand that the terms such as “first” and “second” do not limit a quantity or an execution sequence, and the terms such as “first” and “second” do not indicate a definite difference.
It should be noted that in this application, words such as “example” or “for example” are used to represent giving an example, an illustration, or a description. Any embodiment or design scheme described as an “example” or “for example” in this application should not be explained as being more preferred or having more advantages than another embodiment or design scheme. To be precise, use of the words such as “example” or “for example” is intended to present a relative concept in a specific manner.
In this application, “at least one” means one or more, and “a plurality of” means two or more. The term “and/or” describes an association relationship between associated objects, and represents that three relationships may exist. For example, A and/or B may represent the following cases: Only A exists, both A and B exist, and only B exists, where A and B may be singular or plural. The character “/” generally indicates an “or” relationship between the associated objects. “At least one of the following items (pieces)” or a similar expression thereof indicates any combination of these items, including any combination of singular items (pieces) or plural items (pieces). For example, at least one item (piece) of a, b, or c may indicate: a, b, c, a and b, a and c, b and c, or a, b, and c, where a, b, and c may be singular or plural.
Embodiments of this application provide an application icon management method, an apparatus, and an electronic device. The application icon management method may be applied to an electronic device with a display, such as a smartwatch, a smart band, a mobile phone, a smart household, a vehicle-mounted device, or an augmented reality (augmented reality, AR)/virtual reality (virtual reality, VR) device. The electronic device has a plurality of apps. A name and a type of the electronic device are not limited in embodiments of this application. Neither a shape of the display nor a shape of an interface displayed on the display is limited in embodiments of this application. For example, the display and the interface displayed on the display each may be circular or rectangular.
In an embodiment of this application, an example in which the electronic device is a smartwatch is used. As shown in
In this embodiment, a plurality of applications (applications, APPs) may be installed on the electronic device, and icons of these applications are displayed on a home screen (home screen) of the electronic device. The application in this embodiment of this application may be an embedded application (that is, a system application of an electronic device), or may be a downloadable application. The embedded application is an application provided as a part of implementation of the electronic device. The downloadable application is an application that may provide an Internet protocol multimedia subsystem (internet protocol multimedia subsystem, IMS) connection of the downloadable application. The downloadable application may be an application pre-installed on the electronic device, or may be a third-party application downloaded and installed by a user on the electronic device. In an example, the application may include a social application (for example, WeChat, QQ, or Facebook), an image management application (for example, an album), a map application (for example, Baidu Map or Google Map), a browser application, a music application (for example, QQ Music or NetEase Cloud Music), and the like.
A home screen of the electronic device may also be referred to as a desktop or a home screen. The home screen may include one or more sub-screens (sub-screens), and the one or more sub-screens may be configured to display a control (control element). The user may perform an operation of sliding left or right, to display different sub-screens through switching. The control is a graphical user interface (graphical user interface, GUI) element, and is a software component, which is included in an application and controls all data processed by the application and interaction operations related to the data. The user may interact with the control through direct manipulation (direct manipulation), to read or edit related information of the application. Generally, the control may include visual interface elements such as an icon (for example, an icon of an application in the electronic device or a folder icon), a button, a menu, a tab, a text box, a dialog box, a status bar, a navigation bar, and a widget.
As shown in
In this embodiment of this application, the electronic device 200 may further include a proximity detection module 213. For example, the proximity detection module 213 is a “Hall device-magnet” device pair, a proximity sensor, or an NFC tag.
A person skilled in the art may understand that a structure of the electronic device shown in
The proximity detection module 213 is configured to: when the electronic device 200 approaches a peripheral device, trigger both the electronic device 200 and the peripheral device to automatically enter a state in which a connection can be established by using a wireless communication protocol.
The touchscreen 201, also referred to as a touch and display panel, is configured to implement input and output functions of the electronic device 200, may collect a touch operation of a user on or near the touchscreen 201 (such as an operation of the user on or near the touchscreen 201 by using any suitable object or accessory, such as a finger or a stylus), and drive a corresponding connection apparatus according to a preset program. The touchscreen 201 may be further configured to display information entered by the user or information provided for the user (for example, an image collected by a camera, or displaying various application icons), and various menus of the electronic device 200. For example, the touchscreen 201 may be implemented in various types, such as a resistive type, a capacitive type, an infrared light sensing type, and an ultrasonic type. This is not limited in this embodiment of this application. An operation of the user near the touchscreen 201 may be referred to as a hover touch. A touchscreen on which the hover touch can be performed may be implemented by using a capacitive type, an infrared light sensing type, an ultrasonic wave, or the like.
For example, in this embodiment of this application, the touchscreen 201 may include a detection module 2011 and a display module 2012. The detection module 2011 may detect a touch operation performed by the user on the touchscreen 201, and may transfer, to the processor 202, a parameter generated by the touchscreen 201 after the touch operation is performed on the touchscreen 201 (for example, if the touchscreen 201 is implemented by using the capacitive type, the detection module 2011 may transfer a change parameter of the touchscreen 201 to the processor 202, where the change parameter is a magnitude, a shape, a quantity, and distribution of a capacitor whose capacitance value changes), so that the processor 202 performs corresponding processing based on the touch operation. The display module 2012 may display information entered by the user, information provided by the electronic device 200 for the user, various menus of the electronic device 200, and the like.
The processor 202 is a control center of the electronic device 200, is connected to all parts of the entire electronic device 200 by using various interfaces and lines, and performs various functions of the electronic device 200 and data processing by running or executing a software program and/or a module stored in the memory 203 and invoking data stored in the memory 203, to perform overall monitoring on the electronic device 200. During specific implementation, in an embodiment, the processor 202 may include one or more processing units, and an application processor and a modem processor may be integrated into the processor 202. The application processor mainly processes an operating system, a user interface, an application, and the like. The modem processor mainly processes wireless communication. It may be understood that the modem processor may not be integrated into the processor 202.
The memory 203 may be configured to store data, a software program, and a module; and may be a volatile memory (Volatile Memory) such as a random access memory (Random Access Memory, RAM), may be a non-volatile memory (Non-Volatile Memory) such as a read-only memory (Read-Only Memory, ROM), a flash memory (Flash Memory), a hard disk drive (Hard Disk Drive, HDD), or a solid-state drive (Solid-State Drive, SSD), or may be a combination of the foregoing types of memories. Specifically, the memory 203 may store program code. The program code may be executed by the processor 202 to perform the icon management method according to embodiments of this application.
Optionally, the electronic device 200 may further include an external memory interface. The external memory interface may be configured to connect to an external memory card, for example, a micro SD card, to extend a storage capability of the electronic device 200. The external memory card communicates with the processor 202 through the external memory interface, to implement a data storage function. For example, files such as music and a video are stored in the external storage card.
The power supply 204 may be a battery, and is logically connected to the processor 202 by using the power management module 211, to implement functions such as charging management, discharging management, and power consumption management by using the power management system.
The charging management module 212 is configured to receive a charging input from a charger. The charger may be a wireless charger or a wired charger. In some embodiments of wired charging, the charging management module 212 may receive a charging input of a wired charger through the USB interface 215. In some embodiments of wireless charging, the charging management module 212 may receive a wireless charging input through a wireless charging coil of the electronic device 200. When charging the battery, the charging management module 212 may further supply power to the electronic device 200 by using the power management module 211.
The power management module 211 is configured to connect to the battery, the charging management module 212, and the processor 202. The power management module 211 receives an input from the battery and/or the charging management module 212, and supplies power to the processor 202, the memory 203, the touchscreen 201, the wireless communication module 205, the mobile communication module 206, the gravity sensor 207, the audio circuit 208, the speaker 209, the microphone 210, and the like. The power management module 211 may be further configured to monitor a parameter such as a battery capacity, a battery cycle count, or a battery health status (electric leakage or impedance).
In some other embodiments, the power management module 211 may alternatively be disposed in the processor 202. In some other embodiments, the power management module 211 and the charging management module 212 may alternatively be disposed in a same device.
A wireless communication function of the electronic device 200 may be implemented through an antenna 2, the wireless communication module 205, the modem processor, the baseband processor, or the like.
Optionally, the wireless communication function of the electronic device 200 may alternatively be implemented through an antenna 1, the mobile communication module 206, or the like.
The antenna 1 and the antenna 2 are configured to transmit and receive an electromagnetic wave signal. Each antenna of the electronic device may be configured to cover one or more communication frequency bands. Different antennas may be further reused to improve antenna utilization. For example, the antenna 1 may be reused as a diversity antenna in a wireless local area network. In some other embodiments, the antenna may be used in combination with a tuning switch.
The wireless communication module 205 may provide a wireless communication solution that is applied to the electronic device 200 and that includes a wireless local area network (wireless local area network, WLAN) (for example, a wireless fidelity (wireless fidelity, Wi-Fi) network), Bluetooth (Bluetooth, BT), a global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), a near field communication (near field communication, NFC) technology, an infrared (infrared, IR) technology, or the like. The wireless communication module 205 may be one or more components integrating at least one communication processing module. The wireless communication module 205 receives an electromagnetic wave through the antenna 2, performs frequency modulation and filtering processing on an electromagnetic wave signal, and sends a processed signal to the processor 202. The wireless communication module 205 may further receive a to-be-sent signal from the processor 202, perform frequency modulation and amplification on the signal, and convert the signal into an electromagnetic wave for radiation through the antenna 2. In this embodiment of this application, a source electronic device and a target electronic device may establish a communication connection by using respective wireless communication module 205.
The mobile communication module 206 may provide a wireless communication solution that includes 2G/3G/4G/5G or the like and that is applied to the electronic device 200. The mobile communication module 206 may include at least one filter, a switch, a power amplifier, a low noise amplifier (low noise amplifier, LNA), and the like. The mobile communication module 206 may receive an electromagnetic wave through the antenna 1, perform processing such as filtering or amplification on the received electromagnetic wave, and transmit a processed electromagnetic wave to the modem processor for demodulation. The mobile communication module 206 may further amplify a signal modulated by the modem processor, and convert an amplified signal into an electromagnetic wave for radiation through the antenna 1.
In some embodiments, at least some functional modules in the mobile communication module 206 may be disposed in the processor 202. In some embodiments, at least some functional modules in the mobile communication module 206 may be disposed in a same device as at least some modules of the processor 202.
The modem processor may include a modulator and a demodulator. The modulator is configured to modulate a to-be-sent low-frequency baseband signal into a medium-high frequency signal. The demodulator is configured to demodulate a received electromagnetic wave signal into a low-frequency baseband signal. Then, the demodulator transmits the low-frequency baseband signal obtained through demodulation to the baseband processor for processing. The low-frequency baseband signal is processed by the baseband processor and then transmitted to the application processor. The application processor outputs a sound signal through an audio device, or displays an image or a video through the touchscreen 201. In some embodiments, the modem processor may be an independent component. In some other embodiments, the modem processor may be independent of the processor 202, and is disposed in a same device as the mobile communication module 206 or another functional module.
In some embodiments, the antenna 1 of the electronic device 200 is coupled to the mobile communication module 206, and the antenna 2 is coupled to the wireless communication module 205, so that the electronic device 200 can communicate with a network and another device by using a wireless communication technology. The wireless communication technology may include a global system for mobile communications (global system for mobile communications, GSM), a general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, a GNSS, a WLAN, NFC, FM, an IR technology, and/or the like. The GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a BeiDou navigation satellite system (BeiDou navigation satellite system, BDS), a quasi-zenith satellite system (quasi-zenith satellite system, QZSS), and/or a satellite based augmentation system (satellite based augmentation system, SBAS).
The gravity sensor (Gravity Sensor) 207 may detect magnitudes of accelerations of the electronic device 200 in various directions (usually on three axes), and may detect a magnitude and a direction of gravity when the electronic device 200 is still. The gravity sensor 207 may be used for an application for recognizing a posture of the electronic device 200 (such as landscape/portrait switching, a related game, or magnetometer posture calibration), a vibration recognition-related function (such as a pedometer or knock recognition), and the like. It should be noted that, the electronic device 200 may further include another sensor, for example, a pressure sensor, an optical sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, and other sensors. Details are not described herein.
The audio circuit 208, the speaker 209, and the microphone 210 may provide an audio interface between the user and the electronic device 200. The audio circuit 208 may convert received audio data into an electrical signal and transmit the electrical signal to the speaker 209. The speaker 209 converts the electrical signal into a sound signal for output. In addition, the microphone 210 converts a collected sound signal into an electrical signal. The audio circuit 208 receives the electrical signal, converts the electrical signal into audio data, and then outputs the audio data to the wireless communication module 205 to send the audio data to, for example, another electronic device, or outputs the audio data to the processor 202 for further processing.
In addition, an operating system runs on the foregoing components. An application may be installed and run on the operating system.
In addition, although not shown herein, the electronic device 200 may further include components such as a Wi-Fi module, a Bluetooth module, and a camera.
The Wi-Fi module may be a module including a Wi-Fi chip and a driver of the Wi-Fi chip. The Wi-Fi chip has a capability of running a wireless Internet standard protocol. The Bluetooth module is a printed circuit board assembly (Printed Circuit Board Assembly, PCBA) into which a Bluetooth function is integrated, and is used for short-range wireless communication.
The application layer may include a series of application packages. As shown in
The application framework layer provides an application programming interface (application programming interface, API) and a programming framework for an application at the application layer. The application framework layer may include some predefined functions. As shown in
The window manager is configured to manage a window program. The window manager may obtain a size of the display, determine whether there is a status bar, perform screen locking, take a screenshot, and the like. The content provider is configured to: store and obtain data, and enable the data to be accessed by an application. The data may include a video, an image, audio, calls that are made and answered, a browsing history and bookmarks, an address book, and the like.
The view system includes visual controls such as a control for displaying a text and a control for displaying an image. The view system may be configured to construct an application. A display interface may include one or more views. For example, a display interface including an SMS message notification icon may include a text display view and an image display view.
The phone manager is configured to provide a communication function of the electronic device 200, for example, management of a call status (including answering, declining, or the like).
The resource manager provides various resources such as a localized character string, an icon, a picture, a layout file, and a video file for an application.
The notification manager enables an application to display notification information in a status bar, and may be configured to convey a notification message. The notification manager may automatically disappear after a short pause without requiring a user interaction. For example, the notification manager is configured to notify download completion, give a message notification, and the like. The notification manager may alternatively be a notification that appears in a top status bar of the system in a form of a graph or a scroll bar text, for example, a notification of an application that is run on a background, or may be a notification that appears on the screen in a form of a dialog window. For example, text information is displayed in the status bar, an alert tone is made, the electronic device vibrates, or an indicator blinks.
The Android runtime includes a core library and a virtual machine. The Android runtime is responsible for scheduling and management of the Android system.
The kernel library includes two parts: a performance function that needs to be called in Java language and a kernel library of Android. The application layer and the application framework layer run on the virtual machine. The virtual machine executes Java files of the application layer and the application framework layer as binary files. The virtual machine is configured to implement functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.
The system library may include a plurality of functional modules, for example, a surface manager (surface manager), a media library (media library), a three-dimensional graphics processing library (for example, OpenGL ES), and a 2D graphics engine (for example, SGL).
The surface manager is configured to manage a display subsystem and provide fusion of 2D and 3D layers for a plurality of applications.
The media library supports playback and recording in a plurality of commonly used audio and video formats, and static image files. The media library may support a plurality of audio and video encoding formats such as MPEG-4, H.264, MP3, AAC, AMR, JPG, and PNG. The three-dimensional graphics processing library is configured to implement three-dimensional graphics drawing, image rendering, composition, layer processing, and the like. The 2D graphics engine is a drawing engine for 2D drawing. The kernel layer is a layer between hardware and software. The kernel layer includes at least a display driver, a camera driver, an audio driver, and a sensor driver. The hardware layer may include various sensors.
Before embodiments of this application are described in detail, application scenarios of embodiments of this application are first described.
For ease of understanding, the following uses an example in which the electronic device 200 is a smartwatch. With reference to the accompanying drawings and an application scenario, an application icon management method according to this embodiment of this application is first described in detail.
In this embodiment of this application, a plurality of applications (APPs) are installed on the smartwatch, and the application may be a third-party application or a system application. This is not limited in this embodiment of this application. An icon distribution rule of an initial display interface of the smartwatch is 3 (rows)×3 (columns). That is, a display interface of the smartwatch may display icons of a maximum of nine apps (app icons for short in this application). If there are more than nine apps of the smartwatch, and a user needs to search for an app other than the nine apps displayed on a display, the user needs to slide a screen to display the to-be-searched app icon on the display interface. For ease of understanding, an interface on which the smartwatch initially displays nine app icons is used as a home screen. An interface that is displayed by sliding the display and that displays an app icon other than the nine app icons that are on the home screen is used as another interface. Each interface displays nine app icons according to the rule of 3 (rows)×3 (columns).
An app installed by the user is used as an example. After the app is installed, the electronic device 200 may display an icon of the app on the home screen of the smartwatch, or the electronic device 200 may display an icon of the app on any interface other than the home screen. However, usually, if a position of an app icon is not an expected position of the user, the user may move the app icon to the expected position. According to the technical solution provided in this application, a target position can be searched more conveniently to complete icon movement.
An example in which the electronic device 200 is a smartwatch is used.
The operation manner shown in
Based on the foregoing scenarios, an embodiment of this application provides an application icon management method, to resolve a problem that an operation of moving an app icon is complex, thereby improving human-machine interaction experience.
With reference to the application icon management method in this embodiment of this application, the following describes an example of operating procedures of software and hardware of the electronic device 200. In an example, after collecting sensor data, the sensor (for example, a touch sensor) at the hardware layer may send the sensor data to the system library through the kernel layer. The system library determines, based on the sensor data, an operation instruction currently received by the smartwatch. The view system converts the operation instruction into a movable image of an icon and displays the image on a desktop of the smartwatch.
Step 601: Display a first interface on the display of the smartwatch, where application icons of M applications in the N applications are displayed on the first interface, M is less than N, and M is an integer greater than 1.
The first interface may be a home screen of the smartwatch, or may be any one of a plurality of interfaces of the smartwatch. This is not limited in this embodiment of this application.
It may be understood that, assuming that after a user wakes up the smartwatch, a first application icon that the user needs to move is not displayed on the home screen displayed by the smartwatch, the user may trigger a switching operation, to switch the smartwatch from the home screen to the first interface.
When the first interface of the smartwatch is the home screen, the first interface may be displayed by triggering a power-on button of the smartwatch or an operation of waking up the smartwatch, or may be displayed by waking up the display of the smartwatch by using another device connected to the smartwatch, such as a mobile phone. This is not limited herein.
It should be understood that M is less than or equal to a maximum quantity of app icons that can be displayed on the first interface. Optionally, M icons are distributed on the first interface according to a first icon arrangement rule. The maximum quantity of app icons that can be displayed on the first screen is determined by the first icon arrangement rule corresponding to the first interface. For example, when the first icon arrangement rule is 3 (rows)×3 (columns), a maximum value of M is 9. Certainly, M may alternatively be a quantity less than 9, such as 7 or 6. This is not limited in this embodiment of this application. For example, when the first icon arrangement rule is 4 (rows)×4 (columns), a maximum value of M is 16. When the first icon arrangement rule is 4 (rows)×3 (columns), a maximum value of M is 12.
For example, in the following embodiment, N is equal to 36 and M is 9. If 36 apps corresponding to 36 app icons are installed on the smartwatch, and the first icon arrangement rule is 3 (rows)×3 (columns), as shown in (a) in
In an example, the smartwatch usually has the first icon arrangement rule. Generally, icon arrangement rules corresponding to the interfaces in the smartwatch are the same, for example, the icon arrangement rules are the first icon arrangement rule. The first icon arrangement rule may be a default icon arrangement rule of the smartwatch, or may be set by the smartwatch based on a trigger operation of the user. This is not limited in this embodiment of this application. Certainly, the icon arrangement rules corresponding to the interfaces in the smartwatch may alternatively be different. For example, the smartwatch has the home screen and the first interface, and an icon arrangement rule of the home screen is different from an icon arrangement rule of the first interface.
Step 602: The smartwatch detects a first operation for the first application icon in the M application icons.
In this embodiment of this application, the first operation is an operation that is triggered by the user and that is received by the smartwatch to select the first application icon. For an electronic device having a touch function, such as a smartwatch or a mobile phone, the first operation may be a tap operation, a touch and hold operation, a slide operation, or a double-tap operation. This is not limited in this embodiment of this application.
The following uses an example in which the first application icon is an app icon 701 and the first operation is a touch and hold operation. As shown in (a) in
It may be understood that when the user triggers the first operation, the smartwatch determines that the first application icon is selected. When the user cancels the first operation, that is, the smartwatch detects that the first operation disappears, the smartwatch may determine that the first application icon is deselected by the user.
When the user triggers the smartwatch to select the app icon 701, to help the user quickly determine whether the selected app icon is an app icon that the user needs to move, when the smartwatch detects the touch and hold operation for the app icon 701, as shown in (b) in
In a possible implementation of this application, after receiving the touch and hold operation of the user, an input device (for example, the display) of the smartwatch sends the touch and hold operation to a processor of the smartwatch. The processor converts the touch and hold operation into an identifiable instruction, and sends the identifiable instruction to an operating system of the smartwatch. After receiving the instruction, the operating system determines that the operation of the user is a touch and hold operation, and instructs a display apparatus (the display) of the smartwatch to perform display corresponding to the instruction. The display of the smartwatch is both the input device and the display apparatus.
When the first operation triggered by the user is detected, it is needed to learn a real intention of the user, for example, whether to move the app icon 701. Therefore, optionally, in a possible implementation of this application, before the smartwatch displays a global interface on the display of the smartwatch in response to the first operation, the method according to this embodiment of this application further includes the following steps.
Step 603: The smartwatch displays a custom interface on the display in response to the first operation, where the custom interface includes at least a first control.
It should be noted that the custom interface is a fourth interface in this application.
Still with reference to
Optionally, the interface 705 may further include a close control or a return control. When the close control or the return control is triggered, the smartwatch closes the interface 705 to display the interface shown in (a) in
Optionally, the custom interface may include one or more controls (for example, the first control), and each control corresponds to one selection window. When a selection window is selected, the smartwatch may determine that a control corresponding to the selection window is triggered.
Step 604: The smartwatch displays the global interface on the display of the smartwatch when detecting an operation for the first control, where the global interface displays icons of the N applications.
Optionally, the N application icons are distributed on the global interface according to a second icon arrangement rule. In an example, the second icon arrangement rule is different from the first icon arrangement rule. For example, the second icon arrangement rule may be 9 (rows)×4 (columns) or 6 (rows)×6 (columns).
It should be noted that the “global interface” may be a second interface in this application. The global interface is an interface that displays all app icons in the smartwatch.
The app icon displayed on the global interface is in a movable state. In addition, optionally, on the global interface, the user cannot trigger, by tapping an app icon, the smartwatch to run a corresponding app.
It should be noted that, in the embodiment shown in
It should be noted that whether the smartwatch displays the custom interface after the user triggers the first operation may be a default process in the smartwatch, or may be set by the smartwatch based on an operation of the user. This is not limited in this embodiment of this application. For example, if the user triggers the smartwatch to set the custom interface not to be displayed during a process of exchanging positions of app icons, the smartwatch may directly display the global interface when the first operation is triggered.
Due to a limited size of the display of the smartwatch, when all the app icons of the smartwatch are displayed on the global interface, a display size of each app icon is less than a display size of the app icon when the app icon is not displayed on the global interface. To allow a user to view all the app icons of the smartwatch on the global interface and quickly and accurately find the selected app icon 701 from all the app icons, a display parameter of the app icon 701 on the global interface is better than a display parameter of another app icon on the global interface. The display parameter includes a display size of an icon and/or display brightness of the icon. Because the display parameter of the first application icon is better, it is convenient to determine the first application icon.
Still with reference to
Optionally, display brightness of the app icon 701 on the global interface may be higher than display brightness of an app icon of another application on the global interface. For example, the display brightness of the app icon 701 remains unchanged or increases compared to display brightness of the app icon 701 on the first interface, while display brightness of another app icon decreases (for example, the another app icon is dimmed).
For example, as shown in (d) in
It may be understood that a display size of any app icon on the global interface is X times a display size of the app icon on another interface (for example, the first interface). X is less than 1. For example, X is 0.5 or 0.8.
In an example, the operating system of the smartwatch determines that the first operation is a touch and hold operation, and instructs the display of the smartwatch to display the global interface, to display app icons of 36 applications according to the second icon arrangement rule of 6 (rows)×6 (columns). As shown in (d) in
It may be understood that when the user triggers the first operation, the smartwatch may generate, in the smartwatch, the global interface including all the app icons, and then display the global interface through the display. Alternatively, when the user triggers the first operation, the smartwatch may update the icon arrangement rule of the first interface from the first icon arrangement rule to the second icon arrangement rule, so that an updated first interface is considered as the global interface.
It should be noted that, because the display of the smartwatch is small, if a display size of the app icon is scaled down by an excessively small ratio, it is inconvenient for the user to perform an operation. Therefore, if a quantity of applications of the smartwatch exceeds a specific quantity, a plurality of global interfaces are used.
In an example, there are more than 36 applications. As shown in (d) in
Step 605: The smartwatch receives a second operation that is input by the user on the global interface for the first application icon, and in response to the second operation, controls the first application icon to move on the global interface.
It may be understood that the second operation is an operation that is triggered by the user and that is of moving the first application icon, which is detected by the smartwatch. For example, the second operation may be a moving operation. It may be understood that the first operation and the second operation may be consecutive operations. For example, the first operation is triggered until the global interface is displayed, during which a finger of the user does not leave the display or remains within a preset distance from the display, so that the smartwatch perceives the first operation performed on the first application icon, and then the user triggers the second operation. In addition, the first operation and the second operation may be discontinuous operations. For example, after the first operation is triggered, a finger of the user leaves the display or a range between the finger and the display is greater than a preset distance, and then the smartwatch displays the global interface. When the global interface is displayed, the user triggers the second operation for the first application icon again.
It should be noted that, on the global interface, the global interface may further include a return control 704, as shown in (d) in
In another scenario of this application, it is assumed that the smartwatch enters the global interface after the user triggers the first application icon. In this case, if the user finds that the triggered first application icon is not an expected application icon of the user, and the user needs to select another application icon to move, the user triggers the smartwatch to return to the first interface from the global interface, reselects the to-be-moved application icon, and then triggers a touch and hold operation for the reselected to-be-moved application icon.
Optionally, when the global interface is displayed, if the smartwatch detects a moving operation triggered by the user for another app icon, the smartwatch uses the another app icon as the first app icon and performs step 604 and step 605. For example, at first, the smartwatch detects that an app icon selected by the user is the app icon 701, and triggers the smartwatch to enter the interface 706 shown in (d) in
During specific implementation of this application, after receiving the second operation, the display of the smartwatch sends the second operation to the processor of the smartwatch. The processor converts the second operation into an identifiable instruction, and sends the identifiable instruction to the operating system of the smartwatch. After receiving the instruction, the operating system determines that the second operation of the user is a moving operation, and instructs the display apparatus (the display) of the smartwatch to perform display corresponding to the instruction, that is, display a moving picture of the first application icon on the global interface.
Step 606: The smartwatch exchanges positions of the first application icon and a second application icon when an overlapping area between the first application icon and the second application icon that is displayed on the global interface is greater than or equal to a preset area threshold and a moving speed of the first application icon is lower than a preset moving speed threshold, where a display parameter of the second application icon is better than a display parameter of an application icon other than the first application icon.
In a possible implementation of this application, when the second operation is detected, the smartwatch determines the moving speed of the first application icon. The moving speed of the first application icon may be understood as a moving speed of a touch point between the user and the display of the smartwatch, for example, a touch point between a finger of the user and the display. When the moving speed is lower than or equal to the preset moving speed threshold, no more than Picons (including the second application icon) that are currently closest to a center of the first application icon are scaled up for display. In this way, it is convenient for the user to determine an icon in the P icons to be exchanged with the first application icon. For example, P is 4 or 6. In some other embodiments, it may be set that another quantity of icons near a position of the first application icon are scaled up for display. This is not limited in this application.
In an example, on the global interface, when the smartwatch detects the second operation for an app icon 801, and detects that a moving speed of the app icon 801 is lower than or equal to the preset moving speed threshold, as shown in (a) in
Optionally, when the icons closest to the center of the app icon 801 are scaled up for display, display brightness of an icon other than the app icon 801 and the displayed scaled-up icon is reduced, and the icon is displayed in gray. The displayed scaled-up icon is in an exchangeable state, that is, the first application icon may exchange positions with the icon that is in the exchangeable state, and the icon whose display brightness is reduced is in a non-exchangeable state.
In a possible implementation of this application, the preset moving speed threshold is 50 pixels/second. When the smartwatch detects the second operation of touching and holding, and moving the app icon 801 on the global interface, the smartwatch detects the moving speed of the app icon 801. If the moving speed of the app icon 801 decreases to lower than 50 pixels/second, the smartwatch scales up y icons (for example, y=2 or 4) closest to the app icon 801 that are around the app icon 801 for display, to facilitate exchanging of icon positions. As shown in (b) in
In a process of moving an app icon, if a moving speed is higher than the preset moving speed threshold, the smartwatch may not scale up on a surrounding icon for display. The preset moving threshold of the moving speed may be adjusted based on an actual device. This is not limited herein.
Optionally, when detecting the second operation, the smartwatch determines a moving distance of the first application icon. Adding the determining of the moving distance can avoid that a surrounding app icon is scaled up at the beginning of moving the first application icon.
In an example, if the moving distance of the first application icon is greater than or equal to 1/20 of a pixel value of a screen diameter, and the moving speed is lower than or equal to the preset moving speed threshold (50 pixels/second), a plurality of app icons closest to the first application icon that are around the first application icon are scaled up for display, to facilitate exchanging of positions of app icons. The moving distance may be adjusted based on an actual device (for example, a size of a display of a smartwatch). This is not limited herein.
In an embodiment of this application, if the smartwatch detects that the second operation on the global interface is terminated, that is, the second operation of the user is canceled, for example, the user touches and holds the first application icon and moves the first application icon, and the user releases a finger in a moving process, it is considered that the second operation is terminated. In this case, the smartwatch restores the first application icon to a position before the first application icon is moved. Optionally, when the second operation of the user is canceled, the smartwatch displays the first interface, such as the interface shown in (a) in
In an embodiment of this application, an icon around the first application icon is highlighted, and the highlighted icon includes the second application icon. The smartwatch exchanges the position of the first application icon with a position of the second application icon when the smartwatch detects that the first application icon moves to a position that overlaps with the position of the second application icon, an overlapping area exceeds the preset area threshold, and a moving speed is lower than the preset moving speed threshold. When the overlapping area between the two icons does not exceed the preset area threshold, the smartwatch displays the first application icon gradually covering the second application icon. When the overlapping area between the icons exceeds the preset area threshold, the smartwatch displays the first application icon at the original position of the second application icon, and displays the second application icon at the original position of the first application icon.
In an example, on the global interface, positions of the first application icon (an app icon 901) and the second application icon (an app icon 902) are shown in (a) in
In another example, the smartwatch may determine the overlapping area by detecting a distance between centers of the two app icons. For example, if the smartwatch detects that a distance between a center of the app icon 901 and a center of the app icon 902 is less than a preset threshold, it may be equivalent that the overlapping area of the two app icons is greater than the preset area threshold. This is not limited herein.
It should be noted that, as shown in (a) in
In an example, the user may continue to drag the first application icon on an interface shown in (b) in
In an embodiment of this application, after the positions of the first application icon and the second application icon are exchanged, the method according to this embodiment of this application may further include: The smartwatch displays a third interface on the display. A plurality of application icons displayed on the third interface include the first application icon. Application icons closest to a center of the first application icon on the third interface are different from application icons closest to the center of the first application icon on the first interface in at least two application icons. It may be understood that the third interface is an interface on which the second application icon is located before the icon position is exchanged. An application icon around the first application icon on the first interface is different from an application icon around the first application icon on the third interface. For example, (a) in
In an example, after the user triggers the first application icon and the second application icon to exchange positions, the smartwatch automatically switches from the global interface to the third interface after preset duration (for example, 1 second). Alternatively, in another example, after the user triggers the first application icon and the second application icon to exchange positions, and the smartwatch detects a third operation performed on the global interface, the smartwatch automatically switches from the global interface to the third interface.
It may be understood that the third operation is an operation that is triggered by the user and that enables the smartwatch to perform interface switching.
After a position of the first application icon is exchanged with a position of the second application icon, the smartwatch may display the global interface. When the global interface is displayed, if the smartwatch detects an operation that is triggered by the user to exit the global interface, the smartwatch may display the third interface.
In an example, the third operation is an operation that a finger of the user leaves the display. After detecting the third operation (that is, the finger leaves the display), the smartwatch sends the third operation to the processor of the smartwatch. The processor converts the third operation into an identifiable instruction, and sends the identifiable instruction to the operating system of the smartwatch. After receiving the instruction, the operating system determines that the finger of the user leaves the display, and instructs the display apparatus (the display) of the smartwatch to perform display corresponding to the instruction, that is, display the third interface. In this case, the third interface displays an icon arrangement after the position of the first application icons is exchanged.
For example, as shown in (a) in
It should be noted that, in a process of moving the first application icon on the global interface, an icon that the first application icon passes by remains unchanged and is not processed. If a moving distance is less than 1/20 of a pixel value of a screen diameter, and the moving speed is higher than 50 pixels/second, the processor does not process another icon.
During actual application, the user may arrange, according to an actual requirement of the user, icons of applications installed on the smartwatch. Because there are usually a large quantity of application icons on the desktop of the smartwatch, to reduce a search time of the user, some associated applications, for example, an alarm clock application, a stopwatch application, and a calendar application, or a sports and health application, a running application, and a music player application, may be arranged to adjacent positions. These associated applications have a similar function or a complementary function, or may be associated according to a preference of the user.
Step 1101: Display a first interface on the display of the smartwatch.
Application icons of M applications are displayed on the first interface, and M is less than N.
Step 1102: The smartwatch detects a first operation for a first application icon in the M application icons on the first interface.
Step 1103: The smartwatch displays a custom interface on the display in response to the first operation. The custom interface includes at least a second control.
For specific implementation of step 1101 to step 1103, refer to the descriptions of step 601 to step 603 shown in
Step 1104: The smartwatch displays a fifth interface on the display when detecting an operation for the second control on the custom interface, as shown in (c) in
For example, the second control may be a “Gather associated application” control 1202 shown in
It should be noted that, when the smartwatch displays the fifth interface, a user may trigger the smartwatch to perform switching, so that an application icon displayed on the fifth interface changes. For example, in
Step 1105: The smartwatch displays a sixth interface when detecting a selection operation for a target application icon in the application icon of the at least one application. The sixth interface includes the first application icon and the target application icon.
Optionally, the first application icon and the target application icon that are displayed on the sixth interface are distributed according to a preset rule.
For example, the selection operation may be an operation triggered by the user for a selection control corresponding to the target application icon. For example, if a selection control corresponding to an app icon is marked as a selected state, it may be considered that the user triggers the selection operation.
For example, as shown in
If the smartwatch detects the operation performed by the user on the “OK” control displayed on the fifth interface, the smartwatch may display the interface 1200 shown in (b) in
For example, as shown in
In a possible embodiment of this application, optionally, after the interface shown in (c) in
Optionally, on the interface shown in (c) in
It should be noted that, if one or more application icons in the N application icons have been associated with the first application icon, on the fifth interface, “Selection” controls 1203 corresponding to the one or more applications that have been associated with the first application are in the selected state. For example, an association relationship has been established between a phone application and an alarm clock application before the smartwatch detects, on the custom interface, that the “Gather associated application” control 1202 is triggered. On the fifth interface, a “Selection” control 1203 corresponding to an app icon of the phone application is shown in (c) in
Optionally, before the sixth interface is displayed, the smartwatch may establish an association relationship between the first application icon and the target application icon based on the selection operation that is detected by the smartwatch for the target application icon in the application icon of the at least one application.
The foregoing embodiment uses an example in which the fifth interface includes the “OK” control 1204. Certainly, after detecting the operation for the “Selection” controls corresponding to the one or more target applications on the fifth interface, the smartwatch enters the custom interface shown in (b) in
In another possible embodiment of this application, for example, on the interface shown in (b) in
The following uses an example in which the first application icon is the app icon 1201, and application icons associated with the app icon 1201 are the app icon 1205, the app icon 1206, the app icon 1207, and the app icon 1208, to describe a process of displaying the associated application icons on the sixth interface according to a gathering rule.
According to the gathering rule, a center of a selected icon is an origin, a distance from the selected icon to a nearest icon is a radius, and icons whose centers are within the radius range are sequentially arranged in a clockwise order of 1, 2, 3, and 4. As shown in (a) in
Optionally, if more than four associated applications are to be added, in an icon distribution rule for gathering associated applications, the associated applications start with a 5th icon and are arranged in a clockwise order of 5, 6, 7, and 8 at a second layer around the first application icon. As shown in (b) in
In an example, as shown in (a) in
It may be understood that the target application icon to be gathered around the first application icon and an application icon originally around the first application icon are displayed in a manner of exchanging positions.
Optionally, the target application icon to be gathered around the first application icon crowds out an application icon that is originally around the first application icon.
In an example, as shown in (a) in
It may be understood that, when the first application icon is selected, if the smartwatch determines to establish an association for the first application icon, the smartwatch may further determine, based on an attribute of a first application to which the first application icon belongs, an application that belongs to a same attribute as the first application, so that the user subsequently establishes an association. For example, if the first application icon is a health application, the smartwatch may preferentially display app icons of a running application A and a running application B on the fifth interface. It may be understood that both the running application A and the running application B are applications installed on the smartwatch.
It should be noted that, the smartwatch marks app icons of applications that have an association relationship between them. After app icons of two applications that establish an association relationship with each other are gathered for display, the app icons respectively corresponding to the two applications occupy one gathering position of each other. When a gathering operation is performed on an app icon of any one application in the two applications again, gathering positions of the app icon of the any one application is reduced by one.
It should be noted that, for the smartwatch in the foregoing embodiment, an icon distribution rule displayed on the sixth interface is 3×3, with a maximum of 9 icons. Therefore, a quantity of added associated applications does not exceed 8.
In a possible embodiment of this application, a custom interface 1600 further includes a “Remove associated application” control 1603, as shown in (b) in
In a possible embodiment of this application, the custom interface 1600 further includes an “Uninstall application” control 1605, as shown in (b) in
In the foregoing embodiments, the descriptions of each embodiment have respective focuses. For a part that is not described in detail or recorded in an embodiment, refer to related descriptions in other embodiments.
A person of ordinary skill in the art may be aware that, in combination with the examples described in embodiments disclosed in this specification, units and algorithm steps may be implemented by electronic hardware or a combination of computer software and electronic hardware. Whether the functions are performed by hardware or software depends on particular applications and design constraints of the technical solutions. A skilled person may use different methods to implement the described functions for each particular application, but it should not be considered that the implementation goes beyond the scope of this application.
In embodiments provided in this application, it should be understood that the disclosed apparatus/computer device and method may be implemented in other manners. For example, the described apparatus/computer device embodiments are merely examples. For example, division into the modules or units is merely logical function division and may be other division during actual implementation. For example, a plurality of units or assemblies may be combined or integrated into another system, or some features may be ignored or not performed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections may be implemented through some interfaces. The indirect couplings or communication connections between the apparatuses or units may be implemented in electronic, mechanical, or other forms.
The foregoing embodiments are merely intended to describe the technical solutions of this application, but are not to limit this application. Although this application is described in detail with reference to the foregoing embodiments, a person of ordinary skill in the art should understand that the technical solutions described in the foregoing embodiments may still be modified or some technical features thereof may be equivalently replaced. These modifications and replacements shall fall within the protection scope of this application, and do not enable essence of a corresponding technical solution to depart from the spirit and scope of the technical solutions of embodiments of this application.
In conclusion, the foregoing descriptions are merely specific implementations of this application, but are not intended to limit the protection scope of this application. Any variation or replacement within the technical scope disclosed in this application shall fall within the protection scope of this application. Therefore, the protection scope of this application shall be subject to the protection scope of the claims.
| Number | Date | Country | Kind |
|---|---|---|---|
| 202211215491.2 | Sep 2022 | CN | national |
This application is a continuation of International Application No. PCT/CN2023/118277, filed on Sep. 12, 2023, which claims priority to Chinese Patent Application No. 202211215491.2, filed on Sep. 30, 2022. The disclosures of the aforementioned applications are hereby incorporated by reference in their entireties.
| Number | Date | Country | |
|---|---|---|---|
| Parent | PCT/CN2023/118277 | Sep 2023 | WO |
| Child | 19094899 | US |