[go: up one dir, main page]

WO2015149679A1 - 界面元素的自动调整方法和装置 - Google Patents

界面元素的自动调整方法和装置 Download PDF

Info

Publication number
WO2015149679A1
WO2015149679A1 PCT/CN2015/075471 CN2015075471W WO2015149679A1 WO 2015149679 A1 WO2015149679 A1 WO 2015149679A1 CN 2015075471 W CN2015075471 W CN 2015075471W WO 2015149679 A1 WO2015149679 A1 WO 2015149679A1
Authority
WO
WIPO (PCT)
Prior art keywords
interface
interface element
new
adjusted
space
Prior art date
Legal status (The legal status 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 status listed.)
Ceased
Application number
PCT/CN2015/075471
Other languages
English (en)
French (fr)
Inventor
许顺
钱鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Device Co Ltd
Original Assignee
Huawei Device Co Ltd
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 Huawei Device Co Ltd filed Critical Huawei Device Co Ltd
Priority to KR1020167029125A priority Critical patent/KR20160134815A/ko
Priority to EP15772486.5A priority patent/EP3115877A4/en
Priority to BR112016023018-3A priority patent/BR112016023018B1/pt
Priority to US15/301,664 priority patent/US20170123645A1/en
Publication of WO2015149679A1 publication Critical patent/WO2015149679A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2340/00Aspects of display data processing
    • G09G2340/04Changes in size, position or resolution of an image
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2340/00Aspects of display data processing
    • G09G2340/04Changes in size, position or resolution of an image
    • G09G2340/0464Positioning
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2340/00Aspects of display data processing
    • G09G2340/14Solving problems related to the presentation of information to be displayed
    • G09G2340/145Solving problems related to the presentation of information to be displayed related to small screens
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2354/00Aspects of interface with display user
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/14Display of multiple viewports

Definitions

  • Embodiments of the present invention relate to computer technologies, and in particular, to an automatic adjustment method and apparatus for interface elements.
  • Widget also known as Widget
  • Widgets are tiny program views that can be embedded in other applications and accepted periodically. Update.
  • the Widget is embedded in the desktop.
  • the desktop is mostly a grid design. For example, a 4x4 grid or a 5x5 grid is used.
  • the widget In order to adapt to the design of the desktop, the widget must specify its own size. Usually, the size of the widget is a fixed size. .
  • the desktop grid size is fixed and the remaining contiguous space of each screen on the desktop is also different, if the widget has only one size, the flexibility of placing the widget on the desktop is poor. For example, some desktops cannot be placed because of the small remaining space. Widgets, while some desktops have a lot of contiguous space, and using smaller widgets is not convenient for users.
  • One way to solve this problem is to provide different sizes of widget icons for the same widget.
  • Another way is to provide a resizable widget, such as browser bookmarks and calendar widgets provided by goole can be resized.
  • Embodiments of the present invention provide an automatic adjustment method and device for an interface element, which can automatically adjust the position and size of an interface element, facilitate user operations, improve user experience, and improve The efficiency of the user interface.
  • a first aspect of the present invention provides a method for automatically adjusting an interface element, including:
  • the adjusting an interface element on the first interface according to a location to be placed and a required space of the new interface element a position and a size, such that the remaining contiguous space of the adjusted first interface is sufficient to place the new interface element, and the new interface element is added to the adjusted first interface including:
  • the interface element on the first interface includes at least one widget icon, respectively detecting whether the at least one widget icon has a corresponding small-sized widget icon;
  • the at least one widget icon has a corresponding small-sized widget icon, replacing the at least one widget icon with a corresponding small-sized widget icon according to a space required by the new interface element;
  • the method further includes:
  • the method further includes:
  • the adjusting an interface element on the first interface according to a location to be placed and a required space of the new interface element a position and a size, so that the remaining continuous space of the adjusted first interface is sufficient to place the new interface element, and the new interface element is added to the adjusted first interface including:
  • a second aspect of the present invention provides an automatic adjustment device for an interface element, including:
  • An obtaining module configured to acquire an adding operation signal generated by a user adding a new interface element
  • a determining module configured to determine, according to the adding operation signal acquired by the acquiring module, a location of the new interface element to be placed in the first interface and a space required to place the new interface element
  • an adjusting module configured to: when the determining module determines, according to the to-be-placed position of the new interface element and the required space, that the remaining continuous space of the first interface is insufficient to place the new interface element, according to the new interface element
  • the position to be placed and the required space adjust the position and size of the interface element on the first interface, so that the remaining continuous space of the adjusted first interface is sufficient to place the new interface element, and the new interface An element is added to the adjusted first interface.
  • the adjusting module includes:
  • a detecting unit configured to detect, when the interface element on the first interface includes at least one widget icon, whether the at least one widget icon has a corresponding small-sized widget icon;
  • a replacement unit configured to replace the at least one widget icon with a corresponding small-sized widget according to a space required by the new interface element when the at least one widget icon has a corresponding small-sized widget icon icon;
  • the adjusting module further includes:
  • a moving unit configured to move an interface element on the first interface to a second interface when the at least one widget icon does not have a corresponding small-sized widget icon, so that the adjusted first The remaining contiguous space of the interface is sufficient to place the new interface element
  • the moving unit is configured to: when the at least one widget icon does not have a corresponding small-sized widget icon, move the interface element on the first interface except the widget icon to a preset file Clamping so that the remaining continuous space of the adjusted first interface is sufficient to place the new interface element;
  • the adding unit is further configured to add the new interface element to the adjusted first interface when the remaining continuous space of the adjusted first interface is sufficient to place the new interface element Within the remaining contiguous space.
  • the adjusting module further includes:
  • a moving unit configured to move the interface element on the first interface to the second interface when the remaining continuous space of the adjusted first interface is insufficient to place the new interface element, so as to be adjusted The remaining continuous space of the first interface is sufficient to place the new interface element;
  • the moving unit is configured to: when the remaining continuous space of the adjusted first interface is insufficient to place the new interface element, interface elements other than the widget icons on the first interface Moving to a preset folder such that the remaining continuous space of the adjusted first interface is sufficient to place the new interface element;
  • the adding unit is further configured to add the new interface element to the adjusted first interface when the remaining continuous space of the adjusted first interface is sufficient to place the new interface element Within the remaining contiguous space.
  • the adjusting module is specifically configured to:
  • the adjusting module is further configured to:
  • the widget icon If there is a widget icon on the first interface, detecting whether the widget icon has a corresponding large ruler If the widget icon has a corresponding large size widget icon, after deleting the interface element on the first interface, the widget icon is replaced with a corresponding large size micro Pieces icon.
  • the automatic adjustment method and device for the interface element in the embodiment of the present invention can automatically determine the first location of the new interface element and the required space when the user adds a new interface element to cause a change in the layout of the first interface of the electronic device. Whether the remaining contiguous space of the interface is sufficient to place a new interface element. When the remaining contiguous space of the first interface is insufficient to place a new interface element, the other interface elements on the first interface are automatically adjusted according to the position to be placed and the required space of the new interface element. The location and size make the first interface large enough to place new interface elements.
  • the above method is automatically completed by the electronic device, and does not require the user to manually operate the interface element, which is convenient for the user to operate, brings a better experience to the user, and improves the use efficiency of the user interface.
  • FIG. 1 is a flowchart of a method for automatically adjusting an interface element according to Embodiment 1 of the present invention
  • FIG. 2 is a flowchart of a method for automatically adjusting an interface element according to Embodiment 2 of the present invention
  • Figure 3 is a schematic diagram of widget icons of different sizes
  • FIG. 4 is a schematic diagram of adjustment of a resizable widget icon
  • FIG. 5 is a schematic structural diagram of an apparatus for automatically adjusting an interface element according to Embodiment 3 of the present invention.
  • FIG. 6 is a schematic structural diagram of an apparatus for automatically adjusting an interface element according to Embodiment 4 of the present invention.
  • FIG. 7 is a schematic structural diagram of an electronic device according to Embodiment 5 of the present invention.
  • Embodiment 1 is a flowchart of a method for automatically adjusting an interface element according to Embodiment 1 of the present invention.
  • the method provided in this embodiment is mainly applied to an electronic device with a touch screen, such as a mobile phone, a tablet computer, or a personal digital assistant (referred to as a personal digital assistant).
  • the executor of the present invention is the electronic device described above, and may be implemented by a module or a chip having a processing function in the electronic device, for example, a central processing unit (CPU).
  • the method of this embodiment may include the following steps:
  • Step 10 Acquire an add operation signal generated by the user adding a new interface element, and determine, according to the add operation signal, a location to be placed of the new interface element in the first interface and a space required to place the new interface element.
  • the operation of adding a new interface element by the user may be an operation of manually adding a new interface element according to a user's needs, or an operation of automatically generating a shortcut icon by the application during the operation of the application by the user.
  • the touch screen on the electronic device can detect the operation of the user and acquire the added operation signal, and then determine the location of the new interface element to be placed and the size of the space required to place the new interface element according to the acquired added operation signal.
  • the new interface element may be any of the following icons: a widget icon, an application icon, a folder icon, a shortcut icon.
  • Step 20 When it is determined that the remaining continuous space of the first interface is not enough to place the new interface element according to the to-be-placed position and the required space of the new interface element, adjust the first position according to the new interface element and the required space. The position and size of the interface element on the interface, so that the remaining continuous space of the adjusted first interface is sufficient to place the new interface element, and the new interface element is added to the adjusted first interface.
  • the contiguous space here refers to a free area of size N x M existing on a certain screen of the desktop, and the free area is an area where icons of widget widgets, application icons, folder icons, shortcuts, and the like are not placed.
  • the desktop is usually divided into X x Y grids of the same size, X represents the number of horizontal networks, and Y represents the number of grids in the vertical direction.
  • the free area of N x M is an area of M networks in the horizontal direction of N networks, and both N and M are positive integers greater than or equal to 1. For example, when a user needs to add a 4x2 size widget, the 4x2 size widget needs 4x2 size contiguous space, and the 4x2 size continuation cannot have any icons.
  • the calculation method of the continuous space can be calculated by traversing the grid. For example, if the user needs to add a 4x2 widget on the first interface, the first grid of the first interface is checked, and the first network is checked. Whether the grid is free. If the first grid is occupied, continue to determine if the second grid is free. If the first network is idle, determine whether the grid on the right side of the first grid is free. If you want to add a 4x2 widget, at least 3 free grids on the right side of the first network will meet the horizontal condition.
  • the horizontal condition is met, it is further determined whether the vertical condition is met, that is, whether the first four grids of the next line of the first network are idle, and if the first four grids of the next line are idle, it indicates that there is continuous
  • the remaining space is enough to place the 4x2 widget. If the first 4 grids of the next row are partially occupied, the remaining contiguous space is insufficient, start checking the second grid, and so on, traversing all the grids. .
  • the new interface element is added to the first interface. Add the new interface element to the first interface. There are two ways to do this:
  • the new interface element is added to the remaining contiguous space of the first interface.
  • the remaining contiguous space is not necessarily the location to be placed of the new interface element, and the location of the new interface element to be placed. When there are other interface elements on it, you can place the new interface element in the remaining contiguous space.
  • the new interface element is placed into the new interface element. Place to be placed. If there are other interface elements in the to-be-positioned position of the new interface element, move the other interface elements on the position to be placed of the new interface element to the remaining continuous space of the first interface, and then place the new interface element into the The location of the new interface element to be placed. In this way, other interface elements on the position to be placed can be automatically moved to the remaining continuous space, and the new interface element is placed on the position to be placed. The user is not required to manually move other interface elements on the location to be moved to the remaining contiguous space, giving the user a better experience.
  • the electronic device can automatically adjust the position and size of the interface element on the first interface according to the position to be placed and the required space of the new interface element. For example, if there is a widget icon on the first interface, replace the widget icon on the first interface with a smaller widget icon, if you replace each widget icon with a smaller widget icon, the rest When the contiguous space is still not enough to place the new interface element, The other interface elements other than the widget icon on the first interface are merged into the preset folder, so that the adjusted first interface is enough to place the new interface element, and the preset folder is an existing folder or a new folder. .
  • the partial interface element or all interface elements on the first interface are merged into the preset folder, so that the adjusted first interface is enough to place the new interface element. If there is no widget icon on the first interface, but other interface elements on the first interface can also be resized, for example, the application icon and the folder icon also have corresponding small size icons, then some or all of the first interface will be The application icon and folder icon are replaced with a small-sized icon so that the adjusted first interface is sufficient to place the new interface element.
  • the user when the user adds a new interface element to cause a change in the layout of the first interface of the electronic device, it can automatically determine whether the remaining continuous space of the first interface is sufficient according to the to-be-placed position of the new interface element and the required space.
  • the new interface element when the remaining continuous space of the first interface is not enough to place the new interface element, automatically adjusts the position and size of other interface elements on the first interface according to the position to be placed and the required space of the new interface element, so that the first interface element The interface is large enough to place new interface elements.
  • the above method is automatically completed by the electronic device, and does not require the user to manually operate the interface element, which is convenient for the user to operate, brings a better experience to the user, and improves the use efficiency of the user interface.
  • FIG. 2 is a flowchart of a method for automatically adjusting an interface element according to Embodiment 2 of the present invention. As shown in FIG. 2, the method in this embodiment may include the following steps:
  • Step 201 Determine whether there is a widget icon on the first interface.
  • step 202 If there is a widget icon on the first interface, step 202 is performed. If there is no widget icon on the first interface, step 203 is performed.
  • Step 202 Detect whether at least one widget icon has a corresponding small-sized widget icon.
  • the interface element on the first interface includes at least one widget icon, perform this step to detect whether the at least one widget icon has a corresponding small-sized widget icon.
  • a widget icon of various sizes is provided for the same widget to be selected by the user, and the user can select a widget of a suitable size according to the size of the displayed page and the remaining continuous space. icon.
  • FIG. 3 is a schematic diagram of widget icons of different sizes, and FIG. 3 provides icons of three sizes of 2x1, 4x1, and 4x2.
  • the prior art can also provide a resizable widget icon, and the user can adjust the widget icon to an appropriate size according to personal needs and preferences.
  • Figure 4 is a schematic diagram of the adjustment of the resizable widget icon.
  • the widget icon has a border prompt, and the boundary of the widget icon is dragged.
  • the center point can change the size of the widget icon.
  • the first interface includes at least one widget icon, and the at least one widget icon may have a widget icon of a small size; or may not have a widget icon of a small size; or, on the first interface When two or more widget icons are included, some widget icons have small widget icons, and some widget icons have widget widgets of small size. If at least one widget icon on the first interface has a corresponding small-sized widget icon, step 204 is performed, if each widget icon on the first interface does not have a corresponding small-sized widget icon, Go to step 205.
  • Step 203 Move an interface element on the first interface to the second interface, so that the remaining continuous space of the adjusted first interface is sufficient to place the new interface element, and the new interface element is added to the adjusted first interface. Within the remaining contiguous space; or, move the interface element on the first interface to the preset folder, so that the remaining contiguous space of the adjusted first interface is sufficient to place the new interface element, and add the new interface element to the adjustment After the remaining contiguous space of the first interface.
  • part of the desktop element or all the desktop elements on the first interface may be moved to the second interface according to the space required by the new interface element, and the second interface It may be the previous screen interface or the next screen interface adjacent to the first interface, or other interfaces.
  • the interface element on the first interface is moved to the preset folder, some desktop elements or all desktop elements on the first interface may also be moved to the preset folder according to the space required by the new interface element.
  • Set the folder to be a new folder, or a folder already on the first interface.
  • the embodiments of the present invention are not limited.
  • Step 204 Replace at least one widget icon with a corresponding small-sized widget icon according to a space required by the new interface element, and determine whether the remaining continuous space of the adjusted first interface is sufficient to place the new interface element.
  • step 206 is performed, and if the remaining contiguous space of the first interface is insufficient to place the new interface element, step 205 is performed.
  • Step 205 Move the interface element on the first interface to the second interface, or move the interface element except the widget icon on the first interface to the preset folder, so that the adjusted first interface The remaining contiguous space is sufficient to place the new interface element and add the new interface element to the remaining contiguous space of the adjusted first interface.
  • the interface element on the first interface When the interface element on the first interface is moved to the second interface, part of the desktop element or all the desktop elements on the first interface may be moved to the second interface according to the space required by the new interface element, and the second interface It may be the previous screen interface or the next screen interface adjacent to the first interface, or other interfaces.
  • the interface element except the widget icon is moved to the preset folder, and some desktop elements or all desktops except the widget icons may be removed from the first interface according to the space required by the new interface element.
  • the element moves to the preset folder, which may be a new folder or a folder already existing on the first interface. In this regard, the embodiments of the present invention are not limited.
  • Step 206 Add the new interface element to the remaining contiguous space of the adjusted first interface.
  • the widget icon by detecting whether there is a widget icon on the first interface, if there is a widget icon on the first interface, and the widget icon has a corresponding small-sized widget icon, the widget icon is replaced with a small size. Widget icon and adjust the position of the interface element so that the remaining contiguous space on the first interface is sufficient to place the new interface element, and then add the new interface element to the first interface.
  • the above adjustment process is automatically completed by the electronic device, does not require user participation, is convenient for the user to operate, brings a better experience to the user, and improves the use efficiency of the user interface.
  • the solution of the embodiment of the present invention may further include the following steps: determining the first interface when the electronic device detects that the user deletes the deletion operation signal of the interface element on the first interface. Whether there is a widget icon on the first interface; if there is a widget icon on the first interface, it is detected whether the widget icon has a corresponding large-sized widget icon, and if the widget icon has a corresponding large-sized widget icon, it is deleted. After the interface element on the first interface, the widget icon is replaced with a corresponding large-sized widget icon.
  • the above method can fully utilize the space of the display page, and the large-sized widget icon can display more content, improve the use efficiency of the interface, and improve the user experience.
  • the scheme of the present embodiment is compared with the prior art.
  • the prior art when a user wants to add a new interface element, if the space of the first interface is insufficient, but the user wants to retain the original widget icon, the user needs Manually delete the original larger widget icon and re-add the widget widget.
  • the user needs to perform at least the following three steps: 1 delete the larger size on the first interface Widget icon; 2 add a new interface element; 3 after the new interface element is added successfully, add the deleted small size widget icon corresponding to the small size widget icon.
  • the user only needs to perform an action of adding a new interface element, and then the electronic device automatically detects whether the original widget icon has a corresponding small size icon, if the original widget icon has a corresponding small size.
  • the widget icon automatically replaces the original widget icon with a small widget icon.
  • the replacement process does not require user participation, and is automatically completed by the electronic device, which facilitates user operation and improves the user experience.
  • FIG. 5 is a schematic structural diagram of an apparatus for automatically adjusting an interface element according to Embodiment 3 of the present invention.
  • the apparatus for automatically adjusting an interface element provided by the embodiment includes: an obtaining module 31, a determining module 32, and an adjusting module 33. .
  • the obtaining module 31 is configured to acquire an adding operation signal generated by a user adding a new interface element.
  • a determining module 32 configured to determine, according to the adding operation signal acquired by the obtaining module 31, a location of the new interface element to be placed in the first interface and a space required to place the new interface element;
  • the adjusting module 33 is configured to: when the determining module 32 determines that the remaining continuous space of the first interface is insufficient to place the new interface element according to the to-be-placed position of the new interface element and the required space, according to the new The position to be placed and the required space of the interface element adjust the position and size of the interface element on the first interface, so that the remaining continuous space of the adjusted first interface is sufficient to place the new interface element, A new interface element is added to the adjusted first interface.
  • the adjusting module 33 is further configured to: determine, when the deletion operation signal of the interface element on the first interface is deleted, whether there is a widget icon on the first interface; The interface has a widget icon, and detects whether the widget icon has a corresponding large-sized widget icon. If the widget icon has a corresponding large-sized widget icon, deleting the first interface After the interface element, the widget icon is replaced with a corresponding large-sized widget icon.
  • the automatic adjustment device of the interface element provided in this embodiment may be used to implement the technical solution of the first embodiment of the method, and the specific implementation manner and the technical effect are similar, and details are not described herein again.
  • FIG. 6 is a schematic structural diagram of an apparatus for automatically adjusting an interface element according to Embodiment 4 of the present invention.
  • the apparatus for automatically adjusting an interface element provided by the embodiment includes: an obtaining module 41, a determining module 42, and an adjusting module 43. .
  • the obtaining module 41 is configured to acquire an adding operation signal generated by the user adding a new interface element.
  • a determining module 42 configured to determine, according to the added operation signal acquired by the acquiring module 41 a location of the new interface element to be placed in the first interface and a space required to place the new interface element;
  • the adjusting module 43 is configured to: when the determining module 42 determines that the remaining continuous space of the first interface is insufficient to place the new interface element according to the to-be-placed position of the new interface element and the required space, according to the new The position to be placed and the required space of the interface element adjust the position and size of the interface element on the first interface, so that the remaining continuous space of the adjusted first interface is sufficient to place the new interface element, A new interface element is added to the adjusted first interface.
  • the adjustment case 43 when the adjustment module 43 adjusts the position and size of the interface element on the first interface according to the location to be placed and the required space of the new interface element, the adjustment case 43 is mainly divided into the following three cases:
  • the first interface has at least one widget icon, and at least one widget icon has a corresponding small-sized widget icon; in the second case, the first interface has at least one widget icon, but each widget icon does not have Corresponding small-sized widget drawing; In the third case, there is no widget icon on the first interface.
  • the following describes how to adjust the position and size of the interface element on the first interface in three cases.
  • the adjustment module 43 includes: a detecting unit 431, a replacing unit 432, and an adding unit 433, where the detecting unit 431 is configured to detect the at least one element when the interface element on the first interface includes at least one widget icon Whether the widget icon has a corresponding small-sized widget icon; the replacing unit 432 is configured to: when the at least one widget icon has a corresponding small-sized widget icon, according to a space required by the new interface element The at least one widget icon is replaced with a corresponding small-sized widget icon; the adding unit 433 is configured to: when the adjusted remaining space of the first interface is sufficient to place the new interface element, the new interface An element is added to the remaining continuous space of the adjusted first interface.
  • the adjustment module 43 further includes a moving unit 434, configured to move the interface element on the first interface to the first when the at least one widget icon does not have a corresponding small-sized widget icon a second interface, such that the remaining continuous space of the adjusted first interface is sufficient to place the new interface element; or the mobile unit 434 is configured to have no corresponding small size in the at least one widget icon Moving the interface elements of the first interface except the icons of the widgets to a preset folder, so that the remaining continuous space of the adjusted first interface is sufficient to place the new interface.
  • the adding unit is further configured to add the new interface element when the remaining continuous space of the adjusted first interface is sufficient to place the new interface element And added to the remaining continuous space of the adjusted first interface.
  • the moving unit 434 is further configured to: when the remaining continuous space of the adjusted first interface is insufficient to place the new interface element, move the interface element on the first interface to the second interface, so that The remaining continuous space of the adjusted first interface is sufficient to place the new interface element; or, the interface elements on the first interface except the icons of the widgets are moved to a preset folder, so as to adjust The remaining continuous space of the first interface is sufficient to place the new interface element; the adding unit is further configured to: when the remaining continuous space of the adjusted first interface is sufficient to place the new interface element And adding the new interface element to the remaining contiguous space of the adjusted first interface.
  • the adjusting module 43 is specifically configured to: move the interface element on the first interface to the second interface, so that the adjusted The remaining contiguous space of an interface is sufficient to place the new interface element, adding the new interface element to the remaining contiguous space of the adjusted first interface; or, the interface element on the first interface Moving to a preset folder such that the remaining continuous space of the adjusted first interface is sufficient to place the new interface element, and adding the new interface element to the remaining continuous of the adjusted first interface Within the space.
  • the adjusting module 43 is further configured to: determine, when the deletion operation signal of the interface element on the first interface is deleted, whether there is a widget icon on the first interface; The interface has a widget icon, and detects whether the widget icon has a corresponding large-sized widget icon. If the widget icon has a corresponding large-sized widget icon, deleting the first interface After the interface element, the widget icon is replaced with a corresponding large-sized widget icon.
  • the automatic adjustment device of the interface element provided in this embodiment may be used to implement the technical solution of the second embodiment of the method.
  • the specific implementation manner and technical effects are similar, and details are not described herein again.
  • FIG. 7 is a schematic structural diagram of an electronic device according to Embodiment 5 of the present invention.
  • the electronic device 500 provided in this embodiment includes: at least one processor 51, a memory 52, and at least one communication bus 53, and a communication bus 53. Used to implement connection communication between these components.
  • the processor 51 is operative to execute executable instructions, such as computer programs, stored in the memory 52.
  • the memory 52 may include a high speed random access memory (RAM) and may also include a non-volatile memory such as at least one disk memory.
  • RAM high speed random access memory
  • non-volatile memory such as at least one disk memory.
  • the memory 52 stores a program
  • the processor 51 executes a program stored in the memory 52 for performing the following operations:
  • the processor 51 adjusts the position and size of the interface element on the first interface according to the to-be-placed position and the required space of the new interface element, so that the remaining continuous space of the adjusted first interface is sufficient. And when the new interface element is added to the adjusted first interface, specifically used for:
  • the interface element on the first interface includes at least one widget icon, respectively detecting whether the at least one widget icon has a corresponding small-sized widget icon; if the at least one widget icon has a corresponding small a size widget icon, replacing the at least one widget icon with a corresponding small-sized widget icon according to a space required by the new interface element; if the adjusted remaining space of the first interface is sufficient And placing the new interface element, and adding the new interface element to the remaining continuous space of the adjusted first interface.
  • the at least one widget icon does not have a corresponding small-sized widget icon, move the interface element on the first interface to the second interface, so that the remaining continuous space of the adjusted first interface is sufficient
  • the new interface element is placed, and the new interface element is added to the remaining continuous space of the adjusted first interface; or the interface of the first interface except the widget icons is Moving the element to a preset folder such that the remaining contiguous space of the adjusted first interface is sufficient to place the new interface element, and adding the new interface element to the remaining of the adjusted first interface In a continuous space.
  • the processor 51 is specifically configured to: move the interface element on the first interface to the second interface, so that The remaining continuous space of the adjusted first interface is sufficient to place the new interface element, and the new interface element is added to the remaining continuous space of the adjusted first interface; or An interface element other than the widget icons is moved to a preset folder on an interface, so that the remaining continuous space of the adjusted first interface is sufficient to place the new interface element And adding the new interface element to the remaining continuous space of the adjusted first interface.
  • the processor 51 is specifically configured to: move the interface element on the first interface to the second interface, so that the adjusted first interface The remaining contiguous space is sufficient to place the new interface element, adding the new interface element to the remaining contiguous space of the adjusted first interface; or moving the interface element on the first interface to Presetting a folder such that the remaining continuous space of the adjusted first interface is sufficient to place the new interface element, and adding the new interface element to the remaining continuous space of the adjusted first interface .
  • the processor 51 is further configured to: when detecting a deletion operation signal for deleting an interface element on the first interface, determining whether there is a widget icon on the first interface; if the first interface is Having a widget icon, detecting whether the widget icon has a corresponding large-sized widget icon, and if the widget icon has a corresponding large-sized widget icon, deleting the interface element on the first interface Thereafter, the widget icon is replaced with a corresponding large-sized widget icon.
  • the electronic device provided in this embodiment can be used to implement the technical solutions in the first embodiment and the second embodiment.
  • the specific implementation and technical effects are similar, and details are not described herein again.
  • the aforementioned program can be stored in a computer readable storage medium.
  • the program when executed, performs the steps including the foregoing method embodiments; and the foregoing storage medium includes various media that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.

Landscapes

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

Abstract

本发明实施例提供一种界面元素的自动调整方法和装置,所述方法包括:获取用户添加新界面元素产生的添加操作信号,并根据所述添加操作信号确定所述新界面元素的待放置位置和需要的空间;当根据所述新界面元素的待放置位置和需要的空间确定所述第一界面的剩余连续空间是否足够放置所述新界面元素时,根据所述新界面元素的待放置位置和需要的空间调整所述第一界面上的界面元素的位置和大小,以使调整后的第一界面的剩余空间足够放置所述新界面元素。上述方法在第一界面空间不足时,能够自动调整界面元素的位置和大小,以使第一界面足够放置所述新界面元素,不需要用户手动操作界面元素,给用户带来更好的体验,同时提高了用户界面的使用效率。

Description

界面元素的自动调整方法和装置
本申请要求于2014年04月04日提交中国专利局、申请号为201410135821.6、发明名称为“界面元素的自动调整方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明实施例涉及计算机技术,尤其涉及一种界面元素的自动调整方法和装置。
背景技术
随着互联网技术的发展,Widget(也称为微件)被广泛应用到智能手机、平板电脑、台式电脑等电子设备上,Widget是微小的程序视图,可以嵌入到其他应用程序中,并接受定期的更新。常见的是将Widget嵌入到桌面,目前桌面多是网格设计,如采用了4x4的网格或5x5的网格,widget为了适应桌面的设计,必须规定自己的大小,通常widget的大小为固定大小。
由于桌面网格大小固定,并且桌面上每一屏的剩余连续空间也不相同,如果widget只有一种尺寸会使得widget在桌面上放置的灵活性差,例如,有些桌面由于剩余连续空间小而无法放置widget,而有些桌面剩余连续空间很大,使用较小尺寸的widget不方便用户操作。为了解决这个问题,一种方式是,对于同一个widget,提供不同尺寸的widget图标供用户选择。另一种方式是提供可调整尺寸的widget,例如goole提供的浏览器书签和日历widget可以调整尺寸。
但是,现有技术的两种方式都需要用户手动选择或调整,用户操作繁琐,给用户带来不好的体验。而且,对于第二种方式,加大了widget开发难度,目前支持此方案的widget很少。
发明内容
本发明实施例提供一种界面元素的自动调整方法和装置,能够能够自动调整界面元素的位置和大小,方便用户操作,提高了用户体验,同时也提高 了用户界面的使用效率。
本发明第一方面提供一种界面元素的自动调整方法,包括:
获取用户添加新界面元素产生的添加操作信号,并根据所述添加操作信号确定所述新界面元素在第一界面的待放置位置和放置所述新界面元素需要的空间;
当根据所述新界面元素的待放置位置和需要的空间确定所述第一界面的剩余连续空间不足够放置所述新界面元素时,根据所述新界面元素的待放置位置和需要的空间调整所述第一界面上的界面元素的位置和大小,以使调整后的所述第一界面的剩余连续空间足够放置所述新界面元素,并将所述新界面元素添加到所述调整后的所述第一界面上。
结合本发明第一方面,在本发明第一方面的第一种可能的实现方式中,所述根据所述新界面元素的待放置位置和需要的空间调整所述第一界面上的界面元素的位置和大小,以使调整后的所述第一界面的剩余连续空间足够放置所述新界面元素,并将所述新界面元素添加到所述调整后的所述第一界面上,包括:
如果所述第一界面上的界面元素包括至少一个微件图标,则分别检测所述至少一个微件图标是否有对应的小尺寸的微件图标;
如果所述至少一个微件图标有对应的小尺寸的微件图标,根据所述新界面元素需要的空间将所述至少一个微件图标替换为对应的小尺寸的微件图标;
如果所述调整后的所述第一界面的剩余连续空间足够放置所述新界面元素,则将所述新界面元素添加到所述调整后的所述第一界面的剩余连续空间内。
结合本发明第一方面的第一种可能的实现方式,在本发明第一方面的第二种可能的实现方式中,如果所述至少一个微件图标都没有对应的小尺寸的微件图标,所述方法还包括:
将所述第一界面上的界面元素移动至第二界面,以使调整后的所述第一界面的剩余连续空间足够放置所述新界面元素,将所述新界面元素添加到所述调整后的所述第一界面的剩余连续空间内;
或者,
将所述第一界面上除所述各微件图标外的界面元素移动至预设文件夹, 以使调整后的所述第一界面的剩余连续空间足够放置所述新界面元素,将所述新界面元素添加到所述调整后的所述第一界面的剩余连续空间内。
结合本发明第一方面的第一种可能的实现方式,在本发明第一方面的第三种可能的实现方式中,如果所述调整后的所述第一界面的剩余连续空间不足够放置所述新界面元素,则所述方法还包括:
将所述第一界面上的界面元素移动至第二界面,以使调整后的所述第一界面的剩余连续空间足够放置所述新界面元素,将所述新界面元素添加到所述调整后的所述第一界面的剩余连续空间内;
或者,将所述第一界面上除所述各微件图标外的界面元素移动至预设文件夹,以使调整后的所述第一界面的剩余连续空间足够放置所述新界面元素,将所述新界面元素添加到所述调整后的所述第一界面的剩余连续空间内。
结合本发明第一方面,在本发明第一方面的第四种可能的实现方式中,所述根据所述新界面元素的待放置位置和需要的空间调整所述第一界面上的界面元素的位置和大小,以使调整后的所述第一界面的剩余连续空间足够放置所述新界面元素,将所述新界面元素添加到调整后的所述第一界面上,包括:
当所述第一界面上的界面元素不包括微件图标时,将所述第一界面上的界面元素移动至第二界面,以使调整后的所述第一界面的剩余连续空间足够放置所述新界面元素,将所述新界面元素添加到所述调整后的所述第一界面的剩余连续空间内;
或者,当所述第一界面上的界面元素不包括微件图标时,将所述第一界面上的界面元素移动至预设文件夹,以使调整后的所述第一界面的剩余连续空间足够放置所述新界面元素,将所述新界面元素添加到所述调整后的所述第一界面的剩余连续空间内。
结合本发明第一方面以及本发明第一方面的第一种至第四种可能的实现方式,在本发明第一方面的第五种可能的实现方式中,还包括:
当检测到删除所述第一界面上的界面元素的删除操作信号时,确定所述第一界面上是否有微件图标;
如果所述第一界面上有微件图标,检测所述微件图标是否有对应的大尺寸的微件图标,若所述微件图标有对应的大尺寸的微件图标,则在删除所述 第一界面上的界面元素之后,将所述微件图标替换为对应的大尺寸的微件图标。
本发明第二方面提供一种界面元素的自动调整装置,包括:
获取模块,用于获取用户添加新界面元素产生的添加操作信号;
确定模块,用于根据所述获取模块获取的所述添加操作信号确定所述新界面元素在第一界面的待放置位置和放置所述新界面元素需要的空间;
调整模块,用于当所述确定模块根据所述新界面元素的待放置位置和需要的空间确定所述第一界面的剩余连续空间不足够放置所述新界面元素时,根据所述新界面元素的待放置位置和需要的空间调整所述第一界面上的界面元素的位置和大小,以使调整后的所述第一界面的剩余连续空间足够放置所述新界面元素,将所述新界面元素添加到所述调整后的所述第一界面上。
结合本发明第二方面,在本发明第二方面的第一种可能的实现方式中,所述调整模块包括:
检测单元,用于在所述第一界面上的界面元素包括至少一个微件图标时,分别检测所述至少一个微件图标是否有对应的小尺寸的微件图标;
替换单元,用于在所述至少一个微件图标有对应的小尺寸的微件图标时,根据所述新界面元素需要的空间将所述至少一个微件图标替换为对应的小尺寸的微件图标;
添加单元,用于在所述调整后的所述第一界面的剩余连续空间足够放置所述新界面元素时,将所述新界面元素添加到所述调整后的所述第一界面的剩余连续空间内。
结合本发明第二方面的第一种可能的实现方式,在本发明第二方面的第二种可能的实现方式中,所述调整模块还包括:
移动单元,用于在所述至少一个微件图标都没有对应的小尺寸的微件图标时,将所述第一界面上的界面元素移动至第二界面,以使调整后的所述第一界面的剩余连续空间足够放置所述新界面元素;
或者,
所述移动单元,用于在所述至少一个微件图标都没有对应的小尺寸的微件图标时,将所述第一界面上除所述各微件图标外的界面元素移动至预设文件夹,以使调整后的所述第一界面的剩余连续空间足够放置所述新界面元素;
所述添加单元,还用于在所述调整后的所述第一界面的剩余连续空间足够放置所述新界面元素时,将所述新界面元素添加到所述调整后的所述第一界面的剩余连续空间内。
结合本发明第二方面的第一种可能的实现方式,在本发明第二方面的第三种可能的实现方式中,所述调整模块还包括:
移动单元,用于在所述调整后的所述第一界面的剩余连续空间不足够放置所述新界面元素时,将所述第一界面上的界面元素移动至第二界面,以使调整后的所述第一界面的剩余连续空间足够放置所述新界面元素;
或者,
所述移动单元,用于在所述调整后的所述第一界面的剩余连续空间不足够放置所述新界面元素时,将所述第一界面上除所述各微件图标外的界面元素移动至预设文件夹,以使调整后的所述第一界面的剩余连续空间足够放置所述新界面元素;
所述添加单元,还用于在所述调整后的所述第一界面的剩余连续空间足够放置所述新界面元素时,将所述新界面元素添加到所述调整后的所述第一界面的剩余连续空间内。
结合本发明第二方面,在本发明第二方面的第四种可能的实现方式中,所述调整模块具体用于:
当所述第一界面上的界面元素不包括微件图标时,将所述第一界面上的界面元素移动至第二界面,以使调整后的所述第一界面的剩余连续空间足够放置所述新界面元素,将所述新界面元素添加到所述调整后的所述第一界面的剩余连续空间内;
或者,将所述第一界面上的界面元素移动至预设文件夹,以使调整后的所述第一界面的剩余连续空间足够放置所述新界面元素,将所述新界面元素添加到所述调整后的所述第一界面的剩余连续空间内。
结合本发明第二方面以及本发明第二方面的第一种至第四种可能的实现方式,在本发明第二方面的第五种可能的实现方式中,所述调整模块还用于:
当检测到删除所述第一界面上的界面元素的删除操作信号时,确定所述第一界面上是否有微件图标;
如果所述第一界面上有微件图标,检测所述微件图标是否有对应的大尺 寸的微件图标,若所述微件图标有对应的大尺寸的微件图标,则在删除所述第一界面上的界面元素之后,将所述微件图标替换为对应的大尺寸的微件图标。
本发明实施例的界面元素的自动调整方法和装置,当用户添加新界面元素引起电子设备的第一界面的布局发生变化时,能够自动根据新界面元素的待放置位置和需要的空间确定第一界面的剩余连续空间是否足够放置新界面元素,在第一界面的剩余连续空间不足够放置新界面元素时,自动根据新界面元素的待放置位置和需要的空间调整第一界面上的其他界面元素的位置和大小,使第一界面足够放置新界面元素。上述方法由电子设备自动完成,不需要用户手动操作界面元素,方便用户操作,给用户带来更好的体验,同时提高了用户界面的使用效率。
附图说明
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本发明实施例一提供的界面元素的自动调整方法的流程图;
图2为本发明实施例二提供的界面元素的自动调整方法的流程图;
图3为不同尺寸的微件图标的示意图;
图4为可调整尺寸的微件图标的调整示意图;
图5为本发明实施例三提供的界面元素的自动调整装置的结构示意图;
图6为本发明实施例四提供的界面元素的自动调整装置的结构示意图;
图7为本发明实施例五提供的电子设备的结构示意图。
具体实施方式
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述, 显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
图1为本发明实施例一提供的界面元素的自动调整方法的流程图,本实施例提供的方法主要应用于具有触摸屏的电子设备,例如手机、平板电脑、个人数字助理(personal digital assistant,简称PAD)等,本发明的执行主体为上述的电子设备,具体可以通过上述电子设备中具有处理功能的模块或芯片来实现,例如:中央处理器(central process unit,简称CPU)等。如图1所示,本实施例的方法可以包括以下步骤:
步骤10、获取用户添加新界面元素产生的添加操作信号,并根据添加操作信号确定该新界面元素在第一界面的待放置位置和放置该新界面元素需要的空间。
用户添加新界面元素的操作可以为用户根据自己的需要手动添加新界面元素的操作,也可以为用户操作应用程序的过程中,应用程序自动生成快捷方式图标的操作。电子设备上的触摸屏能够检测到用户的操作,并获取到该添加操作信号,然后,根据获取的添加操作信号确定新界面元素的待放置位置以及放置该新界面元素需要的空间大小。其中,该新界面元素可以为以下图标中的任意一种:微件(widget)图标、应用程序图标、文件夹图标、快捷方式图标。
步骤20、当根据该新界面元素的待放置位置和需要的空间确定第一界面的剩余连续空间不足够放置该新界面元素时,根据该新界面元素的待放置位置和需要的空间调整第一界面上的界面元素的位置和大小,以使调整后的第一界面的剩余连续空间足够放置该新界面元素,并将该新界面元素添加到调整后的第一界面上。
这里的连续空间是指在桌面的某一屏上存在的大小为N x M的空闲区域,空闲区域即为未放置微件widget图标、应用程序图标、文件夹图标、快捷方式等图标的区域。现有技术中,桌面通常被划分成X x Y个大小相同的网格,X表示横向的网络数,Y表示纵向的网格数。N x M的空闲区域即为横向N个网络纵向M个网络的区域,N和M都为大于等于1的正整数。举例来说,当用户需要添加一个4x2大小的widget时,该4x2大小的widget需要4x2大小的连续空间,该4x2大小的连续内不能有任何图标。
连续空间的计算方法可以通过一种遍历网格的计算方式,例如用户需要在第一界面上添加一个4x2大小的widget,则从第一界面的第一个网格开始检查,检查第一个网格是否空闲。如果第一个网格被占用了,则继续判断第二个网格是否空闲。如果第一个网络空闲,则判断第一个网格右侧的网格是否空闲,如果要添加4x2大小的widget,第一个网络的右侧至少得有3个空闲网格才符合横向条件,如果符合横向条件,进一步判断是否符合纵向条件,即检查第一个网络的下一行网格的前4个网格是否空闲,若下一行网格的前4个网格空闲,则说明有连续的剩余空间足够放置该4x2大小的widget,若下一行网格的前4个网格有部分被占用了,则说明剩余连续空间不足,开始检查第二个网格,依次类推,遍历所有的网格。
如果第一界面的剩余连续空间足够放置该新界面元素,则将该新界面元素添加到第一界面上。将该新界面元素添加到第一界面上,具体可以有以下两种方式:
第一种方式,将该新界面元素添加到第一界面的剩余连续空间,这种实现方式中,剩余连续空间不一定是该新界面元素的待放置位置,当该新界面元素的待放置位置上有其他界面元素时,则可以将该新界面元素放置到剩余连续空间内。
第二种方式,首先,判断该新界面元素的待放置位置上是否有其他界面元素;如果该新界面元素的待放置位置上没有其他界面元素,则将该新界面元素放置到该新界面元素的待放置位置上。如果该新界面元素的待放置位置上有其他界面元素,则将该新界面元素的待放置位置上的其他界面元素移动至第一界面的剩余连续空间内,然后,将该新界面元素放置到该新界面元素的待放置位置上。这种方式中,能够自动的将待放置位置上的其他界面元素移动至剩余连续空间,并将该新界面元素放置到待放置位置上。不需要用户手动将待放置位置上的其他界面元素移动至剩余连续空间,给用户带来更好的体验。
如果第一界面的剩余连续空间不足,无法放置该新界面元素时,电子设备能够自动根据该新界面元素的待放置位置和需要的空间调整第一界面上的界面元素的位置和大小。例如,如果第一界面上有微件图标,则将第一界面上的微件图标替换为更小尺寸的微件图标,如果将各微件图标替换为更小尺寸的微件图标后,剩余的连续空间还是不足够放置该新界面元素时,将该 第一界面上除微件图标外的其他界面元素合并至预设文件夹,已使调整后的第一界面足够放置该新界面元素,该预设文件夹为一个现有文件夹或新建文件夹。如果第一界面上没有微件图标,将该第一界面上的部分界面元素或全部界面元素合并至预设文件夹,已使调整后的第一界面足够放置该新界面元素。如果第一界面上没有微件图标,但是该第一界面上的其他界面元素也能够调整大小,例如应用程序图标和文件夹图标也有对应的小尺寸图标,则将第一界面上的部分或者全部应用程序图标和文件夹图标替换为小尺寸的图标,以使调整后的第一界面足够放置该新界面元素。
本实施例的方法,当用户添加新界面元素引起电子设备的第一界面的布局发生变化时,能够自动根据新界面元素的待放置位置和需要的空间确定第一界面的剩余连续空间是否足够放置新界面元素,在第一界面的剩余连续空间不足够放置新界面元素时,自动根据新界面元素的待放置位置和需要的空间调整第一界面上的其他界面元素的位置和大小,使第一界面足够放置新界面元素。上述方法由电子设备自动完成,不需要用户手动操作界面元素,方便用户操作,给用户带来更好的体验,同时提高了用户界面的使用效率。
下面采用几个具体的实施例,对图1所示实施例的技术方案进行详细说明。
在图1所示实施例中,步骤20中如果第一界面的剩余连续空间不足无法放置该新界面元素时,电子设备能够自动根据该新界面元素的待放置位置和需要的空间调整第一界面上的界面元素的位置和大小,使第一界面足够放置该新界面元素,然后,将该新界面元素添加到第一界面上。本发明实施例二中将对步骤20进行详细说明,图2为本发明实施例二提供的界面元素的自动调整方法的流程图,如图2所示,本实施例的方法可以包括以下步骤:
步骤201、判断第一界面上是否有微件图标。
如果第一界面上有微件图标,则执行步骤202,如果第一界面上没有微件图标,则执行步骤203。
步骤202、分别检测至少一个微件图标是否有对应的小尺寸的微件图标。
如果第一界面上的界面元素包括至少一个微件图标时,执行本步骤,检测该至少一个微件图标是否有对应的小尺寸的微件图标。现有技术中,为了增加微件图标的灵活性,对于同一个微件提供了多种尺寸的微件图标供用户选择,用户可以根据显示页面的大小以及剩余连续空间选择合适尺寸的微件 图标。如图3所示,图3为不同尺寸的微件图标的示意图,图3中提供了2x1、4x1和4x2三种大小微件图标。另外,现有技术中还能够提供可调整尺寸的微件图标,用户可以根据个人需求、喜好将微件图标调整到合适的大小。图4为可调整尺寸的微件图标的调整示意图,在第一界面的空闲处长按微件图标可以进入编辑状态,在编辑状态下微件图标会有边界提示,拖动微件图标的边界中心点可以改变微件图标的大小。
所述第一界面上包括至少一个微件图标,该至少一个微件图标有可能都有小尺寸的微件图标;也可能都没有小尺寸的微件图标;或者,在所述第一界面上包括两个及以上微件图标时,部分微件图标有小尺寸的微件图标,部分微件图标有小尺寸的微件图标。如果该第一界面上的至少一个微件图标有对应的小尺寸的微件图标,则执行步骤204,如果该第一界面上的各微件图标都没有对应的小尺寸的微件图标,则执行步骤205。
步骤203、将第一界面上的界面元素移动至第二界面,以使调整后的第一界面的剩余连续空间足够放置该新界面元素,将该新界面元素添加到调整后的第一界面的剩余连续空间内;或者,将第一界面上的界面元素移动至预设文件夹,以使调整后的第一界面的剩余连续空间足够放置该新界面元素,并将该新界面元素添加到调整后的第一界面的剩余连续空间内。
其中,在将第一界面上的界面元素移动至第二界面时,可以根据该新界面元素需要的空间将第一界面上的部分桌面元素或者全部桌面元素移动至第二界面,该第二界面可以为第一界面相邻的上一屏界面或下一屏界面,或者其它界面。在将第一界面上的界面元素移动至预设文件夹时,也可以根据该新界面元素需要的空间将第一界面上的部分桌面元素或者全部桌面元素移动至该预设文件夹,该预设文件夹可以为新建文件夹,或者是第一界面上已有的文件夹。对此,本发明实施例均不做限定。
步骤204、根据该新界面元素需要的空间将至少一个微件图标替换为对应的小尺寸的微件图标,并判断调整后的第一界面的剩余连续空间是否足够放置该新界面元素。
如果第一界面的剩余连续空间足够放置该新界面元素,则执行步骤206,如果第一界面的剩余连续空间不足够放置该新界面元素,则执行步骤205。
步骤205、将第一界面上的界面元素移动至第二界面,或者,将第一界面上除各微件图标外的界面元素移动至预设文件夹,以使调整后的第一界面 的剩余连续空间足够放置该新界面元素,并将该新界面元素添加到调整后的第一界面的剩余连续空间内。
其中,在将第一界面上的界面元素移动至第二界面时,可以根据该新界面元素需要的空间将第一界面上的部分桌面元素或者全部桌面元素移动至第二界面,该第二界面可以为第一界面相邻的上一屏界面或下一屏界面,或者其它界面。在将第一界面上除各微件图标外的界面元移动至预设文件夹,也可以根据该新界面元素需要的空间将第一界面上除各微件图标外的部分桌面元素或者全部桌面元素移动至该预设文件夹,该预设文件夹可以为新建文件夹,或者是第一界面上已有的文件夹。对此,本发明实施例均不做限定。
步骤206、将该新界面元素添加到调整后的第一界面的剩余连续空间内。
需要说明的是,若第一界面上没有微件图标,或者将原来的微件图标替换为对应的小尺寸微件图标后剩余连续空间仍然不足,无法放置新界面元素时,也可以向用户返回添加失败。
本实施例,通过检测第一界面上是否有微件图标,如果第一界面上有微件图标,并且微件图标有对应的小尺寸微件图标时,则将微件图标替换为小尺寸的微件图标,并调整界面元素的位置,使第一界面上的剩余连续空间足够放置新界面元素,然后,将新界面元素添加到第一界面。上述调整过程都是电子设备自动完成的,不需要用户的参与,方便用户操作,给用户带来更好的体验,同时提高了用户界面的使用效率。
在上述实施例一和实施例二的基础上,本发明时实施例的方案还可以包括以下步骤:当电子设备检测到用户删除第一界面上的界面元素的删除操作信号时,确定第一界面上是否有微件图标;如果第一界面上有微件图标,则检测微件图标是否有对应的大尺寸的微件图标,如果微件图标有对应的大尺寸的微件图标,则在删除第一界面上的界面元素之后,将该微件图标替换为对应的大尺寸的微件图标。上述方法,能够充分利用显示页面的空间,而且大尺寸的微件图标可显示更多内容,提高了界面的使用效率,也提升了用户体验。
以下将本实施例的方案和现有技术进行比较,现有技术中,当用户要添加新界面元素时,如果第一界面的空间不够,但是用户又想保留原来的微件图标时,用户需要手动删除原来较大尺寸的微件图标,然后重新添加小尺寸的微件图标。用户至少需要执行以下3步操作:①删掉第一界面上较大尺寸 的微件图标;②添加新界面元素;③在新界面元素添加成功后,添加删掉的较大尺寸的微件图标对应的小尺寸微件图标。而通过本实施例的方法,用户只需要执行添加新界面元素一个动作,然后,电子设备会自动检测原来的微件图标是否有对应的小尺寸图标,如果原来的微件图标有对应的小尺寸微件图标,则将原来的微件图标自动替换为小尺寸的微件图标,替换过程不需要用户的参与,由电子设备自动完成,便利了用户操作,提高了用户体验。
图5为本发明实施例三提供的界面元素的自动调整装置的结构示意图,如图5所示,本实施例提供的界面元素的自动调整装置包括:获取模块31、确定模块32,调整模块33。
其中,获取模块31,用于获取用户添加新界面元素产生的添加操作信号;
确定模块32,用于根据所述获取模块31获取的所述添加操作信号确定所述新界面元素在第一界面的待放置位置和放置所述新界面元素需要的空间;
调整模块33,用于当所述确定模块32根据所述新界面元素的待放置位置和需要的空间确定所述第一界面的剩余连续空间不足够放置所述新界面元素时,根据所述新界面元素的待放置位置和需要的空间调整所述第一界面上的界面元素的位置和大小,以使调整后的所述第一界面的剩余连续空间足够放置所述新界面元素,将所述新界面元素添加到所述调整后的所述第一界面上。
可选地,所述调整模块33还用于:当检测到删除所述第一界面上的界面元素的删除操作信号时,确定所述第一界面上是否有微件图标;如果所述第一界面上有微件图标,检测所述微件图标是否有对应的大尺寸的微件图标,若所述微件图标有对应的大尺寸的微件图标,则在删除所述第一界面上的界面元素之后,将所述微件图标替换为对应的大尺寸的微件图标。
本实施例提供的界面元素的自动调整装置,可用于执行方法实施例一的技术方案,具体实现方式和技术效果类似,这里不再赘述。
图6为本发明实施例四提供的界面元素的自动调整装置的结构示意图,如图6所示,本实施例提供的界面元素的自动调整装置包括:获取模块41、确定模块42、调整模块43。
其中,获取模块41,用于获取用户添加新界面元素产生的添加操作信号;
确定模块42,用于根据所述获取模块41获取的所述添加操作信号确定 所述新界面元素在第一界面的待放置位置和放置所述新界面元素需要的空间;
调整模块43,用于当所述确定模块42根据所述新界面元素的待放置位置和需要的空间确定所述第一界面的剩余连续空间不足够放置所述新界面元素时,根据所述新界面元素的待放置位置和需要的空间调整所述第一界面上的界面元素的位置和大小,以使调整后的所述第一界面的剩余连续空间足够放置所述新界面元素,将所述新界面元素添加到所述调整后的所述第一界面上。
本实施例中,调整模块43在根据所述新界面元素的待放置位置和需要的空间调整所述第一界面上的界面元素的位置和大小时,主要分以下三种情况:第一种情况,第一界面上有至少一个微件图标,并且至少一个微件图标有对应的小尺寸微件图标;第二种情况,第一界面上有至少一个微件图标,但各微件图标都没有对应的小尺寸微件图;第三种情况,第一界面上没有微件图标,以下将分别介绍着三种情况下,如何调整所述第一界面上的界面元素的位置和大小。
本实施例中,调整模块43包括:检测单元431、替换单元432和添加单元433,检测单元431用于在所述第一界面上的界面元素包括至少一个微件图标时,检测所述至少一个微件图标是否有对应的小尺寸的微件图标;替换单元432用于在所述至少一个微件图标有对应的小尺寸的微件图标时,根据所述新界面元素需要的空间将所述至少一个微件图标替换为对应的小尺寸的微件图标;添加单元433用于在所述调整后的所述第一界面的剩余连续空间足够放置所述新界面元素时,将所述新界面元素添加到所述调整后的所述第一界面的剩余连续空间内。
进一步地,调整模块43还包括移动单元434,移动单元434用于在所述至少一个微件图标都没有对应的小尺寸的微件图标时,将所述第一界面上的界面元素移动至第二界面,以使调整后的所述第一界面的剩余连续空间足够放置所述新界面元素;或者,所述移动单元434,用于在所述至少一个微件图标都没有对应的小尺寸的微件图标时,将所述第一界面上除所述各微件图标外的界面元素移动至预设文件夹,以使调整后的所述第一界面的剩余连续空间足够放置所述新界面元素;所述添加单元,还用于在所述调整后的所述第一界面的剩余连续空间足够放置所述新界面元素时,将所述新界面元素添 加到所述调整后的所述第一界面的剩余连续空间内。
所述移动单元434还用于:在调整后的所述第一界面的剩余连续空间不足够放置所述新界面元素时,将所述第一界面上的界面元素移动至第二界面,以使调整后的所述第一界面的剩余连续空间足够放置所述新界面元;或者,将所述第一界面上除所述各微件图标外的界面元素移动至预设文件夹,以使调整后的所述第一界面的剩余连续空间足够放置所述新界面元素;所述添加单元,还用于在所述调整后的所述第一界面的剩余连续空间足够放置所述新界面元素时,将所述新界面元素添加到所述调整后的所述第一界面的剩余连续空间内。
当所述第一界面上的界面元素不包括微件图标时,所述调整模块43具体用于:将所述第一界面上的界面元素移动至第二界面,以使调整后的所述第一界面的剩余连续空间足够放置所述新界面元素,将所述新界面元素添加到所述调整后的所述第一界面的剩余连续空间内;或者,将所述第一界面上的界面元素移动至预设文件夹,以使调整后的所述第一界面的剩余连续空间足够放置所述新界面元素,将所述新界面元素添加到所述调整后的所述第一界面的剩余连续空间内。
可选地,所述调整模块43还用于:当检测到删除所述第一界面上的界面元素的删除操作信号时,确定所述第一界面上是否有微件图标;如果所述第一界面上有微件图标,检测所述微件图标是否有对应的大尺寸的微件图标,若所述微件图标有对应的大尺寸的微件图标,则在删除所述第一界面上的界面元素之后,将所述微件图标替换为对应的大尺寸的微件图标。
本实施例提供的界面元素的自动调整装置,可用于执行方法实施例二的技术方案,具体实现方式和技术效果类似,这里不再赘述。
图7为本发明实施例五提供的电子设备的结构示意图,如图7所示,本实施例提供的电子设备500包括:至少一个处理器51、存储器52以及至少一个通信总线53,通信总线53用于实现这些部件之间的连接通信。处理器51用于执行存储器52中存储的可执行指令,例如计算机程序。存储器52可能包含高速随机存取存储器(RAM:Random Access Memory),也可能还包括非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器。
本实施例中,存储器52存储了程序,处理器51执行存储器52中存储的程序,用于执行以下操作:
获取用户添加新界面元素产生的添加操作信号,并根据所述添加操作信号确定所述新界面元素在第一界面的待放置位置和放置所述新界面元素需要的空间;
当根据所述新界面元素的待放置位置和需要的空间确定所述第一界面的剩余连续空间不足够放置所述新界面元素时,根据所述新界面元素的待放置位置和需要的空间调整所述第一界面上的界面元素的位置和大小,以使调整后的所述第一界面的剩余连续空间足够放置所述新界面元素,将所述新界面元素添加到所述调整后的所述第一界面上。
其中,处理器51在根据所述新界面元素的待放置位置和需要的空间调整所述第一界面上的界面元素的位置和大小,以使调整后的所述第一界面的剩余连续空间足够放置所述新界面元素,将所述新界面元素添加到所述调整后的所述第一界面上时,具体用于:
如果所述第一界面上的界面元素包括至少一个微件图标,则分别检测所述至少一个微件图标是否有对应的小尺寸的微件图标;如果所述至少一个微件图标有对应的小尺寸的微件图标,根据所述新界面元素需要的空间将所述至少一个微件图标替换为对应的小尺寸的微件图标;如果所述调整后的所述第一界面的剩余连续空间足够放置所述新界面元素,则将所述新界面元素添加到所述调整后的所述第一界面的剩余连续空间内。如果所述至少一个微件图标都没有对应的小尺寸的微件图标,将所述第一界面上的界面元素移动至第二界面,以使调整后的所述第一界面的剩余连续空间足够放置所述新界面元素,将所述新界面元素添加到所述调整后的所述第一界面的剩余连续空间内;或者,将所述第一界面上除所述各微件图标外的界面元素移动至预设文件夹,以使调整后的所述第一界面的剩余连续空间足够放置所述新界面元素,将所述新界面元素添加到所述调整后的所述第一界面的剩余连续空间内。
如果所述调整后的所述第一界面的剩余连续空间不足够放置所述新界面元素时,处理器51具体用于:将所述第一界面上的界面元素移动至第二界面,以使调整后的所述第一界面的剩余连续空间足够放置所述新界面元素,将所述新界面元素添加到所述调整后的所述第一界面的剩余连续空间内;或者,将所述第一界面上除所述各微件图标外的界面元素移动至预设文件夹,以使调整后的所述第一界面的剩余连续空间足够放置所述新界面元 素,将所述新界面元素添加到所述调整后的所述第一界面的剩余连续空间内。
当所述第一界面上的界面元素不包括微件图标时,处理器51具体用于:将所述第一界面上的界面元素移动至第二界面,以使调整后的所述第一界面的剩余连续空间足够放置所述新界面元素,将所述新界面元素添加到所述调整后的所述第一界面的剩余连续空间内;或者,将所述第一界面上的界面元素移动至预设文件夹,以使调整后的所述第一界面的剩余连续空间足够放置所述新界面元素,将所述新界面元素添加到所述调整后的所述第一界面的剩余连续空间内。
可选地,处理器51还用于:当检测到删除所述第一界面上的界面元素的删除操作信号时,确定所述第一界面上是否有微件图标;如果所述第一界面上有微件图标,检测所述微件图标是否有对应的大尺寸的微件图标,若所述微件图标有对应的大尺寸的微件图标,则在删除所述第一界面上的界面元素之后,将所述微件图标替换为对应的大尺寸的微件图标。
本实施例提供的电子设备,可用于执行方法实施例一和实施例二的技术方案,具体实现方式和技术效果类似,这里不再赘述。
本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。

Claims (12)

  1. 一种界面元素的自动调整方法,其特征在于,包括:
    获取用户添加新界面元素产生的添加操作信号,并根据所述添加操作信号确定所述新界面元素在第一界面的待放置位置和放置所述新界面元素需要的空间;
    当根据所述新界面元素的待放置位置和需要的空间确定所述第一界面的剩余连续空间不足够放置所述新界面元素时,根据所述新界面元素的待放置位置和需要的空间调整所述第一界面上的界面元素的位置和大小,以使调整后的所述第一界面的剩余连续空间足够放置所述新界面元素,并将所述新界面元素添加到所述调整后的所述第一界面上。
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述新界面元素的待放置位置和需要的空间调整所述第一界面上的界面元素的位置和大小,以使调整后的所述第一界面的剩余连续空间足够放置所述新界面元素,并将所述新界面元素添加到所述调整后的所述第一界面上,包括:
    如果所述第一界面上的界面元素包括至少一个微件图标,则分别检测所述至少一个微件图标是否有对应的小尺寸的微件图标;
    如果所述至少一个微件图标有对应的小尺寸的微件图标,根据所述新界面元素需要的空间将所述至少一个微件图标替换为对应的小尺寸的微件图标;
    如果所述调整后的所述第一界面的剩余连续空间足够放置所述新界面元素,则将所述新界面元素添加到所述调整后的所述第一界面的剩余连续空间内。
  3. 根据权利要求2所述的方法,其特征在于,如果所述至少一个微件图标都没有对应的小尺寸的微件图标,所述方法还包括:
    将所述第一界面上的界面元素移动至第二界面,以使调整后的所述第一界面的剩余连续空间足够放置所述新界面元素,将所述新界面元素添加到所述调整后的所述第一界面的剩余连续空间内;
    或者,
    将所述第一界面上除所述各微件图标外的界面元素移动至预设文件夹,以使调整后的所述第一界面的剩余连续空间足够放置所述新界面元素,将所 述新界面元素添加到所述调整后的所述第一界面的剩余连续空间内。
  4. 根据权利要求2所述的方法,其特征在于,如果所述调整后的所述第一界面的剩余连续空间不足够放置所述新界面元素,则所述方法还包括:
    将所述第一界面上的界面元素移动至第二界面,以使调整后的所述第一界面的剩余连续空间足够放置所述新界面元素,将所述新界面元素添加到所述调整后的所述第一界面的剩余连续空间内;
    或者,将所述第一界面上除所述各微件图标外的界面元素移动至预设文件夹,以使调整后的所述第一界面的剩余连续空间足够放置所述新界面元素,将所述新界面元素添加到所述调整后的所述第一界面的剩余连续空间内。
  5. 根据权利要求1所述的方法,其特征在于,所述根据所述新界面元素的待放置位置和需要的空间调整所述第一界面上的界面元素的位置和大小,以使调整后的所述第一界面的剩余连续空间足够放置所述新界面元素,将所述新界面元素添加到调整后的所述第一界面上,包括:
    当所述第一界面上的界面元素不包括微件图标时,将所述第一界面上的界面元素移动至第二界面,以使调整后的所述第一界面的剩余连续空间足够放置所述新界面元素,将所述新界面元素添加到所述调整后的所述第一界面的剩余连续空间内;
    或者,当所述第一界面上的界面元素不包括微件图标时,将所述第一界面上的界面元素移动至预设文件夹,以使调整后的所述第一界面的剩余连续空间足够放置所述新界面元素,将所述新界面元素添加到所述调整后的所述第一界面的剩余连续空间内。
  6. 根据权利要求1-5中任一项所述的方法,其特征在于,还包括:
    当检测到删除所述第一界面上的界面元素的删除操作信号时,确定所述第一界面上是否有微件图标;
    如果所述第一界面上有微件图标,检测所述微件图标是否有对应的大尺寸的微件图标,若所述微件图标有对应的大尺寸的微件图标,则在删除所述第一界面上的界面元素之后,将所述微件图标替换为对应的大尺寸的微件图标。
  7. 一种界面元素的自动调整装置,其特征在于,包括:
    获取模块,用于获取用户添加新界面元素产生的添加操作信号;
    确定模块,用于根据所述获取模块获取的所述添加操作信号确定所述新界面元素在第一界面的待放置位置和放置所述新界面元素需要的空间;
    调整模块,用于当所述确定模块根据所述新界面元素的待放置位置和需要的空间确定所述第一界面的剩余连续空间不足够放置所述新界面元素时,根据所述新界面元素的待放置位置和需要的空间调整所述第一界面上的界面元素的位置和大小,以使调整后的所述第一界面的剩余连续空间足够放置所述新界面元素,将所述新界面元素添加到所述调整后的所述第一界面上。
  8. 根据权利要求7所述的装置,其特征在于,所述调整模块包括:
    检测单元,用于在所述第一界面上的界面元素包括至少一个微件图标时,分别检测所述至少一个微件图标是否有对应的小尺寸的微件图标;
    替换单元,用于在所述至少一个微件图标有对应的小尺寸的微件图标时,根据所述新界面元素需要的空间将所述至少一个微件图标替换为对应的小尺寸的微件图标;
    添加单元,用于在所述调整后的所述第一界面的剩余连续空间足够放置所述新界面元素时,将所述新界面元素添加到所述调整后的所述第一界面的剩余连续空间内。
  9. 根据权利要求8所述的装置,其特征在于,所述调整模块还包括:
    移动单元,用于在所述至少一个微件图标都没有对应的小尺寸的微件图标时,将所述第一界面上的界面元素移动至第二界面,以使调整后的所述第一界面的剩余连续空间足够放置所述新界面元素;
    或者,
    所述移动单元,用于在所述至少一个微件图标都没有对应的小尺寸的微件图标时,将所述第一界面上除所述各微件图标外的界面元素移动至预设文件夹,以使调整后的所述第一界面的剩余连续空间足够放置所述新界面元素;
    所述添加单元,还用于在所述调整后的所述第一界面的剩余连续空间足够放置所述新界面元素时,将所述新界面元素添加到所述调整后的所述第一界面的剩余连续空间内。
  10. 根据权利要求8所述的装置,其特征在于,所述调整模块还包括:
    移动单元,用于在所述调整后的所述第一界面的剩余连续空间不足够放置所述新界面元素时,将所述第一界面上的界面元素移动至第二界面,以使 调整后的所述第一界面的剩余连续空间足够放置所述新界面元素;
    或者,
    所述移动单元,用于在所述调整后的所述第一界面的剩余连续空间不足够放置所述新界面元素时,将所述第一界面上除所述各微件图标外的界面元素移动至预设文件夹,以使调整后的所述第一界面的剩余连续空间足够放置所述新界面元素;
    所述添加单元,还用于在所述调整后的所述第一界面的剩余连续空间足够放置所述新界面元素时,将所述新界面元素添加到所述调整后的所述第一界面的剩余连续空间内。
  11. 根据权利要求7所述的装置,其特征在于,所述调整模块具体用于:
    当所述第一界面上的界面元素不包括微件图标时,将所述第一界面上的界面元素移动至第二界面,以使调整后的所述第一界面的剩余连续空间足够放置所述新界面元素,将所述新界面元素添加到所述调整后的所述第一界面的剩余连续空间内;
    或者,将所述第一界面上的界面元素移动至预设文件夹,以使调整后的所述第一界面的剩余连续空间足够放置所述新界面元素,将所述新界面元素添加到所述调整后的所述第一界面的剩余连续空间内。
  12. 根据权利要求7-11中任一项所述的装置,其特征在于,所述调整模块还用于:
    当检测到删除所述第一界面上的界面元素的删除操作信号时,确定所述第一界面上是否有微件图标;
    如果所述第一界面上有微件图标,检测所述微件图标是否有对应的大尺寸的微件图标,若所述微件图标有对应的大尺寸的微件图标,则在删除所述第一界面上的界面元素之后,将所述微件图标替换为对应的大尺寸的微件图标。
PCT/CN2015/075471 2014-04-04 2015-03-31 界面元素的自动调整方法和装置 Ceased WO2015149679A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
KR1020167029125A KR20160134815A (ko) 2014-04-04 2015-03-31 인터페이스 엘리먼트들을 자동으로 조절하기 위한 방법 및 장치
EP15772486.5A EP3115877A4 (en) 2014-04-04 2015-03-31 Method and apparatus for automatically adjusting interface elements
BR112016023018-3A BR112016023018B1 (pt) 2014-04-04 2015-03-31 Método e aparelho para ajustar automaticamente elemento de interface
US15/301,664 US20170123645A1 (en) 2014-04-04 2015-03-31 Method and apparatus for automatically adjusting interface element

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410135821.6 2014-04-04
CN201410135821.6A CN103914211B (zh) 2014-04-04 2014-04-04 界面元素的自动调整方法和装置

Publications (1)

Publication Number Publication Date
WO2015149679A1 true WO2015149679A1 (zh) 2015-10-08

Family

ID=51039938

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/075471 Ceased WO2015149679A1 (zh) 2014-04-04 2015-03-31 界面元素的自动调整方法和装置

Country Status (6)

Country Link
US (1) US20170123645A1 (zh)
EP (1) EP3115877A4 (zh)
KR (1) KR20160134815A (zh)
CN (1) CN103914211B (zh)
BR (1) BR112016023018B1 (zh)
WO (1) WO2015149679A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111651161A (zh) * 2020-07-16 2020-09-11 深圳市易鸿达软件开发有限公司 图形化界面构建方法、装置、计算机设备及存储介质

Families Citing this family (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103914211B (zh) * 2014-04-04 2017-08-25 华为终端有限公司 界面元素的自动调整方法和装置
CN104156155B (zh) * 2014-08-29 2017-09-19 广州视源电子科技股份有限公司 一种桌面小部件的放置方法与装置
CN105608084B (zh) * 2014-11-14 2019-03-19 北大方正集团有限公司 网页页面布局的调整方法及装置
CN104731456B (zh) * 2015-03-31 2018-01-19 努比亚技术有限公司 桌面小部件显示方法和装置
CN105138231B (zh) * 2015-10-20 2019-05-24 北京奇虎科技有限公司 应用程序图标的呈现方法及装置
CN105912262B (zh) * 2016-05-24 2020-11-10 山东兴创信息科技有限公司 桌面图标调整装置、终端及桌面图标调整方法
CN106527937B (zh) * 2016-10-26 2019-10-15 维沃移动通信有限公司 一种移动终端微件的添加方法及移动终端
US10466889B2 (en) 2017-05-16 2019-11-05 Apple Inc. Devices, methods, and graphical user interfaces for accessing notifications
CN107632873B (zh) * 2017-08-25 2020-06-19 网易(杭州)网络有限公司 一种界面布局方法、装置、终端设备及存储介质
CN110225186A (zh) * 2019-05-13 2019-09-10 珠海格力电器股份有限公司 一种显示方法及可折叠式电子设备
CN110737963B (zh) * 2019-12-20 2020-03-31 广东博智林机器人有限公司 海报元素布局方法、系统和计算机可读存储介质
CN119759238A (zh) * 2020-03-10 2025-04-04 苹果公司 用于与对应于应用程序的用户界面对象进行交互的设备、方法和图形用户界面
US11137904B1 (en) 2020-03-10 2021-10-05 Apple Inc. Devices, methods, and graphical user interfaces for interacting with user interface objects corresponding to applications
CN114020374A (zh) * 2020-07-28 2022-02-08 长城汽车股份有限公司 采用Widget卡片形式的显示屏的显示方法及显示屏
WO2022032673A1 (zh) * 2020-08-14 2022-02-17 上海传英信息技术有限公司 设备控制方法、装置和存储介质
CN112148405B (zh) * 2020-09-25 2024-06-14 维沃移动通信有限公司 桌面布局方法、装置和电子设备
CN112269502A (zh) * 2020-10-15 2021-01-26 维沃移动通信有限公司 对象显示方法和装置
CN115022695B (zh) * 2021-03-04 2023-09-19 聚好看科技股份有限公司 显示设备及Widget控件显示方法
JP2023067156A (ja) * 2021-10-29 2023-05-16 フォルシアクラリオン・エレクトロニクス株式会社 アイコン表示制御装置及びアイコン表示制御プログラム
US12265687B2 (en) 2022-05-06 2025-04-01 Apple Inc. Devices, methods, and graphical user interfaces for updating a session region
US11842028B2 (en) 2022-05-06 2023-12-12 Apple Inc. Devices, methods, and graphical user interfaces for updating a session region
EP4273678A1 (en) 2022-05-06 2023-11-08 Apple Inc. Devices, methods, and graphical user interfaces for updating a session region
CN114860674B (zh) * 2022-07-06 2022-12-13 深圳传音控股股份有限公司 文件处理方法、智能终端及存储介质
CN118445007A (zh) * 2023-02-06 2024-08-06 华为技术有限公司 一种微件显示方法和电子设备

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101598963A (zh) * 2008-06-04 2009-12-09 索尼株式会社 电子装置
CN101833418A (zh) * 2010-04-28 2010-09-15 华为终端有限公司 一种在界面中添加图标的方法、装置及移动终端
CN103914211A (zh) * 2014-04-04 2014-07-09 华为终端有限公司 界面元素的自动调整方法和装置

Family Cites Families (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8566751B2 (en) * 2005-01-24 2013-10-22 International Business Machines Corporation GUI pointer automatic position vectoring
US9619143B2 (en) * 2008-01-06 2017-04-11 Apple Inc. Device, method, and graphical user interface for viewing application launch icons
US8726190B2 (en) * 2007-09-28 2014-05-13 Adobe Systems Incorporated Automatically transformed graphical user interface
KR101488726B1 (ko) * 2008-05-27 2015-02-06 삼성전자주식회사 위젯 창을 표시하는 디스플레이 장치 및 이를 포함하는디스플레이 시스템과 그 디스플레이 방법
US8402381B2 (en) * 2008-09-23 2013-03-19 International Business Machines Corporation Automatically arranging widgets of a model within a canvas using iterative region based widget relative adjustments
US8966375B2 (en) * 2009-09-07 2015-02-24 Apple Inc. Management of application programs on a portable electronic device
FR2964780A1 (fr) * 2010-09-10 2012-03-16 Sagem Wireless Terminal mobile comportant un ecran adapte pour afficher des objets graphiques, et procede, programme d'ordinateur et moyens de stockage correspondants
US9104290B2 (en) * 2011-02-11 2015-08-11 Samsung Electronics Co., Ltd. Method for controlling screen of mobile terminal
US20130167072A1 (en) * 2011-12-22 2013-06-27 Sap Portals Israel Ltd. Smart and Flexible Layout Context Manager
KR101819513B1 (ko) * 2012-01-20 2018-01-17 엘지전자 주식회사 이동단말기 및 그 제어방법
US9256349B2 (en) * 2012-05-09 2016-02-09 Microsoft Technology Licensing, Llc User-resizable icons
EP2664983A3 (en) * 2012-05-17 2018-01-03 LG Electronics, Inc. Mobile terminal and control method therefor
US20140013271A1 (en) * 2012-07-05 2014-01-09 Research In Motion Limited Prioritization of multitasking applications in a mobile device interface
WO2014019207A1 (zh) * 2012-08-02 2014-02-06 华为终端有限公司 Widget处理方法、装置及移动终端
US20140164963A1 (en) * 2012-12-11 2014-06-12 Sap Ag User configurable subdivision of user interface elements and full-screen access to subdivided elements
KR102078753B1 (ko) * 2013-01-30 2020-02-19 삼성전자주식회사 화면 구성 방법 및 그 전자 장치
KR101561827B1 (ko) * 2013-02-21 2015-10-20 주식회사 팬택 단말 화면 상의 객체 처리 장치 및 방법

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101598963A (zh) * 2008-06-04 2009-12-09 索尼株式会社 电子装置
CN101833418A (zh) * 2010-04-28 2010-09-15 华为终端有限公司 一种在界面中添加图标的方法、装置及移动终端
CN103914211A (zh) * 2014-04-04 2014-07-09 华为终端有限公司 界面元素的自动调整方法和装置

Non-Patent Citations (1)

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

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111651161A (zh) * 2020-07-16 2020-09-11 深圳市易鸿达软件开发有限公司 图形化界面构建方法、装置、计算机设备及存储介质
CN111651161B (zh) * 2020-07-16 2023-04-18 深圳市易鸿达软件开发有限公司 图形化界面构建方法、装置、计算机设备及存储介质

Also Published As

Publication number Publication date
CN103914211B (zh) 2017-08-25
US20170123645A1 (en) 2017-05-04
BR112016023018B1 (pt) 2019-06-11
EP3115877A4 (en) 2017-02-22
CN103914211A (zh) 2014-07-09
KR20160134815A (ko) 2016-11-23
EP3115877A1 (en) 2017-01-11
BR112016023018A2 (pt) 2017-10-10

Similar Documents

Publication Publication Date Title
WO2015149679A1 (zh) 界面元素的自动调整方法和装置
TW591398B (en) Method of implementing a plurality of system tray areas
KR102024422B1 (ko) 파일 폴더 내의 파일을 오픈하기 위한 방법 및 단말기
CN104007894B (zh) 便携式设备及其多应用操作方法
US20130135228A1 (en) Device and method for displaying object in terminal
US20130234963A1 (en) File management method and electronic device having file management function
TW201617837A (zh) 一種螢幕顯示視窗的處理方法以及移動終端
CN102929535A (zh) 一种悬浮窗位置控制的方法及终端
TW201327355A (zh) 電子裝置的主螢幕圖示管理系統及方法
US10282219B2 (en) Consolidated orthogonal guide creation
CN102236516A (zh) 电子装置及其控制方法
US10459965B2 (en) Method and apparatus for displaying images
CN103593180B (zh) 一种在应用程序中添加文件的方法和装置
CN103294341A (zh) 用于改变屏幕上的显示窗口的大小的装置和方法
CA2997441A1 (en) Component display processing method and user equipment
US11232066B2 (en) Method for data migration and terminal
WO2017032307A1 (zh) 一种文件夹的合并方法及装置
CN104915131B (zh) 一种电子文档翻页方法及装置
KR101932675B1 (ko) 단말기, 이의 제어 방법 및 상기 방법을 구현하기 위한 기록 매체에 기록된 프로그램
US20140289662A1 (en) Information processing apparatus and control method thereof, and non-transitory computer-readable medium
CN103279263B (zh) 一种文件夹快速创建和编辑的方法及系统
US20160328144A1 (en) User interface for touch devices
CN105389105A (zh) 应用程序功能界面的移动方法、系统与移动装置
CN104049832B (zh) 触控光标的显示方法
JP2015125462A (ja) 情報処理装置、情報処理方法及びプログラム

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

Country of ref document: EP

Kind code of ref document: A1

REEP Request for entry into the european phase

Ref document number: 2015772486

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2015772486

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 15301664

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 20167029125

Country of ref document: KR

Kind code of ref document: A

REG Reference to national code

Ref country code: BR

Ref legal event code: B01A

Ref document number: 112016023018

Country of ref document: BR

ENP Entry into the national phase

Ref document number: 112016023018

Country of ref document: BR

Kind code of ref document: A2

Effective date: 20161003