US 11,947,781 B2
Automatically adjusting a layout of a visual element on a to-be-generated interface and quickly generating an interface
Zhang Gao, Shanghai (CN)
Assigned to HUAWEI TECHNOLOGIES CO., LTD., Guangdong (CN)
Appl. No. 17/629,216
Filed by HUAWEI TECHNOLOGIES CO., LTD., Guangdong (CN)
PCT Filed Jul. 23, 2020, PCT No. PCT/CN2020/103840
§ 371(c)(1), (2) Date Jan. 21, 2022,
PCT Pub. No. WO2021/013226, PCT Pub. Date Jan. 28, 2021.
Claims priority of application No. 201910678586.X (CN), filed on Jul. 25, 2019.
Prior Publication US 2022/0269387 A1, Aug. 25, 2022
Int. Cl. G06T 11/00 (2006.01); G06F 3/0484 (2022.01); G06V 20/60 (2022.01)
CPC G06F 3/0484 (2013.01) [G06T 11/00 (2013.01); G06V 20/60 (2022.01); G06F 2203/04803 (2013.01)] 13 Claims
OG exemplary drawing
 
1. An interface generation method, applied to a device having a development function, wherein the method comprises:
obtaining a visual element of a reference interface;
obtaining configuration information of a display of a target terminal device;
determining a visual focus of the visual element based on attribute information of the visual element, wherein the attribute information includes a size, a center point, resolution, and a color of the visual element;
determining, based on the configuration information of the display, an interface layout template corresponding to the configuration information;
adjusting, based on at least one of the visual focus or the interface layout template, a layout of the visual element on a to-be-generated interface, wherein
the target terminal device supports a screen splitting function, a display mode of the to-be-generated interface is a screen splitting mode, and the to-be-generated interface comprises a first to-be-generated interface of a first application and a second to-be-generated interface of a second application;
obtaining a first visual element of a reference interface of the first application and a second visual element of a reference interface of the second application;
determining a first visual focus of the first to-be-generated interface of the first application based on attribute information of the first visual element, and determining a second visual focus of the second to-be-generated interface of the second application based on attribute information of the second visual element;
determining, based on the configuration information of the display and the screen splitting mode, the interface layout template of the to-be-generated interface in the screen splitting mode;
adjusting a layout of the first visual element on the first to-be-generated interface based on the interface layout template of the to-be-generated interface in the screen splitting mode and the first visual focus, and generating an interface of the first application; and
adjusting a layout of the second visual element on the second to-be-generated interface based on the interface layout template of the to-be-generated interface in the screen splitting mode and the second visual focus, and generating an interface of the second application.