Interface display method and electronic device
AssigneeHuawei Technologies Co., Ltd.
InventorsDinggeng Fang, Ming Li, Puyao Qiao, Haishan Lu
Life of this patent
Estimating the term…
Abstract
An interface display method and an electronic device are provided. The method includes: performing screen-on interception in response to a screen wakeup operation performed by a user on an electronic device, to prevent a screen from being lit up; drawing an interface adapted to a screen orientation; and after the interface is drawn, disabling screen-on interception, and displaying the interface based on the screen orientation. The electronic device may collect and report data in real time through a sensor, and calculate a current screen orientation in real time, so that the drawn interface adapts to the current screen orientation.
Claims21
An interface display method, comprising:
- performing a screen-on interception in response to a screen wakeup operation performed by a user on an electronic device while a screen is in an off state, wherein performing the screen-on interception comprises preventing the screen from being lit up, and the screen is not lit up when the screen is in the off state;
- drawing a to-be-displayed interface adapted to a screen orientation of the electronic device while performing the screen-on interception;
- disabling the screen-on interception for the screen after drawing the to-be-displayed interface;
- and
- displaying the to-be-displayed interface based on the screen orientation after disabling the screen-on interception.
An electronic device, comprising:
- a processor;
- and
- a non-transitory computer readable medium which contains computer-executable instructions, wherein the processor is configured to execute the computer-executable instructions to enable the electronic device to perform operations comprising:
- performing a screen-on interception in response to a screen wakeup operation performed by a user on the electronic device while a screen is in an off state, wherein performing the screen-on interception comprises preventing the screen from being lit up, and the screen is not lit up when the screen is in the off state,
- drawing a to-be-displayed interface adapted to a screen orientation of the electronic device while performing the screen-on interception,
- disabling the screen-on interception for the screen after drawing the to-be-displayed interface, and
- displaying the to-be-displayed interface based on the screen orientation after disabling the screen-on interception.
A non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, an electronic device is enabled to perform operations comprising:
- performing a screen-on interception in response to a screen wakeup operation performed by a user on the electronic device while a screen is in an off state, wherein performing the screen-on interception comprises preventing the screen from being lit up, and the screen is not lit up when the screen is in the off state;
- drawing a to-be-displayed interface adapted to a screen orientation while performing the screen-on interception;
- disabling the screen-on interception for the screen after drawing the to-be-displayed interface;
- and
- displaying the to-be-displayed interface based on the screen orientation after disabling the screen-on interception.
Dependencies are inferred from the claim text.