WO2024125248A1 - Service card addition method and electronic device - Google Patents
Service card addition method and electronic device Download PDFInfo
- Publication number
- WO2024125248A1 WO2024125248A1 PCT/CN2023/133291 CN2023133291W WO2024125248A1 WO 2024125248 A1 WO2024125248 A1 WO 2024125248A1 CN 2023133291 W CN2023133291 W CN 2023133291W WO 2024125248 A1 WO2024125248 A1 WO 2024125248A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- service card
- desktop
- electronic device
- area
- target service
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 124
- 230000004044 response Effects 0.000 claims description 43
- 238000004590 computer program Methods 0.000 claims description 17
- 230000007423 decrease Effects 0.000 claims description 4
- 230000008859 change Effects 0.000 abstract description 31
- 230000008569 process Effects 0.000 abstract description 29
- 230000006870 function Effects 0.000 description 33
- 238000010586 diagram Methods 0.000 description 15
- 238000004891 communication Methods 0.000 description 7
- 230000009286 beneficial effect Effects 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 5
- 229920001621 AMOLED Polymers 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 101000827703 Homo sapiens Polyphosphoinositide phosphatase Proteins 0.000 description 2
- 102100023591 Polyphosphoinositide phosphatase Human genes 0.000 description 2
- 238000013500 data storage Methods 0.000 description 2
- 230000036541 health Effects 0.000 description 2
- 230000004622 sleep time Effects 0.000 description 2
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 1
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 1
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 1
- 238000013528 artificial neural network Methods 0.000 description 1
- 230000003190 augmentative effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 239000008280 blood Substances 0.000 description 1
- 210000004369 blood Anatomy 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000005189 cardiac health Effects 0.000 description 1
- 239000004020 conductor Substances 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 230000001939 inductive effect Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 239000002096 quantum dot Substances 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001052 transient effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
- 230000037221 weight management Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction 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/0486—Drag-and-drop
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Definitions
- the present application relates to the field of terminal technology, and in particular to a method for adding a service card and an electronic device.
- the embodiments of the present application provide a method for adding a service card and an electronic device, which can improve the efficiency of adding a service card on the desktop of the electronic device.
- the present application provides a method for adding a service card, which can be applied to an electronic device, in which the electronic device displays an application interface, which includes at least one service card.
- the electronic device receives a first operation input by a user in the application interface, in response to the first operation, indication information indicating a first area is displayed.
- the first operation is used to operate a target service card in at least one service card.
- the indication information indicating the first area includes graphical indication information and/or textual indication information, and when the indication information indicating the first area is graphical indication information, the indication information indicating the first area includes at least one of a semicircle, a circle, a rectangle, a line, or a polygon.
- At least one service card may be displayed in the application interface.
- at least one function area may be displayed in the application interface, and the function area displays function display information of the corresponding service function.
- the service card is used to trigger the electronic device to jump to display the corresponding function interface.
- the electronic device displays indication information indicating the first area to guide the user to drag the target service card in the direction close to the first area.
- the electronic device adds the target service card to the desktop. It can simplify the operation process of adding service cards to the desktop and improve the efficiency of adding.
- the application does not limit the type and size of the application.
- the application can be a common communication, music, video, smart home, game, etc. application, or it can be a functional module in an electronic device.
- the application can be developed by an electronic device manufacturer, such as integrated into the operating system, or it can be developed by a third-party manufacturer other than the mobile phone manufacturer, pre-installed by the electronic device manufacturer or downloaded to the electronic device by the electronic device user.
- the electronic device when the electronic device detects that the target service card is operated to a distance less than or equal to a first preset value from the first area, the electronic device displays the desktop of the electronic device. In response to ending the first operation, the electronic device adds the target service card to the desktop of the electronic device.
- the user can drag the target service card to the first area according to the indication information to input the first operation for the target service card to the electronic device.
- the electronic device adds the target service card to the desktop of the electronic device in response to ending the first operation.
- the operation process of adding the service card to the desktop can be simplified, and the adding efficiency can be improved.
- the desktop of the electronic device includes at least one sub-desktop.
- the electronic device determines the sub-desktop including a blank area in each sub-desktop as the target sub-desktop.
- the size of the blank area is greater than or equal to the size of the target service card. After the electronic device determines the target sub-desktop, it displays the target sub-desktop.
- a target sub-desktop including a blank area sufficient to place the target service card is searched in each sub-desktop, and the target sub-desktop is displayed. The user does not need to manually search for a sub-desktop where the target service card can be placed, which is beneficial to the user experience.
- the area occupied by the indication information indicating the first area in the interface displayed by the electronic device increases.
- the area occupied by the indication information indicating the first area in the interface displayed by the electronic device decreases.
- the electronic device hides the application interface and displays the desktop of the electronic device in response to the first operation, wherein the desktop displayed by the electronic device includes a blank area, and the blank area is sufficient to place the target service card.
- the electronic device after the electronic device detects the first operation input by the user, it automatically switches the displayed interface to a desktop including a blank area, and performs the subsequent operation of adding a target service card on the desktop, without the user having to manually close the application interface.
- This can simplify the operation process of adding a service card to the desktop and improve the efficiency of adding.
- the position of the target service card changes in real time with the position where the user inputs the first operation.
- the electronic device can display the target service card on the desktop based on the user-defined position to improve the user experience.
- the electronic device displays indication information at a position that is less than a second preset value from the target service card.
- the electronic device displays the indication information in an area whose distance from the target service card is less than the second preset value, which is conducive to the user dragging the target service card to the first area and improves the user experience.
- an embodiment of the present application provides a method for adding a service card, which can be applied to an electronic device.
- the electronic device displays an application interface.
- the application interface includes at least one service card.
- the electronic device receives a first operation and a second operation input by a user in the application interface, the electronic device displays a desktop in response to the second operation. And, in response to the first operation, the target service card is added to the displayed desktop.
- the first operation is used to operate a target service card in at least one service card.
- the first operation includes a pressing operation.
- the electronic device adds the target service card to the displayed desktop in response to the pressing operation on the target service card.
- the first operation includes a dragging operation, and the electronic device adds the target service card to the displayed desktop in response to the dragging operation on the target service card.
- the second operation is used to switch the displayed application interface to the desktop.
- the second operation includes sliding the application interface in a preset direction.
- the electronic device receives a first operation input by the user for operating a target service card while receiving a second operation input by the user for instructing to switch the application interface to the desktop, so as to display the target service card in real time at the position passed by the user when inputting the first operation, thereby adding the target service card to the desktop.
- This can simplify the operation process of adding a service card to the desktop and improve the adding efficiency.
- the desktop of the electronic device includes at least one sub-desktop.
- the electronic device determines a sub-desktop including a blank area in each sub-desktop as a target sub-desktop.
- the size of the blank area is greater than or equal to the size of the target service card.
- the electronic device displays the target sub-desktop.
- the electronic device responds to the second operation, searches for a target sub-desktop including a blank area sufficient to place the target service card in each sub-desktop, and displays the target sub-desktop.
- the user does not need to manually search for a sub-desktop on which the target service card can be placed, which is beneficial to the user experience.
- the electronic device adds a target service card at a target location on the desktop in response to the first operation, wherein the target location is a real-time location where the user inputs the first operation.
- the position of the target service card changes in real time with the position where the user inputs the first operation.
- the electronic device can add the target service card to the desktop based on the user-defined position to improve the user experience.
- the present application provides an electronic device, comprising: a memory, and one or more processors; the memory is coupled to the processor; wherein the memory stores a computer program code, and the computer program code includes a computer instruction, and when the computer instruction is executed by the processor, the electronic device executes the method as described in the first aspect and any possible design thereof. Alternatively, the electronic device executes the method as described in the second aspect and any possible design thereof.
- the present application provides a computer storage medium, the computer storage medium comprising computer instructions, when the computer instructions are executed on an electronic device, the electronic device executes the method as described in the first aspect and any possible design thereof. Alternatively, the electronic device executes the method as described in the second aspect and any possible design thereof.
- the present application provides a computer program product, which, when executed on a computer, enables the computer to execute the method described in the first aspect and any possible design thereof. Alternatively, enables the electronic device to execute the method described in the second aspect and any possible design thereof.
- FIG1 is a schematic diagram of a process of adding a service card to a desktop in a related technology provided by an embodiment of the present application;
- FIG2 is a schematic diagram of a process of adding a service card to a desktop in a related technology provided by an embodiment of the present application;
- FIG3A is a flow chart of a method for adding a service card provided in an embodiment of the present application.
- FIG3B is a flow chart of a method for adding a service card provided in an embodiment of the present application.
- FIG4 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application.
- FIG5 is a schematic diagram of a service card adding process provided in an embodiment of the present application.
- FIG6 is a schematic diagram of another service card adding process provided in an embodiment of the present application.
- FIG7A is a schematic diagram of indication information provided in an embodiment of the present application.
- FIG7B is a schematic diagram of another indication information provided in an embodiment of the present application.
- FIG8 is a schematic diagram of another service card adding process provided in an embodiment of the present application.
- FIG9 is a schematic diagram of another service card adding process provided in an embodiment of the present application.
- FIG10 is a schematic diagram of another service card adding process provided in an embodiment of the present application.
- FIG11 is a schematic diagram of another service card adding process provided in an embodiment of the present application.
- FIG12 is a schematic diagram of a process of adding a sleep service card provided in an embodiment of the present application.
- FIG13 is a schematic diagram of another process of adding a weather change service card provided in an embodiment of the present application.
- Figure 14 is a schematic diagram of another process of adding a playlist recommendation service card provided in an embodiment of the present application.
- At least one of the following or similar expressions refers to any combination of these items, including any combination of single items or plural items.
- at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, and its a, b, c can be single or multiple.
- the words "first”, “second” and the like are used to distinguish the same items or similar items with substantially the same functions and effects.
- the display screen of the electronic device can be used to display the desktop of the electronic device.
- the desktop of the electronic device displays service cards and APP controls corresponding to each APP.
- a user can search for a service card that needs to be added to the desktop in the service card adding interface of the electronic device, and perform corresponding setting operations to add the corresponding service card to the desktop. For example, referring to (a) in FIG. 1 , when the electronic device detects that the user performs a long press operation on any position on the desktop 101, it enters the editable state shown in (b) in FIG. 1 .
- the editable state means that the electronic device can adjust the display position of each APP control and service card on the desktop according to the user's operation.
- the user can input an operation to the electronic device to instruct the display of the service card setting interface on the desktop.
- the electronic device responds to the operation and displays the service card setting interface 102 on the desktop.
- the service card setting interface 102 includes the APP identifiers of all APPs installed in the electronic device.
- the service card adding interface 103 shown in (d) of Figure 1 can be displayed on the desktop.
- the service card adding interface 103 includes at least one service card 104 corresponding to the target APP selected by the user.
- the user can drag the service card included in the service card adding interface to a specified position on the desktop to display the service card on the desktop, thereby completing the addition of the service card.
- the desktop after adding the service card may be as shown in (f) of FIG. 1 .
- adding a service card to the desktop of an electronic device in the above manner requires multiple steps, and the operation process is cumbersome.
- the user also needs to find the APP logo of the specified APP in the service card setting interface, and find the specified service card in the service card adding interface, which is very time-consuming and has low adding efficiency.
- a user may long press an APP control 202 displayed on a desktop 201 to display a service card entry 203 corresponding to the APP control 202 selected by the user on the desktop 201.
- the electronic device After the electronic device detects the user's selection operation on the service card entry 203, it may display a service card adding interface 204.
- the service card adding interface 204 includes at least one service card 205 corresponding to the APP control selected by the user.
- the user may drag the service card 205 to a specified position on the desktop 201 to display the service card 205 on the desktop 201, thereby completing the addition of the service card 205.
- an embodiment of the present application provides a method for adding a service card, comprising: when an electronic device displays an application interface including at least one service card, if a first operation input by a user in the application interface is received, indication information for indicating a first area is displayed. The first operation is used to operate a target service card so that the position of the target service card changes.
- the target service card is a service card displayed in the application interface.
- the electronic device adds the target service card to the desktop, which can simplify the operation process of adding the service card to the desktop and improve the adding efficiency.
- an embodiment of the present application also provides a method for adding a service card, including, when an electronic device displays an application interface including at least one service card, if a first operation and a second operation input by a user in the application interface are received, a desktop is displayed, and a target service card is added to the desktop.
- the first operation is used to operate a target service card in at least one service card.
- the second operation is used to switch the displayed application interface to the desktop.
- the target service card is a service card displayed in the application interface.
- the method for adding service cards based on the service card shown in FIG3B can also simplify the operation process of adding service cards to the desktop and improve the efficiency of adding.
- the method for adding a service card provided in the embodiment of the present application can be applied to electronic devices.
- the electronic device in the embodiment of the present application can be a portable computer (such as a mobile phone, a folding screen mobile phone), a tablet computer, a laptop computer, a personal computer, or a laptop computer.
- the present invention relates to a personal computer (PC), a wearable electronic device (such as a smart watch), an augmented reality (AR) device, a virtual reality (VR) device, a car computer, etc.
- AR augmented reality
- VR virtual reality
- FIG. 4 shows a schematic structural diagram of the electronic device 100 .
- the electronic device 100 may include a processor 110, an internal memory 121, a sensor module 180, a display screen 150, etc.
- the sensor module 180 may include a pressure sensor 180A, a touch sensor 180K, etc.
- the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100.
- the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently.
- the components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
- the processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and/or a neural-network processing unit (NPU), etc.
- AP application processor
- GPU graphics processor
- ISP image signal processor
- controller a memory
- video codec a digital signal processor
- DSP digital signal processor
- NPU neural-network processing unit
- Different processing units may be independent devices or integrated in one or more processors.
- the controller may be the nerve center and command center of the electronic device 100.
- the controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
- the processor 110 may also be provided with a memory for storing instructions and data.
- the memory in the processor 110 is a cache memory.
- the memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
- the processor 110 may include one or more interfaces.
- the interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (SIM) interface, and/or a universal serial bus (USB) interface, etc.
- I2C inter-integrated circuit
- I2S inter-integrated circuit sound
- PCM pulse code modulation
- UART universal asynchronous receiver/transmitter
- MIPI mobile industry processor interface
- GPIO general-purpose input/output
- SIM subscriber identity module
- USB universal serial bus
- the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration and does not constitute a structural limitation on the electronic device 100.
- the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
- the electronic device 100 implements the display function through a GPU, a display screen 150, and an application processor.
- the GPU is a microprocessor for image processing, which connects the display screen 150 and the application processor.
- the GPU is used to perform mathematical and geometric calculations for graphics rendering.
- the processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
- the display screen 150 is used to display images, videos, etc.
- the display screen 150 includes a display panel.
- the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diodes (QLED), etc.
- the electronic device 100 may include 1 or N display screens 150, where N is a positive integer greater than 1.
- the display screen 150 of the electronic device 100 can display a desktop, and the desktop can display multiple APP controls, service cards, etc.
- the display screen 150 can display the APP interface corresponding to the running APP, the service card displayed in the APP interface, etc.
- the internal memory 121 can be used to store computer executable program codes, which include instructions.
- the processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121.
- the internal memory 121 may include a program storage area and a data storage area.
- the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.
- the data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc.
- the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, Universal flash storage (UFS), etc.
- UFS Universal flash storage
- the internal memory 121 can be used by the user to store APPs installed in the electronic device, such as camera, gallery, calendar, call, map, input method, smart home, weather, music, sports health, short message and other APPs.
- APPs installed in the electronic device, such as camera, gallery, calendar, call, map, input method, smart home, weather, music, sports health, short message and other APPs.
- the pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
- the pressure sensor 180A can be arranged on the display screen 150.
- pressure sensors 180A such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc.
- a capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure based on the change in capacitance.
- touch operations applied to the same touch position but with different touch operation strengths may correspond to different operation instructions. For example: when a touch operation with a touch operation strength less than a first pressure threshold is applied to a short message application icon, an instruction to view a short message is executed. When a touch operation with a touch operation strength greater than or equal to the first pressure threshold is applied to a short message application icon, an instruction to create a new short message is executed.
- the touch sensor 180K is also called a "touch panel”.
- the touch sensor 180K can be arranged on the display screen 150, and the touch sensor 180K and the display screen 150 form a touch screen, also called a "touch screen”.
- the touch sensor 180K is used to detect touch operations acting on or near it.
- the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
- Visual output related to the touch operation can be provided through the display screen 150.
- the touch sensor 180K can also be arranged on the surface of the electronic device 100, which is different from the position of the display screen 150.
- the electronic device may detect, through the pressure sensor 180A and the touch sensor 180K, a first operation for a certain service card input by the user to the electronic device by touching the display screen 150 .
- the display screen 150 of the electronic device 100 can display an APP interface including at least one service card.
- the display screen 150 displays indication information for indicating the first area.
- the first operation is used to operate the target service card to change the position of the target service card.
- the target service card is a service card displayed in the APP interface.
- the processor 110 detects that the target service card is close to the first area or overlaps with the first area, the target service card is added to the desktop.
- the display screen 150 of the electronic device 100 can display an application interface including at least one service card.
- the controller controls the display screen 150 to display a desktop and add a target service card to the desktop.
- the first operation is used to operate a target service card in at least one service card.
- the second operation is used to switch the displayed APP interface to the desktop.
- the target service card is a service card displayed in the application interface.
- a desktop is displayed by an electronic device provided in an embodiment of the present application.
- the desktop 500 may include multiple APP controls.
- a call APP control For example, a call APP control, a text message APP control, a browser APP control, a camera APP control, and a smart home APP control 501, etc.
- the electronic device can receive a click or selection operation on a target APP control input by a user, and in response to the click or selection operation on a target APP control input by the user, start the target APP and overlay the APP interface corresponding to the target APP on the desktop.
- the electronic device starts the smart home APP in response to the user's click or selection operation, and overlays an APP interface 502 corresponding to the smart home APP as shown in (b) of FIG. 5 on the desktop.
- the APP interface may include multiple function areas.
- the function area may display function display information of the corresponding service function. After the function area is added to the desktop of the electronic device, it exists in the form of a service card. Therefore, the function area can also be called a service card.
- the service card is used to trigger the electronic device to jump to the interface of the corresponding APP function.
- FIG. 5 is an APP interface 502 corresponding to a smart home APP provided in an embodiment of the present application.
- the APP interface 502 includes a router service card, a watch service card, a camera service card, a desk lamp service card 503, an air purifier service card, a smart door lock service card, etc.
- the desk lamp service card 503 may display information corresponding to the desk lamp bound to the smart home APP (for example, the brightness information, power information, working time information, etc. of the desk lamp).
- the desk lamp service card 503 can be used to trigger an electronic device to jump to display a control interface for controlling the desk lamp.
- the electronic device may receive a first operation input by a user for a target service card (also referred to as a first service card).
- a target service card also referred to as a first service card.
- the electronic device displays indication information for indicating the first area.
- the first operation includes a drag operation.
- the user can input a drag operation for the first service card to the electronic device by touching the position of the first service card on the display screen of the electronic device and sliding a touch track on the display screen of the electronic device.
- the first operation includes a pressing operation and a dragging operation.
- the user can input a pressing operation for the first service card to the electronic device by touching the position of the first service card in the display screen of the electronic device.
- the electronic device detects the pressing operation input by the user for the first service card, it marks the first service card as selected.
- the electronic device detects that the user stops pressing the display screen of the electronic device, the selected state marked for the first service card is canceled.
- the user can input a pressing operation for the first service card to the electronic device by sliding a touch track in the display screen of the electronic device while maintaining the pressing operation on the first service card.
- the electronic device may display indication information for indicating the first area, wherein the indication information includes graphical indication information and/or text indication information.
- the indication information for indicating the first area includes graphical indication information
- the indication information 504 may be presented as a semicircle.
- the indication information 601 may also be presented as a rectangle.
- the indication information 701 may also be presented as a line, etc.
- Personnel in this field may set the style of the graphical indication information for indicating the first area according to actual application scenarios and requirements, for example, setting the style of the graphical indication information to a circle, a polygon, etc., and the present application does not limit the style of the graphical indication information.
- the indication information 702 may be a prompt “Drag here”.
- the indication information may also be a text symbol, such as “O”.
- Personnel skilled in the art may set the style of the text indication information according to actual application scenarios and requirements, and the present application does not limit the style of the text indication information for indicating the first area.
- the indication information for indicating the first area includes graphical indication information and textual indication information
- the textual indication information 703 included in the indication information may be a prompt “drag to the lower left corner”
- the graphical indication information 704 included in the indication information may be presented in a sector shape.
- the area where the graphical indication information 704 is located is the first area.
- the indication information for indicating the first area can refer to (a) in Figures 5, 6, 7A and 7B above, and is located within the scope of the first area.
- the indication information for indicating the first area can also refer to (b) in Figure 7B above, and is not located within the scope of the first area, which is not limited in this application.
- the size and position of the first area may be pre-set in the electronic device.
- the first area is set to be a square area with a side length of 1 cm located in the lower left corner of the display screen of the electronic device.
- the size and position of the first area may also be obtained based on the size of the indication information used to indicate the first area and the initial position of the target service card. For example, when the indication information used to indicate the first area is a circle with a radius of 1 cm, the first area may be a circular area with a radius of 1 cm near the target service card.
- the electronic device may display the indication information indicating the first area in the APP interface in response to the first operation input by the user.
- the electronic device may hide the APP interface in response to the first operation input by the user, and display the indication information indicating the first area on the desktop.
- the electronic device may hide the APP interface in response to the first operation input by the user, generate a display interface, and display the indication information indicating the first area in the display interface, etc., which is not limited by this application.
- the first service card when the electronic device detects that the first service card is dragged to a position close to the first area, or when the electronic device detects that the first service card is dragged to a position overlapping with the first area, the first service card is added to the desktop.
- the electronic device detects that the distance between the first service card and the first area is less than or equal to a first preset value, the first service card is added to the desktop.
- the distance between the first service card and the first area may be the distance between the center of the first service card and the center of the first area. It may also be the shortest distance between the edge of the first service card and the edge of the first area, etc., which is not limited in this application. In addition, those skilled in the art may set the first preset value according to actual application scenarios and requirements, which is not limited in this application.
- the user can drag the table lamp service card in the smart home APP to input a first operation to the electronic device.
- the electronic device detects that the distance between the table lamp service card and the first area is less than a first preset value, the electronic device adds the table lamp service card to the desktop.
- the electronic device in order to guide the user to drag the first service card to be added to the desktop to the first area, when the electronic device detects that the first service card moves toward a position close to the first area as the user inputs a first operation, the area occupied by the indication information in the interface displayed by the electronic device increases.
- the electronic device detects that the first service card moves toward a position away from the first area as the user inputs a first operation, the area occupied by the indication information in the interface displayed by the electronic device decreases.
- the electronic device when the user performs the first operation on the desk lamp service card in the smart home APP, if the desk lamp service card is moved to a position close to the first area, the area occupied by the indication information 601 in the interface displayed by the electronic device will increase.
- the electronic device detects that the desk lamp service card moves to a position away from the first area as the user inputs the first operation, the area occupied by the indication information 701 in the interface displayed by the electronic device will decrease.
- a position less than a second preset value from the first service card can be determined as the first area, and the second preset value is greater than the first preset value.
- the electronic device when the user performs the first operation on the desk lamp service card in the smart home APP, the electronic device detects the user's first operation on the desk lamp service card, and displays the indication information for indicating the first area between the desk lamp service card and the edge of the desktop, and the indication information is close to the edge of the desk lamp service card.
- the electronic device can determine the area occupied by the indication information in the interface displayed by the electronic device as the first area.
- the electronic device detects the user's first operation on the desk lamp service card, and displays the indication information for indicating the first area between the desk lamp service card and the center of the desktop, and the indication information is close to the edge of the desk lamp service card.
- the electronic device can determine the area occupied by the indication information in the interface displayed by the electronic device as the first area.
- the electronic device detects the user's first operation on the desk lamp service card, it can also display the indication information for indicating the first area near the upper edge of the desk lamp service card or near the lower edge of the desk lamp service card, and determine the area occupied by the indication information in the interface displayed by the electronic device as the first area, etc., which is not limited by the present application.
- the interface may not switch, that is, the interface currently displayed by the electronic device is still the APP interface.
- the user can continue to perform the operations in the above embodiment on the second service card (the second service card is different from the first service card) in the APP interface.
- the electronic device can traverse the position of the APP control near the edge of the desktop in the desktop, and obtain the control area based on the position of the APP control near the edge of the desktop. For example, referring to (a) in Figure 8, the electronic device traverses the position of each APP control in the desktop 800, and determines that APP control 801, APP control 802, APP control 803 and APP control 804 are the APP controls located at the edge. Based on the positions of APP control 801, APP control 802, APP control 803 and APP control 804, control area 805 can be obtained.
- the first service card is added to the blank area in the control area, wherein the size of the blank area is greater than or equal to the size of the target service card, and the blank area is large enough to place the target service card.
- the first service card can be added to the blank areas in the control area according to a first preset rule.
- the first preset rule may include that the blank area closer to the top of the desktop has a higher priority for placing the first service card, and/or the blank area closer to the left edge of the desktop has a higher priority for placing the first service card, etc.
- Those skilled in the art may set the first preset rule according to actual scenarios and requirements, and this application does not limit this.
- the electronic device When the electronic device detects that there is no blank area in the control area, it can traverse the non-control area on the desktop to detect the blank area in the non-control area. After that, the electronic device can add the first service card to the desktop according to the second preset rule.
- the second preset rule can refer to the description of the first preset rule in the above embodiment. Those skilled in the art can modify the second preset rule according to the actual scenario and requirements. The second preset rule is set, and this application does not impose any restrictions.
- the electronic device after the electronic device adds the first service card to the desktop, it can hide the APP interface and display the desktop including the first service card.
- the electronic device hides the APP interface of the smart home APP and displays the desktop including the desk lamp service card.
- the desktop of the electronic device includes at least one sub-desktop
- the user can input a left or right sliding operation in the display screen of the electronic device when the electronic device displays any sub-desktop to switch the sub-desktop displayed by the electronic device.
- the electronic device receives the first operation input by the user in the application interface and displays the indication information for indicating the first area
- the blank area in each sub-desktop of the electronic device is determined, and the sub-desktop including the blank area whose size is greater than or equal to the size of the target service card is determined as the target sub-desktop.
- the electronic device can display the target sub-desktop and add the target service card to the target sub-desktop.
- the APP interface when the electronic device detects that the distance between the desk lamp service card and the first area is less than a first preset value, the APP interface can be hidden, and the first service card can be displayed at the real-time location where the user inputs the first operation. Afterwards, if the electronic device detects that the first service card is still marked as selected, that is, the user is still inputting the first operation to the electronic device, the position of the first service card on the desktop will also change in real time with the first operation input by the user on the desktop.
- the electronic device detects that the distance between the desk lamp service card and the first area is less than the first preset value, the APP interface is hidden, and a desktop including the first service card as shown in (b) in FIG9 is displayed.
- the first service card is located at the real-time position on the desktop where the user inputs the first operation.
- the position of the first service card will change in real time as the user inputs the first operation on the desktop.
- the electronic device when the electronic device detects that the distance between the desk lamp service card and the first area is less than a first preset value, the APP interface is hidden, the desktop is displayed, and the real-time position of the first operation input by the user on the desktop is detected to be a blank area.
- the first service card is displayed at the position on the desktop.
- a third service card or APP control is displayed at the position.
- the electronic device will adjust the position of the third service card or APP control displayed at the position to move the third service card or APP control displayed at the position to the blank area on the desktop. After that, the first service card is displayed at the position.
- the first service card is displayed at the location where the user stops inputting the first operation to complete the operation of adding the first service card to the desktop.
- an electronic device displays an application interface including at least one service card
- a first operation and a second operation input by a user are received, the desktop is displayed, and a target service card (also referred to as a first service card) is added to the desktop.
- the first operation may include a pressing operation and/or a dragging operation.
- the first operation is used to operate the first service card so that the position of the first service card changes.
- the second operation is used to switch the displayed application interface to the desktop.
- the first service card is a service card displayed in the application interface.
- the electronic device may prompt the user to switch interfaces.
- the electronic device can prompt the user to switch interfaces by displaying a prompt in the APP interface.
- a prompt "Press and hold the card, swipe up to add to the desktop" is displayed in the APP interface.
- the user can keep touching the first service card with one hand while sliding up in the APP interface with the other hand to input the first operation and the second operation to the electronic device.
- the electronic device hides the APP interface and displays the desktop in response to the second operation input by the user, and displays the first service card on the desktop in response to the first operation input by the user (see (d) in Figure 10).
- the above method in which the user keeps touching the first service card while sliding the APP interface upward to input the first operation and the second operation to the electronic device is only an illustrative description.
- Personnel in this field can set the method for the user to input the first operation and the second operation according to the actual application scenario and needs. For example, the user can slide the APP interface downward while keeping touching the first service card to input the first operation and the second operation to the electronic device, or the user can continuously tap twice at any position in the APP interface while keeping touching the first service card to input the first operation and the second operation to the electronic device, etc., and this application is not limited.
- the desktop of the electronic device includes at least one sub-desktop
- the user can input a left or right sliding operation in the display screen of the electronic device when the electronic device displays any sub-desktop to switch the sub-desktop displayed by the electronic device.
- the electronic device receives the second operation input by the user in the application interface, it determines the blank area in each sub-desktop of the electronic device, and determines the sub-desktop including the blank area whose size is greater than or equal to the size of the target service card as the target sub-desktop.
- the electronic device can display the target sub-desktop and add the target service card to the target sub-desktop based on the first operation input by the user.
- the electronic device hides the APP interface and displays a desktop including a first service card
- the position of the first service card on the desktop will also change in real time with the first operation input by the user on the desktop.
- the electronic device detects that the user is still inputting the first operation to the electronic device, see (a) in FIG11 , the user can keep touching the first service card with one hand while sliding the other hand to the right on the desktop to input a page turning operation of turning the desktop to the electronic device.
- the electronic device displays an interface as shown in (b) in FIG11 , and displays the first service card in the interface as shown in (b) in FIG11 .
- the user can keep touching the first service card with one hand while sliding the other hand to the left on the desktop to input a page turning operation of turning the desktop to the electronic device.
- the electronic device displays an interface as shown in (d) in FIG11 , and displays the first service card in the interface as shown in (d) in FIG11 .
- the method for adding a service card provided in the embodiment of the present application can add the service card selected by the user to the desktop in real time when the user browses the APP interface including the service card, and can simplify the operation process of adding the service card to the desktop and improve the adding efficiency.
- FIG. 12 is an APP interface 1200 corresponding to a sports health APP displayed on an electronic device.
- the APP interface includes a sports record service card, a weight management service card, a heart health service card, a sleep service card, a blood sugar management service card, and the like.
- the sleep service card can display the sleep time of the user detected by the electronic device.
- the user can add the sleep service card to the desktop by inputting a first operation for the sleep service card to the electronic device. After the sleep service card is added to the desktop, the user can directly view the sleep time of the user detected by the electronic device on the desktop.
- the sleep service card can be added to the desktop through the following two implementation methods.
- the sleep service card when the electronic device detects that the user touches the position of the sleep service card on the display screen of the electronic device, the sleep service card is marked as selected.
- the selected state marked on the sleep service card is canceled.
- the sleep service card When the sleep service card is marked as selected, the user can slide a touch track on the display screen of the electronic device to input a first operation to the electronic device.
- the position of the sleep service card marked as selected can change in real time with the first operation input by the user.
- the electronic device may display indication information 1201 for indicating the first area.
- the electronic device detects that the sleep service card is close to the first area or overlaps with the first area, the APP interface is hidden and the desktop including the sleep service card is displayed. Also, referring to (c) in FIG. 12 , the electronic device places the sleep service card at the real-time location where the user inputs the first operation, completing the operation of adding the sleep service card to the desktop.
- FIG. 13 is an APP interface 1300 corresponding to a weather APP displayed by an electronic device.
- the APP interface 1300 includes a temperature service card, a humidity service card, a weather change service card, an ultraviolet service card, and the like.
- the weather change service card may display weather forecast information obtained by the electronic device.
- the user may add the weather change service card to the desktop by inputting a first operation for the weather change service card to the electronic device. After the weather change service card is added to the desktop, the user can directly view the weather forecast information obtained by the electronic device on the desktop.
- the weather change service card can also be added to the desktop through the following two implementation methods.
- the weather change service card when the electronic device detects that the user touches the position of the weather change service card on the display screen of the electronic device, the weather change service card is marked as selected.
- the selected state marked on the weather change service card is canceled.
- the user can slide a touch track on the display screen of the electronic device to input a first operation to the electronic device.
- the position of the weather change service card marked as selected can change in real time with the first operation input by the user.
- the electronic device may display indication information 1301 for indicating the first area.
- the electronic device detects that the weather change service card is close to the first area or overlaps with the first area, the APP interface is hidden and the desktop including the weather change service card is displayed. Also, referring to (c) in FIG. 13 , the electronic device places the weather change service card at the real-time location where the user inputs the first operation, completing the operation of adding the weather change service card to the desktop.
- FIG 14 is an APP interface corresponding to a music APP displayed by an electronic device.
- the APP interface includes a playlist recommendation service card, a video recommendation service card, a music chart service card, and the like.
- the playlist recommendation service card may display a music playlist obtained by the electronic device based on the detected user's preferences.
- the user can add the playlist recommendation service card to the desktop by inputting a first operation for the playlist recommendation service card to the electronic device. After the playlist recommendation service card is added to the desktop, the user can directly view the music playlist obtained by the electronic device on the desktop.
- the playlist recommendation service card can also be added to the desktop through the following two implementation methods.
- the playlist recommendation service card when the electronic device detects that the user touches the position of the playlist recommendation service card on the display screen of the electronic device, the playlist recommendation service card is marked as selected.
- the selected state marked on the playlist recommendation service card is canceled.
- the playlist recommendation service card is marked as selected, the user can slide a touch track on the display screen of the electronic device to input a first operation to the electronic device.
- the position of the playlist recommendation service card marked as selected can change in real time with the first operation input by the user.
- the electronic device may display indication information 1401 for indicating the first area.
- the electronic device detects that the playlist recommendation service card is close to the first area or overlaps with the first area, the APP interface is hidden and the desktop including the playlist recommendation service card is displayed. Also, referring to (c) in FIG. 14 , the electronic device places the playlist recommendation service card at the real-time location where the user inputs the first operation, completing the operation of adding the playlist recommendation service card to the desktop.
- multiple embodiments of the present application can be combined, and the combined scheme can be implemented.
- some operations in the process of each method embodiment are optionally combined, and/or the order of some operations is optionally changed.
- the execution order between the steps of each process is only exemplary and does not constitute a restriction on the execution order between the steps.
- a person of ordinary skill in the art will think of a variety of ways to reorder the operations described herein.
- the process details involved in a certain embodiment of this article are also applicable to other embodiments in a similar manner, or different embodiments can be used in combination.
- steps in the method embodiment may be equivalently replaced by other possible steps.
- some steps in the method embodiment may be optional and may be deleted in certain usage scenarios.
- other possible steps may be added to the method embodiment.
- the electronic device includes hardware and/or software modules corresponding to the execution of each function.
- the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in combination with the embodiments, but such implementation should not be considered to be beyond the scope of the present application.
- the electronic device can be divided into functional modules according to the above method example.
- each functional module can be divided according to each function, or two or more functions can be integrated into one processing module.
- the above integrated module can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is schematic and is only a logical function division. There may be other division methods in actual implementation.
- An embodiment of the present application also provides an electronic device, which may include one or more processors, a memory, and a communication interface.
- the memory, the communication interface and the processor are coupled, for example, the memory, the communication interface and the processor may be coupled together via a bus.
- the communication interface is used for data transmission with other devices.
- the memory stores computer program code.
- the computer program code includes computer instructions, and when the computer instructions are executed by the processor, the electronic device executes the method in the embodiment of the present application.
- the processor can be a processor or a controller, for example, a central processing unit (CPU), a general processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It can implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the present disclosure.
- the processor can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of DSP and microprocessors, and so on.
- the processor can be used to support electronic devices to execute the method steps provided in the above embodiments.
- the bus may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus.
- PCI Peripheral Component Interconnect
- EISA Extended Industry Standard Architecture
- the above buses may be divided into address buses, data buses, control buses, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
- An embodiment of the present application also provides a chip system, including: a processor, the processor is coupled to a memory, the memory is used to store programs or instructions, when the program or instructions are executed by the processor, the chip system implements the method in any of the above method embodiments.
- the processor in the chip system may be one or more.
- the processor may be implemented by hardware or by software.
- the processor may be a logic circuit, an integrated circuit, etc.
- the processor may be a general-purpose processor implemented by reading software code stored in a memory.
- the memory in the chip system may be one or more.
- the memory may be integrated with the processor or may be separately arranged with the processor, which is not limited in the embodiments of the present application.
- the memory may be a non-transient processor, such as a read-only memory ROM, which may be integrated with the processor on the same chip or may be arranged on different chips respectively.
- the embodiments of the present application do not specifically limit the type of memory and the arrangement of the memory and the processor.
- the chip system can be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a microcontroller unit (MCU), a programmable logic device (PLD) or other integrated chips.
- FPGA field programmable gate array
- ASIC application specific integrated circuit
- SoC system on chip
- CPU central processor unit
- NP network processor
- DSP digital signal processor
- MCU microcontroller unit
- PLD programmable logic device
- each step in the above method embodiment can be completed by an integrated logic circuit of hardware in a processor or by instructions in the form of software.
- the method steps disclosed in the embodiments of the present application can be directly embodied as being executed by a hardware processor, or by a combination of hardware and software modules in a processor.
- the present application also provides a computer-readable storage medium, wherein the computer storage medium stores computer program code.
- the processor executes the computer program code
- the electronic device executes the relevant method steps in the method embodiment.
- the embodiment of the present application also provides a computer program product.
- the computer program product When the computer program product is run on a computer, it enables the computer to execute the relevant method steps in the above method embodiment.
- an embodiment of the present application further provides a device.
- the device may be a component or a module, and the device may include one or more processors and a memory connected to each other.
- the memory is used to store a computer program.
- the computer program is executed by one or more processors, the device performs the scene configuration method in the above-mentioned method embodiments.
- the device, computer-readable storage medium, computer program product or chip provided in the embodiments of the present application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.
- the steps of the method or algorithm described in conjunction with the disclosed content of the embodiments of the present application can be implemented in hardware or by a processor executing software instructions.
- the software instructions can be composed of corresponding software modules, and the software modules can be stored in random access memory (RAM), flash memory, read-only memory (ROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), registers, hard disks, mobile hard disks, read-only compact disks (CD-ROMs) or any other form of storage medium known in the art.
- An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium.
- the storage medium can also be a component of the processor.
- the processor and the storage medium can be located in an application specific integrated circuit (ASIC).
- ASIC application specific integrated circuit
- the disclosed devices and methods can be implemented in other ways.
- the device embodiments described above are only schematic.
- the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed.
- Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
- the units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
- each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
- the above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
- the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium.
- the technical solution of the embodiment of the present application is essentially or the part that makes the contribution or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the method described in each embodiment of the present application.
- the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The present application provides a service card addition method and an electronic device, relates to the technical field of terminals, and can improve the efficiency of adding service cards to the desktop of an electronic device. The method comprises: when an electronic device displays an application interface comprising at least one service card, if a first operation inputted by a user is received, then displaying indication information indicating a first area. Wherein the first operation is used for manipulating a target service card, so as to cause the position of the target service card to change. The target service card being a service card displayed in an application interface. When the target service card is close to the first area or overlaps with the first area, the electronic device adds the target service card to the desktop. The invention simplifies the operation process of adding a service card to a desktop, and the improves the efficiency of said addition. The present application is applied to the process of adding a service card to the desktop of an electronic device.
Description
本申请要求于2022年12月16日提交国家知识产权局、申请号为202211627669.4、申请名称为“服务卡片的添加方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on December 16, 2022, with application number 202211627669.4 and application name “Method for adding service cards and electronic device”, all contents of which are incorporated by reference in this application.
本申请涉及终端技术领域,尤其涉及一种服务卡片的添加方法及电子设备。The present application relates to the field of terminal technology, and in particular to a method for adding a service card and an electronic device.
元服务(feature ability,FA)是电子设备中安装的应用程序(application,APP)的重要组成部分,用于实现APP所具备的服务功能。一个APP可以具备多种FA,不同的FA代表不同的服务功能。例如,社交APP可以具备社交能力对应的FA、支付能力对应的FA、公交查询能力对应的FA、天气查询能力对应的FA等。Metaservice (featureability, FA) is an important part of the application (APP) installed in the electronic device, which is used to realize the service functions of the APP. An APP can have multiple FAs, and different FAs represent different service functions. For example, a social APP can have FAs corresponding to social capabilities, FAs corresponding to payment capabilities, FAs corresponding to bus query capabilities, FAs corresponding to weather query capabilities, etc.
服务卡片是FA的一种界面表现形式,可以被添加在电子设备显示的桌面上。用户若要使用APP中的某个服务功能,不必再打开对应的APP,而是可以直接点击桌面上的服务卡片,就可以使电子设备显示的界面直接跳转到对应的服务界面。Service cards are a form of FA interface that can be added to the desktop of an electronic device. If a user wants to use a service function in an APP, he or she does not need to open the corresponding APP, but can directly click on the service card on the desktop to jump directly to the corresponding service interface on the electronic device.
但是,现有的在电子设备的桌面中添加服务卡片的方法操作过程繁琐,添加效率低。However, the existing method of adding a service card to the desktop of an electronic device has a complicated operation process and low adding efficiency.
发明内容Summary of the invention
本申请实施例提供一种服务卡片的添加方法及电子设备,能够提高在电子设备的桌面中添加服务卡片的效率。The embodiments of the present application provide a method for adding a service card and an electronic device, which can improve the efficiency of adding a service card on the desktop of the electronic device.
为达到上述目的,本申请的实施例采用如下技术方案:To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:
第一方面,本申请提供了一种服务卡片的添加方法,该方法可以应用于电子设备,该方法中,电子设备显示应用界面,该应用界面中包括至少一个服务卡片。当电子设备接收用户在应用界面中输入的第一操作时,响应于第一操作,显示指示第一区域的指示信息。其中,第一操作用于操作至少一个服务卡片中的目标服务卡片。指示第一区域的指示信息包括图形化的指示信息和/或文字指示信息,且当指示第一区域的指示信息为图形化的指示信息时,指示第一区域的指示信息包括半圆形、圆形、矩形、线性、或多边形中的至少一种。In a first aspect, the present application provides a method for adding a service card, which can be applied to an electronic device, in which the electronic device displays an application interface, which includes at least one service card. When the electronic device receives a first operation input by a user in the application interface, in response to the first operation, indication information indicating a first area is displayed. The first operation is used to operate a target service card in at least one service card. The indication information indicating the first area includes graphical indication information and/or textual indication information, and when the indication information indicating the first area is graphical indication information, the indication information indicating the first area includes at least one of a semicircle, a circle, a rectangle, a line, or a polygon.
此外,第一操作包括拖动操作,电子设备响应于作用于目标服务卡片的拖动操作,显示指示第一区域的指示信息。或者,第一操作包括按压操作和拖动操作,电子设备响应于作用于目标服务卡片的按压操作,显示指示第一区域的指示信息。In addition, the first operation includes a drag operation, and the electronic device displays indication information indicating the first area in response to the drag operation acting on the target service card. Alternatively, the first operation includes a press operation and a drag operation, and the electronic device displays indication information indicating the first area in response to the press operation acting on the target service card.
当目标服务卡片***作到靠近第一区域或与第一区域存在重叠时,电子设备将目标服务卡片添加至桌面。When the target service card is operated to be close to the first area or overlaps with the first area, the electronic device adds the target service card to the desktop.
在一些实现方式中,应用界面中可以显示有至少一个服务卡片。在另一些实现方式中,应用界面中可以显示有至少一个功能区,功能区显示有对应服务功能的功能展示信息。功能区被添加到电子设备的桌面后以服务卡片的形态存在,该功能区也可被称为“服务卡片”。服务卡片用于触发电子设备跳转显示对应的功能界面。用户在电子设备中输入针对目标服务卡片的按压操作或拖动操作时,电子设备显示指示第一区域的指示信息,以引导用户将目标服务卡片向靠近第一区域的方向拖动。当目标服务卡片***作到靠近第一区域或与第一区域存在重叠时,电子设备将目标服务卡片添加至桌面。能够简化将服务卡片添加到桌面上的操作过程,提升添加效率。In some implementations, at least one service card may be displayed in the application interface. In other implementations, at least one function area may be displayed in the application interface, and the function area displays function display information of the corresponding service function. After the function area is added to the desktop of the electronic device, it exists in the form of a service card, and the function area may also be referred to as a "service card". The service card is used to trigger the electronic device to jump to display the corresponding function interface. When the user inputs a pressing operation or a dragging operation for the target service card in the electronic device, the electronic device displays indication information indicating the first area to guide the user to drag the target service card in the direction close to the first area. When the target service card is operated to be close to the first area or overlaps with the first area, the electronic device adds the target service card to the desktop. It can simplify the operation process of adding service cards to the desktop and improve the efficiency of adding.
进一步的,该操作方式可以给用户一种卡片“穿越”到桌面的感觉,提升用户的操作体验。Furthermore, this operation method can give the user a feeling that the card "travels" to the desktop, thereby improving the user's operating experience.
本申请对应用的类型、大小均不作限定。应用可以是常见的通讯、音乐、视频、智能家居、游戏等应用,也可以是电子设备中的某一个功能模块。应用可以是电子设备厂家开发的,比如集成到操作***中的,也可以是非手机厂家的第三方厂家开发的,由电子设备厂家预置或由电子设备用户下载到电子设备中的。This application does not limit the type and size of the application. The application can be a common communication, music, video, smart home, game, etc. application, or it can be a functional module in an electronic device. The application can be developed by an electronic device manufacturer, such as integrated into the operating system, or it can be developed by a third-party manufacturer other than the mobile phone manufacturer, pre-installed by the electronic device manufacturer or downloaded to the electronic device by the electronic device user.
在第一方面的一种可实现方式中,当电子设备检测到目标服务卡片***作到与第一区域之间的距离小于或等于第一预设值时,显示电子设备的桌面。电子设备响应于结束第一操作,将目标服务卡片添加到电子设备的桌面。
In an implementation of the first aspect, when the electronic device detects that the target service card is operated to a distance less than or equal to a first preset value from the first area, the electronic device displays the desktop of the electronic device. In response to ending the first operation, the electronic device adds the target service card to the desktop of the electronic device.
这种实现方式中,电子设备显示指示第一区域的指示信息后,用户可以根据该指示信息将目标服务卡片向第一区域拖动,以向电子设备输入针对目标服务卡片的第一操作。当目标服务卡片***作到与第一区域之间的距离小于或等于第一预设值,且用户结束对电子设备输入针对目标服务卡片的第一操作时,电子设备响应于结束第一操作,将目标服务卡片添加到电子设备的桌面。能够简化将服务卡片添加到桌面上的操作过程,提升添加效率。In this implementation, after the electronic device displays the indication information indicating the first area, the user can drag the target service card to the first area according to the indication information to input the first operation for the target service card to the electronic device. When the distance between the target service card and the first area is less than or equal to the first preset value, and the user ends the first operation for the target service card to the electronic device, the electronic device adds the target service card to the desktop of the electronic device in response to ending the first operation. The operation process of adding the service card to the desktop can be simplified, and the adding efficiency can be improved.
在第一方面的一种可实现方式中,电子设备的桌面包括至少一个子桌面。当目标服务卡片***作到与第一区域之间的距离小于或等于第一预设值时,电子设备将各子桌面中包括空白区域的子桌面确定为目标子桌面。其中,空白区域的尺寸大于或等于目标服务卡片的尺寸。电子设备确定目标子桌面后,显示该目标子桌面。In an implementation of the first aspect, the desktop of the electronic device includes at least one sub-desktop. When the distance between the target service card and the first area is less than or equal to a first preset value, the electronic device determines the sub-desktop including a blank area in each sub-desktop as the target sub-desktop. The size of the blank area is greater than or equal to the size of the target service card. After the electronic device determines the target sub-desktop, it displays the target sub-desktop.
这种实现方式中,当电子设备检测到目标服务卡片***作到与第一区域之间的距离小于或等于第一预设值时,在各子桌面中查找包括足够放置目标服务卡片的空白区域的目标子桌面。并显示该目标子桌面。用户无需手动查找能够放置目标服务卡片的子桌面,有利于用户体验。In this implementation, when the electronic device detects that the distance between the target service card and the first area is less than or equal to the first preset value, a target sub-desktop including a blank area sufficient to place the target service card is searched in each sub-desktop, and the target sub-desktop is displayed. The user does not need to manually search for a sub-desktop where the target service card can be placed, which is beneficial to the user experience.
在第一方面的一种可实现方式中,当目标服务卡片向靠近第一区域的方向移动时,指示第一区域的指示信息在电子设备显示的界面中所占的面积增大。当目标服务卡片向远离第一区域的方向移动时,指示第一区域的指示信息在电子设备显示的界面中所占的面积减小。In an implementation of the first aspect, when the target service card moves toward the direction approaching the first area, the area occupied by the indication information indicating the first area in the interface displayed by the electronic device increases. When the target service card moves away from the first area, the area occupied by the indication information indicating the first area in the interface displayed by the electronic device decreases.
这种实现方式中,基于目标服务卡片的位置和第一区域的位置之间的距离的变化,指示第一区域的指示信息在电子设备显示的界面中所占的面积也随之变化。能够引导用户将目标服务卡片拖动至第一区域,增加用户体验。In this implementation, based on the change in the distance between the position of the target service card and the position of the first area, the area occupied by the indication information indicating the first area in the interface displayed by the electronic device also changes accordingly, which can guide the user to drag the target service card to the first area, thereby improving the user experience.
在第一方面的一种可实现方式中,电子设备响应于第一操作,隐藏应用界面,显示电子设备的桌面。其中,电子设备显示的桌面包括空白区域,该空白区域足够放置目标服务卡片。In an implementation of the first aspect, the electronic device hides the application interface and displays the desktop of the electronic device in response to the first operation, wherein the desktop displayed by the electronic device includes a blank area, and the blank area is sufficient to place the target service card.
这种实现方式中,电子设备检测到用户输入的第一操作后,自动将显示的界面切换为包括空白区域的桌面,并执行后续在桌面上添加目标服务卡片的操作,无需用户手动关闭应用界面。能够简化将服务卡片添加到桌面上的操作过程,提升添加效率。In this implementation, after the electronic device detects the first operation input by the user, it automatically switches the displayed interface to a desktop including a blank area, and performs the subsequent operation of adding a target service card on the desktop, without the user having to manually close the application interface. This can simplify the operation process of adding a service card to the desktop and improve the efficiency of adding.
在第一方面的一种可实现方式中,电子设备在桌面上的目标位置显示目标服务卡片,目标位置是用户输入第一操作的实时位置。In an implementation manner of the first aspect, the electronic device displays a target service card at a target location on the desktop, where the target location is a real-time location where the user inputs the first operation.
这种实现方式中,目标服务卡片被添加至桌面后,目标服务卡片的位置随着用户输入第一操作的位置实时变化。电子设备能够基于用户自定义的位置在桌面上显示目标服务卡片,以提升用户体验。In this implementation, after the target service card is added to the desktop, the position of the target service card changes in real time with the position where the user inputs the first operation. The electronic device can display the target service card on the desktop based on the user-defined position to improve the user experience.
在第一方面的一种可实现方式中,电子设备接收用户在应用界面中输入的第一操作后,在距离目标服务卡片小于第二预设值的位置显示指示信息。In an implementation manner of the first aspect, after the electronic device receives a first operation input by the user in the application interface, the electronic device displays indication information at a position that is less than a second preset value from the target service card.
这种实现方式中,电子设备在检测到用户输入的第一操作后,在距离目标服务卡片小于第二预设值的区域显示指示信息。有利于用户将目标服务卡片拖动至第一区域中,提升了用户体验。In this implementation, after detecting the first operation input by the user, the electronic device displays the indication information in an area whose distance from the target service card is less than the second preset value, which is conducive to the user dragging the target service card to the first area and improves the user experience.
第二方面,本申请实施例提供一种服务卡片的添加方法,可以应用于电子设备。该方法中,电子设备显示应用界面。其中,应用界面中包括至少一个服务卡片。电子设备接收用户在应用界面中输入的第一操作和第二操作后,响应于第二操作,显示桌面。以及,响应于第一操作,将目标服务卡片添加至显示的桌面。In a second aspect, an embodiment of the present application provides a method for adding a service card, which can be applied to an electronic device. In the method, the electronic device displays an application interface. The application interface includes at least one service card. After the electronic device receives a first operation and a second operation input by a user in the application interface, the electronic device displays a desktop in response to the second operation. And, in response to the first operation, the target service card is added to the displayed desktop.
其中,第一操作用于操作至少一个服务卡片中的目标服务卡片。第一操作包括按压操作。电子设备响应于作用于目标服务卡片的按压操作,将目标服务卡片添加至显示的桌面。或者,第一操作包括拖动操作,电子设备响应于作用于目标服务卡片的拖动操作,将目标服务卡片添加至显示的桌面。第二操作用于将显示的应用界面切换为桌面。第二操作包括向预设方向滑动应用界面。The first operation is used to operate a target service card in at least one service card. The first operation includes a pressing operation. The electronic device adds the target service card to the displayed desktop in response to the pressing operation on the target service card. Alternatively, the first operation includes a dragging operation, and the electronic device adds the target service card to the displayed desktop in response to the dragging operation on the target service card. The second operation is used to switch the displayed application interface to the desktop. The second operation includes sliding the application interface in a preset direction.
上述服务卡片的添加方法中,电子设备在接收用户输入的用于指示将应用界面切换为桌面的第二操作的同时,接收用户输入的用于操作目标服务卡片的第一操作,以在用户输入第一操作时经过的位置处实时显示目标服务卡片,实现将目标服务卡片添加至桌面。能够简化将服务卡片添加到桌面上的操作过程,提升添加效率。In the above service card adding method, the electronic device receives a first operation input by the user for operating a target service card while receiving a second operation input by the user for instructing to switch the application interface to the desktop, so as to display the target service card in real time at the position passed by the user when inputting the first operation, thereby adding the target service card to the desktop. This can simplify the operation process of adding a service card to the desktop and improve the adding efficiency.
在第二方面的一种可实现方式中,电子设备的桌面包括至少一个子桌面。电子设备响应于第二操作,将各子桌面中包括空白区域的子桌面确定为目标子桌面。其中,空白区域的尺寸大于或等于目标服务卡片的尺寸。电子设备确定目标子桌面后,显示目标子桌面。
In an implementation of the second aspect, the desktop of the electronic device includes at least one sub-desktop. In response to the second operation, the electronic device determines a sub-desktop including a blank area in each sub-desktop as a target sub-desktop. The size of the blank area is greater than or equal to the size of the target service card. After determining the target sub-desktop, the electronic device displays the target sub-desktop.
这种实现方式中,电子设备响应于第二操作,在各子桌面中查找包括足够放置目标服务卡片的空白区域的目标子桌面,并显示该目标子桌面。用户无需手动查找能够放置目标服务卡片的子桌面,有利于用户体验。In this implementation, the electronic device responds to the second operation, searches for a target sub-desktop including a blank area sufficient to place the target service card in each sub-desktop, and displays the target sub-desktop. The user does not need to manually search for a sub-desktop on which the target service card can be placed, which is beneficial to the user experience.
在第二方面的一种可实现方式中,电子设备响应于第一操作,在桌面上的目标位置添加目标服务卡片。其中,目标位置是用户输入第一操作的实时位置。In an implementation of the second aspect, the electronic device adds a target service card at a target location on the desktop in response to the first operation, wherein the target location is a real-time location where the user inputs the first operation.
这种实现方式中,目标服务卡片被添加至桌面的过程中,目标服务卡片的位置随着用户输入第一操作的位置实时变化。电子设备能够基于用户自定义的位置在桌面上添加目标服务卡片,以提升用户体验。In this implementation, when the target service card is added to the desktop, the position of the target service card changes in real time with the position where the user inputs the first operation. The electronic device can add the target service card to the desktop based on the user-defined position to improve the user experience.
第三方面,本申请提供一种电子设备,包括:存储器、一个或多个处理器;所述存储器与所述处理器耦合;其中,所述存储器中存储有计算机程序代码,所述计算机程序代码包括计算机指令,当所述计算机指令被所述处理器执行时,使得所述电子设备执行如第一方面及其任一种可能的设计方式所述的方法。或者,使得所述电子设备执行如第二方面及其任一种可能的设计方式所述的方法。In a third aspect, the present application provides an electronic device, comprising: a memory, and one or more processors; the memory is coupled to the processor; wherein the memory stores a computer program code, and the computer program code includes a computer instruction, and when the computer instruction is executed by the processor, the electronic device executes the method as described in the first aspect and any possible design thereof. Alternatively, the electronic device executes the method as described in the second aspect and any possible design thereof.
第四方面,本申请提供一种计算机存储介质,该计算机存储介质包括计算机指令,当所述计算机指令在电子设备上运行时,使得电子设备执行如第一方面及其任一种可能的设计方式所述的方法。或者,使得所述电子设备执行如第二方面及其任一种可能的设计方式所述的方法。In a fourth aspect, the present application provides a computer storage medium, the computer storage medium comprising computer instructions, when the computer instructions are executed on an electronic device, the electronic device executes the method as described in the first aspect and any possible design thereof. Alternatively, the electronic device executes the method as described in the second aspect and any possible design thereof.
第五方面,本申请提供一种计算机程序产品,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如第一方面及其任一种可能的设计方式所述的方法。或者,使得所述电子设备执行如第二方面及其任一种可能的设计方式所述的方法。In a fifth aspect, the present application provides a computer program product, which, when executed on a computer, enables the computer to execute the method described in the first aspect and any possible design thereof. Alternatively, enables the electronic device to execute the method described in the second aspect and any possible design thereof.
可以理解地,上述提供的第三方面及其任一种可能的设计方式所述的电子设备,第四方面所述的计算机存储介质,第五方面所述的计算机程序产品所能达到的有益效果,可参考第一方面及其任一种可能的设计方式中的有益效果,此处不再赘述。It can be understood that the beneficial effects that can be achieved by the electronic device described in the third aspect and any possible design thereof, the computer storage medium described in the fourth aspect, and the computer program product described in the fifth aspect can be referred to the beneficial effects in the first aspect and any possible design thereof, and will not be repeated here.
图1为本申请实施例提供的一种相关技术中添加服务卡片至桌面的过程示意图;FIG1 is a schematic diagram of a process of adding a service card to a desktop in a related technology provided by an embodiment of the present application;
图2为本申请实施例提供的一种相关技术中添加服务卡片至桌面的过程示意图;FIG2 is a schematic diagram of a process of adding a service card to a desktop in a related technology provided by an embodiment of the present application;
图3A为本申请实施例提供的一种添加服务卡片的方法流程图;FIG3A is a flow chart of a method for adding a service card provided in an embodiment of the present application;
图3B为本申请实施例提供的一种添加服务卡片的方法流程图;FIG3B is a flow chart of a method for adding a service card provided in an embodiment of the present application;
图4为本申请实施例提供的一种电子设备的硬件结构示意图;FIG4 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;
图5为本申请实施例提供的一种服务卡片添加过程的示意图;FIG5 is a schematic diagram of a service card adding process provided in an embodiment of the present application;
图6为本申请实施例提供的又一种服务卡片添加过程的示意图;FIG6 is a schematic diagram of another service card adding process provided in an embodiment of the present application;
图7A为本申请实施例提供的一种指示信息的示意图;FIG7A is a schematic diagram of indication information provided in an embodiment of the present application;
图7B为本申请实施例提供的又一种指示信息的示意图;FIG7B is a schematic diagram of another indication information provided in an embodiment of the present application;
图8为本申请实施例提供的又一种服务卡片添加过程的示意图;FIG8 is a schematic diagram of another service card adding process provided in an embodiment of the present application;
图9为本申请实施例提供的又一种服务卡片添加过程的示意图;FIG9 is a schematic diagram of another service card adding process provided in an embodiment of the present application;
图10为本申请实施例提供的又一种服务卡片添加过程的示意图;FIG10 is a schematic diagram of another service card adding process provided in an embodiment of the present application;
图11为本申请实施例提供的又一种服务卡片添加过程的示意图;FIG11 is a schematic diagram of another service card adding process provided in an embodiment of the present application;
图12为本申请实施例提供的一种添加睡眠服务卡片过程的示意图;FIG12 is a schematic diagram of a process of adding a sleep service card provided in an embodiment of the present application;
图13为本申请实施例提供的又一种添加天气变化服务卡片过程的示意图;FIG13 is a schematic diagram of another process of adding a weather change service card provided in an embodiment of the present application;
图14为本申请实施例提供的又一种添加歌单推荐服务卡片过程的示意图。Figure 14 is a schematic diagram of another process of adding a playlist recommendation service card provided in an embodiment of the present application.
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。其中,在本申请的描述中,除非另有说明,“/”表示前后关联的对象是一种“或”的关系,例如,A/B可以表示A或B;本申请中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况,其中A,B可以是单数或者复数。并且,在本申请的描述中,除非另有说明,“多个”是指两个或多于两个。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b,或c中的至少一项(个),可以表示:a,b,c,a-b,a-c,b-c,或a-b-c,其
中a,b,c可以是单个,也可以是多个。另外,为了便于清楚描述本申请实施例的技术方案,在本申请的实施例中,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分。本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。同时,在本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念,便于理解。The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application. Among them, in the description of the present application, unless otherwise specified, "/" indicates that the objects associated before and after are in an "or" relationship, for example, A/B can represent A or B; "and/or" in the present application is only a description of the association relationship of the associated objects, indicating that there can be three relationships, for example, A and/or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. And, in the description of the present application, unless otherwise specified, "multiple" means two or more than two. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, and its a, b, c can be single or multiple. In addition, in order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first", "second" and the like are used to distinguish the same items or similar items with substantially the same functions and effects. It can be understood by those skilled in the art that the words "first", "second" and the like do not limit the quantity and execution order, and the words "first", "second" and the like do not necessarily limit the difference. At the same time, in the embodiments of the present application, the words "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or design solutions. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete manner for easy understanding.
电子设备的显示屏可以用于展示电子设备的桌面。电子设备的桌面上展示有各APP对应的服务卡片和APP控件。The display screen of the electronic device can be used to display the desktop of the electronic device. The desktop of the electronic device displays service cards and APP controls corresponding to each APP.
在一种相关技术中,用户可以在电子设备的服务卡片添加界面查找需要添加到桌面上的服务卡片,并进行相应的设置操作以将对应的服务卡片添加到桌面上。例如,参见图1中的(a),电子设备在检测到用户对桌面101上的任意位置进行长按操作时,进入图1中的(b)所示的可编辑状态。其中,可编辑状态是指电子设备可以根据用户的操作调整桌面上的各APP控件和服务卡片的显示位置。In a related technology, a user can search for a service card that needs to be added to the desktop in the service card adding interface of the electronic device, and perform corresponding setting operations to add the corresponding service card to the desktop. For example, referring to (a) in FIG. 1 , when the electronic device detects that the user performs a long press operation on any position on the desktop 101, it enters the editable state shown in (b) in FIG. 1 . The editable state means that the electronic device can adjust the display position of each APP control and service card on the desktop according to the user's operation.
电子设备进入可编辑状态后,用户可以对电子设备输入用于指示在桌面上显示服务卡片设置界面的操作。参见图1中的(c),电子设备响应于该操作,在桌面上显示服务卡片设置界面102。服务卡片设置界面102包括电子设备中安装的所有APP的APP标识。After the electronic device enters the editable state, the user can input an operation to the electronic device to instruct the display of the service card setting interface on the desktop. Referring to (c) in FIG. 1 , the electronic device responds to the operation and displays the service card setting interface 102 on the desktop. The service card setting interface 102 includes the APP identifiers of all APPs installed in the electronic device.
当电子设备检测到用户在服务卡片设置界面对目标APP的APP标识进行选中操作时,可以在桌面上展示如图1中的(d)所示的服务卡片添加界面103。服务卡片添加界面103中包括用户选中的目标APP对应的至少一个服务卡片104。When the electronic device detects that the user selects the APP identifier of the target APP in the service card setting interface, the service card adding interface 103 shown in (d) of Figure 1 can be displayed on the desktop. The service card adding interface 103 includes at least one service card 104 corresponding to the target APP selected by the user.
如图1中的(e)所示,用户可以将服务卡片添加界面中包括的服务卡片拖动到桌面上的指定位置,以在桌面上显示该服务卡片,完成对该服务卡片的添加。添加该服务卡片后的桌面可以如图1中的(f)所示。As shown in (e) of FIG. 1 , the user can drag the service card included in the service card adding interface to a specified position on the desktop to display the service card on the desktop, thereby completing the addition of the service card. The desktop after adding the service card may be as shown in (f) of FIG. 1 .
但是,通过上述方式将服务卡片添加到电子设备的桌面上需要经过多个步骤,操作过程繁琐。此外,用户还需要在服务卡片设置界面中找到指定的APP的APP标识,以及,在服务卡片添加界面中找到指定的服务卡片,十分耗时,添加效率低。However, adding a service card to the desktop of an electronic device in the above manner requires multiple steps, and the operation process is cumbersome. In addition, the user also needs to find the APP logo of the specified APP in the service card setting interface, and find the specified service card in the service card adding interface, which is very time-consuming and has low adding efficiency.
在另一种相关技术中,参见图2,用户可以长按桌面201上显示的APP控件202,以在桌面201上显示用户选中的APP控件202对应的服务卡片入口203。电子设备检测到用户对服务卡片入口203的选中操作后,可以显示服务卡片添加界面204。服务卡片添加界面204中包括用户选中的APP控件对应的至少一个服务卡片205。用户可以将服务卡片205拖动到桌面201上的指定位置,以在桌面201上显示该服务卡片205,完成对该服务卡片205的添加。In another related technology, referring to FIG. 2 , a user may long press an APP control 202 displayed on a desktop 201 to display a service card entry 203 corresponding to the APP control 202 selected by the user on the desktop 201. After the electronic device detects the user's selection operation on the service card entry 203, it may display a service card adding interface 204. The service card adding interface 204 includes at least one service card 205 corresponding to the APP control selected by the user. The user may drag the service card 205 to a specified position on the desktop 201 to display the service card 205 on the desktop 201, thereby completing the addition of the service card 205.
但是,用户只能在桌面上进行上述添加服务卡片的操作。用户在访问APP时若有添加该APP对应的服务卡片的需求,需要手动退出该APP才能完成添加。操作过程繁琐,添加效率低。However, users can only perform the above-mentioned operation of adding service cards on the desktop. If users need to add the service card corresponding to the APP when accessing the APP, they need to manually exit the APP to complete the addition. The operation process is cumbersome and the adding efficiency is low.
基于上述问题,参见图3A,本申请实施例提供一种服务卡片的添加方法,包括,在电子设备显示包括至少一个服务卡片的应用界面时,若接收到用户在该应用界面中输入的第一操作,则显示用于指示第一区域的指示信息。其中,第一操作用于操作目标服务卡片,以使目标服务卡片的位置发生改变。目标服务卡片是应用界面中显示的服务卡片。Based on the above problems, referring to FIG3A, an embodiment of the present application provides a method for adding a service card, comprising: when an electronic device displays an application interface including at least one service card, if a first operation input by a user in the application interface is received, indication information for indicating a first area is displayed. The first operation is used to operate a target service card so that the position of the target service card changes. The target service card is a service card displayed in the application interface.
当目标服务卡片靠近第一区域或与第一区域重叠时,电子设备将目标服务卡片添加至桌面。能够简化将服务卡片添加到桌面上的操作过程,提升添加效率。When the target service card is close to the first area or overlaps with the first area, the electronic device adds the target service card to the desktop, which can simplify the operation process of adding the service card to the desktop and improve the adding efficiency.
参见图3B,本申请实施例还提供一种服务卡片的添加方法,包括,在电子设备显示包括至少一个服务卡片的应用界面时,若接收到用户在该应用界面中输入的第一操作和第二操作,则显示桌面,并将目标服务卡片添加至桌面。其中,第一操作用于操作至少一个服务卡片中的目标服务卡片。第二操作用于将显示的应用界面切换为桌面。目标服务卡片是应用界面中显示的服务卡片。基于图3B所示的服务卡片的添加方法同样能够简化将服务卡片添加到桌面上的操作过程,提升添加效率。Referring to FIG3B , an embodiment of the present application also provides a method for adding a service card, including, when an electronic device displays an application interface including at least one service card, if a first operation and a second operation input by a user in the application interface are received, a desktop is displayed, and a target service card is added to the desktop. The first operation is used to operate a target service card in at least one service card. The second operation is used to switch the displayed application interface to the desktop. The target service card is a service card displayed in the application interface. The method for adding service cards based on the service card shown in FIG3B can also simplify the operation process of adding service cards to the desktop and improve the efficiency of adding.
本申请实施例提供的服务卡片的添加方法,可以应用于电子设备中。示例性的,本申请实施例中的电子设备可以为便携式计算机(如手机、折叠屏手机)、平板电脑、笔记本电脑、个人计
算机(personal computer,PC)、可穿戴电子设备(如智能手表)、增强现实(augmented reality,AR)\虚拟现实(virtual reality,VR)设备、车载电脑等,以下实施例对该电子设备的具体形式不做特殊限制。The method for adding a service card provided in the embodiment of the present application can be applied to electronic devices. For example, the electronic device in the embodiment of the present application can be a portable computer (such as a mobile phone, a folding screen mobile phone), a tablet computer, a laptop computer, a personal computer, or a laptop computer. The present invention relates to a personal computer (PC), a wearable electronic device (such as a smart watch), an augmented reality (AR) device, a virtual reality (VR) device, a car computer, etc. The following embodiments do not impose any special restrictions on the specific form of the electronic device.
图4示出了电子设备100的结构示意图。FIG. 4 shows a schematic structural diagram of the electronic device 100 .
电子设备100可以包括处理器110,内部存储器121,传感器模块180,显示屏150等。其中传感器模块180可以包括压力传感器180A,触摸传感器180K等。The electronic device 100 may include a processor 110, an internal memory 121, a sensor module 180, a display screen 150, etc. The sensor module 180 may include a pressure sensor 180A, a touch sensor 180K, etc.
可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and/or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated in one or more processors.
其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了***的效率。The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (SIM) interface, and/or a universal serial bus (USB) interface, etc.
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
电子设备100通过GPU,显示屏150,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏150和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 100 implements the display function through a GPU, a display screen 150, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 150 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
显示屏150用于显示图像,视频等。显示屏150包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏150,N为大于1的正整数。The display screen 150 is used to display images, videos, etc. The display screen 150 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diodes (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 150, where N is a positive integer greater than 1.
示例性的,电子设备100的显示屏150可以显示桌面,桌面中可以显示有多个APP控件、服务卡片等。此外,当电子设备100中有APP运行时,显示屏150可以显示运行的APP对应的APP界面、显示在APP界面中的服务卡片等。Exemplarily, the display screen 150 of the electronic device 100 can display a desktop, and the desktop can display multiple APP controls, service cards, etc. In addition, when an APP is running in the electronic device 100, the display screen 150 can display the APP interface corresponding to the running APP, the service card displayed in the APP interface, etc.
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作***,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,
通用闪存存储器(universal flash storage,UFS)等。The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. The program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, Universal flash storage (UFS), etc.
示例性的,内部存储器121可以用户存储安装在电子设备中的APP。例如,相机,图库,日历,通话,地图,输入法,智能家居,天气,音乐,运动健康,短信息等APP。Exemplarily, the internal memory 121 can be used by the user to store APPs installed in the electronic device, such as camera, gallery, calendar, call, map, input method, smart home, weather, music, sports health, short message and other APPs.
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏150。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be arranged on the display screen 150. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. A capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure based on the change in capacitance.
当有触摸操作作用于显示屏150,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。When a touch operation is applied to the display screen 150, the electronic device 100 detects the touch operation strength according to the pressure sensor 180A. The electronic device 100 may also calculate the touch position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations applied to the same touch position but with different touch operation strengths may correspond to different operation instructions. For example: when a touch operation with a touch operation strength less than a first pressure threshold is applied to a short message application icon, an instruction to view a short message is executed. When a touch operation with a touch operation strength greater than or equal to the first pressure threshold is applied to a short message application icon, an instruction to create a new short message is executed.
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏150,由触摸传感器180K与显示屏150组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏150提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏150所处的位置不同。The touch sensor 180K is also called a "touch panel". The touch sensor 180K can be arranged on the display screen 150, and the touch sensor 180K and the display screen 150 form a touch screen, also called a "touch screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 150. In other embodiments, the touch sensor 180K can also be arranged on the surface of the electronic device 100, which is different from the position of the display screen 150.
示例性的,电子设备可以通过压力传感器180A和触摸传感器180K检测用户通过触碰显示屏150向电子设备输入的针对于某一服务卡片的第一操作等。For example, the electronic device may detect, through the pressure sensor 180A and the touch sensor 180K, a first operation for a certain service card input by the user to the electronic device by touching the display screen 150 .
基于图4所示的电子设备实现本申请实施例中的一种服务卡片的添加方法时,电子设备100的显示屏150可以显示包括至少一个服务卡片的APP界面。当电子设备100通过压力传感器180A和触摸传感器180K检测到用户输入的第一操作时,显示屏150显示用于指示第一区域的指示信息。其中,第一操作用于操作目标服务卡片,以使目标服务卡片的位置发生改变。目标服务卡片是APP界面中显示的服务卡片。When a method for adding a service card in an embodiment of the present application is implemented based on the electronic device shown in FIG. 4, the display screen 150 of the electronic device 100 can display an APP interface including at least one service card. When the electronic device 100 detects a first operation input by a user through the pressure sensor 180A and the touch sensor 180K, the display screen 150 displays indication information for indicating the first area. Among them, the first operation is used to operate the target service card to change the position of the target service card. The target service card is a service card displayed in the APP interface.
之后,当处理器110检测到目标服务卡片靠近第一区域或与第一区域重叠时,将目标服务卡片添加至桌面。Afterwards, when the processor 110 detects that the target service card is close to the first area or overlaps with the first area, the target service card is added to the desktop.
基于图4所示的电子设备实现本申请实施例中的另一种服务卡片的添加方法时,电子设备100的显示屏150可以显示包括至少一个服务卡片的应用界面。当电子设备100通过压力传感器180A和触摸传感器180K检测到用户输入的第一操作和第二操作时,控制器控制显示屏150显示桌面,并将目标服务卡片添加至桌面。When implementing another method for adding a service card in an embodiment of the present application based on the electronic device shown in FIG4 , the display screen 150 of the electronic device 100 can display an application interface including at least one service card. When the electronic device 100 detects a first operation and a second operation input by a user through the pressure sensor 180A and the touch sensor 180K, the controller controls the display screen 150 to display a desktop and add a target service card to the desktop.
其中,第一操作用于操作至少一个服务卡片中的目标服务卡片。第二操作用于将显示的APP界面切换为桌面。目标服务卡片是应用界面中显示的服务卡片。The first operation is used to operate a target service card in at least one service card. The second operation is used to switch the displayed APP interface to the desktop. The target service card is a service card displayed in the application interface.
示例性的,以下实施例中的方法均可以在具有上述硬件结构的电子设备中实现,下面结合附图和应用场景对本申请实施例提供的服务卡片的添加方法进行详细介绍。Illustratively, the methods in the following embodiments can all be implemented in an electronic device having the above-mentioned hardware structure. The method for adding a service card provided in the embodiments of the present application is described in detail below in conjunction with the accompanying drawings and application scenarios.
如图5中的(a)所示,为本申请实施例提供的电子设备显示的桌面。桌面500中可以包括多个APP控件。例如,通话APP控件、短信APP控件、浏览器APP控件、相机APP控件以及智能家居APP控件501等。As shown in (a) of FIG. 5 , a desktop is displayed by an electronic device provided in an embodiment of the present application. The desktop 500 may include multiple APP controls. For example, a call APP control, a text message APP control, a browser APP control, a camera APP control, and a smart home APP control 501, etc.
电子设备可以接收用户输入的对目标APP控件的点击或选中操作,并响应于用户输入的对目标APP控件的点击或选中操作,启动目标APP,在桌面上叠加显示目标APP对应的APP界面。The electronic device can receive a click or selection operation on a target APP control input by a user, and in response to the click or selection operation on a target APP control input by the user, start the target APP and overlay the APP interface corresponding to the target APP on the desktop.
示例性的,当用户对图5中的(a)所示的智能家居APP控件501进行点击或选中操作后,电子设备响应于用户的该点击或选中操作,启动智能家居APP,并在桌面上叠加显示如图5中的(b)所示的智能家居APP对应的APP界面502。Exemplarily, when a user clicks or selects the smart home APP control 501 shown in (a) of FIG. 5 , the electronic device starts the smart home APP in response to the user's click or selection operation, and overlays an APP interface 502 corresponding to the smart home APP as shown in (b) of FIG. 5 on the desktop.
在一些实施例中,APP界面中可以包括多个功能区。功能区可以显示有对应服务功能的功能展示信息。功能区被添加到电子设备的桌面后以服务卡片的形态存在,因此,功能区也可被称为服务卡片。服务卡片用于触发电子设备跳转显示对应的APP功能的界面。
In some embodiments, the APP interface may include multiple function areas. The function area may display function display information of the corresponding service function. After the function area is added to the desktop of the electronic device, it exists in the form of a service card. Therefore, the function area can also be called a service card. The service card is used to trigger the electronic device to jump to the interface of the corresponding APP function.
例如,参见图5中的(b),为本申请实施例提供的一种智能家居APP对应的APP界面502。该APP界面502中包括路由器服务卡片、手表服务卡片、摄像头服务卡片、台灯服务卡片503、空气净化器服务卡片、智能门锁服务卡片等。以台灯服务卡片为例,台灯服务卡片503上可以显示有与该智能家居APP绑定的台灯对应的信息(例如,台灯的亮度信息、功率信息、工作时长信息等)。台灯服务卡片503可用于触发电子设备跳转显示出用于控制该台灯的控制界面。For example, see (b) in FIG. 5 , which is an APP interface 502 corresponding to a smart home APP provided in an embodiment of the present application. The APP interface 502 includes a router service card, a watch service card, a camera service card, a desk lamp service card 503, an air purifier service card, a smart door lock service card, etc. Taking the desk lamp service card as an example, the desk lamp service card 503 may display information corresponding to the desk lamp bound to the smart home APP (for example, the brightness information, power information, working time information, etc. of the desk lamp). The desk lamp service card 503 can be used to trigger an electronic device to jump to display a control interface for controlling the desk lamp.
本申请实施例中,电子设备可以接收用户输入的针对目标服务卡片(也称为第一服务卡片)的第一操作。电子设备响应于用户输入的第一操作,显示用于指示第一区域的指示信息。In an embodiment of the present application, the electronic device may receive a first operation input by a user for a target service card (also referred to as a first service card). In response to the first operation input by the user, the electronic device displays indication information for indicating the first area.
在一些实施例中,第一操作包括拖动操作。用户可以通过触碰电子设备的显示屏中第一服务卡片的位置并在电子设备的显示屏中滑动出一条触控轨迹,以向电子设备输入针对第一服务卡片的拖动操作。In some embodiments, the first operation includes a drag operation. The user can input a drag operation for the first service card to the electronic device by touching the position of the first service card on the display screen of the electronic device and sliding a touch track on the display screen of the electronic device.
在一些实施例中,第一操作包括按压操作和拖动操作。用户可以通过触碰电子设备的显示屏中第一服务卡片的位置,以向电子设备输入针对第一服务卡片的按压操作。电子设备检测到用户输入的针对第一服务卡片的按压操作后,将第一服务卡片标记为被选中状态。当电子设备检测到用户停止按压电子设备的显示屏时,取消对第一服务卡片标记的选中状态。用户向电子设备输入针对第一服务卡片的按压操作后,可以在保持对第一服务卡片的按压操作的同时通过在电子设备的显示屏中滑动出一条触控轨迹,以向电子设备输入针对第一服务卡片的拖动操作。In some embodiments, the first operation includes a pressing operation and a dragging operation. The user can input a pressing operation for the first service card to the electronic device by touching the position of the first service card in the display screen of the electronic device. After the electronic device detects the pressing operation input by the user for the first service card, it marks the first service card as selected. When the electronic device detects that the user stops pressing the display screen of the electronic device, the selected state marked for the first service card is canceled. After the user inputs a pressing operation for the first service card to the electronic device, the user can input a dragging operation for the first service card to the electronic device by sliding a touch track in the display screen of the electronic device while maintaining the pressing operation on the first service card.
在一些实施例中,用户输入针对第一服务卡片的第一操作的过程中,电子设备可以显示用于指示第一区域的指示信息。其中,该指示信息包括图形化的指示信息和/或文字指示信息。In some embodiments, when the user inputs the first operation for the first service card, the electronic device may display indication information for indicating the first area, wherein the indication information includes graphical indication information and/or text indication information.
示例性的,用于指示第一区域的指示信息包括图形化的指示信息时,如图5中的(c)所示,该指示信息504可以呈现为半圆形。或者,如图6中所示,该指示信息601也可以呈现为矩形。或者,如图7A所示,该指示信息701也可以呈现为线形等。本领域人员可以根据实际应用场景和需求设置用于指示第一区域的图形化的指示信息的样式,例如,设置该图形化的指示信息的样式为圆形、多边形等,本申请对图形化的指示信息的样式不予限制。Exemplarily, when the indication information for indicating the first area includes graphical indication information, as shown in (c) of FIG. 5 , the indication information 504 may be presented as a semicircle. Alternatively, as shown in FIG. 6 , the indication information 601 may also be presented as a rectangle. Alternatively, as shown in FIG. 7A , the indication information 701 may also be presented as a line, etc. Personnel in this field may set the style of the graphical indication information for indicating the first area according to actual application scenarios and requirements, for example, setting the style of the graphical indication information to a circle, a polygon, etc., and the present application does not limit the style of the graphical indication information.
示例性的,用于指示第一区域的指示信息包括文字指示信息时,如图7B中的(a)所示,该指示信息702可以是提示语“向此处拖动”。或者,该指示信息也可以是文字符号,例如“O”等。本领域人员可以根据实际应用场景和需求设置文字指示信息的样式,本申请对用于指示第一区域的文字指示信息的样式不予限制。Exemplarily, when the indication information for indicating the first area includes text indication information, as shown in (a) of FIG. 7B , the indication information 702 may be a prompt “Drag here”. Alternatively, the indication information may also be a text symbol, such as “O”. Personnel skilled in the art may set the style of the text indication information according to actual application scenarios and requirements, and the present application does not limit the style of the text indication information for indicating the first area.
示例性的,用于指示第一区域的指示信息包括图形化的指示信息和文字指示信息时,如图7B中的(b)所示,该指示信息包括的文字指示信息703可以是提示语“向左下角拖动”,该指示信息包括的图形化的指示信息704可以呈现为扇形。其中,图形化的指示信息704所处的区域即为第一区域。Exemplarily, when the indication information for indicating the first area includes graphical indication information and textual indication information, as shown in (b) of FIG. 7B , the textual indication information 703 included in the indication information may be a prompt “drag to the lower left corner”, and the graphical indication information 704 included in the indication information may be presented in a sector shape. The area where the graphical indication information 704 is located is the first area.
在一些实施例中,用于指示第一区域的指示信息可以参见上述图5、图6、图7A以及图7B中的(a)所示,位于第一区域的范围内。用于指示第一区域的指示信息也可以参见上述图7B中的(b)所示,不位于第一区域的范围内,本申请不予限制。In some embodiments, the indication information for indicating the first area can refer to (a) in Figures 5, 6, 7A and 7B above, and is located within the scope of the first area. The indication information for indicating the first area can also refer to (b) in Figure 7B above, and is not located within the scope of the first area, which is not limited in this application.
在一些实施例中,第一区域的尺寸和位置可以是预先在电子设备中设置的。例如,设置第一区域为位于电子设备的显示屏左下角的边长为1cm的正方形区域。或者,第一区域的尺寸和位置也可以是基于用于指示第一区域的指示信息的尺寸和目标服务卡片的初始位置得到的。例如,当用于指示第一区域的指示信息为半径为1cm的圆形时,第一区域可以是目标服务卡片附近的半径为1cm的圆形区域。In some embodiments, the size and position of the first area may be pre-set in the electronic device. For example, the first area is set to be a square area with a side length of 1 cm located in the lower left corner of the display screen of the electronic device. Alternatively, the size and position of the first area may also be obtained based on the size of the indication information used to indicate the first area and the initial position of the target service card. For example, when the indication information used to indicate the first area is a circle with a radius of 1 cm, the first area may be a circular area with a radius of 1 cm near the target service card.
在一些实施例中,电子设备响应于用户输入的第一操作,可以在APP界面中显示上述用于指示第一区域的指示信息。或者,电子设备响应于用户输入的第一操作,可以隐藏APP界面,在桌面中显示上述用于指示第一区域的指示信息。或者,电子设备响应于用户输入的第一操作,可以隐藏APP界面,并生成展示界面,并在该展示界面中显示上述用于指示第一区域的指示信息等,本申请不予限制。In some embodiments, the electronic device may display the indication information indicating the first area in the APP interface in response to the first operation input by the user. Alternatively, the electronic device may hide the APP interface in response to the first operation input by the user, and display the indication information indicating the first area on the desktop. Alternatively, the electronic device may hide the APP interface in response to the first operation input by the user, generate a display interface, and display the indication information indicating the first area in the display interface, etc., which is not limited by this application.
本申请实施例中,当电子设备检测到第一服务卡片被拖动到靠近第一区域的位置,或者,当电子设备检测到第一服务卡片被拖动到与第一区域存在重叠的位置时,将第一服务卡片添加至桌面。
In an embodiment of the present application, when the electronic device detects that the first service card is dragged to a position close to the first area, or when the electronic device detects that the first service card is dragged to a position overlapping with the first area, the first service card is added to the desktop.
具体的,当电子设备检测到第一服务卡片与第一区域之间的距离小于或等于第一预设值时,将第一服务卡片添加至桌面。Specifically, when the electronic device detects that the distance between the first service card and the first area is less than or equal to a first preset value, the first service card is added to the desktop.
其中,第一服务卡片与第一区域之间的距离可以是第一服务卡片的中心位置与第一区域的中心位置之间的距离。也可以是第一服务卡片的边缘与第一区域的边缘之间的最短距离等,本申请不予限制。此外,本领域人员可以根据实际应用场景和需求设置第一预设值,本申请不予限制。The distance between the first service card and the first area may be the distance between the center of the first service card and the center of the first area. It may also be the shortest distance between the edge of the first service card and the edge of the first area, etc., which is not limited in this application. In addition, those skilled in the art may set the first preset value according to actual application scenarios and requirements, which is not limited in this application.
例如,参见图5中的(c),用户在智能家居APP中可以拖动台灯服务卡片以向电子设备输入第一操作。当电子设备检测到台灯服务卡片与第一区域之间的距离小于第一预设值时,电子设备将台灯服务卡片添加至桌面。For example, referring to (c) in FIG5 , the user can drag the table lamp service card in the smart home APP to input a first operation to the electronic device. When the electronic device detects that the distance between the table lamp service card and the first area is less than a first preset value, the electronic device adds the table lamp service card to the desktop.
在一些实施例中,为了引导用户将待添加至桌面的第一服务卡片拖动至第一区域中,当电子设备检测到第一服务卡片随着用户输入的第一操作向靠近第一区域的位置移动时,指示信息在电子设备显示的界面中所占的面积会增大。相应的,当电子设备检测到第一服务卡片随着用户输入的第一操作向远离第一区域的位置移动时,指示信息在电子设备显示的界面中所占的面积会减小。In some embodiments, in order to guide the user to drag the first service card to be added to the desktop to the first area, when the electronic device detects that the first service card moves toward a position close to the first area as the user inputs a first operation, the area occupied by the indication information in the interface displayed by the electronic device increases. Correspondingly, when the electronic device detects that the first service card moves toward a position away from the first area as the user inputs a first operation, the area occupied by the indication information in the interface displayed by the electronic device decreases.
示例性的,参见图6,用户在智能家居APP中对台灯服务卡片进行第一操作时,若将台灯服务卡片向靠近第一区域的位置移动,指示信息601在电子设备显示的界面中所占的面积会增大。或者,参见图7A,当电子设备检测到台灯服务卡片随着用户输入的第一操作向远离第一区域的位置移动,指示信息701在电子设备显示的界面中所占的面积会减小。For example, referring to FIG6, when the user performs the first operation on the desk lamp service card in the smart home APP, if the desk lamp service card is moved to a position close to the first area, the area occupied by the indication information 601 in the interface displayed by the electronic device will increase. Alternatively, referring to FIG7A, when the electronic device detects that the desk lamp service card moves to a position away from the first area as the user inputs the first operation, the area occupied by the indication information 701 in the interface displayed by the electronic device will decrease.
在一些实施例中,为了便于用户将待添加至桌面的第一服务卡片拖动至第一区域,当电子设备检测到用户输入的针对第一服务卡片的第一操作时,可以将距离第一服务卡片小于第二预设值的位置确定为第一区域,第二预设值大于第一预设值。In some embodiments, in order to facilitate the user to drag the first service card to be added to the desktop to the first area, when the electronic device detects a first operation input by the user for the first service card, a position less than a second preset value from the first service card can be determined as the first area, and the second preset value is greater than the first preset value.
示例性的,参见图5中的(c),用户在智能家居APP中对台灯服务卡片进行第一操作时,电子设备检测到用户对台灯服务卡片的第一操作,在台灯服务卡片与桌面的边缘之间显示用于指示第一区域的指示信息,且该指示信息靠近台灯服务卡片的边缘。电子设备可以将该指示信息在电子设备显示的界面中所占的区域确定为第一区域。或者,参见图6,电子设备检测到用户对台灯服务卡片的第一操作,在台灯服务卡片与桌面的中心之间显示用于指示第一区域的指示信息,且该指示信息靠近台灯服务卡片的边缘。电子设备可以将该指示信息在电子设备显示的界面中所占的区域确定为第一区域。此外,电子设备检测到用户对台灯服务卡片的第一操作,还可以在靠近台灯服务卡片的上边缘或靠近台灯服务卡片的下边缘显示用于指示第一区域的指示信息,并将该指示信息在电子设备显示的界面中所占的区域确定为第一区域等,本申请不予限制。Exemplarily, referring to (c) in FIG. 5 , when the user performs the first operation on the desk lamp service card in the smart home APP, the electronic device detects the user's first operation on the desk lamp service card, and displays the indication information for indicating the first area between the desk lamp service card and the edge of the desktop, and the indication information is close to the edge of the desk lamp service card. The electronic device can determine the area occupied by the indication information in the interface displayed by the electronic device as the first area. Alternatively, referring to FIG. 6 , the electronic device detects the user's first operation on the desk lamp service card, and displays the indication information for indicating the first area between the desk lamp service card and the center of the desktop, and the indication information is close to the edge of the desk lamp service card. The electronic device can determine the area occupied by the indication information in the interface displayed by the electronic device as the first area. In addition, when the electronic device detects the user's first operation on the desk lamp service card, it can also display the indication information for indicating the first area near the upper edge of the desk lamp service card or near the lower edge of the desk lamp service card, and determine the area occupied by the indication information in the interface displayed by the electronic device as the first area, etc., which is not limited by the present application.
在一些实施例中,电子设备将第一服务卡片添加至桌面后,可以不发生界面切换,即电子设备当前显示的界面仍为APP界面。用户可以继续在该APP界面中对第二服务卡片(第二服务卡片与第一服务卡片不同)执行上述实施例中的操作。In some embodiments, after the electronic device adds the first service card to the desktop, the interface may not switch, that is, the interface currently displayed by the electronic device is still the APP interface. The user can continue to perform the operations in the above embodiment on the second service card (the second service card is different from the first service card) in the APP interface.
其中,电子设备将第一服务卡片添加至桌面的过程中,可以遍历桌面中靠近桌面边缘的APP控件的位置,基于靠近桌面边缘的APP控件的位置,获取控件区。例如,参见图8中的(a),电子设备遍历桌面800中各APP控件的位置,确定APP控件801、APP控件802、APP控件803以及APP控件804为位于最边缘的APP控件。基于APP控件801、APP控件802、APP控件803以及APP控件804的位置,可以得到控件区805。Among them, in the process of adding the first service card to the desktop, the electronic device can traverse the position of the APP control near the edge of the desktop in the desktop, and obtain the control area based on the position of the APP control near the edge of the desktop. For example, referring to (a) in Figure 8, the electronic device traverses the position of each APP control in the desktop 800, and determines that APP control 801, APP control 802, APP control 803 and APP control 804 are the APP controls located at the edge. Based on the positions of APP control 801, APP control 802, APP control 803 and APP control 804, control area 805 can be obtained.
参见图8中的(b),当电子设备检测到控件区中存在空白区域时,将第一服务卡片添加至控件区中的空白区域。其中,该空白区域的尺寸大于或等于目标服务卡片的尺寸,该空白区域足够放置目标服务卡片。Referring to (b) in FIG8 , when the electronic device detects that there is a blank area in the control area, the first service card is added to the blank area in the control area, wherein the size of the blank area is greater than or equal to the size of the target service card, and the blank area is large enough to place the target service card.
当电子设备检测到控件区中存在至少两个空白区域时,可以根据第一预设规则将第一服务卡片添加至控件区中的空白区域。When the electronic device detects that there are at least two blank areas in the control area, the first service card can be added to the blank areas in the control area according to a first preset rule.
第一预设规则可以包括距离桌面顶端越近的空白区域放置第一服务卡片的优先级越高,和/或,距离桌面左侧边缘越近的空白区域放置第一服务卡片的优先级越高等。本领域人员可以根据实际场景和需求设置第一预设规则,本申请不做限制。The first preset rule may include that the blank area closer to the top of the desktop has a higher priority for placing the first service card, and/or the blank area closer to the left edge of the desktop has a higher priority for placing the first service card, etc. Those skilled in the art may set the first preset rule according to actual scenarios and requirements, and this application does not limit this.
当电子设备检测到控件区中不存在空白区域时,可以遍历桌面上的非控件区,检测非控件区中的空白区域。之后,电子设备可以根据第二预设规则将第一服务卡片添加至桌面上。其中,第二预设规则可以参照前述实施例中对第一预设规则的描述。本领域人员可以根据实际场景和需求
设置第二预设规则,本申请不做限制。When the electronic device detects that there is no blank area in the control area, it can traverse the non-control area on the desktop to detect the blank area in the non-control area. After that, the electronic device can add the first service card to the desktop according to the second preset rule. The second preset rule can refer to the description of the first preset rule in the above embodiment. Those skilled in the art can modify the second preset rule according to the actual scenario and requirements. The second preset rule is set, and this application does not impose any restrictions.
在一些实施例中,电子设备将第一服务卡片添加至桌面后,可以隐藏APP界面,并显示包括第一服务卡片的桌面。In some embodiments, after the electronic device adds the first service card to the desktop, it can hide the APP interface and display the desktop including the first service card.
示例性的,当台灯服务卡片与第一区域之间的距离小于第一预设值时,参见图5中的(d),电子设备隐藏智能家居APP的APP界面,显示包括台灯服务卡片的桌面。Exemplarily, when the distance between the desk lamp service card and the first area is less than a first preset value, see (d) in FIG. 5 , the electronic device hides the APP interface of the smart home APP and displays the desktop including the desk lamp service card.
在一些实施例中,电子设备的桌面包括至少一个子桌面,用户可以在电子设备显示任意一个子桌面时,在电子设备的显示屏中输入向左或向右的滑动操作,以切换电子设备显示的子桌面。当电子设备接收到用户在应用界面中输入的第一操作,显示用于指示第一区域的指示信息后,若检测到目标服务卡片被拖动到与第一区域之间的距离小于或等于第一预设值时,确定电子设备的各子桌面中的空白区域,并将包括空白区域的尺寸大于或等于目标服务卡片的尺寸的子桌面确定为目标子桌面。之后,电子设备可以显示目标子桌面,并将目标服务卡片添加至目标子桌面中。In some embodiments, the desktop of the electronic device includes at least one sub-desktop, and the user can input a left or right sliding operation in the display screen of the electronic device when the electronic device displays any sub-desktop to switch the sub-desktop displayed by the electronic device. When the electronic device receives the first operation input by the user in the application interface and displays the indication information for indicating the first area, if it is detected that the target service card is dragged to a distance less than or equal to the first preset value from the first area, the blank area in each sub-desktop of the electronic device is determined, and the sub-desktop including the blank area whose size is greater than or equal to the size of the target service card is determined as the target sub-desktop. Afterwards, the electronic device can display the target sub-desktop and add the target service card to the target sub-desktop.
在一些实施例中,当电子设备检测到台灯服务卡片与第一区域之间的距离小于第一预设值时,可以隐藏APP界面,并在用户输入第一操作的实时位置显示第一服务卡片。之后,若电子设备检测到第一服务卡片仍被标记为选中状态,即用户仍然在向电子设备输入第一操作,第一服务卡片在桌面上的位置也会随着用户在桌面中输入的第一操作实时发生变化。In some embodiments, when the electronic device detects that the distance between the desk lamp service card and the first area is less than a first preset value, the APP interface can be hidden, and the first service card can be displayed at the real-time location where the user inputs the first operation. Afterwards, if the electronic device detects that the first service card is still marked as selected, that is, the user is still inputting the first operation to the electronic device, the position of the first service card on the desktop will also change in real time with the first operation input by the user on the desktop.
示例性的,参见图9中的(a),当电子设备检测到台灯服务卡片与第一区域之间的距离小于第一预设值时,隐藏该APP界面,显示如图9中的(b)所示的包括第一服务卡片的桌面。其中,第一服务卡片位于桌面上的用户输入第一操作的实时位置。之后,若用户仍然在向电子设备输入第一操作,如图9中的(c)所示,第一服务卡片的位置将随着用户在桌面中输入的第一操作实时发生变化。Exemplarily, referring to (a) in FIG9 , when the electronic device detects that the distance between the desk lamp service card and the first area is less than the first preset value, the APP interface is hidden, and a desktop including the first service card as shown in (b) in FIG9 is displayed. The first service card is located at the real-time position on the desktop where the user inputs the first operation. Afterwards, if the user is still inputting the first operation to the electronic device, as shown in (c) in FIG9 , the position of the first service card will change in real time as the user inputs the first operation on the desktop.
在一些实施例中,当电子设备检测到台灯服务卡片与第一区域之间的距离小于第一预设值时,隐藏APP界面,显示桌面,并检测用户输入的第一操作在桌面上的实时位置是否为空白区域。In some embodiments, when the electronic device detects that the distance between the desk lamp service card and the first area is less than a first preset value, the APP interface is hidden, the desktop is displayed, and the real-time position of the first operation input by the user on the desktop is detected to be a blank area.
若用户输入的第一操作在桌面上的实时位置是空白区域,第一服务卡片显示在桌面上的该位置处。If the real-time position of the first operation input by the user on the desktop is a blank area, the first service card is displayed at the position on the desktop.
若用户输入第一操作在桌面上的实时位置不是空白区域,即该位置处显示有第三服务卡片或APP控件。电子设备将调整显示在该位置处的第三服务卡片或APP控件的位置,以将显示在该位置处的第三服务卡片或APP控件移动至桌面上的空白区域处。之后,在该位置显示第一服务卡片。If the real-time position of the first operation input by the user on the desktop is not a blank area, that is, a third service card or APP control is displayed at the position. The electronic device will adjust the position of the third service card or APP control displayed at the position to move the third service card or APP control displayed at the position to the blank area on the desktop. After that, the first service card is displayed at the position.
在一些实施例中,当电子设备检测到用户停止输入第一操作时,在用户停止输入第一操作时的位置显示第一服务卡片,以完成将第一服务卡片添加到桌面上的操作。In some embodiments, when the electronic device detects that the user stops inputting the first operation, the first service card is displayed at the location where the user stops inputting the first operation to complete the operation of adding the first service card to the desktop.
本申请实施例中,在电子设备显示包括至少一个服务卡片的应用界面时,若接收到用户输入的第一操作和第二操作,则显示桌面,并将目标服务卡片(也称为第一服务卡片)添加至桌面。其中,第一操作可以包括按压操作和/或拖动操作。第一操作用于操作第一服务卡片,以使第一服务卡片的位置发生改变。第二操作用于将显示的所述应用界面切换为桌面。第一服务卡片是应用界面中显示的服务卡片。In an embodiment of the present application, when an electronic device displays an application interface including at least one service card, if a first operation and a second operation input by a user are received, the desktop is displayed, and a target service card (also referred to as a first service card) is added to the desktop. The first operation may include a pressing operation and/or a dragging operation. The first operation is used to operate the first service card so that the position of the first service card changes. The second operation is used to switch the displayed application interface to the desktop. The first service card is a service card displayed in the application interface.
在一些实施例中,参见图10中的(a),电子设备接收到用户输入的第一操作和第二操作后,可以提示用户进行界面切换。In some embodiments, referring to (a) in FIG. 10 , after the electronic device receives the first operation and the second operation input by the user, the electronic device may prompt the user to switch interfaces.
其中,电子设备可以通过在APP界面中显示提示语的方式提示用户进行界面切换。例如,参见图10中的(b),APP界面中显示有提示语“按住卡片,上划可添加至桌面”。用户可以在一只手保持对第一服务卡片的触碰的同时,另一只手在APP界面中向上滑动,以向电子设备输入第一操作和第二操作。参见图10中的(c),电子设备响应于用户输入的第二操作,隐藏APP界面,显示桌面,以及,响应于用户输入的第一操作,在桌面中显示第一服务卡片(参见图10中的(d))。Among them, the electronic device can prompt the user to switch interfaces by displaying a prompt in the APP interface. For example, referring to (b) in Figure 10, a prompt "Press and hold the card, swipe up to add to the desktop" is displayed in the APP interface. The user can keep touching the first service card with one hand while sliding up in the APP interface with the other hand to input the first operation and the second operation to the electronic device. Referring to (c) in Figure 10, the electronic device hides the APP interface and displays the desktop in response to the second operation input by the user, and displays the first service card on the desktop in response to the first operation input by the user (see (d) in Figure 10).
需要说明的是,上述用户保持对第一服务卡片的触碰的同时向上滑动APP界面以向电子设备输入第一操作和第二操作的方法仅为示意性说明。本领域人员可以根据实际应用场景和需要设置用户输入第一操作和第二操作的方法,例如,用户可以在保持对第一服务卡片的触碰的同时向下滑动APP界面以向电子设备输入第一操作和第二操作操作,或者,用户在保持对第一服务卡片的触碰的同时在APP界面中的任意位置连续敲击两次以向电子设备输入第一操作和第二操作等,本申请不予限制。
It should be noted that the above method in which the user keeps touching the first service card while sliding the APP interface upward to input the first operation and the second operation to the electronic device is only an illustrative description. Personnel in this field can set the method for the user to input the first operation and the second operation according to the actual application scenario and needs. For example, the user can slide the APP interface downward while keeping touching the first service card to input the first operation and the second operation to the electronic device, or the user can continuously tap twice at any position in the APP interface while keeping touching the first service card to input the first operation and the second operation to the electronic device, etc., and this application is not limited.
在一些实施例中,电子设备的桌面包括至少一个子桌面,用户可以在电子设备显示任意一个子桌面时,在电子设备的显示屏中输入向左或向右的滑动操作,以切换电子设备显示的子桌面。当电子设备接收到用户在应用界面中输入的第二操作后,确定电子设备的各子桌面中的空白区域,并将包括空白区域的尺寸大于或等于目标服务卡片的尺寸的子桌面确定为目标子桌面。之后,电子设备可以显示目标子桌面,并基于用户输入的第一操作,将目标服务卡片添加至目标子桌面中。In some embodiments, the desktop of the electronic device includes at least one sub-desktop, and the user can input a left or right sliding operation in the display screen of the electronic device when the electronic device displays any sub-desktop to switch the sub-desktop displayed by the electronic device. When the electronic device receives the second operation input by the user in the application interface, it determines the blank area in each sub-desktop of the electronic device, and determines the sub-desktop including the blank area whose size is greater than or equal to the size of the target service card as the target sub-desktop. Afterwards, the electronic device can display the target sub-desktop and add the target service card to the target sub-desktop based on the first operation input by the user.
在一些实施例中,电子设备隐藏APP界面,并显示包括第一服务卡片的桌面后,若检测用户仍然在向电子设备输入第一操作,第一服务卡片在桌面上的位置也会随着用户在桌面中输入的第一操作实时发生变化。In some embodiments, after the electronic device hides the APP interface and displays a desktop including a first service card, if it is detected that the user is still inputting the first operation into the electronic device, the position of the first service card on the desktop will also change in real time with the first operation input by the user on the desktop.
示例性的,若电子设备检测到用户仍然在向电子设备输入第一操作,参见图11中的(a),用户可以在一只手保持对第一服务卡片的触碰的同时,另一只手在桌面上向右滑动,以向电子设备输入对桌面进行翻页的翻页操作。电子设备响应于检测到的用户的翻页操作,显示如图11中的(b)所示界面,以及,在如图11中的(b)所示的界面中显示第一服务卡片。Exemplarily, if the electronic device detects that the user is still inputting the first operation to the electronic device, see (a) in FIG11 , the user can keep touching the first service card with one hand while sliding the other hand to the right on the desktop to input a page turning operation of turning the desktop to the electronic device. In response to the detected page turning operation of the user, the electronic device displays an interface as shown in (b) in FIG11 , and displays the first service card in the interface as shown in (b) in FIG11 .
或者,参见图11中的(c),用户可以在一只手保持对第一服务卡片的触碰的同时,另一只手在桌面上向左滑动,以向电子设备输入对桌面进行翻页的翻页操作。电子设备响应于检测到的用户的翻页操作,显示如图11中的(d)所示界面,以及,在如图11中的(d)所示的界面中显示第一服务卡片。Alternatively, referring to (c) in FIG11 , the user can keep touching the first service card with one hand while sliding the other hand to the left on the desktop to input a page turning operation of turning the desktop to the electronic device. In response to the detected page turning operation of the user, the electronic device displays an interface as shown in (d) in FIG11 , and displays the first service card in the interface as shown in (d) in FIG11 .
本申请实施例提供的服务卡片的添加方法,可以在用户浏览包括服务卡片的APP界面时,实时将用户选中的服务卡片添加到桌面上。能够简化将服务卡片添加到桌面上的操作过程,提升添加效率。The method for adding a service card provided in the embodiment of the present application can add the service card selected by the user to the desktop in real time when the user browses the APP interface including the service card, and can simplify the operation process of adding the service card to the desktop and improve the adding efficiency.
下面结合应用场景,具体介绍本申请实施例中提供的服务卡片的添加方法。The following describes in detail the method for adding a service card provided in the embodiment of the present application in combination with the application scenario.
在一种应用场景中,参见图12中的(a),为电子设备显示的一种运动健康APP对应的APP界面1200。该APP界面中包括运动记录服务卡片、体重管理服务卡片、心脏健康服务卡片、睡眠服务卡片、血糖管理服务卡片等。以睡眠服务卡片为例,睡眠服务卡片上可以显示有电子设备检测到的用户的睡眠时间。用户可以通过向电子设备输入针对睡眠服务卡片的第一操作以将睡眠服务卡片添加至桌面。睡眠服务卡片被添加至桌面后,用户可以在桌面中直接查看电子设备检测到的用户的睡眠时间。In one application scenario, see (a) in FIG. 12 , which is an APP interface 1200 corresponding to a sports health APP displayed on an electronic device. The APP interface includes a sports record service card, a weight management service card, a heart health service card, a sleep service card, a blood sugar management service card, and the like. Taking the sleep service card as an example, the sleep service card can display the sleep time of the user detected by the electronic device. The user can add the sleep service card to the desktop by inputting a first operation for the sleep service card to the electronic device. After the sleep service card is added to the desktop, the user can directly view the sleep time of the user detected by the electronic device on the desktop.
具体的,可以通过以下两种实现方式,将睡眠服务卡片添加至桌面。Specifically, the sleep service card can be added to the desktop through the following two implementation methods.
在一种实现方式中,当电子设备检测到用户触碰电子设备的显示屏中睡眠服务卡片的位置时,将睡眠服务卡片标记为被选中状态。当电子设备检测到用户停止触碰电子设备的显示屏时,取消对睡眠服务卡片标记的选中状态。用户可以当睡眠服务卡片被标记为选中状态时,在电子设备的显示屏上滑动出一条触碰轨迹以向电子设备输入第一操作。被标记为选中状态的睡眠服务卡片的位置可以随着用户输入的第一操作实时发生变化。In one implementation, when the electronic device detects that the user touches the position of the sleep service card on the display screen of the electronic device, the sleep service card is marked as selected. When the electronic device detects that the user stops touching the display screen of the electronic device, the selected state marked on the sleep service card is canceled. When the sleep service card is marked as selected, the user can slide a touch track on the display screen of the electronic device to input a first operation to the electronic device. The position of the sleep service card marked as selected can change in real time with the first operation input by the user.
参见图12中的(b),用户在输入针对睡眠服务卡片的第一操作的过程中,电子设备可以显示用于指示第一区域的指示信息1201。当电子设备检测到睡眠服务卡片靠近第一区域或与第一区域重叠时,隐藏APP界面,显示包括睡眠服务卡片的桌面。以及,参见图12中的(c),电子设备将睡眠服务卡片放置在用户输入第一操作的实时位置,完成将睡眠服务卡片添加到桌面上的操作。Referring to (b) in FIG. 12 , when the user inputs the first operation for the sleep service card, the electronic device may display indication information 1201 for indicating the first area. When the electronic device detects that the sleep service card is close to the first area or overlaps with the first area, the APP interface is hidden and the desktop including the sleep service card is displayed. Also, referring to (c) in FIG. 12 , the electronic device places the sleep service card at the real-time location where the user inputs the first operation, completing the operation of adding the sleep service card to the desktop.
在另一种实现方式中,参见图12中的(d),用户的一只手在对电子设备输入针对睡眠服务卡片的第一操作的过程中,另一只手可以在APP界面中向上滑动以向电子设备输入第二操作。电子设备响应于用户输入的第一操作和第二操作,隐藏APP界面,显示桌面,以及,参见图12中的(c),在桌面中显示睡眠服务卡片。In another implementation, see (d) in FIG. 12 , while one hand of the user inputs a first operation for the sleep service card to the electronic device, the other hand can slide upward in the APP interface to input a second operation to the electronic device. In response to the first operation and the second operation input by the user, the electronic device hides the APP interface, displays the desktop, and, see (c) in FIG. 12 , displays the sleep service card on the desktop.
在另一种应用场景中,参见图13中的(a),为电子设备显示的一种天气APP对应的APP界面1300。该APP界面1300中包括温度服务卡片、湿度服务卡片、天气变化服务卡片、紫外线服务卡片等。以天气变化服务卡片为例,天气变化服务卡片上可以显示有电子设备获取的天气预告信息。用户可以通过向电子设备输入针对天气变化服务卡片的第一操作以将天气变化服务卡片添加至桌面。天气变化服务卡片被添加至桌面后,用户可以在桌面中直接查看电子设备获取的天气预告信息。
In another application scenario, see (a) in FIG. 13 , which is an APP interface 1300 corresponding to a weather APP displayed by an electronic device. The APP interface 1300 includes a temperature service card, a humidity service card, a weather change service card, an ultraviolet service card, and the like. Taking the weather change service card as an example, the weather change service card may display weather forecast information obtained by the electronic device. The user may add the weather change service card to the desktop by inputting a first operation for the weather change service card to the electronic device. After the weather change service card is added to the desktop, the user can directly view the weather forecast information obtained by the electronic device on the desktop.
具体的,本场景中也可以通过以下两种实现方式,将天气变化服务卡片添加至桌面。Specifically, in this scenario, the weather change service card can also be added to the desktop through the following two implementation methods.
在一种实现方式中,当电子设备检测到用户触碰电子设备的显示屏中天气变化服务卡片的位置时,将天气变化服务卡片标记为被选中状态。当电子设备检测到用户停止触碰电子设备的显示屏时,取消对天气变化服务卡片标记的选中状态。用户可以当天气变化服务卡片被标记为选中状态时,在电子设备的显示屏上滑动出一条触碰轨迹以向电子设备输入第一操作。被标记为选中状态的天气变化服务卡片的位置可以随着用户输入的第一操作实时发生变化。In one implementation, when the electronic device detects that the user touches the position of the weather change service card on the display screen of the electronic device, the weather change service card is marked as selected. When the electronic device detects that the user stops touching the display screen of the electronic device, the selected state marked on the weather change service card is canceled. When the weather change service card is marked as selected, the user can slide a touch track on the display screen of the electronic device to input a first operation to the electronic device. The position of the weather change service card marked as selected can change in real time with the first operation input by the user.
参见图13中的(b),用户在输入针对天气变化服务卡片的第一操作的过程中,电子设备可以显示用于指示第一区域的指示信息1301。当电子设备检测到天气变化服务卡片靠近第一区域或与第一区域重叠时,隐藏APP界面,显示包括天气变化服务卡片的桌面。以及,参见图13中的(c),电子设备将天气变化服务卡片放置在用户输入第一操作的实时位置,完成将天气变化服务卡片添加到桌面上的操作。Referring to (b) in FIG. 13 , when the user inputs the first operation for the weather change service card, the electronic device may display indication information 1301 for indicating the first area. When the electronic device detects that the weather change service card is close to the first area or overlaps with the first area, the APP interface is hidden and the desktop including the weather change service card is displayed. Also, referring to (c) in FIG. 13 , the electronic device places the weather change service card at the real-time location where the user inputs the first operation, completing the operation of adding the weather change service card to the desktop.
在另一种实现方式中,参见图13中的(d),用户的一只手在对电子设备输入针对天气变化服务卡片的第一操作的过程中,另一只手可以在APP界面中向上滑动以向电子设备输入第二操作。电子设备响应于用户输入的第一操作和第二操作,隐藏APP界面,显示桌面,以及,参见图13中的(c),在桌面中显示天气变化服务卡片。In another implementation, see (d) in FIG. 13 , while one hand of the user inputs a first operation for a weather change service card to the electronic device, the other hand can slide upward in the APP interface to input a second operation to the electronic device. In response to the first operation and the second operation input by the user, the electronic device hides the APP interface, displays the desktop, and, see (c) in FIG. 13 , displays the weather change service card on the desktop.
在另一种应用场景中,参见图14中的(a),为电子设备显示的一种音乐APP对应的APP界面。该APP界面中包括歌单推荐服务卡片、视频推荐服务卡片、音乐榜单服务卡片等。以歌单推荐服务卡片为例,歌单推荐服务卡片上可以显示有电子设备基于检测到的用户的喜好获取的音乐歌单。用户可以通过向电子设备输入针对歌单推荐服务卡片的第一操作以将歌单推荐服务卡片添加至桌面。歌单推荐服务卡片被添加至桌面后,用户可以在桌面中直接查看电子设备获取的音乐歌单。In another application scenario, see (a) in Figure 14, which is an APP interface corresponding to a music APP displayed by an electronic device. The APP interface includes a playlist recommendation service card, a video recommendation service card, a music chart service card, and the like. Taking the playlist recommendation service card as an example, the playlist recommendation service card may display a music playlist obtained by the electronic device based on the detected user's preferences. The user can add the playlist recommendation service card to the desktop by inputting a first operation for the playlist recommendation service card to the electronic device. After the playlist recommendation service card is added to the desktop, the user can directly view the music playlist obtained by the electronic device on the desktop.
具体的,本场景中也可以通过以下两种实现方式,将歌单推荐服务卡片添加至桌面。Specifically, in this scenario, the playlist recommendation service card can also be added to the desktop through the following two implementation methods.
在一种实现方式中,当电子设备检测到用户触碰电子设备的显示屏中歌单推荐服务卡片的位置时,将歌单推荐服务卡片标记为被选中状态。当电子设备检测到用户停止触碰电子设备的显示屏时,取消对歌单推荐服务卡片标记的选中状态。用户可以当歌单推荐服务卡片被标记为选中状态时,在电子设备的显示屏上滑动出一条触碰轨迹以向电子设备输入第一操作。被标记为选中状态的歌单推荐服务卡片的位置可以随着用户输入的第一操作实时发生变化。In one implementation, when the electronic device detects that the user touches the position of the playlist recommendation service card on the display screen of the electronic device, the playlist recommendation service card is marked as selected. When the electronic device detects that the user stops touching the display screen of the electronic device, the selected state marked on the playlist recommendation service card is canceled. When the playlist recommendation service card is marked as selected, the user can slide a touch track on the display screen of the electronic device to input a first operation to the electronic device. The position of the playlist recommendation service card marked as selected can change in real time with the first operation input by the user.
参见图14中的(b),用户在输入针对歌单推荐服务卡片的第一操作的过程中,电子设备可以显示用于指示第一区域的指示信息1401。当电子设备检测到歌单推荐服务卡片靠近第一区域或与第一区域重叠时,隐藏APP界面,显示包括歌单推荐服务卡片的桌面。以及,参见图14中的(c),电子设备将歌单推荐服务卡片放置在用户输入第一操作的实时位置,完成将歌单推荐服务卡片添加到桌面上的操作。Referring to (b) in FIG. 14 , when the user inputs the first operation for the playlist recommendation service card, the electronic device may display indication information 1401 for indicating the first area. When the electronic device detects that the playlist recommendation service card is close to the first area or overlaps with the first area, the APP interface is hidden and the desktop including the playlist recommendation service card is displayed. Also, referring to (c) in FIG. 14 , the electronic device places the playlist recommendation service card at the real-time location where the user inputs the first operation, completing the operation of adding the playlist recommendation service card to the desktop.
在另一种实现方式中,参见图14中的(d),用户的一只手在对电子设备输入针对歌单推荐服务卡片的第一操作的过程中,另一只手可以在APP界面中向上滑动以向电子设备输入第二操作。电子设备响应于用户输入的第一操作和第二操作,隐藏APP界面,显示桌面,以及,参见图14中的(c),在桌面中显示歌单推荐服务卡片。In another implementation, see (d) in FIG. 14 , while one hand of the user inputs a first operation for a song list recommendation service card to the electronic device, the other hand can slide upward in the APP interface to input a second operation to the electronic device. In response to the first operation and the second operation input by the user, the electronic device hides the APP interface, displays the desktop, and, see (c) in FIG. 14 , displays the song list recommendation service card on the desktop.
在一些方案中,可以对本申请的多个实施例进行组合,并实施组合后的方案。可选的,各方法实施例的流程中的一些操作任选地被组合,并且/或者一些操作的顺序任选地被改变。并且,各流程的步骤之间的执行顺序仅是示例性的,并不构成对步骤之间执行顺序的限制,各步骤之间还可以是其他执行顺序。并非旨在表明所述执行次序是可以执行这些操作的唯一次序。本领域的普通技术人员会想到多种方式来对本文所述的操作进行重新排序。另外,应当指出的是,本文某个实施例涉及的过程细节同样以类似的方式适用于其他实施例,或者,不同实施例之间可以组合使用。In some schemes, multiple embodiments of the present application can be combined, and the combined scheme can be implemented. Optionally, some operations in the process of each method embodiment are optionally combined, and/or the order of some operations is optionally changed. In addition, the execution order between the steps of each process is only exemplary and does not constitute a restriction on the execution order between the steps. There can also be other execution orders between the steps. It is not intended to indicate that the execution order is the only order in which these operations can be performed. A person of ordinary skill in the art will think of a variety of ways to reorder the operations described herein. In addition, it should be noted that the process details involved in a certain embodiment of this article are also applicable to other embodiments in a similar manner, or different embodiments can be used in combination.
此外,方法实施例中的某些步骤可等效替换成其他可能的步骤。或者,方法实施例中的某些步骤可以是可选的,在某些使用场景中可以删除。或者,可以在方法实施例中增加其他可能的步骤。In addition, some steps in the method embodiment may be equivalently replaced by other possible steps. Alternatively, some steps in the method embodiment may be optional and may be deleted in certain usage scenarios. Alternatively, other possible steps may be added to the method embodiment.
并且,各方法实施例之间可以单独实施,或结合起来实施。
Furthermore, the various method embodiments may be implemented separately or in combination.
可以理解的是,为了实现上述功能,电子设备包含了执行各个功能相应的硬件和/或软件模块。结合本文中所公开的实施例描述的各示例的步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。本领域技术人员可以结合实施例对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。It is understandable that in order to implement the above functions, the electronic device includes hardware and/or software modules corresponding to the execution of each function. In combination with the steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in combination with the embodiments, but such implementation should not be considered to be beyond the scope of the present application.
本实施例可以根据上述方法示例对电子设备进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块可以采用硬件的形式实现。需要说明的是,本实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。In this embodiment, the electronic device can be divided into functional modules according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is schematic and is only a logical function division. There may be other division methods in actual implementation.
本申请实施例还提供一种电子设备,该电子设备可以包括一个或者多个处理器、存储器和通信接口。An embodiment of the present application also provides an electronic device, which may include one or more processors, a memory, and a communication interface.
其中,存储器、通信接口与处理器耦合。例如,存储器、通信接口与处理器可以通过总线耦合在一起。The memory, the communication interface and the processor are coupled, for example, the memory, the communication interface and the processor may be coupled together via a bus.
其中,通信接口用于与其他设备进行数据传输。存储器中存储有计算机程序代码。计算机程序代码包括计算机指令,当计算机指令被处理器执行时,使得电子设备执行本申请实施例中的方法。The communication interface is used for data transmission with other devices. The memory stores computer program code. The computer program code includes computer instructions, and when the computer instructions are executed by the processor, the electronic device executes the method in the embodiment of the present application.
其中,处理器可以是处理器或控制器,例如可以是中央处理器(Central Processing Unit,CPU),通用处理器,数字信号处理器(Digital Signal Processor,DSP),专用集成电路(Application-Specific Integrated Circuit,ASIC),现场可编程门阵列(Field Programmable Gate Array,FPGA)或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本公开内容所描述的各种示例性的逻辑方框,模块和电路。所述处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等等。处理器可以用于支持电子设备执行上述实施例中提供的方法步骤。Among them, the processor can be a processor or a controller, for example, a central processing unit (CPU), a general processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It can implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the present disclosure. The processor can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of DSP and microprocessors, and so on. The processor can be used to support electronic devices to execute the method steps provided in the above embodiments.
其中,总线可以是外设部件互连标准(Peripheral Component Interconnect,PCI)总线或扩展工业标准结构(Extended Industry Standard Architecture,EISA)总线等。上述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The bus may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The above buses may be divided into address buses, data buses, control buses, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
本申请实施例还提供一种芯片***,包括:处理器,所述处理器与存储器耦合,所述存储器用于存储程序或指令,当所述程序或指令被所述处理器执行时,使得该芯片***实现上述任一方法实施例中的方法。An embodiment of the present application also provides a chip system, including: a processor, the processor is coupled to a memory, the memory is used to store programs or instructions, when the program or instructions are executed by the processor, the chip system implements the method in any of the above method embodiments.
可选地,该芯片***中的处理器可以为一个或多个。该处理器可以通过硬件实现也可以通过软件实现。当通过硬件实现时,该处理器可以是逻辑电路、集成电路等。当通过软件实现时,该处理器可以是一个通用处理器,通过读取存储器中存储的软件代码来实现。Optionally, the processor in the chip system may be one or more. The processor may be implemented by hardware or by software. When implemented by hardware, the processor may be a logic circuit, an integrated circuit, etc. When implemented by software, the processor may be a general-purpose processor implemented by reading software code stored in a memory.
可选地,该芯片***中的存储器也可以为一个或多个。该存储器可以与处理器集成在一起,也可以和处理器分离设置,本申请实施例并不限定。示例性地,存储器可以是非瞬时性处理器,例如只读存储器ROM,其可以与处理器集成在同一块芯片上,也可以分别设置在不同的芯片上,本申请实施例对存储器的类型,以及存储器与处理器的设置方式不作具体限定。Optionally, the memory in the chip system may be one or more. The memory may be integrated with the processor or may be separately arranged with the processor, which is not limited in the embodiments of the present application. Exemplarily, the memory may be a non-transient processor, such as a read-only memory ROM, which may be integrated with the processor on the same chip or may be arranged on different chips respectively. The embodiments of the present application do not specifically limit the type of memory and the arrangement of the memory and the processor.
示例性地,该芯片***可以是现场可编程门阵列(field programmable gate array,FPGA),可以是专用集成芯片(AP设备plication specific integrated circuit,ASIC),还可以是***芯片(system on chip,SoC),还可以是中央处理器(central processor unit,CPU),还可以是网络处理器(network processor,NP),还可以是数字信号处理电路(digital signal processor,DSP),还可以是微控制器(micro controller unit,MCU),还可以是可编程控制器(programmable logic device,PLD)或其他集成芯片。Exemplarily, the chip system can be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a microcontroller unit (MCU), a programmable logic device (PLD) or other integrated chips.
应理解,上述方法实施例中的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。结合本申请实施例所公开的方法步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。It should be understood that each step in the above method embodiment can be completed by an integrated logic circuit of hardware in a processor or by instructions in the form of software. The method steps disclosed in the embodiments of the present application can be directly embodied as being executed by a hardware processor, or by a combination of hardware and software modules in a processor.
本申请实施例还提供一种计算机可读存储介质,该计算机存储介质中存储有计算机程序代码,
当上述处理器执行该计算机程序代码时,电子设备执行上述方法实施例中的相关方法步骤。The present application also provides a computer-readable storage medium, wherein the computer storage medium stores computer program code. When the processor executes the computer program code, the electronic device executes the relevant method steps in the method embodiment.
本申请实施例还提供了一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述方法实施例中的相关方法步骤。The embodiment of the present application also provides a computer program product. When the computer program product is run on a computer, it enables the computer to execute the relevant method steps in the above method embodiment.
另外,本申请实施例还提供一种装置。该装置具体可以是组件或模块,该装置可包括相连的一个或多个处理器和存储器。其中,存储器用于存储计算机程序。当该计算机程序被一个或多个处理器执行时,使得装置执行上述各方法实施例中的场景配置方法。In addition, an embodiment of the present application further provides a device. The device may be a component or a module, and the device may include one or more processors and a memory connected to each other. The memory is used to store a computer program. When the computer program is executed by one or more processors, the device performs the scene configuration method in the above-mentioned method embodiments.
其中,本申请实施例提供的装置、计算机可读存储介质、计算机程序产品或芯片均用于执行上文所提供的对应的方法。因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。Among them, the device, computer-readable storage medium, computer program product or chip provided in the embodiments of the present application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.
结合本申请实施例公开内容所描述的方法或者算法的步骤可以硬件的方式来实现,也可以是由处理器执行软件指令的方式来实现。软件指令可以由相应地软件模块组成,软件模块可以被存放于随机存取存储器(random access memory,RAM)、闪存、只读存储器(read only memory,ROM)、可擦除可编程只读存储器(erasable programmable ROM,EPROM)、电可擦可编程只读存储器(electrically EPROM,EEPROM)、寄存器、硬盘、移动硬盘、只读光盘(CD-ROM)或者本领域熟知的任何其它形式的存储介质中。一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。处理器和存储介质可以位于专用集成电路(AP设备plication specific integrated circuit,ASIC)中。The steps of the method or algorithm described in conjunction with the disclosed content of the embodiments of the present application can be implemented in hardware or by a processor executing software instructions. The software instructions can be composed of corresponding software modules, and the software modules can be stored in random access memory (RAM), flash memory, read-only memory (ROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), registers, hard disks, mobile hard disks, read-only compact disks (CD-ROMs) or any other form of storage medium known in the art. An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an application specific integrated circuit (ASIC).
通过以上的实施方式的描述,本领域技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明。实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成;即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的***,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Through the description of the above implementation methods, those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In practical applications, the above functions can be assigned to different functional modules as needed; that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that makes the contribution or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
以上内容,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。
The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (22)
- 一种服务卡片的添加方法,应用于电子设备,其特征在于,包括:A method for adding a service card, applied to an electronic device, is characterized by comprising:显示应用界面,所述应用界面中包括至少一个服务卡片;Displaying an application interface, wherein the application interface includes at least one service card;接收用户在所述应用界面中输入的第一操作,所述第一操作用于操作所述至少一个服务卡片中的目标服务卡片;receiving a first operation input by a user in the application interface, where the first operation is used to operate a target service card among the at least one service card;响应于所述第一操作,显示指示第一区域的指示信息,所述指示信息用于指示用户将所述目标服务卡片向所述第一区域拖动;In response to the first operation, displaying indication information indicating a first area, wherein the indication information is used to instruct the user to drag the target service card to the first area;当所述目标服务卡片***作到靠近所述第一区域或与所述第一区域存在重叠时,将所述目标服务卡片添加至桌面。When the target service card is operated to be close to the first area or overlaps with the first area, the target service card is added to the desktop.
- 根据权利要求1所述的方法,其特征在于,所述第一操作包括拖动操作;所述响应于所述第一操作,显示指示第一区域的指示信息包括:The method according to claim 1, wherein the first operation comprises a drag operation; and in response to the first operation, displaying indication information indicating the first area comprises:响应于作用于所述目标服务卡片的拖动操作,显示所述指示第一区域的指示信息。In response to the drag operation on the target service card, the indication information indicating the first area is displayed.
- 根据权利要求1所述的方法,其特征在于,所述第一操作包括按压操作和拖动操作;所述响应于所述第一操作,显示指示第一区域的指示信息包括:The method according to claim 1, wherein the first operation comprises a pressing operation and a dragging operation; and in response to the first operation, displaying indication information indicating the first area comprises:响应于作用于所述目标服务卡片的按压操作,显示所述指示第一区域的指示信息。In response to a pressing operation on the target service card, the indication information indicating the first area is displayed.
- 根据权利要求1-3任意一项所述的方法,其特征在于,所述当所述目标服务卡片***作到靠近所述第一区域或与所述第一区域存在重叠时,将所述目标服务卡片添加至桌面包括;The method according to any one of claims 1 to 3, characterized in that when the target service card is operated to be close to the first area or overlaps with the first area, adding the target service card to the desktop comprises:当所述目标服务卡片***作到与所述第一区域之间的距离小于或等于第一预设值时,显示所述电子设备的桌面;When the target service card is operated to a distance from the first area that is less than or equal to a first preset value, displaying the desktop of the electronic device;响应于结束所述第一操作,将所述目标服务卡片添加到所述电子设备的桌面。In response to ending the first operation, the target service card is added to the desktop of the electronic device.
- 根据权利要求4所述的方法,其特征在于,所述桌面包括至少一个子桌面,所述显示所述电子设备的桌面包括:The method according to claim 4, characterized in that the desktop includes at least one sub-desktop, and the desktop displaying the electronic device includes:显示所述电子设备的各所述子桌面中的目标子桌面,所述目标子桌面上包括空白区域,所述空白区域的尺寸大于或等于所述目标服务卡片的尺寸。A target sub-desktop among the sub-desktops of the electronic device is displayed, wherein the target sub-desktop includes a blank area, and a size of the blank area is greater than or equal to a size of the target service card.
- 根据权利要求5所述的方法,其特征在于,所述显示所述电子设备的各所述子桌面中的目标子桌面之前,所述方法还包括:The method according to claim 5, characterized in that before displaying the target sub-desktop in each of the sub-desktops of the electronic device, the method further comprises:将各所述子桌面中包括所述空白区域的所述子桌面确定为所述目标子桌面,所述空白区域的尺寸大于或等于所述目标服务卡片的尺寸。The sub-desktop including the blank area in each of the sub-desktops is determined as the target sub-desktop, and the size of the blank area is greater than or equal to the size of the target service card.
- 根据权利要求1-6任意一项所述的方法,其特征在于,当所述目标服务卡片向靠近所述第一区域的方向移动时,所述指示第一区域的指示信息在所述电子设备显示的界面中所占的面积增大;当所述目标服务卡片向远离所述第一区域的方向移动时,所述指示第一区域的指示信息在所述电子设备显示的界面中所占的面积减小。The method according to any one of claims 1-6 is characterized in that when the target service card moves toward the direction approaching the first area, the area occupied by the indication information indicating the first area in the interface displayed by the electronic device increases; when the target service card moves toward the direction away from the first area, the area occupied by the indication information indicating the first area in the interface displayed by the electronic device decreases.
- 根据权利要求1-7任意一项所述的方法,其特征在于,还包括:The method according to any one of claims 1 to 7, further comprising:响应于所述第一操作,隐藏所述应用界面,显示所述电子设备的桌面,所述桌面包括空白区域,所述空白区域足够放置所述目标服务卡片。In response to the first operation, the application interface is hidden, and a desktop of the electronic device is displayed, wherein the desktop includes a blank area, and the blank area is large enough to place the target service card.
- 根据权利要求8所述的方法,其特征在于,所述响应于所述第一操作,隐藏所述应用界面,显示所述电子设备的桌面,还包括:The method according to claim 8, wherein in response to the first operation, hiding the application interface and displaying the desktop of the electronic device further comprises:在所述桌面上的目标位置显示所述目标服务卡片,所述目标位置是用户输入所述第一操作的实时位置。The target service card is displayed at a target position on the desktop, where the target position is a real-time position where the user inputs the first operation.
- 根据权利要求1-9任意一项所述的方法,其特征在于,所述响应于所述第一操作,显示指示第一区域的指示信息包括:The method according to any one of claims 1 to 9, wherein in response to the first operation, displaying indication information indicating the first area comprises:在距离所述目标服务卡片小于第二预设值的位置显示所述指示第一区域的指示信息。The indication information indicating the first area is displayed at a position that is less than a second preset value from the target service card.
- 根据权利要求1-10任意一项所述的方法,其特征在于,所述指示第一区域的指示信息包括图形化的指示信息和/或文字指示信息。The method according to any one of claims 1-10 is characterized in that the indication information indicating the first area includes graphical indication information and/or text indication information.
- 根据权利要求1-11任意一项所述的方法,其特征在于,当所述指示第一区域的指示信息是图形化的指示信息时,所述指示第一区域的指示信息包括如下形状中的至少一种:半圆形、圆形、矩形、线性、或多边形。 The method according to any one of claims 1-11 is characterized in that, when the indication information indicating the first area is graphical indication information, the indication information indicating the first area includes at least one of the following shapes: semicircular, circular, rectangular, linear, or polygonal.
- 一种服务卡片的添加方法,应用于电子设备,其特征在于,包括:A method for adding a service card, applied to an electronic device, is characterized by comprising:显示应用界面,所述应用界面中包括至少一个服务卡片;Displaying an application interface, wherein the application interface includes at least one service card;接收用户在所述应用界面中输入的第一操作和第二操作;所述第一操作用于操作所述至少一个服务卡片中的目标服务卡片,所述第二操作用于将显示的所述应用界面切换为桌面;Receiving a first operation and a second operation input by a user in the application interface; the first operation is used to operate a target service card in the at least one service card, and the second operation is used to switch the displayed application interface to the desktop;响应于所述第二操作,显示所述桌面;In response to the second operation, displaying the desktop;响应于所述第一操作,将所述目标服务卡片添加至显示的所述桌面。In response to the first operation, the target service card is added to the displayed desktop.
- 根据权利要求13所述的方法,其特征在于,所述第一操作包括按压操作;所述响应于所述第一操作,将所述目标服务卡片添加至显示的所述桌面包括:The method according to claim 13, wherein the first operation comprises a pressing operation; and in response to the first operation, adding the target service card to the displayed desktop comprises:响应于作用于所述目标服务卡片的所述按压操作,将所述目标服务卡片添加至显示的所述桌面。In response to the pressing operation on the target service card, the target service card is added to the displayed desktop.
- 根据权利要求13所述的方法,其特征在于,所述第一操作包括拖动操作;所述响应于所述第一操作,将所述目标服务卡片添加至显示的所述桌面包括:The method according to claim 13, wherein the first operation comprises a drag operation; and in response to the first operation, adding the target service card to the displayed desktop comprises:响应于作用于所述目标服务卡片的所述拖动操作,将所述目标服务卡片添加至显示的所述桌面。In response to the drag operation acting on the target service card, the target service card is added to the displayed desktop.
- 根据权利要求13-15任意一项所述的方法,其特征在于,所述桌面包括至少一个子桌面;所述响应于所述第二操作,显示所述桌面包括:The method according to any one of claims 13 to 15, wherein the desktop includes at least one sub-desktop; and in response to the second operation, displaying the desktop includes:响应于所述第二操作,显示所述电子设备的各所述子桌面中的目标子桌面,所述目标子桌面上包括空白区域,所述空白区域的尺寸大于或等于所述目标服务卡片的尺寸。In response to the second operation, a target sub-desktop among the sub-desktops of the electronic device is displayed, the target sub-desktop includes a blank area, and the size of the blank area is greater than or equal to the size of the target service card.
- 根据权利要求16所述的方法,其特征在于,所述桌面包括至少一个子桌面,所述显示所述电子设备的各所述子桌面中的目标子桌面之前,所述方法还包括:The method according to claim 16, wherein the desktop includes at least one sub-desktop, and before displaying the target sub-desktop in each of the sub-desktops of the electronic device, the method further includes:将各所述子桌面中包括所述空白区域的所述子桌面确定为所述目标子桌面,所述空白区域的尺寸大于或等于所述目标服务卡片的尺寸。The sub-desktop including the blank area in each of the sub-desktops is determined as the target sub-desktop, and the size of the blank area is greater than or equal to the size of the target service card.
- 根据权利要求13-17任意一项所述的方法,其特征在于,所述响应于所述第一操作,将所述目标服务卡片添加至显示的所述桌面包括:The method according to any one of claims 13 to 17, wherein in response to the first operation, adding the target service card to the displayed desktop comprises:在所述桌面上的目标位置添加所述目标服务卡片,所述目标位置是用户输入所述第一操作的实时位置。The target service card is added at a target position on the desktop, where the target position is a real-time position where the user inputs the first operation.
- 根据权利要求13-18任意一项所述的方法,其特征在于,所述第二操作包括向预设方向滑动所述应用界面。The method according to any one of claims 13-18 is characterized in that the second operation includes sliding the application interface in a preset direction.
- 一种电子设备,其特征在于,包括:存储器、一个或多个处理器;所述存储器与所述处理器耦合;其中,所述存储器中存储有计算机程序代码,所述计算机程序代码包括计算机指令,当所述计算机指令被所述处理器执行时,使得所述电子设备执行如权利要求1-12任意一项所述的服务卡片的添加方法;或者,使得所述电子设备执行如权利要求13-19任意一项所述的服务卡片的添加方法。An electronic device, characterized in that it comprises: a memory and one or more processors; the memory is coupled to the processor; wherein the memory stores computer program code, and the computer program code comprises computer instructions, and when the computer instructions are executed by the processor, the electronic device executes the method for adding a service card as described in any one of claims 1 to 12; or, the electronic device executes the method for adding a service card as described in any one of claims 13 to 19.
- 一种计算机可读存储介质,其特征在于,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如权利要求1-12任意一项所述的服务卡片的添加方法;或者,使得所述电子设备执行如权利要求13-19任意一项所述的服务卡片的添加方法。A computer-readable storage medium, characterized in that it includes computer instructions, which, when executed on an electronic device, enable the electronic device to execute the method for adding a service card as described in any one of claims 1 to 12; or enable the electronic device to execute the method for adding a service card as described in any one of claims 13 to 19.
- 一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述电子设备执行如权利要求1-12任意一项所述的服务卡片的添加方法;或者,使得所述电子设备执行如权利要求13-19任意一项所述的服务卡片的添加方法。 A computer program product, characterized in that when the computer program product is run on a computer, the electronic device executes the method for adding a service card as described in any one of claims 1-12; or, the electronic device executes the method for adding a service card as described in any one of claims 13-19.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211627669.4 | 2022-12-16 | ||
CN202211627669.4A CN118210422A (en) | 2022-12-16 | 2022-12-16 | Service card adding method and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2024125248A1 true WO2024125248A1 (en) | 2024-06-20 |
Family
ID=91449567
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2023/133291 WO2024125248A1 (en) | 2022-12-16 | 2023-11-22 | Service card addition method and electronic device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN118210422A (en) |
WO (1) | WO2024125248A1 (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050015731A1 (en) * | 2003-07-15 | 2005-01-20 | Microsoft Corporation | Handling data across different portions or regions of a desktop |
CN110837398A (en) * | 2019-10-15 | 2020-02-25 | 青岛海信移动通信技术股份有限公司 | Method and terminal for displaying card of quick application |
CN112306318A (en) * | 2020-08-14 | 2021-02-02 | 厦门阳光物联科技有限公司 | Method and device for equipment display and network distribution, electronic equipment and storage medium |
CN114968018A (en) * | 2022-07-26 | 2022-08-30 | 荣耀终端有限公司 | Card display method and terminal equipment |
CN115033140A (en) * | 2021-03-05 | 2022-09-09 | 华为技术有限公司 | Display method of card assembly, graphical user interface and related device |
-
2022
- 2022-12-16 CN CN202211627669.4A patent/CN118210422A/en active Pending
-
2023
- 2023-11-22 WO PCT/CN2023/133291 patent/WO2024125248A1/en unknown
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050015731A1 (en) * | 2003-07-15 | 2005-01-20 | Microsoft Corporation | Handling data across different portions or regions of a desktop |
CN110837398A (en) * | 2019-10-15 | 2020-02-25 | 青岛海信移动通信技术股份有限公司 | Method and terminal for displaying card of quick application |
CN112306318A (en) * | 2020-08-14 | 2021-02-02 | 厦门阳光物联科技有限公司 | Method and device for equipment display and network distribution, electronic equipment and storage medium |
CN115033140A (en) * | 2021-03-05 | 2022-09-09 | 华为技术有限公司 | Display method of card assembly, graphical user interface and related device |
CN114968018A (en) * | 2022-07-26 | 2022-08-30 | 荣耀终端有限公司 | Card display method and terminal equipment |
Also Published As
Publication number | Publication date |
---|---|
CN118210422A (en) | 2024-06-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11204687B2 (en) | Visual thumbnail, scrubber for digital content | |
WO2018157662A1 (en) | Display control method for mobile terminal, and mobile terminal | |
WO2023088068A1 (en) | Window switching method, electronic device, and readable storage medium | |
US20210311599A1 (en) | Operation methods of a smart interactive tablet, storage medium and related equipment | |
TWI457816B (en) | A dynamic bezel for a mobile device | |
US9400601B2 (en) | Techniques for paging through digital content on touch screen devices | |
JP5883400B2 (en) | Off-screen gestures for creating on-screen input | |
JP5684291B2 (en) | Combination of on and offscreen gestures | |
US9703450B2 (en) | Device, method, and graphical user interface for configuring restricted interaction with a user interface | |
KR101341737B1 (en) | Apparatus and method for controlling terminal using touch the back of the terminal | |
AU2014200472B2 (en) | Method and apparatus for multitasking | |
US9513791B2 (en) | Electronic device system with process continuation mechanism and method of operation thereof | |
WO2019128193A1 (en) | Mobile terminal, and floating window operation control method and device | |
US10551998B2 (en) | Method of displaying screen in electronic device, and electronic device therefor | |
WO2013091467A1 (en) | Method and device for controlling application interface through drag gesture | |
CN108710457B (en) | Interaction method and terminal equipment | |
KR20120019268A (en) | Gesture command method and terminal using bezel of touch screen | |
JP2015087911A (en) | Electronic device, method, and program | |
WO2022143198A1 (en) | Processing method for application interface, and related device | |
WO2022143579A1 (en) | Feedback method and related device | |
WO2016183912A1 (en) | Menu layout arrangement method and apparatus | |
WO2022242542A1 (en) | Application icon management method and electronic device | |
US20130238976A1 (en) | Information processing apparatus, information processing method, and computer program | |
WO2024125248A1 (en) | Service card addition method and electronic device | |
US20120151409A1 (en) | Electronic Apparatus and Display Control Method |