Method for displaying graphical user interface and mobile terminal
First Claim
1. A method for displaying graphical user interfaces (GUIs), the method comprising:
- displaying, by a mobile terminal, a first GUI of a first application in a display of the mobile terminal;
determining, by the mobile terminal, whether the display of the mobile terminal is shielded based on detecting ambient light intensity by two or more light sensors, wherein the two or more light sensors are disposed on a front side of the mobile terminal;
in response to determining that the display is shielded, determining, by the mobile terminal, a shielded area and a display area of the display, wherein the display area is used to display content of the first GUI and the shielded area is not used to display content of the first GUI;
determining, by the mobile terminal, parameter information of the display area, wherein the parameter information comprises an area size of the display area and a position of the display area in the display;
obtaining, by the mobile terminal, according to the area size and the position of the display area in the parameter information, a second GUI of another application invoked by the mobile terminal, wherein the second GUI matches the area size and the position of the display area; and
displaying, by the mobile terminal, the second GUI of the another application in the display area.
1 Assignment
0 Petitions
Accused Products
Abstract
A method for displaying a graphical user interface (GUI) is disclosed, which relate to the data processing field. The method specifically includes: determining whether a display of a device is shielded; when it is determined that the display is shielded, determining a shielded area and a display area of the display; determining parameter information of the display area, where the parameter information includes an area size of the display area and a position of the display area; and obtaining, according to the parameter information, a GUI that matches the display area, and displaying the GUI in the display area. Whether a display of the device is shielded is determined. When the display is shielded, the GUI is displayed in the display area, so that the GUI can be displayed only in the display area of the display and does not need to be displayed in full screen.
6 Citations
15 Claims
-
1. A method for displaying graphical user interfaces (GUIs), the method comprising:
-
displaying, by a mobile terminal, a first GUI of a first application in a display of the mobile terminal; determining, by the mobile terminal, whether the display of the mobile terminal is shielded based on detecting ambient light intensity by two or more light sensors, wherein the two or more light sensors are disposed on a front side of the mobile terminal; in response to determining that the display is shielded, determining, by the mobile terminal, a shielded area and a display area of the display, wherein the display area is used to display content of the first GUI and the shielded area is not used to display content of the first GUI; determining, by the mobile terminal, parameter information of the display area, wherein the parameter information comprises an area size of the display area and a position of the display area in the display; obtaining, by the mobile terminal, according to the area size and the position of the display area in the parameter information, a second GUI of another application invoked by the mobile terminal, wherein the second GUI matches the area size and the position of the display area; and displaying, by the mobile terminal, the second GUI of the another application in the display area. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A mobile terminal, comprising:
-
a display comprising a touchscreen; two or more light sensors disposed on a front side of the mobile terminal; a memory storing instructions; and a processor configured to execute the instructions to cause the mobile terminal to; display a first graphical user interface (GUI) of a first application in the display of the mobile terminal; determine whether the display of the mobile terminal is shielded based on detecting ambient light intensity by the two or more light sensors; in response to determining that the display is shielded, determine a shielded area and a display area of the display, wherein the display area is used to display content of the first GUI and the shielded area is not used to display content of the first GUI; determine parameter information of the display area, wherein the parameter information comprises an area size of the display area and a position of the display area in the display; obtain, according to the area size and the position of the display area in parameter information, a second GUI of another application invoked by the mobile terminal, wherein the second GUI matches the area size and the position of the display area; and display the second GUI of the another application in the display area. - View Dependent Claims (10, 11, 12, 13, 14)
-
-
15. A mobile terminal, comprising:
-
one or more processors; a display comprising a touchscreen; and a storage apparatus storing one or more programs, wherein the one or more programs are configured to be executed by the one or more processors to cause the mobile terminal to; display a first graphical user interface (GUI) of a first application in the display of the mobile terminal; determine whether the display is shielded based on detecting ambient light intensity by two or more light sensors, wherein the two or more light sensors are disposed on a front side of the mobile terminal; in response to determining that the display is shielded, determine a shielded area and a display area of the display, wherein the display area is used to display content of the first GUI and the shielded area of the display is not used to display content of the first GUI; determine parameter information of the display area, wherein the information comprises an area size of the display area and a position of the display area in the display; obtain, according to the area size and the position of the display area in the parameter information, a second GUI of another application invoked by the mobile terminal, wherein the second GUI matches the area size and the position of the display area; and display the second GUI of the another application in the display area.
-
Specification