Window display method and related apparatus
AssigneeHuawei Technologies Co., Ltd.
InventorXu Li
Life of this patent
Estimating the term…
Abstract
Embodiments of this application provide a window display method and a related apparatus. The method includes: An electronic device displays a first window. The electronic device determines a hot region of the first window based on a first display region of the first window, where the first display region includes a display region of a response control in the first window, and the response control is a control capable of responding to a touch operation. According to embodiments of this application, the hot region of the window can be determined based on a display region of display content in the window. In this way, an operable region for a user on a display screen is increased, and screen utilization is effectively improved.
Claims15
A window display method, comprising:
- displaying, by an electronic device, a first window;
- and
- determining, by the electronic device, a hot region of the first window based on a first display region of the first window, wherein the first display region comprises a display region of a response control in the first window, and the response control is a control capable of responding to a touch operation;
- wherein before the determining, by the electronic device, the hot region of the first window based on the first display region of the first window, the method further comprises:
- reducing, by the electronic device, first display content of the first window based on the first window satisfying a preset condition;
- wherein the determining, by the electronic device, the hot region of the first window based on the first display region of the first window comprises:
- reducing, by the electronic device, the hot region of the first window to a first hot region based on the first display region, wherein the first display region comprises the display region of the response control in the first window in which the first display content is reduced;
- and
- wherein the hot region is smaller than a region occupied by the first window and/or the hot region is larger than the first display region.
An electronic device, comprising one or more processors, a memory, and a display screen, wherein the memory and the display screen are coupled to the one or more processors, the memory is configured to store computer program code, the computer program code comprises computer instructions, and the one or more processors are configured to invoke the computer instructions, to enable the electronic device to implement operations comprising:
- displaying a first window;
- and
- determining a hot region of the first window based on a first display region of the first window, wherein the first display region comprises a display region of a response control in the first window, and the response control is a control capable of responding to a touch operation;
- wherein before the determining the hot region of the first window based on the first display region of the first window, the operations further comprise:
- reducing first display content of the first window based on the first window satisfying a preset condition;
- wherein the determining the hot region of the first window based on the first display region of the first window comprises:
- reducing the hot region of the first window to a first hot region based on the first display region, wherein the first display region comprises the display region of the response control in the first window in which the first display content is reduced;
- and
- wherein the hot region is smaller than a region occupied by the first window and/or the hot region is larger than the first display region.
Dependencies are inferred from the claim text.