Desktop layout method and apparatus, and electronic device
AssigneeVivo Mobile Communication Co., Ltd.
InventorXuan Zhou
Life of this patent
Estimating the term…
Abstract
This application provides a desktop layout method and apparatus, and an electronic device. The method includes: when a desktop of an electronic device is in a desktop layout setting state, determining N icon regions on a desktop page of the electronic device according to a region selection input of a user, where each icon region is obtained by performing region merging on at least one unit block, and N is an integer greater than or equal to 1; determining to-be-placed application icons in the N icon regions; and filling the application icons in the N icon regions based on the to-be-placed application icons to generate a target desktop layout.
Claims16
A desktop layout method, comprising:
- when a desktop of an electronic device is in a desktop layout setting state, determining N icon regions on a desktop page of the electronic device according to a region selection input of a user, wherein each icon region is obtained by performing region merging on at least one unit block, and N is an integer greater than or equal to 1;
- determining to-be-placed application icons in the N icon regions;
- and
- filling the application icons in the N icon regions based on the to-be-placed application icons to generate a target desktop layout;
- wherein
- the determining to-be-placed application icons in the N icon regions comprises:
- receiving a second preset input of the user;
- in response to the second preset input, determining a score of each icon region in the N icon regions, and obtaining a usage parameter of an application corresponding to each application icon on the desktop;
- and
- determining a to-be-placed application icon in each icon region based on the score of each icon region and the usage parameter of the application corresponding to each application icon on the desktop;
- and
- the determining a score of each icon region in the N icon regions comprises:
- determining a first location score of the corresponding icon region based on a location of an upper boundary of each icon region;
- determining an area score of the corresponding icon region based on a quantity of unit blocks comprised in each icon region;
- and
- determining a sum of the first location score and the area score of each icon region as a total score of the corresponding icon region.
An electronic device, comprising a processor, a memory, and a program or an instruction that is stored in the memory and that can be run on the processor, wherein when the program or the instruction is executed by the processor, the following steps are implemented:
- when a desktop of the electronic device is in a desktop layout setting state, determining N icon regions on a desktop page of the electronic device according to a region selection input of a user, wherein each icon region is obtained by performing region merging on at least one unit block, and N is an integer greater than or equal to 1;
- determining to-be-placed application icons in the N icon regions;
- and
- filling the application icons in the N icon regions based on the to-be-placed application icons to generate a target desktop layout;
- wherein
- the determining to-be-placed application icons in the N icon regions comprises:
- receiving a second preset input of the user;
- in response to the second preset input, determining a score of each icon region in the N icon regions, and obtaining a usage parameter of an application corresponding to each application icon on the desktop;
- and
- determining a to-be-placed application icon in each icon region based on the score of each icon region and the usage parameter of the application corresponding to each application icon on the desktop;
- and
- the determining a score of each icon region in the N icon regions comprises:
- determining a first location score of the corresponding icon region based on a location of an upper boundary of each icon region;
- determining an area score of the corresponding icon region based on a quantity of unit blocks comprised in each icon region;
- and
- determining a sum of the first location score and the area score of each icon region as a total score of the corresponding icon region.
Dependencies are inferred from the claim text.