Foldable electronic device and display method for foldable screen
AssigneeHuawei Technologies Co., Ltd.
InventorsMengdi Liu, Jing Zhang
Life of this patent
Estimating the term…
Abstract
A foldable electronic device and a display method are provided for a foldable screen. The method provides for an electronic device to obtain, in an unfolded state, a first height and a first width of a set interface element, and determine whether the first height is qualified, that is, determines whether a ratio of the first height to a screen height is not greater than a threshold. When the first height is qualified, the interface element having the first height is displayed, and when the first height is unqualified, the electronic device adjusts the first height to obtain a second height and displays the interface element having the second height to provide an adaptive display of screen content for the electronic device.
Claims20
A display method for a foldable screen of an electronic device, the method comprising:
- obtaining, by the electronic device, a first height and a first width of an interface element on a first interface when in an unfolded state, wherein the first height and the first width are determined based on a height and a width of the interface element in a folded state of the electronic device;
- determining, by the electronic device, whether a ratio of the first height to a screen height is greater than a first threshold;
- if the ratio is greater than the first threshold, adjusting the height of the interface element to a second height, wherein a ratio of the second height to the screen height is not greater than the first threshold;
- obtaining, by the electronic device, a second width based on the second height;
- and
- displaying, by the electronic device, the first interface in the unfolded state, wherein the displayed first interface comprises the interface element having the second height and the second width.
An electronic device, comprising:
- at least one processor;
- and
- a memory coupled to the at least one processor and configured to store programming instructions that, when executed by the at least one processor, cause the electronic device to perform operations comprising:
- obtaining, a first height and a first width of an interface element on a first interface when in an unfolded state, wherein the first height and the first width are determined based on a height and a width of the interface element in a folded state of the electronic device;
- determining whether a ratio of the first height to a screen height is greater than a first threshold;
- if the ratio is greater than the first threshold, adjusting the height of the interface element to a second height, wherein a ratio of the second height to the screen height is not greater than the first threshold;
- obtaining a second width based on the second height;
- and
- displaying the first interface in the unfolded state, wherein the displayed first interface comprises the interface element having the second height and the second width.
A non-transitory computer readable medium configured to store instructions that, when executed by at least one processor of an electronic device, cause the electronic device to perform operations comprising:
- obtaining, a first height and a first width of an interface element on a first interface when\ in an unfolded state, wherein the first height and the first width are determined based on a height and a width of the interface element in a folded state of the electronic device;
- determining whether a ratio of the first height to a screen height is greater than a first threshold;
- if the ratio is greater than the first threshold, adjusting the height of the interface element to a second height, wherein a ratio of the second height to the screen height is not greater than the first threshold;
- obtaining a second width based on the second height;
- and
- displaying the first interface in the unfolded state, wherein the displayed first interface comprises the interface element having the second height and the second width.
Dependencies are inferred from the claim text.