WO2022032673A1 - Device control method and apparatus, and storage medium - Google Patents

Device control method and apparatus, and storage medium Download PDF

Info

Publication number
WO2022032673A1
WO2022032673A1 PCT/CN2020/109331 CN2020109331W WO2022032673A1 WO 2022032673 A1 WO2022032673 A1 WO 2022032673A1 CN 2020109331 W CN2020109331 W CN 2020109331W WO 2022032673 A1 WO2022032673 A1 WO 2022032673A1
Authority
WO
WIPO (PCT)
Prior art keywords
user interface
added
elements
cells
occupied
Prior art date
Application number
PCT/CN2020/109331
Other languages
French (fr)
Chinese (zh)
Inventor
沈剑锋
闫雅婷
汪智勇
郑佩
李晨雄
张李平
王�华
Original Assignee
上海传英信息技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 上海传英信息技术有限公司 filed Critical 上海传英信息技术有限公司
Priority to CN202080104801.6A priority Critical patent/CN116249960A/en
Priority to PCT/CN2020/109331 priority patent/WO2022032673A1/en
Publication of WO2022032673A1 publication Critical patent/WO2022032673A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range

Definitions

  • the embodiments of the present application relate to the field of terminals, and in particular, to a device control method, apparatus, and storage medium.
  • the area to be added is calculated and compared with the area of the remaining space in the interface where the element to be added is placed, so that the element to be added is placed in the remaining space of the interface.
  • the system will still prompt the user that there is not enough space to place the element to be added.
  • the remaining space of the interface is discontinuous and the remaining space is not enough to place the element to be added, which reduces the space utilization.
  • embodiments of the present application provide a device control method, device, and storage medium, so as to improve space utilization.
  • an embodiment of the present application provides a device control method, the method comprising:
  • the element to be added is a combined element
  • the user interface is an interface for placing the element to be added
  • the free space in the user interface is not enough to place the element to be added, split the combined element into at least two elements, so that the at least two elements can be placed in the free space of the user interface respectively .
  • the free space in the user interface is insufficient to place the element to be added, including at least one of the following:
  • the position distribution between the cells occupied by the element to be added is different from the position distribution between the idle cells in the user interface
  • the shape of the element to be added is different from the shape of the free space in the user interface
  • the area occupied by the element to be added is larger than the area of the free space in the user interface
  • the number of cells occupied by the element to be added is greater than the number of free cells in the user interface.
  • the method further includes:
  • the at least two elements are sequentially placed in the free space of the user interface according to the priority information of the split elements.
  • the priority information of the split elements includes at least one of the following:
  • the combined element before splitting the combined element into at least two elements, it further includes at least one of the following:
  • the attribute information of the element to be added and/or the layout information of the element in the user interface is adjusted.
  • the attribute information of the element and/or the layout information of the element in the user interface are adjusted.
  • the attribute information includes at least one of the following information: the area occupied by the element to be added, the number of cells occupied by the element to be added, the occupied area of the element to be added The location distribution between cells, the shape of the element to be added, the combination of the element to be added, the priority information of the element to be added; and/or,
  • the layout information includes at least one of the following information: the area of free space in the user interface, the number of free cells in the user interface, the location distribution between free cells in the user interface, the user interface The shape of the free space in the interface, the spacing between the existing elements in the user interface, and the priority information of the existing elements in the user interface.
  • the adjustment method of the attribute information includes at least one of the following: reducing or cropping the occupied area, reducing the number of occupied cells, adjusting the position distribution between the occupied cells, or the The shape of the element to be added, the combination method or priority information of adjusting the element to be added; and/or,
  • the adjustment method of the layout information includes at least one of the following: enlarging or expanding the area of the free space, increasing the number of free cells, adjusting the position distribution between the free cells or the shape of the free space, adjusting the spacing between existing elements or priority information.
  • the manner of splitting the combined element into at least two elements includes at least one of the following:
  • Splitting is performed according to the attribute information and/or the layout information.
  • an embodiment of the present application provides a device control method, the method comprising:
  • the user interface is an interface for placing the element to be added
  • Moving at least one existing element of the user interface to another user interface includes at least one of the following:
  • the first order is from back to front, or from front to back;
  • the second order is the order of the frequency of user usage from low to high;
  • N is the number of cells occupied by the element to be added; wherein N is a positive integer.
  • placing the element to be added in the space of the user interface includes:
  • the element to be added is placed in the space of the user interface according to the state of the cell, wherein the state of the cell includes an idle state or an occupied state; the idle state is the state of the element to be placed; the The occupied state is the placed element state.
  • placing the element to be added into the space of the user interface according to the state of the cell includes:
  • the state of the cell is an idle state, placing the element to be added into a cell in the idle state of the user interface;
  • the attribute information of the element to be moved and/or the layout information of the element in the user interface is adjusted, and the element to be moved is moved to the free space of the user interface.
  • the free space in the user interface is insufficient to place the element to be added, including at least one of the following:
  • the area occupied by the element to be added is larger than the area of the free space in the user interface
  • the number of cells occupied by the element to be added is greater than the number of free cells in the user interface
  • the position distribution between the cells occupied by the element to be added is different from the position distribution between the idle cells in the user interface
  • the shape of the element to be added is different from the shape of the free space in the user interface.
  • the method before the moving at least one existing element of the user interface to another user interface, the method further includes at least one of the following:
  • the attribute information of the element to be added and/or the layout information of the element in the user interface is adjusted.
  • the method further includes at least one of the following:
  • the attribute information of the existing element and/or the layout information of the element in the user interface are adjusted.
  • the attribute information includes at least one of the following information: the area occupied by the element to be added, the number of cells occupied by the element to be added, the occupied area of the element to be added The location distribution between cells, the shape of the element to be added, the combination of the element to be added, the priority information of the element to be added; and/or,
  • the layout information includes at least one of the following information: the area of free space in the user interface, the number of free cells in the user interface, the location distribution between free cells in the user interface, the user interface The shape of the free space in the interface, the spacing between the existing elements in the user interface, and the priority information of the existing elements in the user interface.
  • the adjustment method of the attribute information includes at least one of the following: reducing or cropping the occupied area, reducing the number of occupied cells, adjusting the position distribution between the occupied cells, or the The shape of the element to be added, the combination method or priority information of adjusting the element to be added; and/or,
  • the adjustment method of the layout information includes at least one of the following: enlarging or expanding the area of the free space, increasing the number of free cells, adjusting the position distribution between the free cells or the shape of the free space, adjusting the spacing between existing elements or priority information.
  • the method for moving at least one existing element of the user interface to another user interface includes at least one of the following:
  • the movement is performed according to the attribute information and/or the layout information.
  • an embodiment of the present application provides a device control device, the device includes: a determining module and a splitting module, wherein,
  • the determining module is used to determine an element to be added and a user interface; the element to be added is a combined element; the user interface is an interface for placing the element to be added;
  • the splitting module is configured to split the combined element into at least two elements if the free space in the user interface is not enough to place the element to be added, so that the at least two elements can be placed on the in the free space of the user interface.
  • the free space in the user interface is insufficient to place the element to be added, including at least one of the following:
  • the position distribution between the cells occupied by the element to be added is different from the position distribution between the idle cells in the user interface
  • the shape of the element to be added is different from the shape of the free space in the user interface
  • the area occupied by the element to be added is larger than the area of the free space in the user interface
  • the number of cells occupied by the element to be added is greater than the number of free cells in the user interface.
  • the device further includes a placement module, wherein,
  • the placing module is configured to, after the splitting module splits the combined element into at least two elements, place the at least two elements in sequence on the said at least two elements according to the priority information of the split elements. in the free space of the user interface.
  • the priority information of the split elements includes at least one of the following:
  • the device further includes an adjustment module, wherein,
  • the adjusting module is configured to, before the splitting module splits the combined element into at least two elements, adjust the attribute information of the element to be added and/or the layout information of the element in the user interface.
  • the adjustment module is further configured to, after the splitting module splits the combined element into at least two elements, adjust the attribute information of the element and/or the user Layout information for elements in the interface.
  • the attribute information includes at least one of the following information: the area occupied by the element to be added, the number of cells occupied by the element to be added, the occupied area of the element to be added The location distribution between cells, the shape of the element to be added, the combination of the element to be added, the priority information of the element to be added; and/or,
  • the layout information includes at least one of the following information: the area of free space in the user interface, the number of free cells in the user interface, the location distribution between free cells in the user interface, the user interface The shape of the free space in the interface, the spacing between the existing elements in the user interface, and the priority information of the existing elements in the user interface.
  • the adjustment method of the attribute information includes at least one of the following: reducing or cropping the occupied area, reducing the number of occupied cells, adjusting the position distribution between the occupied cells, or the The shape of the element to be added, the combination method or priority information of adjusting the element to be added; and/or,
  • the adjustment method of the layout information includes at least one of the following: enlarging or expanding the area of the free space, increasing the number of free cells, adjusting the position distribution between the free cells or the shape of the free space, adjusting the spacing between existing elements or priority information.
  • the manner of splitting the combined element into at least two elements includes at least one of the following:
  • Splitting is performed according to the attribute information and/or the layout information.
  • the embodiments of the present application provide a device control method, including a determination module, a movement module, and a placement module, wherein,
  • the determining module is used for determining an element to be added and a user interface;
  • the user interface is an interface for placing the element to be added;
  • the moving module is configured to, if the free space in the user interface is not enough to place the element to be added, move at least one existing element of the user interface to another user interface;
  • the placing module is configured to, according to the priority information of the element to be added, place the element to be added in the space of the user interface;
  • Moving at least one existing element of the user interface to another user interface includes at least one of the following:
  • the first order is from back to front, or from front to back;
  • the second order is the order of user frequency from low to high;
  • N is the number of cells occupied by the element to be added; wherein N is a positive integer.
  • the placement module is specifically used for:
  • the element to be added is placed in the space of the user interface according to the state of the cell, wherein the state of the cell includes an idle state or an occupied state; the idle state is the state of the element to be placed; the The occupied state is the placed element state.
  • the placement module is specifically used for:
  • the state of the cell is an idle state, placing the element to be added into a cell in the idle state of the user interface;
  • the attribute information of the element to be moved and/or the layout information of the element in the user interface is adjusted, and the element to be moved is moved to the free space of the user interface.
  • the free space in the user interface is insufficient to place the element to be added, including at least one of the following:
  • the area occupied by the element to be added is larger than the area of the free space in the user interface
  • the number of cells occupied by the element to be added is greater than the number of free cells in the user interface
  • the position distribution between the cells occupied by the element to be added is different from the position distribution between the idle cells in the user interface
  • the shape of the element to be added is different from the shape of the free space in the user interface.
  • the device further includes an adjustment module, wherein,
  • the adjustment module is configured to, before the moving module moves at least one existing element of the user interface to another user interface, adjust the attribute information of the element to be added and/or the layout of the elements in the user interface information.
  • the adjustment module is further configured to, after the moving module moves at least one existing element of the user interface to another user interface, adjust the attribute information and the attribute information of the existing element. /or layout information of elements in the user interface.
  • the attribute information includes at least one of the following information: the area occupied by the element to be added, the number of cells occupied by the element to be added, the occupied area of the element to be added The location distribution between cells, the shape of the element to be added, the combination of the element to be added, the priority information of the element to be added; and/or,
  • the layout information includes at least one of the following information: the area of free space in the user interface, the number of free cells in the user interface, the location distribution between free cells in the user interface, the user interface The shape of the free space in the interface, the spacing between the existing elements in the user interface, and the priority information of the existing elements in the user interface.
  • the adjustment method of the attribute information includes at least one of the following: reducing or cropping the occupied area, reducing the number of occupied cells, adjusting the position distribution between the occupied cells, or the The shape of the element to be added, the combination method or priority information of adjusting the element to be added; and/or,
  • the adjustment method of the layout information includes at least one of the following: enlarging or expanding the area of the free space, increasing the number of free cells, adjusting the position distribution between the free cells or the shape of the free space, adjusting the spacing between existing elements or priority information.
  • the moving module is specifically used for:
  • the movement is performed according to the attribute information and/or the layout information.
  • an embodiment of the present application provides a device control apparatus, including: at least one processor and a memory;
  • the memory is used to store computer-executable instructions
  • the at least one processor is configured to execute computer-executable instructions stored in the memory, so that the at least one processor executes the device control method according to any one of the first aspects above.
  • an embodiment of the present application provides a device control apparatus, including: at least one processor and a memory;
  • the memory is used to store computer-executable instructions
  • the at least one processor is configured to execute computer-executable instructions stored in the memory, so that the at least one processor executes the device control method according to any one of the second aspect above.
  • an embodiment of the present application provides a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and when a processor executes the computer-executable instructions, any one of the above-mentioned first aspects is implemented.
  • an embodiment of the present application provides a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and when a processor executes the computer-executable instructions, any one of the above-mentioned second aspects is implemented.
  • the elements to be added are split into at least two elements, and the split elements are respectively placed on the user interface, thereby avoiding the distribution of free space in the user interface due to the Or the shape is different from the position distribution or shape of the element to be added, so that the element to be added cannot be placed in the user interface, and the space of the user interface is wasted, thus improving the space utilization rate of the user interface.
  • FIG. 1 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present application
  • FIG. 2 is an architecture diagram of a communication network system provided by an embodiment of the present application.
  • FIG. 3 is a schematic diagram of an application scenario provided by an embodiment of the present application.
  • FIG. 4 is a schematic flowchart of a device control method provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a combination element provided by an embodiment of the present application.
  • 6A is a schematic diagram of a user interface provided by an embodiment of the present application.
  • 6B is a schematic diagram of another user interface provided by an embodiment of the present application.
  • FIG. 7 provides another device control method according to an embodiment of the present application.
  • FIG. 8 is a schematic diagram of adding interface elements provided by an embodiment of the present application.
  • FIG. 9 is a schematic flowchart of another device control method provided by an embodiment of the present application.
  • FIG. 10 is a schematic flowchart of another device control method provided by an embodiment of the present application.
  • FIG. 11 is a schematic diagram of adding interface elements in another device control method provided by an embodiment of the present application.
  • FIG. 13 is a schematic diagram of adding interface elements in yet another device control method provided by an embodiment of the present application.
  • FIG. 14 is a schematic flowchart of a fifth device control method provided by an embodiment of the present application.
  • 15 is a schematic diagram of adding interface elements in yet another device control method provided by an embodiment of the present application.
  • 16 is a schematic flowchart of another device control method provided by an embodiment of the present application.
  • 17 is a schematic diagram of adding interface elements in another device control method provided by an embodiment of the present application.
  • FIG. 18 is a schematic diagram of a reduced existing element of a user interface provided by an embodiment of the present application.
  • 20 is a schematic diagram of adding interface elements in another device control method provided by an embodiment of the present application.
  • FIG. 21 is a schematic structural diagram of a device control apparatus provided by an embodiment of the application.
  • FIG. 22 is a schematic structural diagram of another device control apparatus provided by an embodiment of the present application.
  • FIG. 23 is a schematic structural diagram of another device control apparatus provided by an embodiment of the application.
  • FIG. 24 is a schematic structural diagram of still another device control apparatus provided by an embodiment of the present application.
  • FIG. 25 is a schematic diagram of a hardware structure of a device control apparatus provided by an embodiment of the present application.
  • the apparatus may be implemented in various forms.
  • the devices described in this application may include devices such as cell phones, tablet computers, notebook computers, PDAs, Personal Digital Assistants (PDAs), Portable Media Players (PMPs), navigation devices, Mobile terminals such as wearable devices, smart bracelets, and pedometers, as well as stationary terminals such as digital TVs and desktop computers.
  • devices such as cell phones, tablet computers, notebook computers, PDAs, Personal Digital Assistants (PDAs), Portable Media Players (PMPs), navigation devices, Mobile terminals such as wearable devices, smart bracelets, and pedometers, as well as stationary terminals such as digital TVs and desktop computers.
  • PDAs Personal Digital Assistants
  • PMPs Portable Media Players
  • Mobile terminals such as wearable devices, smart bracelets, and pedometers
  • stationary terminals such as digital TVs and desktop computers.
  • a mobile terminal will be used as an example, and those skilled in the art will understand that, in addition to elements specially used for mobile purposes, the configurations according to the embodiments of the present application can also be applied to stationary type terminals.
  • FIG. 1 is a schematic diagram of the hardware structure of a mobile terminal implementing various embodiments of the present application.
  • the mobile terminal 100 may include: an RF (Radio Frequency, radio frequency) unit 101, a WiFi module 102, an audio output unit 103, a /V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111 and other components.
  • RF Radio Frequency, radio frequency
  • the radio frequency unit 101 can be used for receiving and sending signals during transmission and reception of information or during a call. Specifically, after receiving the downlink information of the base station, it is processed by the processor 110; in addition, the uplink data is sent to the base station.
  • the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
  • the radio frequency unit 101 can also communicate with the network and other devices through wireless communication.
  • the above-mentioned wireless communication can use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication, Global System for Mobile Communication), GPRS (General Packet Radio Service, General Packet Radio Service), CDMA2000 (Code Division Multiple Access 2000 , Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access, Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, Time Division Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency division duplexing long term evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplexing long term evolution) and so on.
  • GSM Global System of Mobile communication, Global System for Mobile Communication
  • GPRS General Packet Radio Service
  • CDMA2000 Code Division Multiple Access 2000
  • Code Division Multiple Access 2000 Code Division Multiple Access 2000
  • WCDMA Wideband Code Division Multiple Access
  • TD-SCDMA Time Division-S
  • WiFi is a short-distance wireless transmission technology
  • the mobile terminal can help users to send and receive emails, browse web pages, access streaming media, etc. through the WiFi module 102, which provides users with wireless broadband Internet access.
  • FIG. 1 shows the WiFi module 102, it can be understood that it is not a necessary component of the mobile terminal, and can be completely omitted as required within the scope of not changing the essence of the invention.
  • the audio output unit 103 can store the data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109.
  • the audio data is converted into audio signal and output as sound.
  • the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (eg, call signal reception sound, message reception sound, etc.).
  • the audio output unit 103 may include a speaker, a buzzer, and the like.
  • the A/V input unit 104 is used to receive audio or video signals.
  • the A/V input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, and the graphics processor 1041 responds to still pictures or images obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode.
  • the image data of the video is processed.
  • the processed image frames may be displayed on the display unit 106 .
  • the image frames processed by the graphics processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102 .
  • the microphone 1042 can receive sound (audio data) via the microphone 1042 in a telephone call mode, a recording mode, a voice recognition mode, etc.
  • the processed audio (voice) data can be converted into a format that can be transmitted to a mobile communication base station via the radio frequency unit 101 for output in the case of a telephone call mode.
  • the microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to remove (or suppress) noise or interference generated in the process of receiving and transmitting audio signals.
  • the mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light, and the proximity sensor can close the display panel 1061 and the display panel 1061 when the mobile terminal 100 is moved to the ear. / or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes), and can detect the magnitude and direction of gravity when it is stationary.
  • the display unit 106 is used to display information input by the user or information provided to the user.
  • the display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
  • LCD Liquid Crystal Display
  • OLED Organic Light-Emitting Diode
  • the user input unit 107 may be used to receive input numerical or character information, and generate key signal input related to user settings and function control of the mobile terminal.
  • the user input unit 107 may include a touch panel 1071 and other input devices 1072 .
  • the touch panel 1071 also referred to as a touch screen, can collect the user's touch operations on or near it (such as the user's finger, stylus, etc., any suitable object or attachment on or near the touch panel 1071). operation), and drive the corresponding connection device according to the preset program.
  • the touch panel 1071 may include two parts, a touch detection device and a touch controller.
  • the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the touch controller.
  • the touch panel 1071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the user input unit 107 may also include other input devices 1072 .
  • other input devices 1072 may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, operation sticks, etc., which are not specifically limited here. .
  • the touch panel 1071 can cover the display panel 1061, and when the touch panel 1071 detects a touch operation on or near it, it transmits it to the processor 110 to determine the type of the touch event, and then the processor 110 determines the type of the touch event according to the touch event.
  • Type provides corresponding visual output on display panel 1061 .
  • the touch panel 1071 and the display panel 1061 are used as two independent components to realize the input and output functions of the mobile terminal, but in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated The input and output functions of the mobile terminal are implemented, which is not specifically limited here.
  • the interface unit 108 serves as an interface through which at least one external device can be connected to the mobile terminal 100 .
  • external devices may include wired or wireless headset ports, external power (or battery charger) ports, wired or wireless data ports, memory card ports, ports for connecting devices with identification modules, audio input/output (I/O) ports, video I/O ports, headphone ports, and more.
  • the interface unit 108 may be used to receive input (eg, data information, power, etc.) from an external device and transmit the received input to one or more elements within the mobile terminal 100 or may be used between the mobile terminal 100 and the external Transfer data between devices.
  • the memory 109 may be used to store software programs as well as various data.
  • the memory 109 may mainly include a stored program area and a stored data area, wherein the stored program area may store an operating system, an application program (such as a sound playback function, an image playback function, etc.) required for at least one function, and the like; Data created by the use of the mobile phone (such as audio data, phone book, etc.), etc.
  • memory 109 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
  • the processor 110 is the control center of the mobile terminal, uses various interfaces and lines to connect various parts of the entire mobile terminal, runs or executes the software programs and/or modules stored in the memory 109, and calls the data stored in the memory 109. , perform various functions of the mobile terminal and process data, so as to monitor the mobile terminal as a whole.
  • the processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem
  • the processor mainly handles wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 110 .
  • the mobile terminal 100 may also include a power supply 111 (such as a battery) for supplying power to various components.
  • a power supply 111 (such as a battery) for supplying power to various components.
  • the power supply 111 may be logically connected to the processor 110 through a power management system, so as to manage charging, discharging, and power consumption management through the power management system and other functions.
  • the mobile terminal 100 may also include a Bluetooth module, etc., which will not be described herein again.
  • FIG. 2 is an architecture diagram of a communication network system provided by an embodiment of the application.
  • the communication network system is an LTE system of universal mobile communication technology.
  • 201 E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, Evolved UMTS Terrestrial Radio Access Network) 202, EPC (Evolved Packet Core, Evolved Packet Core) 203 and the operator's IP service 204.
  • E-UTRAN Evolved UMTS Terrestrial Radio Access Network
  • EPC Evolved Packet Core, Evolved Packet Core
  • the UE 201 may be the above-mentioned terminal 100, which will not be repeated here.
  • E-UTRAN 202 includes eNodeB 2021 and other eNodeB 2022 and the like.
  • the eNodeB 2021 can be connected to other eNodeBs 2022 through a backhaul (eg X2 interface), the eNodeB 2021 is connected to the EPC 203 , and the eNodeB 2021 can provide access from the UE 201 to the EPC 203 .
  • a backhaul eg X2 interface
  • EPC 203 may include MME (Mobility Management Entity, Mobility Management Entity) 2031, HSS (Home Subscriber Server, Home Subscriber Server) 2032, other MME 2033, SGW (Serving Gate Way, Serving Gateway) 2034, PGW (PDN Gate Way, packet data network gateway) 2035 and PCRF (Policy and Charging Rules Function, policy and charging functional entity) 2036 and so on.
  • MME2031 is a control node that processes signaling between UE201 and EPC203, and provides bearer and connection management.
  • the HSS2032 is used to provide some registers to manage functions such as the home location register (not shown in the figure), and to store some user-specific information about service characteristics, data rates, etc.
  • PCRF2036 is the policy and charging control policy decision point of service data flow and IP bearer resources, it is the policy and charging execution function A unit (not shown) selects and provides available policy and charging control decisions.
  • the IP service 204 may include the Internet, an intranet, an IMS (IP Multimedia Subsystem, IP Multimedia Subsystem) or other IP services.
  • IMS IP Multimedia Subsystem, IP Multimedia Subsystem
  • FIG. 3 is a schematic diagram of an application scenario provided by an embodiment of the present application. Referring to FIG. 3 , it includes an electronic device 100 , a user interface 101 , an element to be added 102 and an existing element 103 .
  • the electronic device 100 may be a mobile phone, a tablet computer, etc., and the system of the electronic device may be an Android system.
  • the user interface 101 may be the main desktop interface of the electronic device or the auxiliary desktop interface, and the interface may be divided into a plurality of cells, and these cells are used to place various elements (such as the element to be added 102, the existing element 103). ).
  • the element to be added 102 may be an element in the user interface that has not yet been placed. It is indicated by a dashed line in FIG. 3 .
  • Existing elements 103 may be elements that have already been placed in the user interface. It is represented by a solid line rounded box in Figure 3.
  • the element to be added 102 and the existing element 103 may include an application icon, a shortcut icon or a widget (widget) icon of a function in the application, and the like.
  • the user needs to add the element 102 to be added to the user interface 101 of the electronic device 100 for convenience, such as adding a time and weather combination element to the main desktop interface of the mobile phone to facilitate the user to check the time and weather.
  • the user needs to add the element 102 to be added to the user interface 101 of the electronic device 100 and then move it in the user interface 101, so that the elements can be arranged according to the user's wishes, for example, according to the user's frequency of use, move the element with higher frequency of use to the same user interface of the electronic device.
  • the Elements are placed into the space of the user interface, enabling the addition of elements.
  • the space in the user interface can be fully utilized, and the space utilization rate can be improved.
  • FIG. 4 is a schematic flowchart of a device control method provided by an embodiment of the present application. Referring to FIG. 4, the method may include:
  • S201 Determine the element to be added and the user interface, the element to be added is a combined element, and the user interface is an interface where the element to be added is placed.
  • the execution body of the embodiment of the present application may be an electronic device, or may be a device control device provided in the electronic device.
  • the device control device can be implemented by software, or can be implemented by a combination of software and hardware.
  • a combined element includes at least two elements, that is, a combined element is a combination of at least two elements.
  • a time element and a weather element may be included in the combined element, or the combined element may include a pattern element and a text element.
  • FIG. 5 is a schematic diagram of a combination element provided by an embodiment of the present application.
  • the user interface includes a combination element M
  • the combination element M includes an element M1 and an element M2.
  • the user interface may be an interface where elements to be added are placed.
  • the user interface can be divided into a plurality of cells, and the state of the cells can be idle or occupied. When the state of the cell is in the idle state, the element to be added can be placed in the cell, and when the state of the cell is in the occupied state, the element to be added cannot be placed in the cell. For example, you can use true to indicate that the cell state is occupied, and false to indicate that the cell state is idle.
  • the free space in the user interface is not enough to place the element to be added, which may include at least one of the following situations:
  • the number of free cells in the user interface may be greater than or equal to the number of cells occupied by the elements to be added.
  • the location distribution between the cells occupied by the elements to be added is different from that of the free cells in the user interface
  • the location distribution between the grids results in insufficient free space in the user interface to place the elements to be added.
  • the location distribution of the cells occupied by the element to be added is 2*3, and the location distribution of the free cells in the user interface is 3*2, then the location distribution of the cells occupied by the element to be added is the same as that of the free cells in the user interface.
  • the distribution of positions between cells is different.
  • FIG. 6A is a schematic diagram of a user interface provided by an embodiment of the present application.
  • the user interface includes a plurality of cells, wherein the state of the cell shown by the solid line is the occupied state, and the state of the cell shown by the dotted line is the idle state.
  • the user interface also includes an element M to be added, the element M to be added is a combined element, and the position distribution between the cells occupied by the element M to be added is 1*4 (that is, one row and four columns); free cells in the user interface
  • the position distribution between is 2*2 (ie, two rows and two columns). Therefore, the position distribution among the cells occupied by the element to be added is different from the position distribution among the idle cells in the user interface.
  • the position distribution between the cells occupied by the element to be added and the position distribution between the idle cells in the user interface may also be other, which is not specifically limited in this embodiment of the present application.
  • the number of free cells in the user interface may be greater than or equal to the number of cells occupied by the elements to be added.
  • the shape of the elements to be added is different from the shape of the free space in the user interface, the idle space in the user interface is caused. There is not enough space to place the element to be added.
  • the shape of the element to be added is a rectangle of 1*3
  • the shape of the free space in the user interface is a square of 2*2
  • the shape of the element to be added is different from the shape of the free space in the user interface.
  • FIG. 6B is a schematic diagram of another user interface provided by an embodiment of the present application. Please refer to FIG. 6B .
  • the user interface includes a plurality of cells, wherein the state of the cell shown by the solid line is the occupied state, and the state of the cell shown by the dotted line is the idle state.
  • the user interface also includes an element M to be added, the element M to be added is a combined element, and the position distribution between the cells occupied by the element M to be added is 1*2 (that is, one row and two columns); free cells in the user interface The position distribution between is 2*1 (ie, two rows and one column). Therefore, the shape of the element to be added is different from the shape of the free space in the user interface.
  • the shape of the element to be added and the shape of the free space in the user interface may also be other, which are not specifically limited in this embodiment of the present application.
  • Case 3 The area occupied by the element to be added is larger than the area of the free space in the user interface.
  • Case 4 The number of cells occupied by elements to be added is greater than the number of free cells in the user interface.
  • the obtained element after splitting can be a single element or a sub-combination element, and the sub-combination element includes at least two elements (or a single element).
  • the combined element includes 3 single elements, denoted as single element 1, single element 2 and single element 3, the combined element can be split into two elements, denoted as element 1 and element 2, respectively, where , element 1 can be a single element 1, and element 2 can include a single element 2 and a single element 3.
  • S203 Place at least two elements in the free space of the user interface respectively.
  • the split elements can also be placed in the free space of the user interface in the following manner: split the combined element into at least two elements; according to the priority information of the split elements, split the at least two elements. In turn, they are placed in the free space of the user interface.
  • the combination element can be divided into a time element and a weather element, and the time element in the combination can also be divided into a year, month, day, and hour, minute, and second elements.
  • the free space of the user interface can be reasonably utilized to improve the space utilization of the user interface.
  • the priority information of the split elements may include at least one of the following: the order of splitting and combining elements; or the order of user usage frequency from low to high, or from high to low.
  • the combined element may be split into at least two elements in at least one of the following manners: splitting according to a preset splitting manner of the combined element; or splitting according to attribute information and/or layout information.
  • the preset splitting method of combined elements includes: if the combined element includes N elements, splitting the combined elements into N elements; or using the same attribute element as one element and different attribute elements as the second element, such as In Fig. 6B, the year, month, day, and hour, minute, and second elements in the element M to be added belong to the time element, so they are not split as a sub-combination element, and the weather element is different from the time element, and is split into two elements; or the element to be added There are different layout partitions between the included elements. If each element has its own edge, it will be split according to the edge of the element; if there is a partition line between each element, it will be split according to the partition line between elements; or other user-defined split methods, this There are no restrictions.
  • the attribute information of the element to be added and/or the layout information of the element in the user interface may also be adjusted.
  • the attribute information of the element to be added and/or the layout information of the element in the user interface can also be adjusted.
  • the attribute information can be adjusted in the following possible implementation manners:
  • Method 1 Reduce or crop the area occupied by the element to be added.
  • the elements to be added may be reduced to reduce the area occupied by the elements to be added.
  • the element to be added can be clipped to reduce the area occupied by the element to be added.
  • the less important content of the element to be added can be trimmed, or the content of the element to be added or the content other than the edge can be trimmed.
  • Method 2 Reduce the number of cells occupied by elements to be added.
  • the element to be added may be reduced or trimmed to reduce the number of cells occupied by the element to be added.
  • Mode 3 Adjust the position distribution among the cells occupied by the elements to be added.
  • the position distribution between the cells occupied by the elements to be added is 1*4 (one row and four columns)
  • the position distribution between the cells occupied by the elements to be added can be adjusted to 2*2 (two rows and two columns) .
  • Method 4 Adjust the shape of the element to be added.
  • the shape of the element to be added can be circle, square, rectangle, trapezoid, etc.
  • Mode 5 Adjust the combination mode or priority information of the elements to be added.
  • the layout information includes at least one of the following information: the area of free space in the user interface, the number of free cells in the user interface, the location distribution between the free cells in the user interface, the shape of the free space in the user interface, The spacing between existing elements in the user interface, the priority information of the existing elements in the user interface.
  • the layout information can be adjusted in at least one of the following ways:
  • Method 1 Enlarge or expand the free space area.
  • the free space area may refer to a continuous free space area.
  • the position of at least one existing element in the user interface may be moved to increase the area of contiguous free space in the user interface.
  • some existing elements in the user interface may be deleted, or some existing elements in the user interface may be merged for processing.
  • some existing elements in the user interface may be deleted, or some existing elements in the user interface may be merged for processing.
  • Method 3 Adjust the position distribution or the shape of the free space between the free cells.
  • Mode 4 Adjust the spacing or priority information between existing elements.
  • FIG. 7 is another device control method provided by an embodiment of the present application. Referring to FIG. 7, the method may include:
  • S501 Determine the element to be added and the user interface.
  • the element to be added can be an element, multiple elements, or a combination of elements. Can be elements of the same type or elements of different types.
  • the user interface may be the current interface where the element to be added is placed. The free space for this UI is not contiguous. For details, please refer to S201.
  • the other user interface may be a desktop interface of the electronic device other than the current interface where the element to be added is placed.
  • the free space in the user interface is not enough to place the element to be added, which may include at least one of the following situations:
  • Case 2 The number of cells occupied by the element to be added is greater than the number of free cells in the user interface.
  • Case 3 The position distribution between the cells occupied by the element to be added is different from the position distribution between the idle cells in the user interface.
  • Case 4 The shape of the element to be added is different from the shape of the free space in the user interface.
  • At least one existing element of the user interface can be moved to another user interface in at least one of the following ways:
  • Mode 1 Move at least one existing element of the user interface to other user interfaces in a first order; the first order is from back to front, or from front to back.
  • Manner 2 Move at least one existing element of the user interface to other user interfaces in a second order; the second order is an order in which the user's usage frequency is from low to high.
  • Mode 3 Move at least one existing element of the user interface to another user interface, so as to obtain N free cell spaces in the user interface; N is the number of cells occupied by the element to be added; wherein N can be 1, 2, 3 ....etc. positive integers.
  • Mode 4 Move according to a preset movement mode.
  • the preset moving manner may be moving elements in preset cells in the user interface to other user interfaces, or the preset moving manner may be moving elements of a preset type in the user interface to other user interfaces.
  • the preset types may include weather types, text types, and the like.
  • At least one existing element of the user interface may also be moved to another user interface in other manners, which is not specifically limited in this embodiment of the present application.
  • S503 Place the element to be added in the space of the user interface according to the priority information of the element to be added.
  • the elements to be added can be placed in the space of the user interface according to the order of the frequency of using the elements to be added by the user, the type of the elements to be added, or the order of obtaining the elements to be added.
  • the specific placement method is not limited here.
  • the space for placing the user interface of the element to be added may be a free space or a space occupied by an existing element. If the space for placing the element to be added is free space, you can directly place the element to be added in the free space; if the space for placing the element to be added is the space occupied by an existing element, you can place the element to be added at the same time. Move the existing element to another space in the user interface, or move the existing element to another user interface.
  • the element to be added can be placed in the space of the user interface in the following way: determine the state of the cell of the user interface, and place the element to be added in the space of the user interface according to the state of the cell, wherein the state of the cell includes The idle state or the occupied state; the idle state is the state of the element to be placed; the occupied state is the state of the placed element. If the state of the cell is in the idle state, the element to be added is placed in the cell in the idle state of the user interface; if the state of the cell is in the occupied state, the element to be moved in the user interface is determined; the attribute information of the element to be moved is adjusted. and/or the layout information of elements in the user interface, to move the element to be moved into the free space of the user interface.
  • the attribute information of the element to be added and/or the layout information of the element in the user interface may also be adjusted.
  • the attribute information of the existing element and/or the layout information of the element in the user interface may also be adjusted.
  • the attribute information includes at least one of the following information: the area occupied by the element to be added, the number of cells occupied by the element to be added, the position distribution between the cells occupied by the element to be added, the shape of the element to be added, The combination method of the elements to be added, and the priority information of the elements to be added.
  • the attribute information can be adjusted in several possible implementations as follows:
  • Method 1 Reduce or crop the area occupied by the element to be added.
  • the elements to be added may be reduced to reduce the area occupied by the elements to be added.
  • the element to be added can be clipped to reduce the area occupied by the element to be added.
  • the less important content of the element to be added may be trimmed, or the content of the element to be added or the content other than the edge may be trimmed.
  • Method 2 Reduce the number of cells occupied by elements to be added.
  • the element to be added may be reduced or trimmed to reduce the number of cells occupied by the element to be added.
  • Mode 3 Adjust the position distribution among the cells occupied by the elements to be added.
  • the position distribution between the cells occupied by the elements to be added is 1*4 (one row and four columns)
  • the position distribution between the cells occupied by the elements to be added can be adjusted to 2*2 (two rows and two columns) .
  • Method 4 Adjust the shape of the element to be added.
  • the shape of the element to be added can be circle, square, rectangle, trapezoid, etc.
  • Mode 5 Adjust the combination mode or priority information of the elements to be added.
  • the layout information includes at least one of the following information: the area of free space in the user interface, the number of free cells in the user interface, the location distribution between the free cells in the user interface, the shape of the free space in the user interface, The spacing between existing elements in the user interface, the priority information of the existing elements in the user interface.
  • the layout information can be adjusted in at least one of the following ways:
  • Method 1 Enlarge or expand the free space area.
  • some existing elements in the user interface may be deleted, or some existing elements in the user interface may be merged for processing.
  • some existing elements in the user interface may be deleted, or some existing elements in the user interface may be merged for processing.
  • Method 3 Adjust the position distribution or the shape of the free space between the free cells.
  • Mode 4 Adjust the spacing or priority information between existing elements.
  • the free space of the current user interface is increased, which is enough to place the elements to be added, and it is avoided that due to insufficient free space of the user interface, the Some space of the user interface caused by placing the elements to be added is vacant, thus improving the space utilization of the user interface.
  • FIG. 8 is a schematic diagram of adding interface elements according to an embodiment of the present application.
  • the solid line rounded box is the existing element of the user interface.
  • the free space in the user interface in the left picture is 2*2, and the black filled rounded box is the existing element with the lowest priority.
  • the right picture The time widget in and the three dotted rounded squares are the elements to be added. If you want to place the element to be added in the user interface shown on the left, it cannot be placed. Then, move the existing element with the lowest priority in the left image to other user interfaces, and then the element to be added can be placed in the user interface. interface space.
  • the user interface where the elements to be added are placed is shown on the right side of Figure 8.
  • FIG. 9 is a schematic flowchart of another device control method provided by an embodiment of the present application. Referring to FIG. 9, the method is applied to an electronic device and may include:
  • S701 Determine the element to be added and the user interface.
  • the execution body of the embodiment of the present application may be an electronic device, or may be a device control apparatus provided in the electronic device.
  • the device control apparatus may be implemented by software, or may be implemented by a combination of software and hardware.
  • the user interface may be an interface where elements to be added are placed.
  • the user interface can be divided into a plurality of cells, and the state of the cells can be idle or occupied. For example, you can use true to indicate that the cell state is occupied, and false to indicate that the cell state is idle. If the state of a cell of the user interface is false, the element to be added can be placed in the cell.
  • the element may include at least one of the following: an application icon, a widget icon, a function icon, at least two application icons, patterns and text information, and the like.
  • the application icon may be an icon of an application (such as a chat application, a shopping application, etc.);
  • the widget icon may be an icon of a widget (such as a clock weather widget, a music widget, etc.);
  • the function icon may be "settings" Or the icons of functions such as "one-key lock screen”;
  • the at least two application icons may be icons formed by combining the icons of at least two application programs.
  • the element to be added may be any one or more of the above-mentioned elements.
  • S702 Acquire information on the area occupied by the element to be added or the number of cells occupied by the element, and the information on the area of free space or the number of free cells in the user interface.
  • the area occupied by the element to be added may be the product of the number of user interface cells the element to be added needs to occupy in the horizontal direction and the number of user interface cells in the vertical direction if the element to be added is placed on the user interface.
  • the element to be added is a combined element of time and weather, and the area occupied by the combined element may be 1*4 or 2*2.
  • the number of cells occupied by the element to be added may be the number of cells occupied in the user interface if the element to be added is placed in the user interface. Assuming that the element to be added is a combination of 1*4 or 2*2 of time and weather, and the combined element is placed in the user interface, the number of cells in the user interface that needs to be occupied is 4, that is, the element to be added occupies 4 The number of cells is 4.
  • the free space area in the user interface may be the space area of the unplaced element in the user interface, or may be the sum of the areas of the cells in the idle state in the user interface.
  • the number of idle cells information may include the number of cells in an idle state in the user interface, or the sum of the numbers of cells in an idle state.
  • S703 Adjust the attribute information of the element to be added and/or the layout information of the element in the user interface, and place the element to be added in the space of the user interface.
  • the attribute information may include at least one of the following information: the area occupied by the element to be added, the location distribution between the cells occupied by the element to be added, the shape of the element to be added, the combination method of the element to be added, the element to be added Element's priority information.
  • the position distribution between the cells occupied by the element to be added may be continuous or discontinuous.
  • the shape of the element to be added may include a rectangle, a square, and the like.
  • the combination of elements to be added may include horizontal combination and vertical combination.
  • the priority information of the element to be added may include priority information according to the frequency of use by the user, priority information according to the placement position of the element to be added, priority information according to the type of the element to be added, and the like.
  • the layout information may include at least one of the following information: the area of free space in the user interface, the location distribution between free cells in the user interface, the shape of the free space in the user interface, and the space between existing elements in the user interface. spacing, priority information for elements already in the user interface.
  • the free cell may be a cell in a false state, and the free space area in the user interface may be the product of the number of horizontal free cells and the number of vertical free cells in the user interface.
  • the distribution of positions between idle cells in the user interface can be continuous or discontinuous.
  • the shape of the free space in the user interface can be a rectangle or a square, etc.
  • the spacing between existing elements in the user interface may be horizontal spacing and/or vertical spacing between existing elements.
  • the priority information of the existing elements in the user interface may include the priority information according to the frequency of use by the user, the priority information according to the placement position of the existing elements, the priority information according to the type of the existing elements, and the like.
  • the preset conditions may include at least one of the following: the number of cells occupied by the elements to be added is greater than the number of free cells in the user interface; the area occupied by the elements to be added is greater than the area of free space in the user interface; the elements to be added The position distribution between the occupied cells is different from the position distribution between the free cells in the user interface; the shape of the element to be added is different from the shape of the free space in the user interface.
  • the space of the user interface may be an idle space in the user interface, or may be a cell in an idle state in the user interface.
  • the attribute information of the element to be added or the layout information of the element in the user interface can be adjusted separately, or the attribute information of the element to be added and the layout information of the element in the user interface can be combined to adjust both at the same time, so that the user can The space of the interface can be used more rationally.
  • the state of the cell of the user interface can be determined first, and the state can be is idle or occupied.
  • the attribute information of elements to be added and/or the layout information of elements in the user interface can be adjusted according to the position distribution of the cells in the idle state of the user interface, and the elements to be added can be placed in the cells of the idle state of the user interface.
  • the elements to be added can be placed in the space of the user interface quickly and conveniently, which improves the efficiency of adding interface elements.
  • the element to be moved in the user interface can also be determined; the attribute information of the element to be moved and the layout information of the element in the user interface are obtained; Attribute information and/or layout information of elements in the user interface, placing the element to be moved into a free cell of the user interface.
  • the attribute information of the element to be moved may include at least one of the following information: the number of cells occupied by the element to be moved, the area occupied by the element to be moved, the position distribution between the cells occupied by the element to be moved, the The shape of the element, the combination of the elements to be moved, and the priority information of the elements to be moved.
  • the user interface can be the same user interface or different user interfaces.
  • the intelligent movement of the element is realized, the mechanical movement of the element is avoided, and the user experience is improved.
  • the device control method by determining the element to be added and the user interface, the information on the area occupied by the element to be added or the number of cells occupied and the information on the area of free space or the number of free cells in the user interface are obtained, and the information on the area of the free space or the number of free cells in the user interface is adjusted.
  • the attribute information of the element and/or the layout information of the element in the user interface, the element to be added is placed in the space of the user interface, thereby realizing the addition of the element in the user interface. In this way, combined with the attribute information of the element to be added and/or the layout information of the element in the user interface, the space in the user interface can be fully utilized, and the space utilization rate is improved.
  • FIG. 10 is a schematic flowchart of another device control method provided by an embodiment of the present application.
  • the method can include:
  • the element to be added may be an element or a combined element.
  • the user interface may be an interface where elements to be added are placed. For details, please refer to S201.
  • the free space in the user interface is not enough to place the element to be added, which may include at least one of the following: the number of cells occupied by the element to be added is greater than the number of free cells in the user interface; or the area occupied by the element to be added is greater than The area of free space in the user interface.
  • the elements to be added can be reduced proportionally.
  • the element to be added is proportionally reduced to a preset size to obtain the reduced element to be added, and the preset size is the size of the free space that can be placed in the user interface;
  • the element to be added is proportionally reduced to a preset size, so that the element to be added can be placed in the free space of the user interface, and the reduced element to be added is obtained.
  • FIG. 11 is a schematic diagram of adding interface elements in another device control method provided by an embodiment of the present application.
  • the element to be added is a time widget, see Figure 11, the dotted line element in the left figure is the time widget to be added, the number of cells occupied by the time widget is 2*3, and the number of free cells in the user interface is The number is 1*2, and the solid line time widget in the figure on the right is the reduced time widget to be added.
  • the solid line in the figure on the right is obtained.
  • Time widget The number of cells occupied by the solid-line time widget is 1*2, which is the same as the number of free cells in the user interface. In this way, the reduced time widget can be placed in the free space of the user interface. middle.
  • the element to be added can be enlarged and reduced.
  • the reduced element to be added may be enlarged to the original ratio of the element to be added.
  • FIG. 12 is a schematic flowchart of another device control method provided by an embodiment of the present application.
  • the element to be added is a combination element, and if the free space in the user interface is not enough to place the element to be added, the combination method of the combination element is adjusted.
  • the method can include:
  • S1001 Determine the element to be added and the user interface.
  • the element to be added may be a combination element, such as a time and weather combination element, a pattern and text information combination element, and the like.
  • the user interface is an interface where elements to be added are placed. For details, please refer to S201.
  • the free space in the user interface is not enough to place the element to be added, which may include at least one of the following: the position distribution between the cells occupied by the element to be added is different from the position distribution between the idle cells in the user interface; or The shape of the element to be added is different from the shape of the free space in the user interface.
  • the location distribution of the cells occupied by the elements to be added is 2*3, and the location distribution of the free cells in the user interface is 3*2, then the location distribution of the cells occupied by the elements to be added is the same as that of the free cells in the user interface.
  • the distribution of locations is different.
  • the shape of the element to be added is a rectangle of 1*3, and the shape of the free space in the user interface is a square of 2*2, the shape of the element to be added is different from the shape of the free space in the user interface.
  • the combination mode may be a combination mode in a combination mode set preset in the electronic device, and the combination mode set includes a variety of different combination modes of elements.
  • the combination mode of the combined elements can be adjusted in at least one of the following ways, and the adjusted combined elements can be placed in the free space of the user interface:
  • the adjusted combination mode of the combined elements is adjusted to the best combination mode.
  • FIG. 13 is a schematic diagram of adding interface elements in yet another device control method provided by an embodiment of the present application.
  • the time and weather combination widget in the left figure is the element to be added.
  • the shape of the combination widget is a 1*4 rectangle, while the free space in the user interface is shaped as a 2*2 square.
  • the shape is a 2*2 square combination widget, so that the shape of the combination widget is the same as the shape of the free space in the user interface. In this way, the adjusted combination widget can be placed in the free space of the user interface.
  • the combination mode of the adjusted combination elements can be adjusted to the best combination mode.
  • the optimal combination mode may be a combination mode in a set of preset combination modes. Adjusting the combination of the combined elements to the best combination can improve the user's visual effect on the elements, thereby improving the user experience.
  • the adjusted elements to be added are placed on the user interface, so as to avoid that the position distribution or shape of the free space in the user interface is different from the position distribution or shape of the elements to be added.
  • the added elements cannot be placed on the user interface, which wastes the space of the user interface, and thus improves the space utilization of the user interface.
  • FIG. 14 is a schematic flowchart of a fifth device control method provided by an embodiment of the present application.
  • the elements to be added are at least two elements, and if the free space in the user interface is not enough to place the elements to be added, some elements of the elements to be added are placed.
  • the method can include:
  • S1201 Determine the element to be added and the user interface.
  • the elements to be added can be at least two elements of the same type or different types, such as at least two shopping-type application icons, or more than one shopping-type application icon and more than one chat-type application, or more than one application icon and more than one widget icon, etc.
  • the user interface may be an interface where elements to be added are placed. For details, please refer to S201.
  • the free space in the user interface is not enough to place the element to be added, which may include at least one of the following: the number of cells occupied by the element to be added is greater than the number of free cells in the user interface; or the area occupied by the element to be added is greater than Free space in the user interface.
  • some of the at least two elements to be added may be determined in at least one of the following ways: according to the frequency of the user using the element from high to low; or according to the type of the element; or according to the user's preference; There is no specific limitation.
  • the remaining unplaced elements may be elements to be added except the elements placed in the free space of the user interface.
  • the original user interface may be the user interface where the element to be added is located when the element to be added is not added.
  • FIG. 15 is a schematic diagram of adding interface elements in yet another device control method provided by an embodiment of the present application.
  • the five dashed rounded squares on the left are the elements to be added.
  • To place the five elements to be added in the free space of the user interface at least 1*5 or 2*3 cells are required, and the user The free space in the interface is 2*2, then according to the position distribution of the free cells in the user interface, four of the five elements to be added are placed in the free space of the user interface according to the position distribution of 2*2, as shown in the figure As shown in the figure on the right in 15, at the same time restore the remaining one element back to its original position and do not add it for the time being.
  • the elements to be added are caused by the number or area of cells occupied by the elements to be added being larger than the number or free area of free cells in the user interface. It cannot be placed in the user interface, and the space of the user interface is wasted. Therefore, the space utilization rate of the user interface is improved.
  • FIG. 16 is a schematic flowchart of another device control method provided by an embodiment of the present application.
  • the method can include:
  • the element to be added may be an element or multiple elements or a combination of elements.
  • the user interface may be an interface where elements to be added are placed. For details, please refer to S201.
  • the free space in the user interface is not enough to place the element to be added, which may include at least one of the following: the number of cells occupied by the element to be added is greater than the number of free cells in the user interface; or the area occupied by the element to be added is greater than The area of free space in the user interface; or the position distribution between the cells occupied by the elements to be added is different from the position distribution between the free cells in the user interface; or the shape of the element to be added is different from the shape of the free space in the user interface.
  • the horizontal spacing and/or vertical spacing between existing elements in the user interface can be adjusted so that the horizontal and/or vertical spacing between existing elements becomes smaller, thereby obtaining more free space for placing the to-be-added elements. element.
  • FIG. 17 is a schematic diagram of adding interface elements in another device control method provided by an embodiment of the present application.
  • the solid line rounded box is an existing element
  • the overall layout of the user interface in the left figure is 4*5
  • the free cell is 2*2, that is, four elements to be added can be placed. If you want to add six elements to be added to the user interface in the figure on the left, the current free space in the user interface is not enough.
  • the adjusted user interface is obtained as shown in Figure 17. As shown in the side view, the vertical spacing between the existing elements becomes smaller, so that the overall layout of the user interface becomes 4*6. In this way, the user interface has eight free cells, which are enough to place the six elements to be added in the adjustment. After the user interface in the free space.
  • FIG. 18 is a schematic diagram showing a reduced scale of existing elements of a user interface provided by an embodiment of the present application.
  • the solid line rounded box in the left figure is the existing element of the original size, and its size can be 144*144 pixels
  • the solid line rounded box in the right figure is the reduced existing element, and its size is 144*144 pixels.
  • the size can be 122*122 pixels.
  • the free space of the user interface is increased, so that more elements to be added are placed, thus improving the space utilization rate of the user interface.
  • FIG. 19 is a schematic flowchart of another device control method provided by an embodiment of the present application.
  • the free space of the user interface is discontinuous. If the free space in the user interface is not enough to place the element to be added, the position of the existing element in the user interface is moved to obtain the free space of the continuous position, and the element to be added is placed.
  • the method can include:
  • S1701 Determine the element to be added and the user interface.
  • the user interface may be an interface for placing elements to be added, and the positions of the free spaces of the user interface are discontinuous. For details, please refer to S201.
  • the free space of the continuous location can be obtained in at least one of the following ways:
  • the first order can be from back to front, or from front to back;
  • N is the number of cells occupied by the element to be added; where N can be 1, 2, 3.. .. etc. positive integers.
  • S1703 Place the element to be added into the free space of the continuous position of the user interface.
  • FIG. 20 is a schematic diagram of adding interface elements in another device control method provided by an embodiment of the present application.
  • the solid line rounded box is the existing elements of the user interface.
  • the existing elements of the user interface in the left picture are scattered, and the three free cells are not continuous, and only three 1*1 waiting cells can be placed. Add elements, if you want to place 1*3 elements to be added, you cannot place them.
  • the user interface in the figure on the right is obtained.
  • the existing elements of the user interface are arranged in a concentrated manner, and the three free cells are continuous. Not only can three 1*1 elements to be added be placed, You can also place a 1*3 element to be added.
  • the discontinuous free space of the user interface becomes a continuous free space. In this way, all the free spaces in the user interface are concentrated, and different types and sizes can be placed.
  • the element to be added improves the space utilization of the user interface.
  • the present application further provides a device control apparatus, which will be described in detail below.
  • FIG. 21 is a schematic structural diagram of a device control apparatus provided by an embodiment of the present application.
  • the device control apparatus 190 may include: a determining module 1901 and a splitting module 1902, wherein:
  • the determining module 1901 is used to determine an element to be added and a user interface; the element to be added is a combined element; the user interface is an interface for placing the element to be added;
  • the splitting module 1902 is configured to, if the free space in the user interface is not enough to place the element to be added, split the combined element into at least two elements, so that the at least two elements can be placed separately in the free space of the user interface.
  • the device control apparatus shown in the embodiments of the present application can implement the technical solutions shown in the foregoing method embodiments, and the implementation principles and beneficial effects thereof are similar, which will not be repeated here.
  • the free space in the user interface is insufficient to place the element to be added, including at least one of the following:
  • the position distribution between the cells occupied by the element to be added is different from the position distribution between the idle cells in the user interface
  • the shape of the element to be added is different from the shape of the free space in the user interface
  • the area occupied by the element to be added is larger than the area of the free space in the user interface
  • the number of cells occupied by the element to be added is greater than the number of free cells in the user interface.
  • FIG. 22 is a schematic structural diagram of another device control apparatus provided by an embodiment of the present application.
  • the device control apparatus 190 further includes a placement module 1903, wherein:
  • the placing module 1903 is configured to, after the splitting module 1902 splits the combined element into at least two elements, place the at least two elements in sequence according to the priority information of the split elements. in the free space of the user interface.
  • the priority information of the split elements includes at least one of the following:
  • the apparatus further includes an adjustment module 1904, wherein:
  • the adjustment module 1904 is configured to, before the splitting module 1902 splits the combined element into at least two elements, adjust the attribute information of the element to be added and/or the layout information of the element in the user interface .
  • the adjustment module 1904 is further configured to, after the splitting module 1902 splits the combined element into at least two elements, adjust the attribute information and/or all the elements of the element. Describes the layout information of elements in the user interface.
  • the attribute information includes at least one of the following information: the area occupied by the element to be added, the number of cells occupied by the element to be added, the area occupied by the element to be added The location distribution between cells, the shape of the element to be added, the combination of the element to be added, the priority information of the element to be added; and/or,
  • the layout information includes at least one of the following information: the area of free space in the user interface, the number of free cells in the user interface, the location distribution between free cells in the user interface, the user interface The shape of the free space in the interface, the spacing between the existing elements in the user interface, and the priority information of the existing elements in the user interface.
  • the adjustment method of the attribute information includes at least one of the following: reducing or cropping the occupied area, reducing the number of occupied cells, adjusting the position distribution between the occupied cells, or the The shape of the element to be added, the combination method or priority information of adjusting the element to be added; and/or,
  • the adjustment method of the layout information includes at least one of the following: enlarging or expanding the area of the free space, increasing the number of free cells, adjusting the position distribution between the free cells or the shape of the free space, adjusting the spacing between existing elements or priority information.
  • the manner of splitting the combined element into at least two elements includes at least one of the following:
  • Splitting is performed according to the attribute information and/or the layout information.
  • the device control apparatus shown in the embodiments of the present application can implement the technical solutions shown in the foregoing method embodiments, and the implementation principles and beneficial effects thereof are similar, and will not be repeated here.
  • FIG. 23 is a schematic structural diagram of another device control apparatus provided by an embodiment of the present application.
  • the device control apparatus 210 may include: a determining module 2101, a moving module 2102 and a placing module 2103, wherein,
  • the determining module 2101 is used to determine an element to be added and a user interface; the user interface is an interface for placing the element to be added;
  • the moving module 2102 is configured to, if the free space in the user interface is not enough to place the element to be added, move at least one existing element of the user interface to another user interface;
  • the placing module 2103 is configured to, according to the priority information of the element to be added, place the element to be added in the space of the user interface;
  • Moving at least one existing element of the user interface to another user interface includes at least one of the following:
  • the first order is from back to front, or from front to back;
  • the second order is the order of the frequency of user usage from low to high;
  • N is the number of cells occupied by the element to be added; wherein N is a positive integer.
  • the device control apparatus shown in the embodiments of the present application can implement the technical solutions shown in the foregoing method embodiments, and the implementation principles and beneficial effects thereof are similar, and will not be repeated here.
  • the placing module 2103 is specifically used for:
  • the element to be added is placed in the space of the user interface according to the state of the cell, wherein the state of the cell includes an idle state or an occupied state; the idle state is the state of the element to be placed; the The occupied state is the placed element state.
  • the placing module 2103 is specifically used for:
  • the state of the cell is an idle state, placing the element to be added into a cell in the idle state of the user interface;
  • the attribute information of the element to be moved and/or the layout information of the element in the user interface is adjusted, and the element to be moved is moved to the free space of the user interface.
  • the free space in the user interface is insufficient to place the element to be added, including at least one of the following:
  • the area occupied by the element to be added is larger than the area of the free space in the user interface
  • the number of cells occupied by the element to be added is greater than the number of free cells in the user interface
  • the position distribution between the cells occupied by the element to be added is different from the position distribution between the idle cells in the user interface
  • the shape of the element to be added is different from the shape of the free space in the user interface.
  • FIG. 24 is a schematic structural diagram of still another device control apparatus provided by an embodiment of the present application.
  • the device control apparatus 210 further includes an adjustment module 2104, wherein:
  • the adjustment module 2104 is configured to, before the moving module 2102 moves at least one existing element of the user interface to another user interface, adjust the attribute information of the element to be added and/or the element in the user interface layout information.
  • the adjusting module 2104 is further configured to, after the moving module 2102 moves at least one existing element of the user interface to another user interface, adjust the attribute of the existing element Information and/or layout information for elements in the user interface.
  • the attribute information includes at least one of the following information: the area occupied by the element to be added, the number of cells occupied by the element to be added, the area occupied by the element to be added The location distribution between cells, the shape of the element to be added, the combination of the element to be added, the priority information of the element to be added; and/or,
  • the layout information includes at least one of the following information: the area of free space in the user interface, the number of free cells in the user interface, the location distribution between free cells in the user interface, the user interface The shape of the free space in the interface, the spacing between the existing elements in the user interface, and the priority information of the existing elements in the user interface.
  • the adjustment method of the attribute information includes at least one of the following: reducing or cropping the occupied area, reducing the number of occupied cells, adjusting the position distribution between the occupied cells, or the The shape of the element to be added, the combination method or priority information of adjusting the element to be added; and/or,
  • the adjustment method of the layout information includes at least one of the following: enlarging or expanding the area of the free space, increasing the number of free cells, adjusting the position distribution between the free cells or the shape of the free space, adjusting the spacing between existing elements or priority information.
  • the moving module 2102 is specifically used for:
  • the movement is performed according to the attribute information and/or the layout information.
  • FIG. 25 is a schematic diagram of a hardware structure of a device control apparatus provided by an embodiment of the present application. Please refer to FIG. 25 .
  • the device control apparatus 230 includes: at least one processor 2301 and a memory 2302 .
  • the processor 2301 and the memory 2302 are connected through a bus 2303 .
  • the at least one processor 2301 executes the computer-executed instructions stored in the memory 2302, so that the at least one processor 2301 executes the above device control method.
  • the device control apparatus shown in FIG. 25 is only an example, and should not impose any limitations on the functions and scope of use of the embodiments of the present disclosure.
  • the present application also provides a device, the device comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, the computer program being executed by the processor to achieve the above the steps of the method.
  • Embodiments of the present application further provide a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and when a processor executes the computer-executable instructions, the method described in any of the foregoing method embodiments is implemented.
  • Device control method
  • the embodiments of the present application also provide a computer program product, the computer program product includes computer program code, when the computer program code is run on a computer, the computer is made to execute the method described in the various possible implementation manners above.
  • An embodiment of the present application further provides a chip, including a memory and a processor, where the memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that a chip installed with the chip is
  • the apparatus performs the method as described in the various possible embodiments above.
  • step codes such as S201 and S202 are used, the purpose of which is to express the corresponding content more clearly and briefly, and does not constitute a substantial restriction on the sequence.
  • S202 will be executed first and then S201, etc., but these should all fall within the protection scope of this application.
  • first, second, third, etc. may be used herein to describe various information, such information should not be limited by these terms. These terms are only used to distinguish the same type of information from each other.
  • first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of this document.
  • the word “if” as used herein can be interpreted as “at the time of” or “when” or “in response to determining”, depending on the context.
  • the singular forms "a,” “an,” and “the” are intended to include the plural forms as well, unless the context dictates otherwise.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

Embodiments of the present application provide a device control method and apparatus, and a storage medium, which are applied to an electronic device. The method comprises: determining an element to be added and a user interface, the element to be added being a combination element, and the user interface being an interface on which the element to be added is to be placed; if free spaces in the user interface are insufficient to place the element to be added, splitting the combination element into at least two elements, such that the at least two elements can be respectively placed into the free spaces in the user interface. The space utilization rate is improved.

Description

设备控制方法、装置和存储介质Device control method, device and storage medium 技术领域technical field
本申请实施例涉及终端领域,尤其涉及一种设备控制方法、装置和存储介质。The embodiments of the present application relate to the field of terminals, and in particular, to a device control method, apparatus, and storage medium.
背景技术Background technique
目前,电子设备(如手机、平板电脑等)系统的用户界面上可以放置不同的元素(如应用程序图标、工具小部件等),用户在使用电子设备的过程中,往往需要在用户界面上添加新的元素,或者对用户界面已有的元素进行移动。At present, different elements (such as application icons, tool widgets, etc.) can be placed on the user interface of electronic devices (such as mobile phones, tablet computers, etc.) New elements, or moving existing elements of the user interface.
一些实现中,添加界面元素时,计算待添加元素需占的面积与放置待添加元素的界面中剩余空间的面积进行对比,从而将待添加元素放置到该界面的剩余空间。然而,一些情况下,虽然界面中有剩余空间,系统仍会提示用户没有足够空间放置待添加元素,比如界面的剩余空间不连续导致剩余空间不够放置待添加元素,这样,降低了空间利用率。In some implementations, when adding interface elements, the area to be added is calculated and compared with the area of the remaining space in the interface where the element to be added is placed, so that the element to be added is placed in the remaining space of the interface. However, in some cases, although there is remaining space in the interface, the system will still prompt the user that there is not enough space to place the element to be added. For example, the remaining space of the interface is discontinuous and the remaining space is not enough to place the element to be added, which reduces the space utilization.
前面的叙述在于提供一般的背景信息,并不一定构成现有技术。The preceding statements are intended to provide general background information and may not constitute prior art.
发明内容SUMMARY OF THE INVENTION
为解决上述问题,本申请实施例提供一种设备控制方法、装置和存储介质,以提高空间利用率。To solve the above problems, embodiments of the present application provide a device control method, device, and storage medium, so as to improve space utilization.
第一方面,本申请实施例提供一种设备控制方法,所述方法包括:In a first aspect, an embodiment of the present application provides a device control method, the method comprising:
确定待添加元素和用户界面;所述待添加元素为组合元素;所述用户界面为放置所述待添加元素的界面;Determine the element to be added and the user interface; the element to be added is a combined element; the user interface is an interface for placing the element to be added;
若所述用户界面中空闲空间不足以放置所述待添加元素,将所述组合元素拆分成至少两个元素,以使所述至少两个元素能分别放置在所述用户界面的空闲空间中。If the free space in the user interface is not enough to place the element to be added, split the combined element into at least two elements, so that the at least two elements can be placed in the free space of the user interface respectively .
在一种可能的实施方式中,所述用户界面中空闲空间不足以放置所述待添加元素,包括如下至少一种:In a possible implementation manner, the free space in the user interface is insufficient to place the element to be added, including at least one of the following:
所述待添加元素所占单元格之间的位置分布不同于所述用户界面中空闲单元格之间的位置分布;The position distribution between the cells occupied by the element to be added is different from the position distribution between the idle cells in the user interface;
所述待添加元素形状不同于所述用户界面中空闲空间形状;The shape of the element to be added is different from the shape of the free space in the user interface;
所述待添加元素所占面积大于所述用户界面中空闲空间面积;The area occupied by the element to be added is larger than the area of the free space in the user interface;
所述待添加元素所占单元格的数量大于所述用户界面中空闲单元格的数量。The number of cells occupied by the element to be added is greater than the number of free cells in the user interface.
在一种可能的实施方式中,将所述组合元素拆分成至少两个元素之后,还包括:In a possible implementation manner, after splitting the combined element into at least two elements, the method further includes:
根据拆分后的元素的优先级信息,将所述至少两个元素依次放置到所述用户界面的空闲空间中。The at least two elements are sequentially placed in the free space of the user interface according to the priority information of the split elements.
在一种可能的实施方式中,所述拆分后的元素的优先级信息,包括如下至少一种:In a possible implementation manner, the priority information of the split elements includes at least one of the following:
拆分所述组合元素的先后顺序;the sequence of splitting the combined elements;
或用户使用频率从低到高,或从高到低的顺序。Or the order of user frequency from low to high, or from high to low.
在一种可能的实施方式中,在所述将所述组合元素拆分成至少两个元素之前,还包括以下至少一种:In a possible implementation manner, before splitting the combined element into at least two elements, it further includes at least one of the following:
调整所述待添加元素的属性信息和/或所述用户界面中元素的布局信息。The attribute information of the element to be added and/or the layout information of the element in the user interface is adjusted.
在一种可能的实施方式中,在所述将所述组合元素拆分成至少两个元素之后,还包括以下至少一种:In a possible implementation manner, after the combination element is split into at least two elements, at least one of the following is further included:
调整所述元素的属性信息和/或所述用户界面中元素的布局信息。The attribute information of the element and/or the layout information of the element in the user interface are adjusted.
在一种可能的实施方式中,所述属性信息包括如下信息中的至少一种:所述待添加元素所占面积、所述待添加元素所占单元格的数量、所述待添加元素所占单元格之间的位置分布、所述待添加元素形状、所述待添加元素的组合方式、所述待添加元素的优先级信息;和/或,In a possible implementation manner, the attribute information includes at least one of the following information: the area occupied by the element to be added, the number of cells occupied by the element to be added, the occupied area of the element to be added The location distribution between cells, the shape of the element to be added, the combination of the element to be added, the priority information of the element to be added; and/or,
所述布局信息包括如下信息中的至少一种:所述用户界面中空闲空间面积、所述用户界面中空闲单元格的数量、所述用户界面中空闲单元格之间的位置分布、所述用户界面中空闲空间形状、所述用户界面中已有元素之间的间距、所述用户界面中已有元素的优先级信息。The layout information includes at least one of the following information: the area of free space in the user interface, the number of free cells in the user interface, the location distribution between free cells in the user interface, the user interface The shape of the free space in the interface, the spacing between the existing elements in the user interface, and the priority information of the existing elements in the user interface.
在一种可能的实施方式中,所述属性信息的调整方式包括以下至少一种:缩小或裁剪所占面积、减少所占单元格的数量、调整所占单元格之间的位置 分布或所述待添加元素形状、调整所述待添加元素的组合方式或优先级信息;和/或,In a possible implementation manner, the adjustment method of the attribute information includes at least one of the following: reducing or cropping the occupied area, reducing the number of occupied cells, adjusting the position distribution between the occupied cells, or the The shape of the element to be added, the combination method or priority information of adjusting the element to be added; and/or,
所述布局信息的调整方式包括以下至少一种:放大或扩大空闲空间面积、增加空闲单元格的数量、调整空闲单元格之间的位置分布或空闲空间形状、调整已有元素之间的间距或优先级信息。The adjustment method of the layout information includes at least one of the following: enlarging or expanding the area of the free space, increasing the number of free cells, adjusting the position distribution between the free cells or the shape of the free space, adjusting the spacing between existing elements or priority information.
在一种可能的实施方式中,所述将所述组合元素拆分成至少两个元素的方式,包括以下至少一种:In a possible implementation manner, the manner of splitting the combined element into at least two elements includes at least one of the following:
根据预设的组合元素拆分方式进行拆分;Split according to the preset splitting method of combined elements;
根据所述属性信息和/或所述布局信息进行拆分。Splitting is performed according to the attribute information and/or the layout information.
第二方面,本申请实施例提供一种设备控制方法,所述方法包括:In a second aspect, an embodiment of the present application provides a device control method, the method comprising:
确定待添加元素和用户界面;所述用户界面为放置所述待添加元素的界面;Determine the element to be added and a user interface; the user interface is an interface for placing the element to be added;
若所述用户界面中空闲空间不足以放置所述待添加元素,则将所述用户界面的至少一个已有元素移动到其它用户界面,根据所述待添加元素的优先级信息,将所述待添加元素放置到所述用户界面的空间中;If the free space in the user interface is not enough to place the element to be added, move at least one existing element of the user interface to another user interface, and move the element to be added according to the priority information of the element to be added. add elements to be placed in the space of the user interface;
将所述用户界面的至少一个已有元素移动到其它用户界面,包括如下至少一种:Moving at least one existing element of the user interface to another user interface includes at least one of the following:
将所述用户界面的至少一个已有元素按第一顺序依次移动到其他用户界面;所述第一顺序为从后到前,或从前到后的顺序;moving at least one existing element of the user interface to other user interfaces in a first order; the first order is from back to front, or from front to back;
或将所述用户界面的至少一个已有元素按第二顺序依次移动到其他用户界面;所述第二顺序为用户使用频率从低到高的顺序;Or move at least one existing element of the user interface to other user interfaces in a second order; the second order is the order of the frequency of user usage from low to high;
或将所述用户界面的至少一个已有元素移动到其它用户界面,以在用户界面得到N个空闲单元格空间;所述N为待添加元素所占单元格数量;其中N为正整数。Or move at least one existing element of the user interface to another user interface, so as to obtain N free cell spaces in the user interface; the N is the number of cells occupied by the element to be added; wherein N is a positive integer.
在一种可能的实施方式中,将所述待添加元素放置到所述用户界面的空间中,包括:In a possible implementation manner, placing the element to be added in the space of the user interface includes:
确定所述用户界面的单元格的状态;determining the state of a cell of the user interface;
根据所述单元格的状态,将所述待添加元素放置到所述用户界面的空间中,其中,所述单元格的状态包括空闲状态或占用状态;所述空闲状态为待放置元素状态;所述占用状态为已放置元素状态。The element to be added is placed in the space of the user interface according to the state of the cell, wherein the state of the cell includes an idle state or an occupied state; the idle state is the state of the element to be placed; the The occupied state is the placed element state.
在一种可能的实施方式中,所述根据所述单元格的状态,将所述待添加元素放置到所述用户界面的空间中,包括:In a possible implementation manner, placing the element to be added into the space of the user interface according to the state of the cell includes:
若所述单元格的状态为空闲状态,则将所述待添加元素放置到所述用户界面的空闲状态的单元格中;If the state of the cell is an idle state, placing the element to be added into a cell in the idle state of the user interface;
确定所述用户界面中的待移动元素;determining the element to be moved in the user interface;
调整所述待移动元素的属性信息和/或所述用户界面中元素的布局信息,将所述待移动元素移动到所述用户界面的空闲空间中。The attribute information of the element to be moved and/or the layout information of the element in the user interface is adjusted, and the element to be moved is moved to the free space of the user interface.
在一种可能的实施方式中,所述用户界面中空闲空间不足以放置所述待添加元素,包括以下至少一种:In a possible implementation manner, the free space in the user interface is insufficient to place the element to be added, including at least one of the following:
所述待添加元素所占面积大于所述用户界面中空闲空间面积;The area occupied by the element to be added is larger than the area of the free space in the user interface;
所述待添加元素所占单元格的数量大于所述用户界面中空闲单元格的数量;The number of cells occupied by the element to be added is greater than the number of free cells in the user interface;
所述待添加元素所占单元格之间的位置分布不同于所述用户界面中空闲单元格之间的位置分布;The position distribution between the cells occupied by the element to be added is different from the position distribution between the idle cells in the user interface;
所述待添加元素形状不同于所述用户界面中空闲空间形状。The shape of the element to be added is different from the shape of the free space in the user interface.
在一种可能的实施方式中,在所述将所述用户界面的至少一个已有元素移动到其它用户界面之前,还包括以下至少一种:In a possible implementation manner, before the moving at least one existing element of the user interface to another user interface, the method further includes at least one of the following:
调整所述待添加元素的属性信息和/或所述用户界面中元素的布局信息。The attribute information of the element to be added and/or the layout information of the element in the user interface is adjusted.
在一种可能的实施方式中,在所述将所述用户界面的至少一个已有元素移动到其它用户界面之后,还包括以下至少一种:In a possible implementation manner, after the moving at least one existing element of the user interface to another user interface, the method further includes at least one of the following:
调整所述已有元素的属性信息和/或所述用户界面中元素的布局信息。The attribute information of the existing element and/or the layout information of the element in the user interface are adjusted.
在一种可能的实施方式中,所述属性信息包括如下信息中的至少一种:所述待添加元素所占面积、所述待添加元素所占单元格的数量、所述待添加元素所占单元格之间的位置分布、所述待添加元素形状、所述待添加元素的组合方式、所述待添加元素的优先级信息;和/或,In a possible implementation manner, the attribute information includes at least one of the following information: the area occupied by the element to be added, the number of cells occupied by the element to be added, the occupied area of the element to be added The location distribution between cells, the shape of the element to be added, the combination of the element to be added, the priority information of the element to be added; and/or,
所述布局信息包括如下信息中的至少一种:所述用户界面中空闲空间面积、所述用户界面中空闲单元格的数量、所述用户界面中空闲单元格之间的位置分布、所述用户界面中空闲空间形状、所述用户界面中已有元素之间的间距、所述用户界面中已有元素的优先级信息。The layout information includes at least one of the following information: the area of free space in the user interface, the number of free cells in the user interface, the location distribution between free cells in the user interface, the user interface The shape of the free space in the interface, the spacing between the existing elements in the user interface, and the priority information of the existing elements in the user interface.
在一种可能的实施方式中,所述属性信息的调整方式包括以下至少一种: 缩小或裁剪所占面积、减少所占单元格的数量、调整所占单元格之间的位置分布或所述待添加元素形状、调整所述待添加元素的组合方式或优先级信息;和/或,In a possible implementation manner, the adjustment method of the attribute information includes at least one of the following: reducing or cropping the occupied area, reducing the number of occupied cells, adjusting the position distribution between the occupied cells, or the The shape of the element to be added, the combination method or priority information of adjusting the element to be added; and/or,
所述布局信息的调整方式包括以下至少一种:放大或扩大空闲空间面积、增加空闲单元格的数量、调整空闲单元格之间的位置分布或空闲空间形状、调整已有元素之间的间距或优先级信息。The adjustment method of the layout information includes at least one of the following: enlarging or expanding the area of the free space, increasing the number of free cells, adjusting the position distribution between the free cells or the shape of the free space, adjusting the spacing between existing elements or priority information.
在一种可能的实施方式中,所述将所述用户界面的至少一个已有元素移动到其它用户界面的方式,包括以下至少一种:In a possible implementation manner, the method for moving at least one existing element of the user interface to another user interface includes at least one of the following:
根据预设的移动方式进行移动;Move according to the preset movement mode;
根据所述属性信息和/或所述布局信息进行移动。The movement is performed according to the attribute information and/or the layout information.
第三方面,本申请实施例提供一种设备控制装置,该装置包括:确定模块和拆分模块,其中,In a third aspect, an embodiment of the present application provides a device control device, the device includes: a determining module and a splitting module, wherein,
所述确定模块用于,确定待添加元素和用户界面;所述待添加元素为组合元素;所述用户界面为放置所述待添加元素的界面;The determining module is used to determine an element to be added and a user interface; the element to be added is a combined element; the user interface is an interface for placing the element to be added;
所述拆分模块用于,若所述用户界面中空闲空间不足以放置所述待添加元素,将所述组合元素拆分成至少两个元素,以使所述至少两个元素能分别放置在所述用户界面的空闲空间中。The splitting module is configured to split the combined element into at least two elements if the free space in the user interface is not enough to place the element to be added, so that the at least two elements can be placed on the in the free space of the user interface.
在一种可能的实施方式中,所述用户界面中空闲空间不足以放置所述待添加元素,包括如下至少一种:In a possible implementation manner, the free space in the user interface is insufficient to place the element to be added, including at least one of the following:
所述待添加元素所占单元格之间的位置分布不同于所述用户界面中空闲单元格之间的位置分布;The position distribution between the cells occupied by the element to be added is different from the position distribution between the idle cells in the user interface;
所述待添加元素形状不同于所述用户界面中空闲空间形状;The shape of the element to be added is different from the shape of the free space in the user interface;
所述待添加元素所占面积大于所述用户界面中空闲空间面积;The area occupied by the element to be added is larger than the area of the free space in the user interface;
所述待添加元素所占单元格的数量大于所述用户界面中空闲单元格的数量。The number of cells occupied by the element to be added is greater than the number of free cells in the user interface.
在一种可能的实施方式中,所述装置还包括放置模块,其中,In a possible implementation, the device further includes a placement module, wherein,
所述放置模块用于,在所述拆分模块将所述组合元素拆分成至少两个元素之后,根据拆分后的元素的优先级信息,将所述至少两个元素依次放置到所述用户界面的空闲空间中。The placing module is configured to, after the splitting module splits the combined element into at least two elements, place the at least two elements in sequence on the said at least two elements according to the priority information of the split elements. in the free space of the user interface.
在一种可能的实施方式中,所述拆分后的元素的优先级信息,包括如下 至少一种:In a possible implementation manner, the priority information of the split elements includes at least one of the following:
拆分所述组合元素的先后顺序;the sequence of splitting the combined elements;
或用户使用频率从低到高,或从高到低的顺序。Or the order of user frequency from low to high, or from high to low.
在一种可能的实施方式中,所述装置还包括调整模块,其中,In a possible implementation, the device further includes an adjustment module, wherein,
所述调整模块用于,在所述拆分模块将所述组合元素拆分成至少两个元素之前,调整所述待添加元素的属性信息和/或所述用户界面中元素的布局信息。The adjusting module is configured to, before the splitting module splits the combined element into at least two elements, adjust the attribute information of the element to be added and/or the layout information of the element in the user interface.
在一种可能的实施方式中,所述调整模块还用于,在所述拆分模块将所述组合元素拆分成至少两个元素之后,调整所述元素的属性信息和/或所述用户界面中元素的布局信息。In a possible implementation manner, the adjustment module is further configured to, after the splitting module splits the combined element into at least two elements, adjust the attribute information of the element and/or the user Layout information for elements in the interface.
在一种可能的实施方式中,所述属性信息包括如下信息中的至少一种:所述待添加元素所占面积、所述待添加元素所占单元格的数量、所述待添加元素所占单元格之间的位置分布、所述待添加元素形状、所述待添加元素的组合方式、所述待添加元素的优先级信息;和/或,In a possible implementation manner, the attribute information includes at least one of the following information: the area occupied by the element to be added, the number of cells occupied by the element to be added, the occupied area of the element to be added The location distribution between cells, the shape of the element to be added, the combination of the element to be added, the priority information of the element to be added; and/or,
所述布局信息包括如下信息中的至少一种:所述用户界面中空闲空间面积、所述用户界面中空闲单元格的数量、所述用户界面中空闲单元格之间的位置分布、所述用户界面中空闲空间形状、所述用户界面中已有元素之间的间距、所述用户界面中已有元素的优先级信息。The layout information includes at least one of the following information: the area of free space in the user interface, the number of free cells in the user interface, the location distribution between free cells in the user interface, the user interface The shape of the free space in the interface, the spacing between the existing elements in the user interface, and the priority information of the existing elements in the user interface.
在一种可能的实施方式中,所述属性信息的调整方式包括以下至少一种:缩小或裁剪所占面积、减少所占单元格的数量、调整所占单元格之间的位置分布或所述待添加元素形状、调整所述待添加元素的组合方式或优先级信息;和/或,In a possible implementation manner, the adjustment method of the attribute information includes at least one of the following: reducing or cropping the occupied area, reducing the number of occupied cells, adjusting the position distribution between the occupied cells, or the The shape of the element to be added, the combination method or priority information of adjusting the element to be added; and/or,
所述布局信息的调整方式包括以下至少一种:放大或扩大空闲空间面积、增加空闲单元格的数量、调整空闲单元格之间的位置分布或空闲空间形状、调整已有元素之间的间距或优先级信息。The adjustment method of the layout information includes at least one of the following: enlarging or expanding the area of the free space, increasing the number of free cells, adjusting the position distribution between the free cells or the shape of the free space, adjusting the spacing between existing elements or priority information.
在一种可能的实施方式中,所述将所述组合元素拆分成至少两个元素的方式,包括以下至少一种:In a possible implementation manner, the manner of splitting the combined element into at least two elements includes at least one of the following:
根据预设的组合元素拆分方式进行拆分;Split according to the preset splitting method of combined elements;
根据所述属性信息和/或所述布局信息进行拆分。Splitting is performed according to the attribute information and/or the layout information.
第四方面,本申请实施例提供一种设备控制方法,包括确定模块、移动 模块和放置模块,其中,In a fourth aspect, the embodiments of the present application provide a device control method, including a determination module, a movement module, and a placement module, wherein,
所述确定模块用于,确定待添加元素和用户界面;所述用户界面为放置所述待添加元素的界面;The determining module is used for determining an element to be added and a user interface; the user interface is an interface for placing the element to be added;
所述移动模块用于,若所述用户界面中空闲空间不足以放置所述待添加元素,则将所述用户界面的至少一个已有元素移动到其它用户界面;The moving module is configured to, if the free space in the user interface is not enough to place the element to be added, move at least one existing element of the user interface to another user interface;
所述放置模块用于,根据所述待添加元素的优先级信息,将所述待添加元素放置到所述用户界面的空间中;The placing module is configured to, according to the priority information of the element to be added, place the element to be added in the space of the user interface;
将所述用户界面的至少一个已有元素移动到其它用户界面,包括如下至少一种:Moving at least one existing element of the user interface to another user interface includes at least one of the following:
将所述用户界面的至少一个已有元素按第一顺序依次移动到其他用户界面;所述第一顺序为从后到前,或从前到后的顺序;moving at least one existing element of the user interface to other user interfaces in a first order; the first order is from back to front, or from front to back;
或将所述用户界面的至少一个已有元素按第二顺序依次移动到其他用户界面;所述第二顺序为用户使用频率从低到高的顺序;Or move at least one existing element of the user interface to other user interfaces in a second order; the second order is the order of user frequency from low to high;
或将所述用户界面的至少一个已有元素移动到其它用户界面,以在用户界面得到N个空闲单元格空间;所述N为待添加元素所占单元格数量;其中N为正整数。Or move at least one existing element of the user interface to another user interface, so as to obtain N free cell spaces in the user interface; the N is the number of cells occupied by the element to be added; wherein N is a positive integer.
在一种可能的实施方式中,所述放置模块具体用于:In a possible implementation manner, the placement module is specifically used for:
确定所述用户界面的单元格的状态;determining the state of a cell of the user interface;
根据所述单元格的状态,将所述待添加元素放置到所述用户界面的空间中,其中,所述单元格的状态包括空闲状态或占用状态;所述空闲状态为待放置元素状态;所述占用状态为已放置元素状态。The element to be added is placed in the space of the user interface according to the state of the cell, wherein the state of the cell includes an idle state or an occupied state; the idle state is the state of the element to be placed; the The occupied state is the placed element state.
在一种可能的实施方式中,所述放置模块具体用于:In a possible implementation manner, the placement module is specifically used for:
若所述单元格的状态为空闲状态,则将所述待添加元素放置到所述用户界面的空闲状态的单元格中;If the state of the cell is an idle state, placing the element to be added into a cell in the idle state of the user interface;
确定所述用户界面中的待移动元素;determining the element to be moved in the user interface;
调整所述待移动元素的属性信息和/或所述用户界面中元素的布局信息,将所述待移动元素移动到所述用户界面的空闲空间中。The attribute information of the element to be moved and/or the layout information of the element in the user interface is adjusted, and the element to be moved is moved to the free space of the user interface.
在一种可能的实施方式中,所述用户界面中空闲空间不足以放置所述待添加元素,包括以下至少一种:In a possible implementation manner, the free space in the user interface is insufficient to place the element to be added, including at least one of the following:
所述待添加元素所占面积大于所述用户界面中空闲空间面积;The area occupied by the element to be added is larger than the area of the free space in the user interface;
所述待添加元素所占单元格的数量大于所述用户界面中空闲单元格的数量;The number of cells occupied by the element to be added is greater than the number of free cells in the user interface;
所述待添加元素所占单元格之间的位置分布不同于所述用户界面中空闲单元格之间的位置分布;The position distribution between the cells occupied by the element to be added is different from the position distribution between the idle cells in the user interface;
所述待添加元素形状不同于所述用户界面中空闲空间形状。The shape of the element to be added is different from the shape of the free space in the user interface.
在一种可能的实施方式中,所述装置还包括调整模块,其中,In a possible implementation, the device further includes an adjustment module, wherein,
所述调整模块用于,在所述移动模块将所述用户界面的至少一个已有元素移动到其它用户界面之前,调整所述待添加元素的属性信息和/或所述用户界面中元素的布局信息。The adjustment module is configured to, before the moving module moves at least one existing element of the user interface to another user interface, adjust the attribute information of the element to be added and/or the layout of the elements in the user interface information.
在一种可能的实施方式中,所述调整模块还用于,在所述移动模块将所述用户界面的至少一个已有元素移动到其它用户界面之后,调整所述已有元素的属性信息和/或所述用户界面中元素的布局信息。In a possible implementation manner, the adjustment module is further configured to, after the moving module moves at least one existing element of the user interface to another user interface, adjust the attribute information and the attribute information of the existing element. /or layout information of elements in the user interface.
在一种可能的实施方式中,所述属性信息包括如下信息中的至少一种:所述待添加元素所占面积、所述待添加元素所占单元格的数量、所述待添加元素所占单元格之间的位置分布、所述待添加元素形状、所述待添加元素的组合方式、所述待添加元素的优先级信息;和/或,In a possible implementation manner, the attribute information includes at least one of the following information: the area occupied by the element to be added, the number of cells occupied by the element to be added, the occupied area of the element to be added The location distribution between cells, the shape of the element to be added, the combination of the element to be added, the priority information of the element to be added; and/or,
所述布局信息包括如下信息中的至少一种:所述用户界面中空闲空间面积、所述用户界面中空闲单元格的数量、所述用户界面中空闲单元格之间的位置分布、所述用户界面中空闲空间形状、所述用户界面中已有元素之间的间距、所述用户界面中已有元素的优先级信息。The layout information includes at least one of the following information: the area of free space in the user interface, the number of free cells in the user interface, the location distribution between free cells in the user interface, the user interface The shape of the free space in the interface, the spacing between the existing elements in the user interface, and the priority information of the existing elements in the user interface.
在一种可能的实施方式中,所述属性信息的调整方式包括以下至少一种:缩小或裁剪所占面积、减少所占单元格的数量、调整所占单元格之间的位置分布或所述待添加元素形状、调整所述待添加元素的组合方式或优先级信息;和/或,In a possible implementation manner, the adjustment method of the attribute information includes at least one of the following: reducing or cropping the occupied area, reducing the number of occupied cells, adjusting the position distribution between the occupied cells, or the The shape of the element to be added, the combination method or priority information of adjusting the element to be added; and/or,
所述布局信息的调整方式包括以下至少一种:放大或扩大空闲空间面积、增加空闲单元格的数量、调整空闲单元格之间的位置分布或空闲空间形状、调整已有元素之间的间距或优先级信息。The adjustment method of the layout information includes at least one of the following: enlarging or expanding the area of the free space, increasing the number of free cells, adjusting the position distribution between the free cells or the shape of the free space, adjusting the spacing between existing elements or priority information.
在一种可能的实施方式中,所述移动模块具体用于:In a possible implementation manner, the moving module is specifically used for:
根据预设的移动方式进行移动;或者,Move according to a preset movement pattern; or,
根据所述属性信息和/或所述布局信息进行移动。The movement is performed according to the attribute information and/or the layout information.
第五方面,本申请实施例提供一种设备控制装置,包括:至少一个处理器和存储器;In a fifth aspect, an embodiment of the present application provides a device control apparatus, including: at least one processor and a memory;
所述存储器用于存储计算机执行指令;the memory is used to store computer-executable instructions;
所述至少一个处理器用于执行所述存储器中存储的计算机执行指令,使得所述至少一个处理器执行上述第一方面任一项所述的设备控制方法。The at least one processor is configured to execute computer-executable instructions stored in the memory, so that the at least one processor executes the device control method according to any one of the first aspects above.
第六方面,本申请实施例提供一种设备控制装置,包括:至少一个处理器和存储器;In a sixth aspect, an embodiment of the present application provides a device control apparatus, including: at least one processor and a memory;
所述存储器用于存储计算机执行指令;the memory is used to store computer-executable instructions;
所述至少一个处理器用于执行所述存储器中存储的计算机执行指令,使得所述至少一个处理器执行上述第二方面任一项所述的设备控制方法。The at least one processor is configured to execute computer-executable instructions stored in the memory, so that the at least one processor executes the device control method according to any one of the second aspect above.
第七方面,本申请实施例提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如上述第一方面任意一项所述的设备控制方法。In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and when a processor executes the computer-executable instructions, any one of the above-mentioned first aspects is implemented. The device control method described in item.
第八方面,本申请实施例提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如上述第二方面任意一项所述的设备控制方法。In an eighth aspect, an embodiment of the present application provides a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and when a processor executes the computer-executable instructions, any one of the above-mentioned second aspects is implemented. The device control method described in item.
本申请实施例提供的设备控制方法、装置和存储介质,通过将待添加元素拆分成至少两个元素,将拆分后的元素分别放置到用户界面,避免了由于用户界面中空闲空间位置分布或形状不同于待添加元素位置分布或形状,使得待添加元素不能放置到用户界面,浪费用户界面的空间,因此,提高了用户界面的空间利用率。In the device control method, device, and storage medium provided by the embodiments of the present application, the elements to be added are split into at least two elements, and the split elements are respectively placed on the user interface, thereby avoiding the distribution of free space in the user interface due to the Or the shape is different from the position distribution or shape of the element to be added, so that the element to be added cannot be placed in the user interface, and the space of the user interface is wasted, thus improving the space utilization rate of the user interface.
附图说明Description of drawings
为了更清楚地说明本申请实施例的技术方案,下面将对实施例描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions of the embodiments of the present application more clearly, the following briefly introduces the accompanying drawings used in the description of the embodiments. Obviously, the drawings in the following description are some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without any creative effort.
图1为实现本申请各个实施例的一种移动终端的硬件结构示意图;1 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present application;
图2为本申请实施例提供的一种通信网络系统架构图;FIG. 2 is an architecture diagram of a communication network system provided by an embodiment of the present application;
图3为本申请实施例提供的应用场景示意图;3 is a schematic diagram of an application scenario provided by an embodiment of the present application;
图4为本申请实施例提供的一种设备控制方法的流程示意图;FIG. 4 is a schematic flowchart of a device control method provided by an embodiment of the present application;
图5为本申请实施例提供的组合元素的示意图;5 is a schematic diagram of a combination element provided by an embodiment of the present application;
图6A为本申请实施例提供的一种用户界面示意图;6A is a schematic diagram of a user interface provided by an embodiment of the present application;
图6B为本申请实施例提供的另一种用户界面示意图;6B is a schematic diagram of another user interface provided by an embodiment of the present application;
图7为本申请实施例提供的另一种设备控制方法;FIG. 7 provides another device control method according to an embodiment of the present application;
图8为本申请实施例提供的界面元素添加示意图;FIG. 8 is a schematic diagram of adding interface elements provided by an embodiment of the present application;
图9为本申请实施例提供的又一种设备控制方法的流程示意图;FIG. 9 is a schematic flowchart of another device control method provided by an embodiment of the present application;
图10为本申请实施例提供的另一种设备控制方法的流程示意图;10 is a schematic flowchart of another device control method provided by an embodiment of the present application;
图11为本申请实施例提供的另一种设备控制方法中界面元素添加示意图;11 is a schematic diagram of adding interface elements in another device control method provided by an embodiment of the present application;
图12为本申请实施例提供的又一种设备控制方法的流程示意图;12 is a schematic flowchart of another device control method provided by an embodiment of the present application;
图13为本申请实施例提供的又一种设备控制方法中界面元素添加示意图;13 is a schematic diagram of adding interface elements in yet another device control method provided by an embodiment of the present application;
图14为本申请实施例提供的第五种设备控制方法的流程示意图;14 is a schematic flowchart of a fifth device control method provided by an embodiment of the present application;
图15为本申请实施例提供的再一种设备控制方法中界面元素添加示意图;15 is a schematic diagram of adding interface elements in yet another device control method provided by an embodiment of the present application;
图16为本申请实施例提供的另一种设备控制方法的流程示意图;16 is a schematic flowchart of another device control method provided by an embodiment of the present application;
图17为本申请实施例提供的另一种设备控制方法中界面元素添加示意图;17 is a schematic diagram of adding interface elements in another device control method provided by an embodiment of the present application;
图18为本申请实施例提供的用户界面已有元素缩小示意图;FIG. 18 is a schematic diagram of a reduced existing element of a user interface provided by an embodiment of the present application;
图19为本申请实施例提供的另一种设备控制方法的流程示意图;19 is a schematic flowchart of another device control method provided by an embodiment of the present application;
图20为本申请实施例提供的另一种设备控制方法中界面元素添加示意图;20 is a schematic diagram of adding interface elements in another device control method provided by an embodiment of the present application;
图21为本申请实施例提供的一种设备控制装置的结构示意图;FIG. 21 is a schematic structural diagram of a device control apparatus provided by an embodiment of the application;
图22为本申请实施例提供的另一种设备控制装置的结构示意图;FIG. 22 is a schematic structural diagram of another device control apparatus provided by an embodiment of the present application;
图23为本申请实施例提供的另一种设备控制装置的结构示意图;23 is a schematic structural diagram of another device control apparatus provided by an embodiment of the application;
图24为本申请实施例提供的再一种设备控制装置的结构示意图;FIG. 24 is a schematic structural diagram of still another device control apparatus provided by an embodiment of the present application;
图25为本申请实施例提供的设备控制装置的硬件结构示意图。FIG. 25 is a schematic diagram of a hardware structure of a device control apparatus provided by an embodiment of the present application.
具体实施方式detailed description
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。It should be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application.
在后续的描述中,使用用于表示元件的诸如“模块”、“部件”或“单元”的后缀仅为了有利于本申请的说明,其本身没有特定的意义。因此,“模块”、“部件”或“单元”可以混合地使用。In the following description, suffixes such as 'module', 'component' or 'unit' used to represent elements are used only to facilitate the description of the present application, and have no specific meaning per se. Thus, "module", "component" or "unit" may be used interchangeably.
装置可以以各种形式来实施。例如,本申请中描述的装置可以包括诸如手机、平板电脑、笔记本电脑、掌上电脑、个人数字助理(Personal Digital Assistant,PDA)、便捷式媒体播放器(Portable Media Player,PMP)、导航装置、可穿戴设备、智能手环、计步器等移动终端,以及诸如数字TV、台式计算机等固定终端。The apparatus may be implemented in various forms. For example, the devices described in this application may include devices such as cell phones, tablet computers, notebook computers, PDAs, Personal Digital Assistants (PDAs), Portable Media Players (PMPs), navigation devices, Mobile terminals such as wearable devices, smart bracelets, and pedometers, as well as stationary terminals such as digital TVs and desktop computers.
后续描述中将以移动终端为例进行说明,本领域技术人员将理解的是,除了特别用于移动目的的元件之外,根据本申请的实施方式的构造也能够应用于固定类型的终端。In the following description, a mobile terminal will be used as an example, and those skilled in the art will understand that, in addition to elements specially used for mobile purposes, the configurations according to the embodiments of the present application can also be applied to stationary type terminals.
请参阅图1,其为实现本申请各个实施例的一种移动终端的硬件结构示意图,该移动终端100可以包括:RF(Radio Frequency,射频)单元101、WiFi模块102、音频输出单元103、A/V(音频/视频)输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109、处理器110、以及电源111等部件。本领域技术人员可以理解,图1中示出的移动终端结构并不构成对移动终端的限定,移动终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Please refer to FIG. 1 , which is a schematic diagram of the hardware structure of a mobile terminal implementing various embodiments of the present application. The mobile terminal 100 may include: an RF (Radio Frequency, radio frequency) unit 101, a WiFi module 102, an audio output unit 103, a /V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111 and other components. Those skilled in the art can understand that the structure of the mobile terminal shown in FIG. 1 does not constitute a limitation on the mobile terminal, and the mobile terminal may include more or less components than the one shown, or combine some components, or different components layout.
下面结合图1对移动终端的各个部件进行具体的介绍:Below in conjunction with Fig. 1, each component of the mobile terminal is introduced in detail:
射频单元101可用于收发信息或通话过程中,信号的接收和发送,具体的,将基站的下行信息接收后,给处理器110处理;另外,将上行的数据发送给基站。通常,射频单元101包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元101还可以通过 无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于GSM(Global System of Mobile communication,全球移动通讯系统)、GPRS(General Packet Radio Service,通用分组无线服务)、CDMA2000(Code Division Multiple Access 2000,码分多址2000)、WCDMA(Wideband Code Division Multiple Access,宽带码分多址)、TD-SCDMA(Time Division-Synchronous Code Division Multiple Access,时分同步码分多址)、FDD-LTE(Frequency Division Duplexing-Long Term Evolution,频分双工长期演进)和TDD-LTE(Time Division Duplexing-Long Term Evolution,分时双工长期演进)等。The radio frequency unit 101 can be used for receiving and sending signals during transmission and reception of information or during a call. Specifically, after receiving the downlink information of the base station, it is processed by the processor 110; in addition, the uplink data is sent to the base station. Generally, the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with the network and other devices through wireless communication. The above-mentioned wireless communication can use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication, Global System for Mobile Communication), GPRS (General Packet Radio Service, General Packet Radio Service), CDMA2000 (Code Division Multiple Access 2000 , Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access, Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, Time Division Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency division duplexing long term evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplexing long term evolution) and so on.
WiFi属于短距离无线传输技术,移动终端通过WiFi模块102可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图1示出了WiFi模块102,但是可以理解的是,其并不属于移动终端的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-distance wireless transmission technology, and the mobile terminal can help users to send and receive emails, browse web pages, access streaming media, etc. through the WiFi module 102, which provides users with wireless broadband Internet access. Although FIG. 1 shows the WiFi module 102, it can be understood that it is not a necessary component of the mobile terminal, and can be completely omitted as required within the scope of not changing the essence of the invention.
音频输出单元103可以在移动终端100处于呼叫信号接收模式、通话模式、记录模式、语音识别模式、广播接收模式等等模式下时,将射频单元101或WiFi模块102接收的或者在存储器109中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元103还可以提供与移动终端100执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元103可以包括扬声器、蜂鸣器等等。When the mobile terminal 100 is in a call signal receiving mode, a talking mode, a recording mode, a voice recognition mode, a broadcast receiving mode, etc., the audio output unit 103 can store the data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109. The audio data is converted into audio signal and output as sound. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (eg, call signal reception sound, message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
A/V输入单元104用于接收音频或视频信号。A/V输入单元104可以包括图形处理器(Graphics Processing Unit,GPU)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元106上。经图形处理器1041处理后的图像帧可以存储在存储器109(或其它存储介质)中或者经由射频单元101或WiFi模块102进行发送。麦克风1042可以在电话通话模式、记录模式、语音识别模式等等运行模式中经由麦克风1042接收声音(音频数据),并且能够将这样的声音处理为音频数据。处理后的音频(语音)数据可以在电话通话模式的情况下转换为可经由射频单元101发送到移动通信基站的格式输出。麦克风1042可以实施各种类型的 噪声消除(或抑制)算法以消除(或抑制)在接收和发送音频信号的过程中产生的噪声或者干扰。The A/V input unit 104 is used to receive audio or video signals. The A/V input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, and the graphics processor 1041 responds to still pictures or images obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The image data of the video is processed. The processed image frames may be displayed on the display unit 106 . The image frames processed by the graphics processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102 . The microphone 1042 can receive sound (audio data) via the microphone 1042 in a telephone call mode, a recording mode, a voice recognition mode, etc. operating modes, and can process such sound into audio data. The processed audio (voice) data can be converted into a format that can be transmitted to a mobile communication base station via the radio frequency unit 101 for output in the case of a telephone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to remove (or suppress) noise or interference generated in the process of receiving and transmitting audio signals.
移动终端100还包括至少一种传感器105,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板1061的亮度,接近传感器可在移动终端100移动到耳边时,关闭显示面板1061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light, and the proximity sensor can close the display panel 1061 and the display panel 1061 when the mobile terminal 100 is moved to the ear. / or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes), and can detect the magnitude and direction of gravity when it is stationary. games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the fingerprint sensor, pressure sensor, iris sensor, molecular sensor, gyroscope, barometer, hygrometer, etc. Other sensors such as thermometers, infrared sensors, etc. will not be repeated here.
显示单元106用于显示由用户输入的信息或提供给用户的信息。显示单元106可包括显示面板1061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板1061。The display unit 106 is used to display information input by the user or information provided to the user. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
用户输入单元107可用于接收输入的数字或字符信息,以及产生与移动终端的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元107可包括触控面板1071以及其他输入设备1072。触控面板1071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板1071上或在触控面板1071附近的操作),并根据预先设定的程式驱动相应的连接装置。触控面板1071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器110,并能接收处理器110发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板1071。除了触控面板1071,用户输入单元107还可以包括其他输入设备1072。具体地,其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种,具体此处不做限定。The user input unit 107 may be used to receive input numerical or character information, and generate key signal input related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072 . The touch panel 1071, also referred to as a touch screen, can collect the user's touch operations on or near it (such as the user's finger, stylus, etc., any suitable object or attachment on or near the touch panel 1071). operation), and drive the corresponding connection device according to the preset program. The touch panel 1071 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the touch controller. To the processor 110, and can receive the command sent by the processor 110 and execute it. In addition, the touch panel 1071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 1071 , the user input unit 107 may also include other input devices 1072 . Specifically, other input devices 1072 may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, operation sticks, etc., which are not specifically limited here. .
进一步的,触控面板1071可覆盖显示面板1061,当触控面板1071检测到在其上或附近的触摸操作后,传送给处理器110以确定触摸事件的类型,随后处理器110根据触摸事件的类型在显示面板1061上提供相应的视觉输出。虽然在图1中,触控面板1071与显示面板1061是作为两个独立的部件来实现移动终端的输入和输出功能,但是在某些实施例中,可以将触控面板1071与显示面板1061集成而实现移动终端的输入和输出功能,具体此处不做限定。Further, the touch panel 1071 can cover the display panel 1061, and when the touch panel 1071 detects a touch operation on or near it, it transmits it to the processor 110 to determine the type of the touch event, and then the processor 110 determines the type of the touch event according to the touch event. Type provides corresponding visual output on display panel 1061 . Although in FIG. 1 , the touch panel 1071 and the display panel 1061 are used as two independent components to realize the input and output functions of the mobile terminal, but in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated The input and output functions of the mobile terminal are implemented, which is not specifically limited here.
接口单元108用作至少一个外部装置与移动终端100连接可以通过的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元108可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到移动终端100内的一个或多个元件或者可以用于在移动终端100和外部装置之间传输数据。The interface unit 108 serves as an interface through which at least one external device can be connected to the mobile terminal 100 . For example, external devices may include wired or wireless headset ports, external power (or battery charger) ports, wired or wireless data ports, memory card ports, ports for connecting devices with identification modules, audio input/output (I/O) ports, video I/O ports, headphone ports, and more. The interface unit 108 may be used to receive input (eg, data information, power, etc.) from an external device and transmit the received input to one or more elements within the mobile terminal 100 or may be used between the mobile terminal 100 and the external Transfer data between devices.
存储器109可用于存储软件程序以及各种数据。存储器109可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器109可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a stored program area and a stored data area, wherein the stored program area may store an operating system, an application program (such as a sound playback function, an image playback function, etc.) required for at least one function, and the like; Data created by the use of the mobile phone (such as audio data, phone book, etc.), etc. Additionally, memory 109 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
处理器110是移动终端的控制中心,利用各种接口和线路连接整个移动终端的各个部分,通过运行或执行存储在存储器109内的软件程序和/或模块,以及调用存储在存储器109内的数据,执行移动终端的各种功能和处理数据,从而对移动终端进行整体监控。处理器110可包括一个或多个处理单元;优选的,处理器110可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。The processor 110 is the control center of the mobile terminal, uses various interfaces and lines to connect various parts of the entire mobile terminal, runs or executes the software programs and/or modules stored in the memory 109, and calls the data stored in the memory 109. , perform various functions of the mobile terminal and process data, so as to monitor the mobile terminal as a whole. The processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem The processor mainly handles wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 110 .
移动终端100还可以包括给各个部件供电的电源111(比如电池),优选的,电源111可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile terminal 100 may also include a power supply 111 (such as a battery) for supplying power to various components. Preferably, the power supply 111 may be logically connected to the processor 110 through a power management system, so as to manage charging, discharging, and power consumption management through the power management system and other functions.
尽管图1未示出,移动终端100还可以包括蓝牙模块等,在此不再赘述。Although not shown in FIG. 1 , the mobile terminal 100 may also include a Bluetooth module, etc., which will not be described herein again.
为了便于理解本申请实施例,下面对本申请的移动终端所基于的通信网络系统进行描述。To facilitate understanding of the embodiments of the present application, a communication network system on which the mobile terminal of the present application is based is described below.
请参阅图2,图2为本申请实施例提供的一种通信网络系统架构图,该通信网络系统为通用移动通信技术的LTE系统,该LTE系统包括依次通讯连接的UE(User Equipment,用户设备)201,E-UTRAN(Evolved UMTS Terrestrial Radio Access Network,演进式UMTS陆地无线接入网)202,EPC(Evolved Packet Core,演进式分组核心网)203和运营商的IP业务204。Please refer to FIG. 2. FIG. 2 is an architecture diagram of a communication network system provided by an embodiment of the application. The communication network system is an LTE system of universal mobile communication technology. ) 201, E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, Evolved UMTS Terrestrial Radio Access Network) 202, EPC (Evolved Packet Core, Evolved Packet Core) 203 and the operator's IP service 204.
具体地,UE201可以是上述终端100,此处不再赘述。Specifically, the UE 201 may be the above-mentioned terminal 100, which will not be repeated here.
E-UTRAN202包括eNodeB2021和其它eNodeB2022等。其中,eNodeB2021可以通过回程(backhaul)(例如X2接口)与其它eNodeB2022连接,eNodeB2021连接到EPC203,eNodeB2021可以提供UE201到EPC203的接入。 E-UTRAN 202 includes eNodeB 2021 and other eNodeB 2022 and the like. The eNodeB 2021 can be connected to other eNodeBs 2022 through a backhaul (eg X2 interface), the eNodeB 2021 is connected to the EPC 203 , and the eNodeB 2021 can provide access from the UE 201 to the EPC 203 .
EPC203可以包括MME(Mobility Management Entity,移动性管理实体)2031,HSS(Home Subscriber Server,归属用户服务器)2032,其它MME2033,SGW(Serving Gate Way,服务网关)2034,PGW(PDN Gate Way,分组数据网络网关)2035和PCRF(Policy and Charging Rules Function,政策和资费功能实体)2036等。其中,MME2031是处理UE201和EPC203之间信令的控制节点,提供承载和连接管理。HSS2032用于提供一些寄存器来管理诸如归属位置寄存器(图中未示)之类的功能,并且保存有一些有关服务特征、数据速率等用户专用的信息。所有用户数据都可以通过SGW2034进行发送,PGW2035可以提供UE 201的IP地址分配以及其它功能,PCRF2036是业务数据流和IP承载资源的策略与计费控制策略决策点,它为策略与计费执行功能单元(图中未示)选择及提供可用的策略和计费控制决策。 EPC 203 may include MME (Mobility Management Entity, Mobility Management Entity) 2031, HSS (Home Subscriber Server, Home Subscriber Server) 2032, other MME 2033, SGW (Serving Gate Way, Serving Gateway) 2034, PGW (PDN Gate Way, packet data network gateway) 2035 and PCRF (Policy and Charging Rules Function, policy and charging functional entity) 2036 and so on. Among them, MME2031 is a control node that processes signaling between UE201 and EPC203, and provides bearer and connection management. The HSS2032 is used to provide some registers to manage functions such as the home location register (not shown in the figure), and to store some user-specific information about service characteristics, data rates, etc. All user data can be sent through SGW2034, PGW2035 can provide IP address allocation and other functions of UE 201, PCRF2036 is the policy and charging control policy decision point of service data flow and IP bearer resources, it is the policy and charging execution function A unit (not shown) selects and provides available policy and charging control decisions.
IP业务204可以包括因特网、内联网、IMS(IP Multimedia Subsystem,IP多媒体子系统)或其它IP业务等。The IP service 204 may include the Internet, an intranet, an IMS (IP Multimedia Subsystem, IP Multimedia Subsystem) or other IP services.
虽然上述以LTE系统为例进行了介绍,但本领域技术人员应当知晓,本申请不仅仅适用于LTE系统,也可以适用于其他无线通信系统,例如GSM、CDMA2000、WCDMA、TD-SCDMA以及未来新的网络系统等,此处不做限定。Although the above takes the LTE system as an example, those skilled in the art should know that this application is not only applicable to the LTE system, but also applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA and future new The network system, etc., is not limited here.
基于上述移动终端硬件结构以及通信网络系统,提出本申请各个实施例。Based on the above-mentioned mobile terminal hardware structure and communication network system, various embodiments of the present application are proposed.
图3为本申请实施例提供的应用场景示意图。请参见图3,包括电子设备100、用户界面101、待添加元素102和已有元素103。FIG. 3 is a schematic diagram of an application scenario provided by an embodiment of the present application. Referring to FIG. 3 , it includes an electronic device 100 , a user interface 101 , an element to be added 102 and an existing element 103 .
电子设备100可以是手机、平板电脑等,电子设备的系统可以是安卓系统。用户界面101可以是电子设备的主桌面界面,也可以是辅桌面界面,该界面可以被划分为多个单元格,这些单元格用来放置各种元素(如待添加元素102、已有元素103)。待添加元素102可以是用户界面中还未被放置完成的元素。在图3中用虚线表示。已有元素103可以是用户界面中已经被放置完成的元素。在图3中用实线圆角方框表示。待添加元素102和已有元素103可以包括应用图标、应用程序中某一功能的快捷方式图标或widget(微件)图标等。The electronic device 100 may be a mobile phone, a tablet computer, etc., and the system of the electronic device may be an Android system. The user interface 101 may be the main desktop interface of the electronic device or the auxiliary desktop interface, and the interface may be divided into a plurality of cells, and these cells are used to place various elements (such as the element to be added 102, the existing element 103). ). The element to be added 102 may be an element in the user interface that has not yet been placed. It is indicated by a dashed line in FIG. 3 . Existing elements 103 may be elements that have already been placed in the user interface. It is represented by a solid line rounded box in Figure 3. The element to be added 102 and the existing element 103 may include an application icon, a shortcut icon or a widget (widget) icon of a function in the application, and the like.
一些情况下,用户需要将待添加元素102添加到电子设备100的用户界面101,以方便使用,比如将时间和天气组合元素添加到手机的主桌面界面,以方便用户查看时间和天气。或者,用户需要将待添加元素102添加到电子设备100的用户界面101后,在用户界面101中移动,以使元素可以按照用户的意愿排列,比如按照用户使用频率,将使用频率较高的元素移动到电子设备的同一用户界面。In some cases, the user needs to add the element 102 to be added to the user interface 101 of the electronic device 100 for convenience, such as adding a time and weather combination element to the main desktop interface of the mobile phone to facilitate the user to check the time and weather. Alternatively, the user needs to add the element 102 to be added to the user interface 101 of the electronic device 100 and then move it in the user interface 101, so that the elements can be arranged according to the user's wishes, for example, according to the user's frequency of use, move the element with higher frequency of use to the same user interface of the electronic device.
本申请中,通过确定待添加元素和用户界面,获取待添加元素的属性信息和用户界面中元素的布局信息,调整待添加元素的属性信息和/或用户界面中元素的布局信息,将待添加元素放置到用户界面的空间中,从而实现元素的添加。这样,结合待添加元素的属性信息和/或用户界面中元素的布局信息,使得用户界面中的空间能够被充分利用,可以提高空间利用率。In this application, by determining the element to be added and the user interface, obtaining the attribute information of the element to be added and the layout information of the element in the user interface, and adjusting the attribute information of the element to be added and/or the layout information of the element in the user interface, the Elements are placed into the space of the user interface, enabling the addition of elements. In this way, combined with the attribute information of the element to be added and/or the layout information of the element in the user interface, the space in the user interface can be fully utilized, and the space utilization rate can be improved.
下面,通过具体实施例对本申请所示的技术方案进行详细说明。需要说明的是,下面几个具体实施例可以相互结合,对于相同或相似的内容,在不同的实施例中不再进行重复说明。Hereinafter, the technical solutions shown in the present application will be described in detail through specific embodiments. It should be noted that the following specific embodiments may be combined with each other, and the same or similar content will not be repeated in different embodiments.
图4为本申请实施例提供的一种设备控制方法的流程示意图,请参见图4,该方法可以包括:FIG. 4 is a schematic flowchart of a device control method provided by an embodiment of the present application. Referring to FIG. 4, the method may include:
S201:确定待添加元素和用户界面,待添加元素为组合元素,用户界面为放置待添加元素的界面。S201: Determine the element to be added and the user interface, the element to be added is a combined element, and the user interface is an interface where the element to be added is placed.
本申请实施例的执行主体可以为电子设备,也可以为设置在电子设备中的设备控制装置。可选的,该设备控制装置可以通过软件实现,也可以通过 软件和硬件的结合实现。The execution body of the embodiment of the present application may be an electronic device, or may be a device control device provided in the electronic device. Optionally, the device control device can be implemented by software, or can be implemented by a combination of software and hardware.
组合元素中包括至少两个元素,即,组合元素为至少两个元素的组合。例如,组合元素中可以包括时间元素和天气元素,或者,组合元素可以包括图案元素和文字元素。A combined element includes at least two elements, that is, a combined element is a combination of at least two elements. For example, a time element and a weather element may be included in the combined element, or the combined element may include a pattern element and a text element.
下面,结合图5,对组合元素进行说明。Next, the combined elements will be described with reference to FIG. 5 .
图5为本申请实施例提供的组合元素的示意图。请参见图5,用户界面中包括组合元素M,组合元素M中包括元素M1和元素M2。FIG. 5 is a schematic diagram of a combination element provided by an embodiment of the present application. Referring to FIG. 5 , the user interface includes a combination element M, and the combination element M includes an element M1 and an element M2.
用户界面可以为放置待添加元素的界面。用户界面可以被划分为多个单元格,该单元格的状态可以为空闲状态或占用状态。在单元格的状态为空闲状态时,可以将待添加元素放置到该单元格,在单元格的状态为占用状态时,则无法再向该单元格放置待添加元素。例如,可以用true表示单元格状态为占用状态,用false表示单元格状态为空闲状态。The user interface may be an interface where elements to be added are placed. The user interface can be divided into a plurality of cells, and the state of the cells can be idle or occupied. When the state of the cell is in the idle state, the element to be added can be placed in the cell, and when the state of the cell is in the occupied state, the element to be added cannot be placed in the cell. For example, you can use true to indicate that the cell state is occupied, and false to indicate that the cell state is idle.
S202:若用户界面中空闲空间不足以放置待添加元素,将组合元素拆分成至少两个元素。S202: If the free space in the user interface is not enough to place the element to be added, split the combined element into at least two elements.
可选的,用户界面中空闲空间不足以放置待添加元素,可以包括如下至少一种情况:Optionally, the free space in the user interface is not enough to place the element to be added, which may include at least one of the following situations:
情况1、待添加元素所占单元格之间的位置分布不同于用户界面中空闲单元格之间的位置分布。Case 1. The position distribution between the cells occupied by the element to be added is different from the position distribution between the idle cells in the user interface.
在该种情况下,用户界面中空闲单元格的数量可能大于或等于待添加元素所占单元格的数量,但是,由于待添加元素所占单元格之间的位置分布不同于用户界面中空闲单元格之间的位置分布,导致用户界面中的空闲空间不足以放置待添加元素。In this case, the number of free cells in the user interface may be greater than or equal to the number of cells occupied by the elements to be added. However, because the location distribution between the cells occupied by the elements to be added is different from that of the free cells in the user interface The location distribution between the grids results in insufficient free space in the user interface to place the elements to be added.
例如,待添加元素所占单元格的位置分布为2*3,而用户界面中空闲单元格位置分布为3*2,则待添加元素所占单元格之间的位置分布与用户界面中空闲单元格之间的位置分布不同。For example, the location distribution of the cells occupied by the element to be added is 2*3, and the location distribution of the free cells in the user interface is 3*2, then the location distribution of the cells occupied by the element to be added is the same as that of the free cells in the user interface. The distribution of positions between cells is different.
下面,结合图6A,对该种情况进行说明。This situation will be described below with reference to FIG. 6A .
图6A为本申请实施例提供的一种用户界面示意图。请参见图6A,用户界面中包括多个单元格,其中,实线所示的单元格的状态为占用状态,虚线所示的单元格的状态为空闲状态。用户界面中还包括待添加元素M,待添加元素M为组合元素,该待添加元素M所占单元格之间的位置分布为1*4(即, 一行四列);用户界面中空闲单元格之间的位置分布为2*2(即,两行两列)。因此,待添加元素所占单元格之间的位置分布不同于用户界面中空闲单元格之间的位置分布。FIG. 6A is a schematic diagram of a user interface provided by an embodiment of the present application. Referring to FIG. 6A , the user interface includes a plurality of cells, wherein the state of the cell shown by the solid line is the occupied state, and the state of the cell shown by the dotted line is the idle state. The user interface also includes an element M to be added, the element M to be added is a combined element, and the position distribution between the cells occupied by the element M to be added is 1*4 (that is, one row and four columns); free cells in the user interface The position distribution between is 2*2 (ie, two rows and two columns). Therefore, the position distribution among the cells occupied by the element to be added is different from the position distribution among the idle cells in the user interface.
当然,在该种情况下,待添加元素所占单元格之间的位置分布、以及用户界面中空闲单元格之间的位置分布还可以为其它,本申请实施例对此不作具体限定。Of course, in this case, the position distribution between the cells occupied by the element to be added and the position distribution between the idle cells in the user interface may also be other, which is not specifically limited in this embodiment of the present application.
情况2、待添加元素形状不同于用户界面中空闲空间形状。Case 2. The shape of the element to be added is different from the shape of the free space in the user interface.
在该种情况下,用户界面中空闲单元格的数量可能大于或等于待添加元素所占单元格的数量,但是,由于待添加元素形状不同于用户界面中空闲空间形状,导致用户界面中的空闲空间不足以放置待添加元素。In this case, the number of free cells in the user interface may be greater than or equal to the number of cells occupied by the elements to be added. However, since the shape of the elements to be added is different from the shape of the free space in the user interface, the idle space in the user interface is caused. There is not enough space to place the element to be added.
例如,待添加元素形状为1*3的长方形,而用户界面中空闲空间形状为2*2的正方形,则待添加元素形状不同于用户界面中空闲空间形状。For example, if the shape of the element to be added is a rectangle of 1*3, and the shape of the free space in the user interface is a square of 2*2, the shape of the element to be added is different from the shape of the free space in the user interface.
下面,结合图6B,对该种情况进行说明。This situation will be described below with reference to FIG. 6B .
图6B为本申请实施例提供的另一种用户界面示意图。请参见图6B,请参见图6B,用户界面中包括多个单元格,其中,实线所示的单元格的状态为占用状态,虚线所示的单元格的状态为空闲状态。用户界面中还包括待添加元素M,待添加元素M为组合元素,该待添加元素M所占单元格之间的位置分布为1*2(即,一行两列);用户界面中空闲单元格之间的位置分布为2*1(即,两行一列)。因此,待添加元素形状不同于用户界面中空闲空间形状。FIG. 6B is a schematic diagram of another user interface provided by an embodiment of the present application. Please refer to FIG. 6B . Referring to FIG. 6B , the user interface includes a plurality of cells, wherein the state of the cell shown by the solid line is the occupied state, and the state of the cell shown by the dotted line is the idle state. The user interface also includes an element M to be added, the element M to be added is a combined element, and the position distribution between the cells occupied by the element M to be added is 1*2 (that is, one row and two columns); free cells in the user interface The position distribution between is 2*1 (ie, two rows and one column). Therefore, the shape of the element to be added is different from the shape of the free space in the user interface.
当然,在该种情况下,待添加元素形状和用户界面中空闲空间的形状还可以为其它,本申请实施例对此不作具体限定。Of course, in this case, the shape of the element to be added and the shape of the free space in the user interface may also be other, which are not specifically limited in this embodiment of the present application.
情况3、待添加元素所占面积大于用户界面中空闲空间面积。Case 3: The area occupied by the element to be added is larger than the area of the free space in the user interface.
情况4、待添加元素所占单元格的数量大于所述用户界面中空闲单元格的数量。Case 4: The number of cells occupied by elements to be added is greater than the number of free cells in the user interface.
将组合元素拆分之后,可以得到至少两个元素,拆分后得到的元素可以为单个元素,也可以为子组合元素,子组合元素中包括至少两个元素(或者单个元素)。After the combined element is split, at least two elements can be obtained, and the obtained element after splitting can be a single element or a sub-combination element, and the sub-combination element includes at least two elements (or a single element).
例如,假设组合元素中包括3个单个元素,分别记为单个元素1、单个元素2和单个元素3,则可以将该组合元素拆分成两个元素,分别记为元素1 和元素2,其中,元素1可以为单个元素1,元素2可以包括单个元素2和单个元素3。For example, assuming that the combined element includes 3 single elements, denoted as single element 1, single element 2 and single element 3, the combined element can be split into two elements, denoted as element 1 and element 2, respectively, where , element 1 can be a single element 1, and element 2 can include a single element 2 and a single element 3.
S203:将至少两个元素分别放置在用户界面的空闲空间中。S203: Place at least two elements in the free space of the user interface respectively.
可选的,还可以通过如下方式放置拆分后的元素到用户界面的空闲空间中:将组合元素拆分成至少两个元素;根据拆分后的元素的优先级信息,将至少两个元素依次放置到用户界面的空闲空间中。Optionally, the split elements can also be placed in the free space of the user interface in the following manner: split the combined element into at least two elements; according to the priority information of the split elements, split the at least two elements. In turn, they are placed in the free space of the user interface.
例如,待添加元素为时间和天气的组合元素,可以将该组合元素拆分成时间元素和天气元素,还可以将该组合中的时间元素拆分成年月日元素和时分秒元素。通过将所占单元格数量大的组合元素拆分成多个所占单元格数量小的元素,可以合理的利用用户界面的空闲空间,以提高用户界面的空间利用率。For example, if the element to be added is a combination element of time and weather, the combination element can be divided into a time element and a weather element, and the time element in the combination can also be divided into a year, month, day, and hour, minute, and second elements. By dividing a combined element with a large number of cells into a plurality of elements with a small number of cells, the free space of the user interface can be reasonably utilized to improve the space utilization of the user interface.
可选的,拆分后的元素的优先级信息,可以包括如下至少一种:拆分组合元素的先后顺序;或用户使用频率从低到高,或从高到低的顺序。Optionally, the priority information of the split elements may include at least one of the following: the order of splitting and combining elements; or the order of user usage frequency from low to high, or from high to low.
可以通过如下方式中的至少一种将组合元素拆分成至少两个元素:根据预设的组合元素拆分方式进行拆分;或者,根据属性信息和/或布局信息进行拆分。例如,预设的组合元素拆分方式包括:若组合元素中包括N个元素,则将组合元素拆分成N个;或将同一属性元素作为一个元素,不同属性元素作为第二个元素,如图6B待添加元素M中年月日元素与时分秒元素均属于时间类元素,则作为一个子组合元素不拆分,天气元素与时间类元素不同,拆分为两个元素;或待添加元素所包含元素间存在不同布局分区,如各个元素有各自边缘,则按元素边缘拆分;各个元素间有分区线,则按元素间分区线进行拆分;或其他用户自定义拆分方式,此处不作限制。The combined element may be split into at least two elements in at least one of the following manners: splitting according to a preset splitting manner of the combined element; or splitting according to attribute information and/or layout information. For example, the preset splitting method of combined elements includes: if the combined element includes N elements, splitting the combined elements into N elements; or using the same attribute element as one element and different attribute elements as the second element, such as In Fig. 6B, the year, month, day, and hour, minute, and second elements in the element M to be added belong to the time element, so they are not split as a sub-combination element, and the weather element is different from the time element, and is split into two elements; or the element to be added There are different layout partitions between the included elements. If each element has its own edge, it will be split according to the edge of the element; if there is a partition line between each element, it will be split according to the partition line between elements; or other user-defined split methods, this There are no restrictions.
在将组合元素拆分成至少两个元素之前,还可以调整待添加元素的属性信息和/或用户界面中元素的布局信息。Before splitting the combined element into at least two elements, the attribute information of the element to be added and/or the layout information of the element in the user interface may also be adjusted.
在将组合元素拆分成至少两个元素之后,还可以调整待添加元素的属性信息和/或用户界面中元素的布局信息。After the combined element is split into at least two elements, the attribute information of the element to be added and/or the layout information of the element in the user interface can also be adjusted.
可选的,可以通过如下多种可能的实现方式调整属性信息:Optionally, the attribute information can be adjusted in the following possible implementation manners:
方式1、缩小或裁剪待添加元素所占面积。Method 1. Reduce or crop the area occupied by the element to be added.
可选的,可以缩小待添加元素,以缩小待添加元素所占面积。或者,可以对待添加元素进行剪裁,以缩小待添加元素所占面积。例如,可以将待添 加元素中重要程度较低的内容剪裁掉,或待添加元素内容或边缘以外的内容剪裁掉。Optionally, the elements to be added may be reduced to reduce the area occupied by the elements to be added. Alternatively, the element to be added can be clipped to reduce the area occupied by the element to be added. For example, the less important content of the element to be added can be trimmed, or the content of the element to be added or the content other than the edge can be trimmed.
方式2、减少待添加元素所占单元格的数量。Method 2: Reduce the number of cells occupied by elements to be added.
可选的,可以通过缩小或者剪裁待添加元素,以实现减少待添加元素所占单元格的数量。Optionally, the element to be added may be reduced or trimmed to reduce the number of cells occupied by the element to be added.
方式3、调整待添加元素所占单元格之间的位置分布。Mode 3: Adjust the position distribution among the cells occupied by the elements to be added.
例如,假设待添加元素所占单元格之间的位置分布为1*4(一行四列),可以将待添加元素所占单元格之间的位置分布调整为2*2(两行两列)。For example, assuming that the position distribution between the cells occupied by the elements to be added is 1*4 (one row and four columns), the position distribution between the cells occupied by the elements to be added can be adjusted to 2*2 (two rows and two columns) .
方式4、调整待添加元素形状。Method 4: Adjust the shape of the element to be added.
待添加元素的形状可以为圆形、正方形、长方形、梯形等。The shape of the element to be added can be circle, square, rectangle, trapezoid, etc.
方式5、调整待添加元素的组合方式或优先级信息。Mode 5: Adjust the combination mode or priority information of the elements to be added.
可选的,布局信息包括如下信息中的至少一种:用户界面中空闲空间面积、用户界面中空闲单元格的数量、用户界面中空闲单元格之间的位置分布、用户界面中空闲空间形状、用户界面中已有元素之间的间距、用户界面中已有元素的优先级信息。Optionally, the layout information includes at least one of the following information: the area of free space in the user interface, the number of free cells in the user interface, the location distribution between the free cells in the user interface, the shape of the free space in the user interface, The spacing between existing elements in the user interface, the priority information of the existing elements in the user interface.
可以通过如下方式中的至少一种调整布局信息:The layout information can be adjusted in at least one of the following ways:
方式1、放大或扩大空闲空间面积。Method 1. Enlarge or expand the free space area.
该空闲空间面积可以是指连续的空闲空间面积。The free space area may refer to a continuous free space area.
例如,可以移动用户界面中至少一个已有元素的位置,以增大用户界面中连续的空闲空间面积。For example, the position of at least one existing element in the user interface may be moved to increase the area of contiguous free space in the user interface.
例如,可以删除用户界面中已有的部分元素,或者,将用户界面中已有的部分元素合并处理。For example, some existing elements in the user interface may be deleted, or some existing elements in the user interface may be merged for processing.
方式2、增加空闲单元格的数量。Method 2. Increase the number of free cells.
例如,可以删除用户界面中已有的部分元素,或者,将用户界面中已有的部分元素合并处理。For example, some existing elements in the user interface may be deleted, or some existing elements in the user interface may be merged for processing.
方式3、调整空闲单元格之间的位置分布或空闲空间形状。Method 3: Adjust the position distribution or the shape of the free space between the free cells.
方式4、调整已有元素之间的间距或优先级信息。Mode 4: Adjust the spacing or priority information between existing elements.
本实施例中,通过将待添加元素拆分成至少两个元素,将拆分后的元素分别放置到用户界面,避免了由于用户界面中空闲空间位置分布或形状不同于待添加元素位置分布或形状,使得待添加元素不能放置到用户界面,浪费 用户界面的空间,因此,提高了用户界面的空间利用率。In this embodiment, by splitting the element to be added into at least two elements, and placing the split elements on the user interface respectively, it is avoided that the position distribution or shape of the free space in the user interface is different from the position distribution or shape of the element to be added. The shape of the element to be added cannot be placed on the user interface, and the space of the user interface is wasted. Therefore, the space utilization rate of the user interface is improved.
图7为本申请实施例提供的另一种设备控制方法,请参见图7,该方法可以包括:FIG. 7 is another device control method provided by an embodiment of the present application. Referring to FIG. 7, the method may include:
S501:确定待添加元素和用户界面。S501: Determine the element to be added and the user interface.
待添加元素可以是元素、多个元素或者组合元素。可以是同一类型的元素,也可以是不同类型的元素。用户界面可以为放置待添加元素的当前界面。该用户界面的空闲空间不连续。具体的,请参见S201。The element to be added can be an element, multiple elements, or a combination of elements. Can be elements of the same type or elements of different types. The user interface may be the current interface where the element to be added is placed. The free space for this UI is not contiguous. For details, please refer to S201.
S502:若用户界面中空闲空间不足以放置待添加元素,则将用户界面的至少一个已有元素移动到其它用户界面。S502: If the free space in the user interface is not enough to place the element to be added, move at least one existing element of the user interface to another user interface.
可选的,其它用户界面可以是电子设备的桌面界面中,除放置待添加元素的当前界面的其它用户界面。Optionally, the other user interface may be a desktop interface of the electronic device other than the current interface where the element to be added is placed.
可选的,用户界面中空闲空间不足以放置待添加元素,可以包括如下至少一种情况:Optionally, the free space in the user interface is not enough to place the element to be added, which may include at least one of the following situations:
情况1、待添加元素所占面积大于用户界面中空闲空间面积。Case 1. The area occupied by the element to be added is larger than the area of the free space in the user interface.
情况2、待添加元素所占单元格的数量大于用户界面中空闲单元格的数量。Case 2: The number of cells occupied by the element to be added is greater than the number of free cells in the user interface.
情况3、待添加元素所占单元格之间的位置分布不同于用户界面中空闲单元格之间的位置分布。Case 3: The position distribution between the cells occupied by the element to be added is different from the position distribution between the idle cells in the user interface.
情况4、待添加元素形状不同于用户界面中空闲空间形状。Case 4. The shape of the element to be added is different from the shape of the free space in the user interface.
需要说明的是,上述四种情况可以参见S202中的描述,此处不再进行赘述。It should be noted that, for the above four situations, reference may be made to the description in S202, which will not be repeated here.
可选的,可以通过如下至少一种方式将用户界面的至少一个已有元素移动到其它用户界面:Optionally, at least one existing element of the user interface can be moved to another user interface in at least one of the following ways:
方式1、将用户界面的至少一个已有元素按第一顺序依次移动到其他用户界面;该第一顺序为从后到前,或从前到后的顺序。Mode 1: Move at least one existing element of the user interface to other user interfaces in a first order; the first order is from back to front, or from front to back.
方式2、将用户界面的至少一个已有元素按第二顺序依次移动到其他用户界面;该第二顺序为用户使用频率从低到高的顺序。Manner 2: Move at least one existing element of the user interface to other user interfaces in a second order; the second order is an order in which the user's usage frequency is from low to high.
方式3、将用户界面的至少一个已有元素移动到其它用户界面,以在用户界面得到N个空闲单元格空间;N为待添加元素所占单元格数量;其中N可以为1,2,3....等正整数。Mode 3: Move at least one existing element of the user interface to another user interface, so as to obtain N free cell spaces in the user interface; N is the number of cells occupied by the element to be added; wherein N can be 1, 2, 3 ....etc. positive integers.
方式4、根据预设的移动方式进行移动。Mode 4: Move according to a preset movement mode.
例如,预设的移动方式可以为将用户界面中预设单元格中的元素移动至其它用户界面,或者,预设的移动方式可以为将用户界面中预设类型的元素移动至其它用户界面。例如,预设类型可以包括天气类型、文本类型等。For example, the preset moving manner may be moving elements in preset cells in the user interface to other user interfaces, or the preset moving manner may be moving elements of a preset type in the user interface to other user interfaces. For example, the preset types may include weather types, text types, and the like.
方式5、根据属性信息和/或布局信息进行移动。Manner 5: Move according to attribute information and/or layout information.
当然,还可以通过其它方式将用户界面的至少一个已有元素移动到其它用户界面,本申请实施例对此不作具体限定。Certainly, at least one existing element of the user interface may also be moved to another user interface in other manners, which is not specifically limited in this embodiment of the present application.
S503:根据待添加元素的优先级信息,将待添加元素放置到用户界面的空间中。S503: Place the element to be added in the space of the user interface according to the priority information of the element to be added.
具体的,可以根据用户使用待添加元素的频率从高到低的顺序,或者根据待添加元素的类型,或者根据获取待添加元素的先后顺序,将待添加元素放置到用户界面的空间中。具体放置方式,此处不做限定。Specifically, the elements to be added can be placed in the space of the user interface according to the order of the frequency of using the elements to be added by the user, the type of the elements to be added, or the order of obtaining the elements to be added. The specific placement method is not limited here.
可选的,放置待添加元素的用户界面的空间可以是空闲空间,也可以是已有元素占用的空间。若放置待添加元素的空间是空闲空间,则可以直接将待添加元素放置到该空闲空间中;若放置待添加元素的空间是已有元素占用的空间,则可以在放置待添加元素的同时,将该已有元素移动到该用户界面的其他空间,或者将该已有元素移动到其它用户界面中。Optionally, the space for placing the user interface of the element to be added may be a free space or a space occupied by an existing element. If the space for placing the element to be added is free space, you can directly place the element to be added in the free space; if the space for placing the element to be added is the space occupied by an existing element, you can place the element to be added at the same time. Move the existing element to another space in the user interface, or move the existing element to another user interface.
可以通过如下方式将待添加元素放置到用户界面的空间中:确定用户界面的单元格的状态,根据单元格的状态,将待添加元素放置到用户界面的空间中,其中,单元格的状态包括空闲状态或占用状态;空闲状态为待放置元素状态;占用状态为已放置元素状态。若单元格的状态为空闲状态,则将待添加元素放置到用户界面的空闲状态的单元格中;若单元格状态为占用状态,确定用户界面中的待移动元素;调整待移动元素的属性信息和/或用户界面中元素的布局信息,将待移动元素移动到用户界面的空闲空间中。The element to be added can be placed in the space of the user interface in the following way: determine the state of the cell of the user interface, and place the element to be added in the space of the user interface according to the state of the cell, wherein the state of the cell includes The idle state or the occupied state; the idle state is the state of the element to be placed; the occupied state is the state of the placed element. If the state of the cell is in the idle state, the element to be added is placed in the cell in the idle state of the user interface; if the state of the cell is in the occupied state, the element to be moved in the user interface is determined; the attribute information of the element to be moved is adjusted. and/or the layout information of elements in the user interface, to move the element to be moved into the free space of the user interface.
在将用户界面的至少一个已有元素移动到其它用户界面之前,还可以调整待添加元素的属性信息和/或用户界面中元素的布局信息。Before moving at least one existing element of the user interface to another user interface, the attribute information of the element to be added and/or the layout information of the element in the user interface may also be adjusted.
在将用户界面的至少一个已有元素移动到其它用户界面之后,还可以调整已有元素的属性信息和/或用户界面中元素的布局信息。After moving at least one existing element of the user interface to another user interface, the attribute information of the existing element and/or the layout information of the element in the user interface may also be adjusted.
可选的,属性信息包括如下信息中的至少一种:待添加元素所占面积、待添加元素所占单元格的数量、待添加元素所占单元格之间的位置分布、待 添加元素形状、待添加元素的组合方式、待添加元素的优先级信息。Optionally, the attribute information includes at least one of the following information: the area occupied by the element to be added, the number of cells occupied by the element to be added, the position distribution between the cells occupied by the element to be added, the shape of the element to be added, The combination method of the elements to be added, and the priority information of the elements to be added.
可以通过如下多种可能的实现方式调整属性信息:The attribute information can be adjusted in several possible implementations as follows:
方式1、缩小或裁剪待添加元素所占面积。Method 1. Reduce or crop the area occupied by the element to be added.
可选的,可以缩小待添加元素,以缩小待添加元素所占面积。或者,可以对待添加元素进行剪裁,以缩小待添加元素所占面积。例如,可以将待添加元素中重要程度较低的内容剪裁掉,或待添加元素内容或边缘以外的内容剪裁掉。Optionally, the elements to be added may be reduced to reduce the area occupied by the elements to be added. Alternatively, the element to be added can be clipped to reduce the area occupied by the element to be added. For example, the less important content of the element to be added may be trimmed, or the content of the element to be added or the content other than the edge may be trimmed.
方式2、减少待添加元素所占单元格的数量。Method 2: Reduce the number of cells occupied by elements to be added.
可选的,可以通过缩小或者剪裁待添加元素,以实现减少待添加元素所占单元格的数量。Optionally, the element to be added may be reduced or trimmed to reduce the number of cells occupied by the element to be added.
方式3、调整待添加元素所占单元格之间的位置分布。Mode 3: Adjust the position distribution among the cells occupied by the elements to be added.
例如,假设待添加元素所占单元格之间的位置分布为1*4(一行四列),可以将待添加元素所占单元格之间的位置分布调整为2*2(两行两列)。For example, assuming that the position distribution between the cells occupied by the elements to be added is 1*4 (one row and four columns), the position distribution between the cells occupied by the elements to be added can be adjusted to 2*2 (two rows and two columns) .
方式4、调整待添加元素形状。Method 4: Adjust the shape of the element to be added.
待添加元素的形状可以为圆形、正方形、长方形、梯形等。The shape of the element to be added can be circle, square, rectangle, trapezoid, etc.
方式5、调整待添加元素的组合方式或优先级信息。Mode 5: Adjust the combination mode or priority information of the elements to be added.
可选的,布局信息包括如下信息中的至少一种:用户界面中空闲空间面积、用户界面中空闲单元格的数量、用户界面中空闲单元格之间的位置分布、用户界面中空闲空间形状、用户界面中已有元素之间的间距、用户界面中已有元素的优先级信息。Optionally, the layout information includes at least one of the following information: the area of free space in the user interface, the number of free cells in the user interface, the location distribution between the free cells in the user interface, the shape of the free space in the user interface, The spacing between existing elements in the user interface, the priority information of the existing elements in the user interface.
可以通过如下方式中的至少一种调整布局信息:The layout information can be adjusted in at least one of the following ways:
方式1、放大或扩大空闲空间面积。Method 1. Enlarge or expand the free space area.
例如,可以删除用户界面中已有的部分元素,或者,将用户界面中已有的部分元素合并处理。For example, some existing elements in the user interface may be deleted, or some existing elements in the user interface may be merged for processing.
方式2、增加空闲单元格的数量。Method 2. Increase the number of free cells.
例如,可以删除用户界面中已有的部分元素,或者,将用户界面中已有的部分元素合并处理。For example, some existing elements in the user interface may be deleted, or some existing elements in the user interface may be merged for processing.
方式3、调整空闲单元格之间的位置分布或空闲空间形状。Method 3: Adjust the position distribution or the shape of the free space between the free cells.
方式4、调整已有元素之间的间距或优先级信息。Mode 4: Adjust the spacing or priority information between existing elements.
本实施例中,通过将当前用户界面中优先级低的已有元素移动到其它界 面中,使得当前用户界面的空闲空间变多,足以放置待添加元素,避免了由于用户界面空闲空间不够,不能放置待添加元素导致的用户界面的一些空间被空置,因此,提高了用户界面的空间利用率。In this embodiment, by moving the existing elements with low priority in the current user interface to other interfaces, the free space of the current user interface is increased, which is enough to place the elements to be added, and it is avoided that due to insufficient free space of the user interface, the Some space of the user interface caused by placing the elements to be added is vacant, thus improving the space utilization of the user interface.
下面,结合图8,对图7实施例所示的方法进行说明。Next, with reference to FIG. 8 , the method shown in the embodiment of FIG. 7 will be described.
图8为本申请实施例提供的界面元素添加示意图。参见图8,实线圆角方框为用户界面的已有元素,左侧图中用户界面中空闲空间为2*2,黑色填充圆角方框为优先级最低的已有元素,右侧图中的时间微件和三个虚线圆角方框为待添加元素。若要在左侧图的用户界面中放置待添加元素,则放置不下,那么,将左侧图中优先级最低的已有元素移动到其它用户界面中,就可以将待添加元素放置到该用户界面的空间中。放置完成待添加元素的用户界面如图8右侧图所示。FIG. 8 is a schematic diagram of adding interface elements according to an embodiment of the present application. Referring to Figure 8, the solid line rounded box is the existing element of the user interface. The free space in the user interface in the left picture is 2*2, and the black filled rounded box is the existing element with the lowest priority. The right picture The time widget in and the three dotted rounded squares are the elements to be added. If you want to place the element to be added in the user interface shown on the left, it cannot be placed. Then, move the existing element with the lowest priority in the left image to other user interfaces, and then the element to be added can be placed in the user interface. interface space. The user interface where the elements to be added are placed is shown on the right side of Figure 8.
图9为本申请实施例提供的又一种设备控制方法的流程示意图,请参见图9,该方法应用于电子设备,可以包括:FIG. 9 is a schematic flowchart of another device control method provided by an embodiment of the present application. Referring to FIG. 9, the method is applied to an electronic device and may include:
S701:确定待添加元素和用户界面。S701: Determine the element to be added and the user interface.
可选的,本申请实施例的执行主体可以为电子设备,也可以为设置在电子设备中的设备控制装置。可选的,该设备控制装置可以通过软件实现,也可以通过软件和硬件的结合实现。Optionally, the execution body of the embodiment of the present application may be an electronic device, or may be a device control apparatus provided in the electronic device. Optionally, the device control apparatus may be implemented by software, or may be implemented by a combination of software and hardware.
优选地,用户界面可以为放置待添加元素的界面。用户界面可以被划分为多个单元格,该单元格的状态可以为空闲状态或占用状态。例如,可以用true表示单元格状态为占用状态,用false表示单元格状态为空闲状态。若用户界面的单元格的状态为false,则可以将待添加元素放置到该单元格。Preferably, the user interface may be an interface where elements to be added are placed. The user interface can be divided into a plurality of cells, and the state of the cells can be idle or occupied. For example, you can use true to indicate that the cell state is occupied, and false to indicate that the cell state is idle. If the state of a cell of the user interface is false, the element to be added can be placed in the cell.
可选的,元素可以包含以下至少一种:应用图标、小部件图标、功能图标,至少两个应用图标,图案与文字信息等。其中,应用图标可以是应用程序(如聊天应用程序、购物应用程序等)的图标;小部件图标可以是微件(如时钟天气微件、音乐微件等)图标;功能图标可以是“设置”或者“一键锁屏”等功能的图标;至少两个应用图标可以是将至少两个应用程序的图标组合而成的图标。待添加元素可以是上述元素中的任一种或多种元素。Optionally, the element may include at least one of the following: an application icon, a widget icon, a function icon, at least two application icons, patterns and text information, and the like. Wherein, the application icon may be an icon of an application (such as a chat application, a shopping application, etc.); the widget icon may be an icon of a widget (such as a clock weather widget, a music widget, etc.); the function icon may be "settings" Or the icons of functions such as "one-key lock screen"; the at least two application icons may be icons formed by combining the icons of at least two application programs. The element to be added may be any one or more of the above-mentioned elements.
S702:获取待添加元素所占面积或所占单元格的数量信息,和用户界面中空闲空间面积或空闲单元格的数量信息。S702: Acquire information on the area occupied by the element to be added or the number of cells occupied by the element, and the information on the area of free space or the number of free cells in the user interface.
可选的,待添加元素所占面积可以是若将待添加元素放置到用户界面, 该待添加元素横向需占用户界面单元格的数量与纵向需占用户界面单元格的数量的乘积。比如待添加元素为时间和天气的组合元素,该组合元素所占面积可以是1*4,也可以是2*2。Optionally, the area occupied by the element to be added may be the product of the number of user interface cells the element to be added needs to occupy in the horizontal direction and the number of user interface cells in the vertical direction if the element to be added is placed on the user interface. For example, the element to be added is a combined element of time and weather, and the area occupied by the combined element may be 1*4 or 2*2.
可选的,待添加元素所占单元格的数量可以是若将待添加元素放置到用户界面,需占用户界面的单元格的数量。假设待添加元素为1*4或2*2的时间和天气的组合元素,将该组合元素放置到用户界面,需占用户界面的单元格的数量为4,也就是说,待添加元素所占单元格的数量为4。Optionally, the number of cells occupied by the element to be added may be the number of cells occupied in the user interface if the element to be added is placed in the user interface. Assuming that the element to be added is a combination of 1*4 or 2*2 of time and weather, and the combined element is placed in the user interface, the number of cells in the user interface that needs to be occupied is 4, that is, the element to be added occupies 4 The number of cells is 4.
可选的,用户界面中空闲空间面积可以是用户界面中未放置元素的空间面积,也可以是用户界面中空闲状态的单元格的面积之和。空闲单元格的数量信息可以包括用户界面中空闲状态的单元格的数量,或空闲状态的单元格的数量之和。Optionally, the free space area in the user interface may be the space area of the unplaced element in the user interface, or may be the sum of the areas of the cells in the idle state in the user interface. The number of idle cells information may include the number of cells in an idle state in the user interface, or the sum of the numbers of cells in an idle state.
S703:调整待添加元素的属性信息和/或用户界面中元素的布局信息,将待添加元素放置到用户界面的空间中。S703: Adjust the attribute information of the element to be added and/or the layout information of the element in the user interface, and place the element to be added in the space of the user interface.
可选的,属性信息可以包括如下信息中的至少一种:待添加元素所占面积、待添加元素所占单元格之间的位置分布、待添加元素形状、待添加元素的组合方式、待添加元素的优先级信息。Optionally, the attribute information may include at least one of the following information: the area occupied by the element to be added, the location distribution between the cells occupied by the element to be added, the shape of the element to be added, the combination method of the element to be added, the element to be added Element's priority information.
其中,待添加元素所占单元格之间的位置分布可以是连续的,也可以是不连续的。待添加元素形状可以包括长方形、正方形等。待添加元素的组合方式可以包括横向组合、纵向组合。待添加元素的优先级信息可以包括按照用户使用频率的优先级信息、按照待添加元素放置位置的优先级信息、按照待添加元素的类型的优先级信息等。Wherein, the position distribution between the cells occupied by the element to be added may be continuous or discontinuous. The shape of the element to be added may include a rectangle, a square, and the like. The combination of elements to be added may include horizontal combination and vertical combination. The priority information of the element to be added may include priority information according to the frequency of use by the user, priority information according to the placement position of the element to be added, priority information according to the type of the element to be added, and the like.
可选的,布局信息可以包括如下信息中的至少一种:用户界面中空闲空间面积、用户界面中空闲单元格之间的位置分布、用户界面中空闲空间形状、用户界面中已有元素之间的间距、用户界面中已有元素的优先级信息。Optionally, the layout information may include at least one of the following information: the area of free space in the user interface, the location distribution between free cells in the user interface, the shape of the free space in the user interface, and the space between existing elements in the user interface. spacing, priority information for elements already in the user interface.
其中,空闲单元格可以是false状态的单元格,用户界面中空闲空间面积可以是用户界面中横向空闲单元格的数量与纵向空闲单元格的数量的乘积。用户界面中空闲单元格之间的位置分布可以连续,也可以不连续。用户界面中空闲空间形状可以是长方形或正方形等。用户界面中已有元素之间的间距可以为已有元素之间的横向间距和/或纵向间距。用户界面中已有元素的优先级信息可以包括按照用户使用频率的优先级信息、按照已有元素放置位置的 优先级信息、按照已有元素的类型的优先级信息等。The free cell may be a cell in a false state, and the free space area in the user interface may be the product of the number of horizontal free cells and the number of vertical free cells in the user interface. The distribution of positions between idle cells in the user interface can be continuous or discontinuous. The shape of the free space in the user interface can be a rectangle or a square, etc. The spacing between existing elements in the user interface may be horizontal spacing and/or vertical spacing between existing elements. The priority information of the existing elements in the user interface may include the priority information according to the frequency of use by the user, the priority information according to the placement position of the existing elements, the priority information according to the type of the existing elements, and the like.
可选的,可以先判断待添加元素与用户界面中元素是否符合预设条件;若符合预设条件,则执行调整待添加元素的属性信息和/或用户界面中元素的布局信息,将待添加元素放置到用户界面的空间中的步骤;若不符合预设条件,则直接执行将待添加元素放置到用户界面的空间中的步骤。Optionally, it is possible to first judge whether the element to be added and the element in the user interface meet the preset conditions; if the preset conditions are met, then adjust the attribute information of the element to be added and/or the layout information of the element in the user interface, and then adjust the attribute information of the element to be added and/or the layout information of the element in the user interface. The step of placing the element into the space of the user interface; if the preset conditions are not met, the step of placing the element to be added into the space of the user interface is directly executed.
可选的,预设条件可以包含以下至少一种:待添加元素所占单元格的数量大于用户界面中空闲单元格的数量;待添加元素所占面积大于用户界面中空闲空间面积;待添加元素所占单元格之间的位置分布不同于用户界面中空闲单元格之间的位置分布;待添加元素形状不同于用户界面中空闲空间形状。Optionally, the preset conditions may include at least one of the following: the number of cells occupied by the elements to be added is greater than the number of free cells in the user interface; the area occupied by the elements to be added is greater than the area of free space in the user interface; the elements to be added The position distribution between the occupied cells is different from the position distribution between the free cells in the user interface; the shape of the element to be added is different from the shape of the free space in the user interface.
可选的,用户界面的空间可以是用户界面中空闲的空间,也可以是用户界面中状态为空闲状态的单元格。Optionally, the space of the user interface may be an idle space in the user interface, or may be a cell in an idle state in the user interface.
可选的,可以单独调整待添加元素的属性信息或单独调整用户界面中元素的布局信息,也可以结合待添加元素的属性信息和用户界面中元素的布局信息,同时调整二者,以使用户界面的空间能够更合理地被利用。Optionally, the attribute information of the element to be added or the layout information of the element in the user interface can be adjusted separately, or the attribute information of the element to be added and the layout information of the element in the user interface can be combined to adjust both at the same time, so that the user can The space of the interface can be used more rationally.
可选的,在调整待添加元素的属性信息和/或用户界面中元素的布局信息,将待添加元素放置到用户界面的空间中之前,可以先确定用户界面的单元格的状态,该状态可以为空闲状态或占用状态。这样,可以根据用户界面的空闲状态的单元格的位置分布,调整待添加元素的属性信息和/或用户界面中元素的布局信息,将待添加元素放置到用户界面的空闲状态的单元格中。通过确定用户界面的单元格的状态,可以快速、方便的将待添加元素放置到用户界面的空间中,提高了界面元素添加的效率。Optionally, before adjusting the attribute information of the element to be added and/or the layout information of the element in the user interface and placing the element to be added in the space of the user interface, the state of the cell of the user interface can be determined first, and the state can be is idle or occupied. In this way, the attribute information of elements to be added and/or the layout information of elements in the user interface can be adjusted according to the position distribution of the cells in the idle state of the user interface, and the elements to be added can be placed in the cells of the idle state of the user interface. By determining the state of the cells of the user interface, the elements to be added can be placed in the space of the user interface quickly and conveniently, which improves the efficiency of adding interface elements.
可选的,在将待添加元素放置到用户界面的空间中之后,还可以确定用户界面中的待移动元素;获取待移动元素的属性信息和用户界面中元素的布局信息;调整待移动元素的属性信息和/或用户界面中元素的布局信息,将待移动元素放置到用户界面的空闲单元格中。Optionally, after placing the element to be added in the space of the user interface, the element to be moved in the user interface can also be determined; the attribute information of the element to be moved and the layout information of the element in the user interface are obtained; Attribute information and/or layout information of elements in the user interface, placing the element to be moved into a free cell of the user interface.
其中,待移动元素的属性信息可以包括如下信息中的至少一种:待移动元素所占单元格的数量、待移动元素所占面积、待移动元素所占单元格之间的位置分布、待移动元素形状、待移动元素的组合方式、待移动元素的优先级信息。用户界面可以是同一用户界面或不同用户界面。The attribute information of the element to be moved may include at least one of the following information: the number of cells occupied by the element to be moved, the area occupied by the element to be moved, the position distribution between the cells occupied by the element to be moved, the The shape of the element, the combination of the elements to be moved, and the priority information of the elements to be moved. The user interface can be the same user interface or different user interfaces.
这样,通过调整元素的属性信息和/或用户界面中元素的布局信息,实现 了元素的智能性移动,避免了机械性地移动元素,提高了用户体验。In this way, by adjusting the attribute information of the element and/or the layout information of the element in the user interface, the intelligent movement of the element is realized, the mechanical movement of the element is avoided, and the user experience is improved.
本实施提供的设备控制方法,通过确定待添加元素和用户界面,获取待添加元素所占面积或所占单元格的数量信息和用户界面中空闲空间面积或空闲单元格的数量信息,调整待添加元素的属性信息和/或用户界面中元素的布局信息,将待添加元素放置到用户界面的空间中,从而实现了用户界面中元素的添加。这样,结合待添加元素的属性信息和/或用户界面中元素的布局信息,使得用户界面中的空间能够被充分利用,提高了空间利用率。In the device control method provided by this implementation, by determining the element to be added and the user interface, the information on the area occupied by the element to be added or the number of cells occupied and the information on the area of free space or the number of free cells in the user interface are obtained, and the information on the area of the free space or the number of free cells in the user interface is adjusted. The attribute information of the element and/or the layout information of the element in the user interface, the element to be added is placed in the space of the user interface, thereby realizing the addition of the element in the user interface. In this way, combined with the attribute information of the element to be added and/or the layout information of the element in the user interface, the space in the user interface can be fully utilized, and the space utilization rate is improved.
本申请实施例还提供了一种设备控制方法,请参见图10,图10为本申请实施例提供的另一种设备控制方法的流程示意图。该方法中,若用户界面中空闲空间不足以放置待添加元素,则缩小待添加元素。该方法可以包括:An embodiment of the present application further provides a device control method, please refer to FIG. 10 , and FIG. 10 is a schematic flowchart of another device control method provided by an embodiment of the present application. In this method, if the free space in the user interface is not enough to place the element to be added, the element to be added is reduced. The method can include:
S801:确定待添加元素和用户界面。S801: Determine the element to be added and the user interface.
其中,待添加元素可以为元素或组合元素。用户界面可以为放置待添加元素的界面。具体的,请参见S201。The element to be added may be an element or a combined element. The user interface may be an interface where elements to be added are placed. For details, please refer to S201.
S802:若用户界面中空闲空间不足以放置待添加元素,则缩小待添加元素。S802: If the free space in the user interface is not enough to place the element to be added, reduce the element to be added.
可选的,用户界面中空闲空间不足以放置待添加元素,可以包括如下至少一种:待添加元素所占单元格的数量大于用户界面中空闲单元格的数量;或待添加元素所占面积大于用户界面中空闲空间面积。Optionally, the free space in the user interface is not enough to place the element to be added, which may include at least one of the following: the number of cells occupied by the element to be added is greater than the number of free cells in the user interface; or the area occupied by the element to be added is greater than The area of free space in the user interface.
可选的,可以将待添加元素等比缩小。Optionally, the elements to be added can be reduced proportionally.
可选的,将待添加元素等比缩小到预设大小,得到缩小后的待添加元素,该预设大小为能够放置到用户界面的空闲空间的大小;Optionally, the element to be added is proportionally reduced to a preset size to obtain the reduced element to be added, and the preset size is the size of the free space that can be placed in the user interface;
或者,将待添加元素等比缩小预设大小,使得该待添加元素能够放置到用户界面的空闲空间中,得到缩小后的待添加元素。Alternatively, the element to be added is proportionally reduced to a preset size, so that the element to be added can be placed in the free space of the user interface, and the reduced element to be added is obtained.
S803:将缩小后的待添加元素放置到用户界面的空闲空间中。S803: Place the reduced element to be added in the free space of the user interface.
举例来说,图11为本申请实施例提供的另一种设备控制方法中界面元素添加示意图。假设待添加元素为时间微件,请参见图11,左侧图中虚线元素为待添加时间微件,该时间微件所占单元格的数量为2*3,而用户界面中空闲单元格的数量为1*2,右侧图中实线时间微件为缩小后的待添加时间微件,通过将左侧虚线元素缩小到能够放置到用户界面的空闲空间中,得到右侧图中实线时间微件,该实线时间微件所占单元格的数量为1*2,与用户界面中 空闲单元格的数量相同,这样,就可以把缩小后的时间微件放置到用户界面的空闲空间中。For example, FIG. 11 is a schematic diagram of adding interface elements in another device control method provided by an embodiment of the present application. Suppose the element to be added is a time widget, see Figure 11, the dotted line element in the left figure is the time widget to be added, the number of cells occupied by the time widget is 2*3, and the number of free cells in the user interface is The number is 1*2, and the solid line time widget in the figure on the right is the reduced time widget to be added. By reducing the dotted line element on the left to the free space that can be placed in the user interface, the solid line in the figure on the right is obtained. Time widget. The number of cells occupied by the solid-line time widget is 1*2, which is the same as the number of free cells in the user interface. In this way, the reduced time widget can be placed in the free space of the user interface. middle.
可选的,若用户界面中空闲空间变多,可以放大缩小后的待添加元素。可选的,可以将缩小后的待添加元素放大至待添加元素的原比例。Optionally, if there is more free space in the user interface, the element to be added can be enlarged and reduced. Optionally, the reduced element to be added may be enlarged to the original ratio of the element to be added.
本实施例中,通过将待添加元素缩小后放置到用户界面,避免了由于用户界面中空闲空间大小不足以放置待添加元素,使得待添加元素不能放置到用户界面,而浪费用户界面的空间,因此,提高了用户界面的空间利用率。In this embodiment, by reducing the size of the element to be added and placing it on the user interface, it is avoided that the element to be added cannot be placed on the user interface because the free space in the user interface is not enough to place the element to be added, and the space of the user interface is wasted, Therefore, the space utilization of the user interface is improved.
本申请实施例还提供了一种设备控制方法,请参见图12,图12为本申请实施例提供的又一种设备控制方法的流程示意图。该方法中,待添加元素为组合元素,若用户界面中空闲空间不足以放置待添加元素,则调整组合元素的组合方式。该方法可以包括:An embodiment of the present application further provides a device control method. Please refer to FIG. 12 , which is a schematic flowchart of another device control method provided by an embodiment of the present application. In this method, the element to be added is a combination element, and if the free space in the user interface is not enough to place the element to be added, the combination method of the combination element is adjusted. The method can include:
S1001:确定待添加元素和用户界面。S1001: Determine the element to be added and the user interface.
待添加元素可以为组合元素,比如时间和天气组合元素、图案与文字信息组合元素等。用户界面为放置待添加元素的界面。具体的,请参见S201。The element to be added may be a combination element, such as a time and weather combination element, a pattern and text information combination element, and the like. The user interface is an interface where elements to be added are placed. For details, please refer to S201.
S1002:若用户界面中空闲空间不足以放置待添加元素,则调整组合元素的组合方式。S1002: If the free space in the user interface is not enough to place the element to be added, adjust the combination method of the combined element.
可选的,用户界面中空闲空间不足以放置待添加元素,可以包括如下至少一种:待添加元素所占单元格之间的位置分布不同于用户界面中空闲单元格之间的位置分布;或待添加元素形状不同于用户界面中空闲空间形状。Optionally, the free space in the user interface is not enough to place the element to be added, which may include at least one of the following: the position distribution between the cells occupied by the element to be added is different from the position distribution between the idle cells in the user interface; or The shape of the element to be added is different from the shape of the free space in the user interface.
比如待添加元素所占单元格的位置分布为2*3,而用户界面中空闲单元格位置分布为3*2,则待添加元素所占单元格之间的位置分布与用户界面中空闲单元格之间的位置分布不同。再比如,待添加元素形状为1*3的长方形,而用户界面中空闲空间形状为2*2的正方形,则待添加元素形状不同于用户界面中空闲空间形状。For example, the location distribution of the cells occupied by the elements to be added is 2*3, and the location distribution of the free cells in the user interface is 3*2, then the location distribution of the cells occupied by the elements to be added is the same as that of the free cells in the user interface. The distribution of locations is different. For another example, if the shape of the element to be added is a rectangle of 1*3, and the shape of the free space in the user interface is a square of 2*2, the shape of the element to be added is different from the shape of the free space in the user interface.
可选的,组合方式可以为预先设置在电子设备中的组合方式集中的组合方式,该组合方式集中包括元素的多种不同组合方式。Optionally, the combination mode may be a combination mode in a combination mode set preset in the electronic device, and the combination mode set includes a variety of different combination modes of elements.
S1003:将调整后的组合元素放置到用户界面的空闲空间中。S1003: Place the adjusted composition element in the free space of the user interface.
可选的,可以通过以下至少一种方式调整组合元素的组合方式,将调整后的组合元素放置到所述用户界面的空闲空间中:Optionally, the combination mode of the combined elements can be adjusted in at least one of the following ways, and the adjusted combined elements can be placed in the free space of the user interface:
在预设的组合方式集中,选取与用户界面中空闲单元格之间的位置分布 或空闲空间形状相匹配的组合方式,将选取的组合元素放置到用户界面的空闲空间中。From the preset combination mode set, select a combination mode that matches the position distribution of the free cells in the user interface or the shape of the free space, and place the selected combined elements in the free space of the user interface.
或,将组合元素的组合方式调整为与用户界面中空闲单元格之间的位置分布或空闲空间形状相匹配的组合方式,将调整后的组合元素放置到用户界面的空闲空间中。Or, adjust the combination mode of the combined elements to a combination mode that matches the position distribution between the free cells in the user interface or the shape of the free space, and place the adjusted combined element in the free space of the user interface.
若所述用户界面中空闲空间变多,则将调整后的组合元素的组合方式调整为最佳组合方式。If there is more free space in the user interface, the adjusted combination mode of the combined elements is adjusted to the best combination mode.
举例来说,图13为本申请实施例提供的又一种设备控制方法中界面元素添加示意图。请参见图13,左侧图中时间和天气组合微件为待添加元素,该组合微件的形状为1*4的长方形,而用户界面中空闲空间形状为2*2的正方形,通过在预设的时间和天气微件组合方式集中,选取与用户界面中空闲空间形状相同的2*2的组合方式,或将时间和天气组合微件的组合方式由1*4调整为2*2,得到右侧图中形状为2*2的正方形组合微件,使得该组合微件形状与用户界面中空闲空间形状相同,这样,就可以把调整后的组合微件放置到用户界面的空闲空间中。For example, FIG. 13 is a schematic diagram of adding interface elements in yet another device control method provided by an embodiment of the present application. Please refer to Figure 13. The time and weather combination widget in the left figure is the element to be added. The shape of the combination widget is a 1*4 rectangle, while the free space in the user interface is shaped as a 2*2 square. Set the combination of time and weather widgets to be centralized, select a combination of 2*2 with the same shape as the free space in the user interface, or adjust the combination of time and weather widgets from 1*4 to 2*2, get In the figure on the right, the shape is a 2*2 square combination widget, so that the shape of the combination widget is the same as the shape of the free space in the user interface. In this way, the adjusted combination widget can be placed in the free space of the user interface.
可选的,若用户界面中空闲单元格变多,则可以将调整后的组合元素的组合方式调整为最佳组合方式。该最佳组合方式可以是预设组合方式集中的组合方式。将组合元素的组合方式调整为最佳组合方式可以提高用户对元素的视觉效果,从而提高用户体验。Optionally, if there are more free cells in the user interface, the combination mode of the adjusted combination elements can be adjusted to the best combination mode. The optimal combination mode may be a combination mode in a set of preset combination modes. Adjusting the combination of the combined elements to the best combination can improve the user's visual effect on the elements, thereby improving the user experience.
本实施例中,通过调整待添加元素的组合方式,将调整后的待添加元素放置到用户界面,避免了由于用户界面中空闲空间位置分布或形状不同于待添加元素位置分布或形状,使得待添加元素不能放置到用户界面,浪费用户界面的空间,因此,提高了用户界面的空间利用率。In this embodiment, by adjusting the combination of the elements to be added, the adjusted elements to be added are placed on the user interface, so as to avoid that the position distribution or shape of the free space in the user interface is different from the position distribution or shape of the elements to be added. The added elements cannot be placed on the user interface, which wastes the space of the user interface, and thus improves the space utilization of the user interface.
本申请实施例还提供了一种设备控制方法,请参见图14,图14为本申请实施例提供的第五种设备控制方法的流程示意图。该方法中,待添加元素为至少两个元素,若用户界面中空闲空间不足以放置待添加元素,则将待添加元素中的部分元素放置。该方法可以包括:An embodiment of the present application further provides a device control method, please refer to FIG. 14 , and FIG. 14 is a schematic flowchart of a fifth device control method provided by an embodiment of the present application. In this method, the elements to be added are at least two elements, and if the free space in the user interface is not enough to place the elements to be added, some elements of the elements to be added are placed. The method can include:
S1201:确定待添加元素和用户界面。S1201: Determine the element to be added and the user interface.
待添加元素可以为至少两个相同类型或不同类型的元素,比如至少两个购物类型的应用程序图标,或一个以上购物类型的应用程序图标和一个以上 聊天类型的应用程序,或一个以上应用程序图标和一个以上小部件图标等。用户界面可以为放置待添加元素的界面。具体的,请参见S201。The elements to be added can be at least two elements of the same type or different types, such as at least two shopping-type application icons, or more than one shopping-type application icon and more than one chat-type application, or more than one application icon and more than one widget icon, etc. The user interface may be an interface where elements to be added are placed. For details, please refer to S201.
S1202:若用户界面中空闲空间不足以放置待添加元素,则根据用户界面中空闲单元格之间的位置分布,将至少两个待添加元素中的部分元素放置到用户界面的空闲空间中,将剩余未放置元素留在原用户界面。S1202: If the free space in the user interface is not enough to place the elements to be added, place some of the at least two elements to be added in the free space of the user interface according to the position distribution between the free cells in the user interface, and place The remaining unplaced elements remain in the original UI.
可选的,用户界面中空闲空间不足以放置待添加元素,可以包括如下至少一种:待添加元素所占单元格的数量大于用户界面中空闲单元格的数量;或待添加元素所占面积大于用户界面中空闲面积。Optionally, the free space in the user interface is not enough to place the element to be added, which may include at least one of the following: the number of cells occupied by the element to be added is greater than the number of free cells in the user interface; or the area occupied by the element to be added is greater than Free space in the user interface.
可选的,至少两个待添加元素中的部分元素,可以通过如下至少一种方式确定:按照用户使用元素的频率从高到低确定;或按照元素的类型确定;或按照用户的喜好确定;具体不做限定。Optionally, some of the at least two elements to be added may be determined in at least one of the following ways: according to the frequency of the user using the element from high to low; or according to the type of the element; or according to the user's preference; There is no specific limitation.
可选的,剩余未放置元素可以是待添加元素中除放置到用户界面的空闲空间中的元素以外的元素。原用户界面可以是未添加待添加元素时,待添加元素所在的用户界面。Optionally, the remaining unplaced elements may be elements to be added except the elements placed in the free space of the user interface. The original user interface may be the user interface where the element to be added is located when the element to be added is not added.
举例来说,图15为本申请实施例提供的再一种设备控制方法中界面元素添加示意图。参见图15,左侧五个虚线圆角方框为待添加元素,若要将五个待添加元素放置到用户界面的空闲空间,则至少需占1*5或2*3单元格,而用户界面中空闲空间为2*2,则根据用户界面中空闲单元格的位置分布,将五个待添加元素中的四个元素按照2*2的位置分布放置到用户界面的空闲空间中,如图15中右侧图所示,同时将剩余的一个元素还原回原来的位置,暂不添加。For example, FIG. 15 is a schematic diagram of adding interface elements in yet another device control method provided by an embodiment of the present application. Referring to Figure 15, the five dashed rounded squares on the left are the elements to be added. To place the five elements to be added in the free space of the user interface, at least 1*5 or 2*3 cells are required, and the user The free space in the interface is 2*2, then according to the position distribution of the free cells in the user interface, four of the five elements to be added are placed in the free space of the user interface according to the position distribution of 2*2, as shown in the figure As shown in the figure on the right in 15, at the same time restore the remaining one element back to its original position and do not add it for the time being.
本实施例中,通过将待添加元素中的部分元素放置到用户界面,避免了由于待添加元素所占单元格的数量或面积大于用户界面中空闲单元格的数量或空闲面积,使得待添加元素不能放置到用户界面,浪费用户界面的空间,因此,提高了用户界面的空间利用率。In this embodiment, by placing some elements of the elements to be added on the user interface, it is avoided that the elements to be added are caused by the number or area of cells occupied by the elements to be added being larger than the number or free area of free cells in the user interface. It cannot be placed in the user interface, and the space of the user interface is wasted. Therefore, the space utilization rate of the user interface is improved.
本申请实施例还提供了一种设备控制方法,请参见图16,图16为本申请实施例提供的另一种设备控制方法的流程示意图。该方法中,若用户界面中空闲空间不足以放置待添加元素,则调整用户界面中已有元素之间的间距,从而放置待添加元素到调整后的用户界面中。该方法可以包括:An embodiment of the present application further provides a device control method. Please refer to FIG. 16 , which is a schematic flowchart of another device control method provided by an embodiment of the present application. In this method, if the free space in the user interface is not enough to place the element to be added, the spacing between the existing elements in the user interface is adjusted, so that the element to be added is placed in the adjusted user interface. The method can include:
S1401:确定待添加元素和用户界面。S1401: Determine the element to be added and the user interface.
待添加元素可以是元素或者多个元素或者组合元素。用户界面可以为放置待添加元素的界面。具体的,请参见S201。The element to be added may be an element or multiple elements or a combination of elements. The user interface may be an interface where elements to be added are placed. For details, please refer to S201.
S1402:若用户界面中空闲空间不足以放置待添加元素,则调整用户界面中已有元素之间的间距。S1402: If the free space in the user interface is not enough to place the element to be added, adjust the spacing between the existing elements in the user interface.
可选的,用户界面中空闲空间不足以放置待添加元素,可以包括以下至少一种:待添加元素所占单元格的数量大于用户界面中空闲单元格的数量;或待添加元素所占面积大于用户界面中空闲空间面积;或待添加元素所占单元格之间的位置分布不同于用户界面中空闲单元格之间的位置分布;或待添加元素形状不同于用户界面中空闲空间形状。Optionally, the free space in the user interface is not enough to place the element to be added, which may include at least one of the following: the number of cells occupied by the element to be added is greater than the number of free cells in the user interface; or the area occupied by the element to be added is greater than The area of free space in the user interface; or the position distribution between the cells occupied by the elements to be added is different from the position distribution between the free cells in the user interface; or the shape of the element to be added is different from the shape of the free space in the user interface.
可选的,可以调整用户界面中已有元素之间的横向间距和/或纵向间距,使得已有元素之间的横向和/或纵向间距变小,从而得到更多空闲空间,以放置待添加元素。Optionally, the horizontal spacing and/or vertical spacing between existing elements in the user interface can be adjusted so that the horizontal and/or vertical spacing between existing elements becomes smaller, thereby obtaining more free space for placing the to-be-added elements. element.
S1403:将待添加元素放置到调整后的用户界面的空间中。S1403: Place the element to be added in the space of the adjusted user interface.
举例来说,图17为本申请实施例提供的另一种设备控制方法中界面元素添加示意图。参见图17,实线圆角方框为已有元素,左侧图中用户界面的整体布局为4*5,空闲单元格为2*2,即还可放置四个待添加元素。若要在左侧图中的用户界面添加六个待添加元素,则用户界面中当前空闲空间不够,通过调整用户界面中已有元素之间的纵向间距,得到调整后的用户界面如图17右侧图所示,已有元素之间的纵向间距变小,使得用户界面的整体布局变为4*6,这样,用户界面有八个空闲单元格,足以把六个待添加元素都放置到调整后的用户界面的空闲空间中。For example, FIG. 17 is a schematic diagram of adding interface elements in another device control method provided by an embodiment of the present application. Referring to Figure 17, the solid line rounded box is an existing element, the overall layout of the user interface in the left figure is 4*5, and the free cell is 2*2, that is, four elements to be added can be placed. If you want to add six elements to be added to the user interface in the figure on the left, the current free space in the user interface is not enough. By adjusting the vertical spacing between the existing elements in the user interface, the adjusted user interface is obtained as shown in Figure 17. As shown in the side view, the vertical spacing between the existing elements becomes smaller, so that the overall layout of the user interface becomes 4*6. In this way, the user interface has eight free cells, which are enough to place the six elements to be added in the adjustment. After the user interface in the free space.
可选的,在调整用户界面中已有元素之间的间距之前,可以先缩小用户界面中的已有元素。如图18所示,图18为本申请实施例提供的用户界面已有元素缩小示意图。参见图18,左侧图中实线圆角方框为原来大小的已有元素,其尺寸可以为144*144像素,右侧图中实线圆角方框为缩小后的已有元素,其尺寸可以为122*122像素。通过缩小用户界面中已有元素,使得已有元素之间的横向和纵向间距都变大,然后可以将已有元素之间的横向和/或纵向间距变小,这样,就可以增多用户界面中空闲空间,在用户界面放置更多待添加元素,从而,提高了用户界面的空间利用率。Optionally, before adjusting the spacing between existing elements in the user interface, the existing elements in the user interface may be reduced first. As shown in FIG. 18 , FIG. 18 is a schematic diagram showing a reduced scale of existing elements of a user interface provided by an embodiment of the present application. Referring to Figure 18, the solid line rounded box in the left figure is the existing element of the original size, and its size can be 144*144 pixels, and the solid line rounded box in the right figure is the reduced existing element, and its size is 144*144 pixels. The size can be 122*122 pixels. By reducing the existing elements in the user interface, the horizontal and vertical spacing between the existing elements becomes larger, and then the horizontal and/or vertical spacing between the existing elements can be reduced, so that the number of user interface can be increased. In the free space, more elements to be added are placed on the user interface, thereby improving the space utilization of the user interface.
本实施例中,通过调整用户界面已有元素之间的间距,使得用户界面的 空闲空间增多,从而放置更多待添加元素,因此,提高了用户界面的空间利用率。In this embodiment, by adjusting the spacing between existing elements of the user interface, the free space of the user interface is increased, so that more elements to be added are placed, thus improving the space utilization rate of the user interface.
本申请实施例还提供了一种设备控制方法,请参见图19,图19为本申请实施例提供的另一种设备控制方法的流程示意图。该方法中,用户界面的空闲空间不连续,若用户界面中空闲空间不足以放置待添加元素,则移动用户界面中已有元素的位置,得到连续位置的空闲空间,放置待添加元素。该方法可以包括:An embodiment of the present application further provides a device control method. Please refer to FIG. 19 , which is a schematic flowchart of another device control method provided by an embodiment of the present application. In this method, the free space of the user interface is discontinuous. If the free space in the user interface is not enough to place the element to be added, the position of the existing element in the user interface is moved to obtain the free space of the continuous position, and the element to be added is placed. The method can include:
S1701:确定待添加元素和用户界面。S1701: Determine the element to be added and the user interface.
用户界面可以为放置待添加元素的界面,该用户界面的空闲空间的位置不连续。具体的,请参见S201。The user interface may be an interface for placing elements to be added, and the positions of the free spaces of the user interface are discontinuous. For details, please refer to S201.
S1702:若用户界面中空闲空间不足以放置待添加元素,则移动用户界面中至少一个已有元素的位置,得到连续位置的空闲空间。S1702: If the free space in the user interface is not enough to place the element to be added, move the position of at least one existing element in the user interface to obtain free space in consecutive positions.
可选的,可以通过如下至少一种方式得到连续位置的空闲空间:Optionally, the free space of the continuous location can be obtained in at least one of the following ways:
按第一顺序依次移动用户界面的至少一个已有元素的位置,得到连续位置的空闲空间;该第一顺序可以为从后到前,或从前到后的顺序;Move the position of at least one existing element of the user interface in a first order to obtain free space in consecutive positions; the first order can be from back to front, or from front to back;
或,按第二顺序依次移动用户界面的至少一个已有元素的位置,得到连续位置的空闲空间;该第二顺序为用户使用频率从低到高的顺序;Or, move the position of at least one existing element of the user interface in sequence in a second order to obtain free space in consecutive positions; the second order is the order of user frequency from low to high;
或,将用户界面的至少一个已有元素移动至少一个单元格,得到连续位置的N个空闲单元格空间;N为待添加元素所占单元格数量;其中N可以为1,2,3....等正整数。Or, move at least one existing element of the user interface by at least one cell to obtain N free cell spaces in consecutive positions; N is the number of cells occupied by the element to be added; where N can be 1, 2, 3.. .. etc. positive integers.
S1703:将待添加元素放置到用户界面的连续位置的空闲空间中。S1703: Place the element to be added into the free space of the continuous position of the user interface.
举例来说,图20为本申请实施例提供的另一种设备控制方法中界面元素添加示意图。参见图20,实线圆角方框为用户界面的已有元素,左侧图中用户界面的已有元素排布分散,三个空闲单元格不连续,只能放置三个1*1的待添加元素,若要放置1*3的待添加元素,则放置不下。通过移动用户界面中已有元素的位置,得到右侧图中用户界面,该用户界面的已有元素排布集中,三个空闲单元格连续,不仅可以放置三个1*1的待添加元素,还可以放置一个1*3的待添加元素。For example, FIG. 20 is a schematic diagram of adding interface elements in another device control method provided by an embodiment of the present application. Referring to Figure 20, the solid line rounded box is the existing elements of the user interface. The existing elements of the user interface in the left picture are scattered, and the three free cells are not continuous, and only three 1*1 waiting cells can be placed. Add elements, if you want to place 1*3 elements to be added, you cannot place them. By moving the position of the existing elements in the user interface, the user interface in the figure on the right is obtained. The existing elements of the user interface are arranged in a concentrated manner, and the three free cells are continuous. Not only can three 1*1 elements to be added be placed, You can also place a 1*3 element to be added.
本实施例中,通过移动用户界面中已有元素的位置,使得用户界面的不连续的空闲空间变成连续的空闲空间,这样,将用户界面中所有空闲空间集 中,可以放置不同种类不同大小的待添加元素,提高了用户界面的空间利用率。In this embodiment, by moving the positions of the existing elements in the user interface, the discontinuous free space of the user interface becomes a continuous free space. In this way, all the free spaces in the user interface are concentrated, and different types and sizes can be placed. The element to be added improves the space utilization of the user interface.
此外,需要说明的是,以上针对待添加元素的图4-图20实施例的方法同样适用于待移动元素,也就是用户界面元素移动方法与上述图4-图20实施例的界面元素添加方法相同,此处不再赘述。In addition, it should be noted that the above methods for elements to be added in the embodiments of FIGS. 4-20 are also applicable to elements to be moved, that is, the method for moving user interface elements and the method for adding interface elements in the above-mentioned embodiments of FIGS. 4-20 are the same, and will not be repeated here.
基于以上方法实施例,本申请还提供了设备控制装置,下面,对该设备控制装置进行详细说明。Based on the above method embodiments, the present application further provides a device control apparatus, which will be described in detail below.
图21为本申请实施例提供的一种设备控制装置的结构示意图。请参见图21,该设备控制装置190可以包括:确定模块1901和拆分模块1902,其中,FIG. 21 is a schematic structural diagram of a device control apparatus provided by an embodiment of the present application. Referring to FIG. 21 , the device control apparatus 190 may include: a determining module 1901 and a splitting module 1902, wherein:
所述确定模块1901用于,确定待添加元素和用户界面;所述待添加元素为组合元素;所述用户界面为放置所述待添加元素的界面;The determining module 1901 is used to determine an element to be added and a user interface; the element to be added is a combined element; the user interface is an interface for placing the element to be added;
所述拆分模块1902用于,若所述用户界面中空闲空间不足以放置所述待添加元素,将所述组合元素拆分成至少两个元素,以使所述至少两个元素能分别放置在所述用户界面的空闲空间中。The splitting module 1902 is configured to, if the free space in the user interface is not enough to place the element to be added, split the combined element into at least two elements, so that the at least two elements can be placed separately in the free space of the user interface.
本申请实施例所示的设备控制装置可以执行上述方法实施例所示的技术方案,其实现原理以及有益效果类似,此处不再进行赘述。The device control apparatus shown in the embodiments of the present application can implement the technical solutions shown in the foregoing method embodiments, and the implementation principles and beneficial effects thereof are similar, which will not be repeated here.
在一种可能的实施方式中,所述用户界面中空闲空间不足以放置所述待添加元素,包括如下至少一种:In a possible implementation manner, the free space in the user interface is insufficient to place the element to be added, including at least one of the following:
所述待添加元素所占单元格之间的位置分布不同于所述用户界面中空闲单元格之间的位置分布;The position distribution between the cells occupied by the element to be added is different from the position distribution between the idle cells in the user interface;
所述待添加元素形状不同于所述用户界面中空闲空间形状;The shape of the element to be added is different from the shape of the free space in the user interface;
所述待添加元素所占面积大于所述用户界面中空闲空间面积;The area occupied by the element to be added is larger than the area of the free space in the user interface;
所述待添加元素所占单元格的数量大于所述用户界面中空闲单元格的数量。The number of cells occupied by the element to be added is greater than the number of free cells in the user interface.
图22为本申请实施例提供的另一种设备控制装置的结构示意图。在图21所示实施例的基础上,请参见图22,设备控制装置190还包括放置模块1903,其中,FIG. 22 is a schematic structural diagram of another device control apparatus provided by an embodiment of the present application. On the basis of the embodiment shown in FIG. 21, please refer to FIG. 22, the device control apparatus 190 further includes a placement module 1903, wherein:
所述放置模块1903用于,在所述拆分模块1902将所述组合元素拆分成至少两个元素之后,根据拆分后的元素的优先级信息,将所述至少两个元素依次放置到所述用户界面的空闲空间中。The placing module 1903 is configured to, after the splitting module 1902 splits the combined element into at least two elements, place the at least two elements in sequence according to the priority information of the split elements. in the free space of the user interface.
在一种可能的实施方式中,所述拆分后的元素的优先级信息,包括如下至少一种:In a possible implementation manner, the priority information of the split elements includes at least one of the following:
拆分所述组合元素的先后顺序;the sequence of splitting the combined elements;
或用户使用频率从低到高,或从高到低的顺序。Or the order of user frequency from low to high, or from high to low.
在一种可能的实施方式中,所述装置还包括调整模块1904,其中,In a possible implementation manner, the apparatus further includes an adjustment module 1904, wherein:
所述调整模块1904用于,在所述拆分模块1902将所述组合元素拆分成至少两个元素之前,调整所述待添加元素的属性信息和/或所述用户界面中元素的布局信息。The adjustment module 1904 is configured to, before the splitting module 1902 splits the combined element into at least two elements, adjust the attribute information of the element to be added and/or the layout information of the element in the user interface .
在一种可能的实施方式中,所述调整模块1904还用于,在所述拆分模块1902将所述组合元素拆分成至少两个元素之后,调整所述元素的属性信息和/或所述用户界面中元素的布局信息。In a possible implementation manner, the adjustment module 1904 is further configured to, after the splitting module 1902 splits the combined element into at least two elements, adjust the attribute information and/or all the elements of the element. Describes the layout information of elements in the user interface.
在一种可能的实施方式中,所述属性信息包括如下信息中的至少一种:所述待添加元素所占面积、所述待添加元素所占单元格的数量、所述待添加元素所占单元格之间的位置分布、所述待添加元素形状、所述待添加元素的组合方式、所述待添加元素的优先级信息;和/或,In a possible implementation manner, the attribute information includes at least one of the following information: the area occupied by the element to be added, the number of cells occupied by the element to be added, the area occupied by the element to be added The location distribution between cells, the shape of the element to be added, the combination of the element to be added, the priority information of the element to be added; and/or,
所述布局信息包括如下信息中的至少一种:所述用户界面中空闲空间面积、所述用户界面中空闲单元格的数量、所述用户界面中空闲单元格之间的位置分布、所述用户界面中空闲空间形状、所述用户界面中已有元素之间的间距、所述用户界面中已有元素的优先级信息。The layout information includes at least one of the following information: the area of free space in the user interface, the number of free cells in the user interface, the location distribution between free cells in the user interface, the user interface The shape of the free space in the interface, the spacing between the existing elements in the user interface, and the priority information of the existing elements in the user interface.
在一种可能的实施方式中,所述属性信息的调整方式包括以下至少一种:缩小或裁剪所占面积、减少所占单元格的数量、调整所占单元格之间的位置分布或所述待添加元素形状、调整所述待添加元素的组合方式或优先级信息;和/或,In a possible implementation manner, the adjustment method of the attribute information includes at least one of the following: reducing or cropping the occupied area, reducing the number of occupied cells, adjusting the position distribution between the occupied cells, or the The shape of the element to be added, the combination method or priority information of adjusting the element to be added; and/or,
所述布局信息的调整方式包括以下至少一种:放大或扩大空闲空间面积、增加空闲单元格的数量、调整空闲单元格之间的位置分布或空闲空间形状、调整已有元素之间的间距或优先级信息。The adjustment method of the layout information includes at least one of the following: enlarging or expanding the area of the free space, increasing the number of free cells, adjusting the position distribution between the free cells or the shape of the free space, adjusting the spacing between existing elements or priority information.
在一种可能的实施方式中,所述将所述组合元素拆分成至少两个元素的方式,包括以下至少一种:In a possible implementation manner, the manner of splitting the combined element into at least two elements includes at least one of the following:
根据预设的组合元素拆分方式进行拆分;Split according to the preset splitting method of combined elements;
根据所述属性信息和/或所述布局信息进行拆分。Splitting is performed according to the attribute information and/or the layout information.
本申请实施例所示的设备控制装置可以执行上述方法实施例所示的技术方案,其实现原理以及有益效果类似,此处不再进行赘述。The device control apparatus shown in the embodiments of the present application can implement the technical solutions shown in the foregoing method embodiments, and the implementation principles and beneficial effects thereof are similar, and will not be repeated here.
图23为本申请实施例提供的另一种设备控制装置的结构示意图。请参见图23,该设备控制装置210可以包括:确定模块2101、移动模块2102和放置模块2103,其中,FIG. 23 is a schematic structural diagram of another device control apparatus provided by an embodiment of the present application. Referring to FIG. 23, the device control apparatus 210 may include: a determining module 2101, a moving module 2102 and a placing module 2103, wherein,
所述确定模块2101用于,确定待添加元素和用户界面;所述用户界面为放置所述待添加元素的界面;The determining module 2101 is used to determine an element to be added and a user interface; the user interface is an interface for placing the element to be added;
所述移动模块2102用于,若所述用户界面中空闲空间不足以放置所述待添加元素,则将所述用户界面的至少一个已有元素移动到其它用户界面;The moving module 2102 is configured to, if the free space in the user interface is not enough to place the element to be added, move at least one existing element of the user interface to another user interface;
所述放置模块2103用于,根据所述待添加元素的优先级信息,将所述待添加元素放置到所述用户界面的空间中;The placing module 2103 is configured to, according to the priority information of the element to be added, place the element to be added in the space of the user interface;
将所述用户界面的至少一个已有元素移动到其它用户界面,包括如下至少一种:Moving at least one existing element of the user interface to another user interface includes at least one of the following:
将所述用户界面的至少一个已有元素按第一顺序依次移动到其他用户界面;所述第一顺序为从后到前,或从前到后的顺序;moving at least one existing element of the user interface to other user interfaces in a first order; the first order is from back to front, or from front to back;
或将所述用户界面的至少一个已有元素按第二顺序依次移动到其他用户界面;所述第二顺序为用户使用频率从低到高的顺序;Or move at least one existing element of the user interface to other user interfaces in a second order; the second order is the order of the frequency of user usage from low to high;
或将所述用户界面的至少一个已有元素移动到其它用户界面,以在用户界面得到N个空闲单元格空间;所述N为待添加元素所占单元格数量;其中N为正整数。Or move at least one existing element of the user interface to another user interface, so as to obtain N free cell spaces in the user interface; the N is the number of cells occupied by the element to be added; wherein N is a positive integer.
本申请实施例所示的设备控制装置可以执行上述方法实施例所示的技术方案,其实现原理以及有益效果类似,此处不再进行赘述。The device control apparatus shown in the embodiments of the present application can implement the technical solutions shown in the foregoing method embodiments, and the implementation principles and beneficial effects thereof are similar, and will not be repeated here.
在一种可能的实施方式中,所述放置模块2103具体用于:In a possible implementation manner, the placing module 2103 is specifically used for:
确定所述用户界面的单元格的状态;determining the state of a cell of the user interface;
根据所述单元格的状态,将所述待添加元素放置到所述用户界面的空间中,其中,所述单元格的状态包括空闲状态或占用状态;所述空闲状态为待放置元素状态;所述占用状态为已放置元素状态。The element to be added is placed in the space of the user interface according to the state of the cell, wherein the state of the cell includes an idle state or an occupied state; the idle state is the state of the element to be placed; the The occupied state is the placed element state.
在一种可能的实施方式中,所述放置模块2103具体用于:In a possible implementation manner, the placing module 2103 is specifically used for:
若所述单元格的状态为空闲状态,则将所述待添加元素放置到所述用户界面的空闲状态的单元格中;If the state of the cell is an idle state, placing the element to be added into a cell in the idle state of the user interface;
确定所述用户界面中的待移动元素;determining the element to be moved in the user interface;
调整所述待移动元素的属性信息和/或所述用户界面中元素的布局信息,将所述待移动元素移动到所述用户界面的空闲空间中。The attribute information of the element to be moved and/or the layout information of the element in the user interface is adjusted, and the element to be moved is moved to the free space of the user interface.
在一种可能的实施方式中,所述用户界面中空闲空间不足以放置所述待添加元素,包括以下至少一种:In a possible implementation manner, the free space in the user interface is insufficient to place the element to be added, including at least one of the following:
所述待添加元素所占面积大于所述用户界面中空闲空间面积;The area occupied by the element to be added is larger than the area of the free space in the user interface;
所述待添加元素所占单元格的数量大于所述用户界面中空闲单元格的数量;The number of cells occupied by the element to be added is greater than the number of free cells in the user interface;
所述待添加元素所占单元格之间的位置分布不同于所述用户界面中空闲单元格之间的位置分布;The position distribution between the cells occupied by the element to be added is different from the position distribution between the idle cells in the user interface;
所述待添加元素形状不同于所述用户界面中空闲空间形状。The shape of the element to be added is different from the shape of the free space in the user interface.
图24为本申请实施例提供的再一种设备控制装置的结构示意图。在图23所示实施例的基础上,请参见图24,设备控制装置210还包括调整模块2104,其中,FIG. 24 is a schematic structural diagram of still another device control apparatus provided by an embodiment of the present application. On the basis of the embodiment shown in FIG. 23, please refer to FIG. 24, the device control apparatus 210 further includes an adjustment module 2104, wherein:
所述调整模块2104用于,在所述移动模块2102将所述用户界面的至少一个已有元素移动到其它用户界面之前,调整所述待添加元素的属性信息和/或所述用户界面中元素的布局信息。The adjustment module 2104 is configured to, before the moving module 2102 moves at least one existing element of the user interface to another user interface, adjust the attribute information of the element to be added and/or the element in the user interface layout information.
在一种可能的实施方式中,所述调整模块2104还用于,在所述移动模块2102将所述用户界面的至少一个已有元素移动到其它用户界面之后,调整所述已有元素的属性信息和/或所述用户界面中元素的布局信息。In a possible implementation manner, the adjusting module 2104 is further configured to, after the moving module 2102 moves at least one existing element of the user interface to another user interface, adjust the attribute of the existing element Information and/or layout information for elements in the user interface.
在一种可能的实施方式中,所述属性信息包括如下信息中的至少一种:所述待添加元素所占面积、所述待添加元素所占单元格的数量、所述待添加元素所占单元格之间的位置分布、所述待添加元素形状、所述待添加元素的组合方式、所述待添加元素的优先级信息;和/或,In a possible implementation manner, the attribute information includes at least one of the following information: the area occupied by the element to be added, the number of cells occupied by the element to be added, the area occupied by the element to be added The location distribution between cells, the shape of the element to be added, the combination of the element to be added, the priority information of the element to be added; and/or,
所述布局信息包括如下信息中的至少一种:所述用户界面中空闲空间面积、所述用户界面中空闲单元格的数量、所述用户界面中空闲单元格之间的位置分布、所述用户界面中空闲空间形状、所述用户界面中已有元素之间的间距、所述用户界面中已有元素的优先级信息。The layout information includes at least one of the following information: the area of free space in the user interface, the number of free cells in the user interface, the location distribution between free cells in the user interface, the user interface The shape of the free space in the interface, the spacing between the existing elements in the user interface, and the priority information of the existing elements in the user interface.
在一种可能的实施方式中,所述属性信息的调整方式包括以下至少一种:缩小或裁剪所占面积、减少所占单元格的数量、调整所占单元格之间的位置 分布或所述待添加元素形状、调整所述待添加元素的组合方式或优先级信息;和/或,In a possible implementation manner, the adjustment method of the attribute information includes at least one of the following: reducing or cropping the occupied area, reducing the number of occupied cells, adjusting the position distribution between the occupied cells, or the The shape of the element to be added, the combination method or priority information of adjusting the element to be added; and/or,
所述布局信息的调整方式包括以下至少一种:放大或扩大空闲空间面积、增加空闲单元格的数量、调整空闲单元格之间的位置分布或空闲空间形状、调整已有元素之间的间距或优先级信息。The adjustment method of the layout information includes at least one of the following: enlarging or expanding the area of the free space, increasing the number of free cells, adjusting the position distribution between the free cells or the shape of the free space, adjusting the spacing between existing elements or priority information.
在一种可能的实施方式中,所述移动模块2102具体用于:In a possible implementation manner, the moving module 2102 is specifically used for:
根据预设的移动方式进行移动;或者,Move according to a preset movement pattern; or,
根据所述属性信息和/或所述布局信息进行移动。The movement is performed according to the attribute information and/or the layout information.
图25为本申请实施例提供的设备控制装置的硬件结构示意图,请参见图25。该设备控制装置230包括:至少一个处理器2301和存储器2302。其中,处理器2301和存储器2302通过总线2303连接。FIG. 25 is a schematic diagram of a hardware structure of a device control apparatus provided by an embodiment of the present application. Please refer to FIG. 25 . The device control apparatus 230 includes: at least one processor 2301 and a memory 2302 . The processor 2301 and the memory 2302 are connected through a bus 2303 .
在具体实现过程中,至少一个处理器2301执行所述存储器2302存储的计算机执行指令,使得至少一个处理器2301执行如上的设备控制方法。In a specific implementation process, the at least one processor 2301 executes the computer-executed instructions stored in the memory 2302, so that the at least one processor 2301 executes the above device control method.
处理器2301的具体实现过程可参见上述方法实施例,其实现原理和技术效果类似,本实施例此处不再赘述。For the specific implementation process of the processor 2301, reference may be made to the foregoing method embodiments, and the implementation principles and technical effects thereof are similar, and details are not described herein again in this embodiment.
图25示出的设备控制装置仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。The device control apparatus shown in FIG. 25 is only an example, and should not impose any limitations on the functions and scope of use of the embodiments of the present disclosure.
本申请还提供一种设备,所述设备包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如上所述的方法的步骤。The present application also provides a device, the device comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, the computer program being executed by the processor to achieve the above the steps of the method.
本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如上述任意方法实施例所述的设备控制方法。Embodiments of the present application further provide a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and when a processor executes the computer-executable instructions, the method described in any of the foregoing method embodiments is implemented. Device control method.
本申请实施例还提供一种计算机程序产品,所述计算机程序产品包括计算机程序代码,当所述计算机程序代码在计算机上运行时,使得计算机执行如上各种可能的实施方式中所述的方法。The embodiments of the present application also provide a computer program product, the computer program product includes computer program code, when the computer program code is run on a computer, the computer is made to execute the method described in the various possible implementation manners above.
本申请实施例还提供一种芯片,包括存储器和处理器,所述存储器用于存储计算机程序,所述处理器用于从所述存储器中调用并运行所述计算机程序,使得安装有所述芯片的设备执行如上各种可能的实施方式中所述的方法。An embodiment of the present application further provides a chip, including a memory and a processor, where the memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that a chip installed with the chip is The apparatus performs the method as described in the various possible embodiments above.
需要说明的是,在本文中,采用了诸如S201、S202等步骤代号,其目的 是为了更清楚简要地表述相应内容,不构成顺序上的实质性限制,本领域技术人员在具体实施时,可能会先执行S202后执行S201等,但这些均应在本申请的保护范围之内。It should be noted that, in this article, step codes such as S201 and S202 are used, the purpose of which is to express the corresponding content more clearly and briefly, and does not constitute a substantial restriction on the sequence. Those skilled in the art may S202 will be executed first and then S201, etc., but these should all fall within the protection scope of this application.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素,此外,本申请不同实施例中具有同样命名的部件、特征、要素可能具有相同含义,也可能具有不同含义,其具体含义需以其在该具体实施例中的解释或者进一步结合该具体实施例中上下文进行确定。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element defined by the phrase "comprises a..." does not preclude the presence of additional identical elements in the process, method, article, or device that includes the element, and further, different implementations of the present application Components, features and elements with the same names in the examples may have the same meaning or may have different meanings, and their specific meanings need to be determined by their explanations in this specific embodiment or further combined with the context in this specific embodiment.
应当理解,尽管在本文可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本文范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语"如果"可以被解释成为"在……时"或"当……时"或"响应于确定"。再者,如同在本文中所使用的,单数形式“一”、“一个”和“该”旨在也包括复数形式,除非上下文中有相反的指示。应当进一步理解,术语“包含”、“包括”表明存在所述的特征、步骤、操作、元件、组件、项目、种类、和/或组,但不排除一个或多个其他特征、步骤、操作、元件、组件、项目、种类、和/或组的存在、出现或添加。此处使用的术语“或”和“和/或”被解释为包括性的,或意味着任一个或任何组合。因此,“A、B或C”或者“A、B和/或C”意味着“以下任一个:A;B;C;A和B;A和C;B和C;A、B和C”。仅当元件、功能、步骤或操作的组合在某些方式下内在地互相排斥时,才会出现该定义的例外。It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited by these terms. These terms are only used to distinguish the same type of information from each other. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of this document. The word "if" as used herein can be interpreted as "at the time of" or "when" or "in response to determining", depending on the context. Also, as used herein, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context dictates otherwise. It should be further understood that the terms "comprising", "comprising" indicate the presence of stated features, steps, operations, elements, components, items, kinds, and/or groups, but do not exclude one or more other features, steps, operations, The existence, appearance or addition of elements, assemblies, items, categories, and/or groups. The terms "or" and "and/or" as used herein are to be construed to be inclusive or to mean any one or any combination. Thus, "A, B or C" or "A, B and/or C" means "any of the following: A; B; C; A and B; A and C; B and C; A, B and C" . Exceptions to this definition arise only when combinations of elements, functions, steps, or operations are inherently mutually exclusive in some way.
应该理解的是,虽然本申请实施例中的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,其可以以其他的顺序执行。而且,图中的至少一部分步骤可以包括多个子步骤或者多 个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,其执行顺序也不必然是依次进行,而是可以与其他步骤或者其他步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that, although the steps in the flowcharts in the embodiments of the present application are displayed in sequence according to the arrows, these steps are not necessarily executed in the sequence indicated by the arrows. Unless explicitly stated herein, the execution of these steps is not strictly limited to the order and may be performed in other orders. Moreover, at least a part of the steps in the figure may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but may be executed at different times, and the execution order is not necessarily sequential. Instead, it may be performed in turn or alternately with other steps or at least a portion of sub-steps or stages of other steps.
本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments may be completed by program instructions related to hardware. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps including the above method embodiments are executed; and the foregoing storage medium includes: ROM, RAM, magnetic disk or optical disk and other media that can store program codes.
最后应说明的是:以上各实施例仅用以说明本申请实施例的技术方案,而非对其限制;尽管参照前述各实施例对本申请实施例进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请实施例方案的范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the embodiments of the present application, but not to limit them; It should be understood that: it is still possible to modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements to some or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the embodiments of the present application scope of the programme.

Claims (20)

  1. 一种设备控制方法,其特征在于,所述方法包括:A device control method, characterized in that the method comprises:
    确定待添加元素和用户界面;所述待添加元素为组合元素;所述用户界面为放置所述待添加元素的界面;Determine the element to be added and the user interface; the element to be added is a combined element; the user interface is an interface for placing the element to be added;
    若所述用户界面中空闲空间不足以放置所述待添加元素,将所述组合元素拆分成至少两个元素,以使所述至少两个元素能分别放置在所述用户界面的空闲空间中。If the free space in the user interface is not enough to place the element to be added, split the combined element into at least two elements, so that the at least two elements can be placed in the free space of the user interface respectively .
  2. 根据权利要求1所述的方法,其特征在于,所述用户界面中空闲空间不足以放置所述待添加元素,包括如下至少一种:The method according to claim 1, wherein the free space in the user interface is insufficient to place the element to be added, comprising at least one of the following:
    所述待添加元素所占单元格之间的位置分布不同于所述用户界面中空闲单元格之间的位置分布;The position distribution between the cells occupied by the element to be added is different from the position distribution between the idle cells in the user interface;
    所述待添加元素形状不同于所述用户界面中空闲空间形状;The shape of the element to be added is different from the shape of the free space in the user interface;
    所述待添加元素所占面积大于所述用户界面中空闲空间面积;The area occupied by the element to be added is larger than the area of the free space in the user interface;
    所述待添加元素所占单元格的数量大于所述用户界面中空闲单元格的数量。The number of cells occupied by the element to be added is greater than the number of free cells in the user interface.
  3. 根据权利要求1所述的方法,其特征在于,将所述组合元素拆分成至少两个元素之后,还包括:The method according to claim 1, wherein after splitting the combined element into at least two elements, the method further comprises:
    根据拆分后的元素的优先级信息,将所述至少两个元素依次放置到所述用户界面的空闲空间中。The at least two elements are sequentially placed in the free space of the user interface according to the priority information of the split elements.
  4. 根据权利要求3所述的方法,其特征在于,所述拆分后的元素的优先级信息,包括如下至少一种:The method according to claim 3, wherein the priority information of the split elements includes at least one of the following:
    拆分所述组合元素的先后顺序;the sequence of splitting the combined elements;
    或用户使用频率从低到高,或从高到低的顺序。Or the order of user frequency from low to high, or from high to low.
  5. 根据权利要求1所述的方法,其特征在于,在所述将所述组合元素拆分成至少两个元素之前,还包括以下至少一种:The method according to claim 1, wherein before the splitting the combined element into at least two elements, the method further comprises at least one of the following:
    调整所述待添加元素的属性信息和/或所述用户界面中元素的布局信息。The attribute information of the element to be added and/or the layout information of the element in the user interface is adjusted.
  6. 根据权利要求1所述的方法,其特征在于,在所述将所述组合元素拆分成至少两个元素之后,还包括以下至少一种:The method according to claim 1, wherein after the splitting the combined element into at least two elements, the method further comprises at least one of the following:
    调整所述元素的属性信息和/或所述用户界面中元素的布局信息。The attribute information of the element and/or the layout information of the element in the user interface are adjusted.
  7. 根据权利要求5或6所述的方法,其特征在于,The method according to claim 5 or 6, characterized in that,
    所述属性信息包括如下信息中的至少一种:所述待添加元素所占面积、所述待添加元素所占单元格的数量、所述待添加元素所占单元格之间的位置分布、所述待添加元素形状、所述待添加元素的组合方式、所述待添加元素的优先级信息;和/或,The attribute information includes at least one of the following information: the area occupied by the element to be added, the number of cells occupied by the element to be added, the position distribution among the cells occupied by the element to be added, and the number of cells occupied by the element to be added. the shape of the element to be added, the combination of the element to be added, and the priority information of the element to be added; and/or,
    所述布局信息包括如下信息中的至少一种:所述用户界面中空闲空间面积、所述用户界面中空闲单元格的数量、所述用户界面中空闲单元格之间的位置分布、所述用户界面中空闲空间形状、所述用户界面中已有元素之间的间距、所述用户界面中已有元素的优先级信息。The layout information includes at least one of the following information: the area of free space in the user interface, the number of free cells in the user interface, the location distribution between free cells in the user interface, the user interface The shape of the free space in the interface, the spacing between the existing elements in the user interface, and the priority information of the existing elements in the user interface.
  8. 根据权利要求7所述的方法,其特征在于,The method of claim 7, wherein:
    所述属性信息的调整方式包括以下至少一种:缩小或裁剪所占面积、减少所占单元格的数量、调整所占单元格之间的位置分布或所述待添加元素形状、调整所述待添加元素的组合方式或优先级信息;和/或,The adjustment method of the attribute information includes at least one of the following: reducing or cropping the occupied area, reducing the number of occupied cells, adjusting the position distribution between the occupied cells or the shape of the element to be added, adjusting the The combination or priority information of adding elements; and/or,
    所述布局信息的调整方式包括以下至少一种:放大或扩大空闲空间面积、增加空闲单元格的数量、调整空闲单元格之间的位置分布或空闲空间形状、调整已有元素之间的间距或优先级信息。The adjustment method of the layout information includes at least one of the following: enlarging or expanding the area of the free space, increasing the number of free cells, adjusting the position distribution between the free cells or the shape of the free space, adjusting the spacing between existing elements or priority information.
  9. 根据权利要求7所述的方法,其特征在于,所述将所述组合元素拆分成至少两个元素的方式,包括以下至少一种:The method according to claim 7, wherein the manner of splitting the combined element into at least two elements comprises at least one of the following:
    根据预设的组合元素拆分方式进行拆分;Split according to the preset splitting method of combined elements;
    根据所述属性信息和/或所述布局信息进行拆分。Splitting is performed according to the attribute information and/or the layout information.
  10. 一种设备控制方法,其特征在于,所述方法包括:A device control method, characterized in that the method comprises:
    确定待添加元素和用户界面;所述用户界面为放置所述待添加元素的界面;Determine the element to be added and a user interface; the user interface is an interface for placing the element to be added;
    若所述用户界面中空闲空间不足以放置所述待添加元素,则将所述用户界面的至少一个已有元素移动到其它用户界面,根据所述待添加元素的优先级信息,将所述待添加元素放置到所述用户界面的空间中;If the free space in the user interface is not enough to place the element to be added, move at least one existing element of the user interface to another user interface, and move the element to be added according to the priority information of the element to be added. add elements to be placed in the space of the user interface;
    将所述用户界面的至少一个已有元素移动到其它用户界面,包括如下至少一种:Moving at least one existing element of the user interface to another user interface includes at least one of the following:
    将所述用户界面的至少一个已有元素按第一顺序依次移动到其他用户界面;所述第一顺序为从后到前,或从前到后的顺序;moving at least one existing element of the user interface to other user interfaces in a first order; the first order is from back to front, or from front to back;
    或将所述用户界面的至少一个已有元素按第二顺序依次移动到其他用户界面;所述第二顺序为用户使用频率从低到高的顺序;Or move at least one existing element of the user interface to other user interfaces in a second order; the second order is an order in which the user's frequency of use is from low to high;
    或将所述用户界面的至少一个已有元素移动到其它用户界面,以在用户界面得到N个空闲单元格空间;所述N为待添加元素所占单元格数量;其中N为正整数。Or move at least one existing element of the user interface to another user interface, so as to obtain N free cell spaces in the user interface; the N is the number of cells occupied by the element to be added; wherein N is a positive integer.
  11. 根据权利要求10所述的方法,其特征在于,将所述待添加元素放置到所述用户界面的空间中,包括:The method according to claim 10, wherein placing the element to be added into the space of the user interface comprises:
    确定所述用户界面的单元格的状态;determining the state of a cell of the user interface;
    根据所述单元格的状态,将所述待添加元素放置到所述用户界面的空间中,其中,所述单元格的状态包括空闲状态或占用状态;所述空闲状态为待放置元素状态;所述占用状态为已放置元素状态。The element to be added is placed in the space of the user interface according to the state of the cell, wherein the state of the cell includes an idle state or an occupied state; the idle state is the state of the element to be placed; the The occupied state is the placed element state.
  12. 根据权利要求11所述的方法,其特征在于,所述根据所述单元格的状态,将所述待添加元素放置到所述用户界面的空间中,包括:The method according to claim 11, wherein the placing the element to be added in the space of the user interface according to the state of the cell comprises:
    若所述单元格的状态为空闲状态,则将所述待添加元素放置到所述用户界面的空闲状态的单元格中;If the state of the cell is an idle state, placing the element to be added into a cell in the idle state of the user interface;
    确定所述用户界面中的待移动元素;determining the element to be moved in the user interface;
    调整所述待移动元素的属性信息和/或所述用户界面中元素的布局信息,将所述待移动元素移动到所述用户界面的空闲空间中。The attribute information of the element to be moved and/or the layout information of the element in the user interface is adjusted, and the element to be moved is moved to the free space of the user interface.
  13. 根据权利要求10至12中任一项所述的方法,其特征在于,所述用户界面中空闲空间不足以放置所述待添加元素,包括以下至少一种:The method according to any one of claims 10 to 12, wherein the free space in the user interface is insufficient to place the element to be added, comprising at least one of the following:
    所述待添加元素所占面积大于所述用户界面中空闲空间面积;The area occupied by the element to be added is larger than the area of the free space in the user interface;
    所述待添加元素所占单元格的数量大于所述用户界面中空闲单元格的数量;The number of cells occupied by the element to be added is greater than the number of free cells in the user interface;
    所述待添加元素所占单元格之间的位置分布不同于所述用户界面中空闲单元格之间的位置分布;The position distribution between the cells occupied by the element to be added is different from the position distribution between the idle cells in the user interface;
    所述待添加元素形状不同于所述用户界面中空闲空间形状。The shape of the element to be added is different from the shape of the free space in the user interface.
  14. 根据权利要求10所述的方法,其特征在于,在所述将所述用户界面的至少一个已有元素移动到其它用户界面之前,还包括以下至少一种:The method according to claim 10, wherein before the moving at least one existing element of the user interface to another user interface, the method further comprises at least one of the following:
    调整所述待添加元素的属性信息和/或所述用户界面中元素的布局信息。The attribute information of the element to be added and/or the layout information of the element in the user interface is adjusted.
  15. 根据权利要求10所述的方法,其特征在于,在所述将所述用户界面的至少一个已有元素移动到其它用户界面之后,还包括以下至少一种:The method according to claim 10, wherein after the moving at least one existing element of the user interface to another user interface, the method further comprises at least one of the following:
    调整所述已有元素的属性信息和/或所述用户界面中元素的布局信息。The attribute information of the existing element and/or the layout information of the element in the user interface are adjusted.
  16. 根据权利要求14或15所述的方法,其特征在于,The method according to claim 14 or 15, wherein,
    所述属性信息包括如下信息中的至少一种:所述待添加元素所占面积、所述待添加元素所占单元格的数量、所述待添加元素所占单元格之间的位置分布、所述待添加元素形状、所述待添加元素的组合方式、所述待添加元素的优先级信息;和/或,The attribute information includes at least one of the following information: the area occupied by the element to be added, the number of cells occupied by the element to be added, the location distribution among the cells occupied by the element to be added, and the number of cells occupied by the element to be added. the shape of the element to be added, the combination of the element to be added, and the priority information of the element to be added; and/or,
    所述布局信息包括如下信息中的至少一种:所述用户界面中空闲空间面积、所述用户界面中空闲单元格的数量、所述用户界面中空闲单元格之间的位置分布、所述用户界面中空闲空间形状、所述用户界面中已有元素之间的间距、所述用户界面中已有元素的优先级信息。The layout information includes at least one of the following information: the area of free space in the user interface, the number of free cells in the user interface, the location distribution between free cells in the user interface, the user interface The shape of the free space in the interface, the spacing between the existing elements in the user interface, and the priority information of the existing elements in the user interface.
  17. 根据权利要求16所述的方法,其特征在于,The method of claim 16, wherein:
    所述属性信息的调整方式包括以下至少一种:缩小或裁剪所占面积、减少所占单元格的数量、调整所占单元格之间的位置分布或所述待添加元素形状、调整所述待添加元素的组合方式或优先级信息;和/或,The adjustment method of the attribute information includes at least one of the following: reducing or cropping the occupied area, reducing the number of occupied cells, adjusting the position distribution between the occupied cells or the shape of the element to be added, adjusting the The combination or priority information of adding elements; and/or,
    所述布局信息的调整方式包括以下至少一种:放大或扩大空闲空间面积、增加空闲单元格的数量、调整空闲单元格之间的位置分布或空闲空间形状、调整已有元素之间的间距或优先级信息。The adjustment method of the layout information includes at least one of the following: enlarging or expanding the area of the free space, increasing the number of free cells, adjusting the position distribution between the free cells or the shape of the free space, adjusting the spacing between existing elements or priority information.
  18. 根据权利要求16所述的方法,其特征在于,所述将所述用户界面的至少一个已有元素移动到其它用户界面的方式,包括以下至少一种:The method according to claim 16, wherein the manner of moving at least one existing element of the user interface to another user interface comprises at least one of the following:
    根据预设的移动方式进行移动;Move according to the preset movement mode;
    根据所述属性信息和/或所述布局信息进行移动。The movement is performed according to the attribute information and/or the layout information.
  19. 一种设备控制装置,其特征在于,包括:至少一个处理器和存储器;A device control device, characterized in that it includes: at least one processor and a memory;
    所述存储器用于存储计算机执行指令;the memory is used to store computer-executable instructions;
    所述至少一个处理器用于执行所述存储器存储的计算机执行指令,使得所述至少一个处理器执行如权利要求1至18中任一项所述的设备控制方法。The at least one processor is configured to execute computer-executable instructions stored in the memory, so that the at least one processor executes the device control method of any one of claims 1 to 18.
  20. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如权利要求1至18中任一项所述的设备控制方法。A computer-readable storage medium, wherein computer-executable instructions are stored in the computer-readable storage medium, and when a processor executes the computer-executable instructions, any one of claims 1 to 18 is implemented. device control method.
PCT/CN2020/109331 2020-08-14 2020-08-14 Device control method and apparatus, and storage medium WO2022032673A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202080104801.6A CN116249960A (en) 2020-08-14 2020-08-14 Device control method, device and storage medium
PCT/CN2020/109331 WO2022032673A1 (en) 2020-08-14 2020-08-14 Device control method and apparatus, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/109331 WO2022032673A1 (en) 2020-08-14 2020-08-14 Device control method and apparatus, and storage medium

Publications (1)

Publication Number Publication Date
WO2022032673A1 true WO2022032673A1 (en) 2022-02-17

Family

ID=80247507

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/109331 WO2022032673A1 (en) 2020-08-14 2020-08-14 Device control method and apparatus, and storage medium

Country Status (2)

Country Link
CN (1) CN116249960A (en)
WO (1) WO2022032673A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102929506A (en) * 2012-09-21 2013-02-13 广州市久邦数码科技有限公司 Method for quickly adding desktop elements to desktop
US20130055124A1 (en) * 2010-04-28 2013-02-28 Huawei Device Co., Ltd. Method and apparatus for adding icon to interface of android system, and mobile terminal
CN103914211A (en) * 2014-04-04 2014-07-09 华为终端有限公司 Automatic interface element adjusting method and automatic interface element adjusting device
CN104156155A (en) * 2014-08-29 2014-11-19 广州视源电子科技股份有限公司 Desktop widget arranging method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130055124A1 (en) * 2010-04-28 2013-02-28 Huawei Device Co., Ltd. Method and apparatus for adding icon to interface of android system, and mobile terminal
CN102929506A (en) * 2012-09-21 2013-02-13 广州市久邦数码科技有限公司 Method for quickly adding desktop elements to desktop
CN103914211A (en) * 2014-04-04 2014-07-09 华为终端有限公司 Automatic interface element adjusting method and automatic interface element adjusting device
CN104156155A (en) * 2014-08-29 2014-11-19 广州视源电子科技股份有限公司 Desktop widget arranging method and device

Also Published As

Publication number Publication date
CN116249960A (en) 2023-06-09

Similar Documents

Publication Publication Date Title
CN107247746B (en) Data sharing method and terminal
CN108037893B (en) Display control method and device of flexible screen and computer readable storage medium
WO2020258929A1 (en) Folder interface switching method and terminal device
WO2021083132A1 (en) Icon moving method and electronic device
WO2021098695A1 (en) Information sharing method and electronic device
WO2020151525A1 (en) Message sending method, and terminal device
CN109697008B (en) Content sharing method, terminal and computer readable storage medium
CN109460170B (en) Screen expansion and interaction method, terminal and computer readable storage medium
WO2021136183A1 (en) Paste control method and electronic device
US11392267B2 (en) Icon display control method and terminal
CN110244884B (en) Desktop icon management method and terminal equipment
WO2020173281A1 (en) Interface display method and terminal device
WO2023015774A1 (en) Switching method, mobile terminal, and storage medium
WO2021197264A1 (en) Interface display method and electronic device
WO2021104193A1 (en) Interface display method and electronic device
WO2020192662A1 (en) Operation method and terminal device
CN109683796B (en) Interaction control method, equipment and computer readable storage medium
CN109918015B (en) Terminal response method, terminal and computer readable storage medium
CN109753483B (en) File management application page display method and device, mobile terminal and storage medium
CN109067976B (en) Desktop automatic switching method, mobile terminal and computer readable storage medium
CN110955397A (en) Method for setting frame rate of game terminal, game terminal and storage medium
WO2022032673A1 (en) Device control method and apparatus, and storage medium
WO2023108444A1 (en) Image processing method, intelligent terminal, and storage medium
CN113900559A (en) Information processing method, mobile terminal and storage medium
CN112230825A (en) Sharing method, mobile terminal and storage medium

Legal Events

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

Ref document number: 20949171

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20949171

Country of ref document: EP

Kind code of ref document: A1