CPC G06F 9/451 (2018.02) [G06F 3/0484 (2013.01)] | 8 Claims |
1. A method for adaptive configuration of a user interface, the user interface comprising a panel and one or more user interface components placed on the panel, wherein the panel is partitioned into a plurality of areas, and wherein the method comprises:
respectively making a correspondence between the one or more user interface components and one area of the plurality of areas of the panel;
performing a stretching operation on the plurality of areas and the one or more user interface components, and performing a moving operation on the plurality of areas, to generate an adaptive panel and one or more adaptive user interface components adapted to user equipment; and
according to the correspondence between the one or more user interface components and one area of the plurality of areas of the panel, respectively placing the one or more adaptive user interface components in corresponding areas of the adaptive panel to generate an adaptive user interface,
wherein the respectively placing the one or more adaptive user interface components in corresponding areas of the adaptive panel to generate an adaptive user interface comprises:
when the correspondence between the one or more user interface components and one area of the plurality of areas of the panel is respectively made, determining a positional relationship between every center point of each user interface component and a corresponding area, wherein a positional relationship between every center point of each user interface component and a corresponding area comprises percentage coordinates of the center point in the corresponding area; and
according to the positional relationship, placing every center point of each adaptive user interface component in a corresponding area of the adaptive panel to generate the adaptive user interface.
|