Patent ID: 11947781
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 4:
5. A device, comprising a processor and a memory, wherein
the memory is configured to store instructions, which when executed by the processor, cause the device to:
obtain a visual element of a reference interface;
obtain configuration information of a display of a target terminal device;
determine 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;
determine, based on the configuration information of the display, an interface layout template corresponding to the configuration information; and
adjust, 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, and
when the instructions stored in the memory are executed by the processor, the device is enabled to perform:
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.