1. 程式人生 > >Android Launcher 如何去掉主選單,所有應用擺在桌面,類似小米桌面

Android Launcher 如何去掉主選單,所有應用擺在桌面,類似小米桌面

    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        int width = MeasureSpec.getSize(widthMeasureSpec);
        int height = MeasureSpec.getSize(heightMeasureSpec);
        LauncherLog.d(TAG, "onMeasure mIsInEditMode = " + mIsInEditMode + widthMeasureSpec + "  " + heightMeasureSpec
                + "  " + width + "  " + height);
        if (!isDataReady()) {
            LauncherLog.d(TAG, "onMeasure DISABLE_ALL_APPS is " + DISABLE_ALL_APPS
                    + " !mApps.isEmpty() is " + !mApps.isEmpty()
                    + " !mWidgets.isEmpty()" + !mWidgets.isEmpty());
            if ((DISABLE_ALL_APPS || (!mApps.isEmpty() && mAppsHasSet)) && !mWidgets.isEmpty()) { //mtk modify
                setDataIsReady();
                setMeasuredDimension(width, height);
                onDataReady(width, height);
            }
        }