CPC G06F 3/0484 (2013.01) [G06T 11/00 (2013.01); G06V 20/60 (2022.01); G06F 2203/04803 (2013.01)] | 13 Claims |
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.
|