Modifies the size of Apps_customize_cell_width and apps_customize_cell_height in Launcher2/res/value/dimens.xml. How much value is appropriate and requires a combination of code.
Pagedviewcelllayout Estimatecellhspan and Estimatecellvspan get the return value N (n is the column and row for the number of cells per screen).
Take Estimatecellvspan as an example, int n = Math.max (1, (availheight + mheightgap)/(Mcellheight + mheightgap));
Availheight is available height, availheight = Estimatecellvspan ' s height-toppadding-bottompadding, while Estimatecellvspan's height = SCR Een ' s heightheight-statusbar ' s Height-navigationbar height-toppadding-bottompadding, specifically related to the project;
Mheightgap is usually-1, but it should be confirmed with the code logic;
Mcellheight is the value of apps_customize_cell_width multiplied by the system dimens.
So it is to calculate the value of Mcellheight by other known data, and then divide the mcellheight by the system Dimens, which is the value apps_customize_cell_width in the XML.
Estimatecellvspan Similar
Android Launcher main Menu with each screen modified to x*x layout