摘要 |
An interface operation method and a terminal are provided, where the method includes: detecting whether a touchscreen of a terminal is in an inclined state by using a gravity sensor or a gyroscope in the terminal, where the being in an inclined state includes having an inclined angle in a preset range in a preset direction, or having acceleration or displacement in a preset range in a preset direction; moving, based on a predefined rule according to the inclined state of the touchscreen, a part or all of a first interface that is currently displayed to a user and is on a screen of the touchscreen to obtain a second interface when it is detected that the touchscreen of the terminal is in the inclined state, where the second interface is an interface obtained according to the movement of the part or all of the first interface; and the moving, based on a predefined rule according to the inclined state of the touchscreen, a part or all of a first interface that is currently displayed to a user and is on a screen of the touchscreen includes: interchanging display positions of partial operable interface content on the first interface based on the predefined rule according to the inclined state of the touchscreen; and receiving an operation performed by the user on the second interface, and after the user completes the operation on the second interface, restoring the moved part or all of the first interface to a position prior to the movement. |