-
公开(公告)号:US20250036379A1
公开(公告)日:2025-01-30
申请号:US18912856
申请日:2024-10-11
Applicant: HUAWEI TECHNOLOGIES CO., LTD.
Inventor: Shimiao YANG , Dawei LI , Zhechu XU
Abstract: Example display methods and electronic devices are described. One example method includes generating a first page by an electronic device based on first page data corresponding to a to-be-displayed application interface, where the first page data includes original element data, original layout data, and an original rendering size. In response to determining that a size of a display does not match the original rendering size, the electronic device generates a second page after proportionally zooming in or out a size of the first page, the original element data, and the original layout data based on a zoom-in/out ratio. The electronic device generates third page data based on the size of the display, a preset page rearrangement rule, and second page data included in the second page. The electronic device generates a third page based on the third page data, and then displays the third page on the display.
-
公开(公告)号:US20250157105A1
公开(公告)日:2025-05-15
申请号:US18839516
申请日:2023-02-20
Applicant: HUAWEI TECHNOLOGIES CO., LTD.
Inventor: Dawei LI , Shimiao YANG , Zhechu XU
Abstract: Example methods for processing a user interface of an application and a related device are disclosed. One example method includes: if a difference between a size of a current display region and a size of a target display region satisfies a target condition, obtaining first layout information corresponding to the user interface when the user interface is displayed in the current display region, where the first layout information is obtained based on target layout information used when the user interface is displayed in the target display region, and when the user interface changes from a layout manner indicated by the target layout information to a layout manner indicated by the first layout information, a size change ratio of a first composition element is different from a size change ratio of a second composition element.
-