launcher3去掉ALLAPP按键

launcher3去掉ALLAPP按键

packages\apps\Launcher3\src\com\android\launcher3\AppsCustomizePagedView.java


    public static boolean DISABLE_ALL_APPS = true;



packages\apps\Launcher3\src\com\android\launcher3\DynamicGrid.java

    public DynamicGrid(Context context, Resources resources,
                       int minWidthPx, int minHeightPx,
                       int widthPx, int heightPx,
                       int awPx, int ahPx) {
        DisplayMetrics dm = resources.getDisplayMetrics();
        ArrayList deviceProfiles =
                new ArrayList();
        boolean hasAA = !AppsCustomizePagedView.DISABLE_ALL_APPS;


        deviceProfiles.add(new DeviceProfile("WVGA",
                407, 727,  4, 5,  68, 13, (hasAA ? 5 : 4), 56));

你可能感兴趣的:(launcher3去掉ALLAPP按键)