Skip to content

自己修改的安卓系统桌面,基于Launcher3源码

License

Notifications You must be signed in to change notification settings

123yangu/CustomLauncher3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

自己修改的安卓系统桌面,基于Launcher3源码。

Links

https://android.googlesource.com/platform/packages/apps/Launcher3
https://github.com/fookwood/Launcher3

Modify

###解决不能安装的问题 解决可能因为相同权限声明或内容提供者冲突而不能安装的问题,需要重构包名为非com.android.launcher3,并改动所有com.android.launcher3的引用,如:ProviderConfig.AUTHORITY、AndroidManifest.xml中的permission相关及provider的authorities属性等;

###改屏幕方向 AndroidManifest.xml的入口activity加入android:screenOrientation="landscape";

###改屏幕数及默认屏幕 config.xml中的config_workspaceDefaultScreen为默认显示第几屏(从0开始),相关的有Launcher.java中的DEFAULT_SCREEN = 2;及Workspace.java中的a.getInt(R.styleable.Workspace_defaultScreen, 1);
Launcher.java中的SCREEN_COUNT为总屏幕数;

###隐藏Hotseat的显示所有应用的按钮 LauncherAppState.isDisableAllApps()返回true;

###隐藏底部应用托盘 Launcher.java中的mHotseat.setup(this);前加入mHotseat.setVisibility(View.GONE);

###横屏显示分页指示器 DeviceProfile.java中的改为pageIndicator.setVisibility(View.VISIBLE); layout-land/launcher.xml中加入:

<include
    android:id="@+id/page_indicator"
    layout="@layout/page_indicator"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_gravity="center_horizontal|bottom" />

###隐藏顶部搜索栏(未解决:点击AllApps按钮后还会显示) SearchDropTargetBar.showSearchBar()中改为mQSBSearchBar.setAlpha(0f); SearchDropTargetBar.setSearchBar();中改为LauncherAnimUtils.ofFloat(mQSBSearchBar, "translationY", -mBarHeight, -mBarHeight);及LauncherAnimUtils.ofFloat(mQSBSearchBar, "alpha", 0f, 0f);

Screenshots

第一屏截图

About

自己修改的安卓系统桌面,基于Launcher3源码

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages