Method for adjusting window display position, and terminal
First Claim
1. A method for adjusting a window display position, the method comprising:
- displaying a window in a first position of a terminal screen;
acquiring a first rotational angular velocity of a terminal about a first axis and a second rotational angular velocity of the terminal about a second axis;
acquiring a first rotating angle of the terminal about the first axis and a second rotating angle of the terminal about the second axis;
comparing an absolute value of the first rotational angular velocity with an absolute value of the second rotational angular velocity;
determining, based on the comparison, that a change of a rotation direction of the terminal occurs about the first axis when the absolute value of the first rotational angular velocity is greater than the absolute value of the second rotational angular velocity;
determining a rotational change direction of the terminal according to the first rotating angle and the first rotational angular velocity; and
adjusting, according to the rotational change direction of the terminal, the window to be displayed in a second position of the terminal screen.
1 Assignment
0 Petitions
Accused Products
Abstract
A method for adjusting a window display position, and a terminal. The method for adjusting a window display position in the present disclosure includes displaying a window in a first position of a terminal screen; acquiring a rotational angular velocity and/or a rotating angle of a terminal; determining a change of a rotation direction of the terminal according to the rotational angular velocity and/or the rotating angle; and adjusting, according to a rotational change direction of the terminal, the window to be displayed in a second position of the screen. In the embodiments of the present disclosure, a function of dynamically adjusting a window display position according to a change of a rotation direction of a terminal is implemented. After the adjustment, a user operation is more convenient.
7 Citations
11 Claims
-
1. A method for adjusting a window display position, the method comprising:
-
displaying a window in a first position of a terminal screen; acquiring a first rotational angular velocity of a terminal about a first axis and a second rotational angular velocity of the terminal about a second axis; acquiring a first rotating angle of the terminal about the first axis and a second rotating angle of the terminal about the second axis; comparing an absolute value of the first rotational angular velocity with an absolute value of the second rotational angular velocity; determining, based on the comparison, that a change of a rotation direction of the terminal occurs about the first axis when the absolute value of the first rotational angular velocity is greater than the absolute value of the second rotational angular velocity; determining a rotational change direction of the terminal according to the first rotating angle and the first rotational angular velocity; and adjusting, according to the rotational change direction of the terminal, the window to be displayed in a second position of the terminal screen. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A terminal, comprising:
-
a display configured to display a window in a first position; at least one sensor configured to acquire a first rotational angular velocity of the terminal about a first axis, a first rotating angle of the terminal about the first axis, a second rotational angular velocity of the terminal about a second axis, and a second rotating angle of the terminal about the second axis; and a processor coupled to the display and the at least one sensor and configured to; compare an absolute value of the first rotational angular velocity with an absolute value of the second rotational angular velocity; determine, based on the comparison, that a change of a rotation direction of the terminal occurs about the first axis when the absolute value of the first rotational angular velocity is greater than the absolute value of the second rotational angular velocity; and determine a rotational change direction of the terminal according to the first rotating angle and the first rotational angular velocity, and the display being further configured to adjust, according to the rotational change direction of the terminal, the window to be displayed in a second position. - View Dependent Claims (7, 8, 9, 10)
-
-
11. A method for adjusting a window display position, the method comprising:
-
displaying a window in a first position of a terminal screen; acquiring a first rotational angular velocity of a terminal about a first axis and a second rotational angular velocity of the terminal about a second axis; acquiring a first rotating angle of the terminal about the first axis and a second rotating angle of the terminal about the second axis; comparing an absolute value of the first rotational angular velocity with an absolute value of the second rotational angular velocity; determining, based on the comparison, that a change of a rotation direction of the terminal occurs about the first axis when the absolute value of the first rotational angular velocity is greater than the absolute value of the second rotational angular velocity; determining a rotational change direction of the terminal according to the first rotating angle and the first rotational angular velocity by; determining that the rotational change direction of the terminal corresponds to a first direction about the first axis when the first rotational angular velocity is greater than a first threshold and the first rotating angle is greater than a second threshold, wherein the first rotational angular velocity of the terminal being greater than the first threshold indicates movement of the terminal in the first direction, and wherein the first rotating angle of the terminal being greater than the second threshold indicates movement of the terminal in the first direction; determining that the rotational change direction of the terminal corresponds to the first direction about the first axis when the first rotational angular velocity is greater than the first threshold and the first rotating angle is less than a third threshold that indicates movement of the terminal in a second direction about the first axis, the second direction being opposite the first direction; determining that the rotational change direction of the terminal corresponds to the second direction about the first axis when the first rotational angular velocity is less than a fourth threshold and the first rotating angle is less than the third threshold, wherein the first rotational angular velocity of the terminal being less than the fourth threshold indicates movement of the terminal in the second direction; and determining that the rotational change direction of the terminal corresponds to the second direction about the first axis when the first rotational angular velocity is less than the fourth threshold and the first rotating angle is greater than the second threshold; and adjusting, according to the rotational change direction of the terminal, the window to be displayed in a second position of the terminal screen.
-
Specification