摘要 |
Embodiments of the present invention provide a method and an apparatus for automatically adjusting an interface element, where the method includes: acquiring an addition operation signal that is generated when a user adds a new interface element, and determining, according to the addition operation signal, a position at which the new interface element is to be placed and required space; and when it is determined, according to the position at which the new interface element is to be placed and the required space, whether remaining continuous space of the first interface is sufficient to accommodate the new interface element, adjusting a position and a size of the interface element on the first interface according to the position at which the new interface element is to be placed and the required space, so that remaining space of the adjusted first interface is sufficient to accommodate the new interface element. In the foregoing method, when space of the first interface is insufficient, a position and a size of an interface element can be automatically adjusted, so that the first interface is sufficient to accommodate the new interface element, and a user does not need to manually operate the interface element, thereby bringing better experience to the user, and improving usage efficiency of a user interface at the same time. |