launcher3 图片、字体大小设置:
packages\apps\Launcher3\src\com\android\launcher3\DynamicGrid.java
deviceProfiles.add(new DeviceProfile(“Nexus 7”,
500, 800,
4, 4,
64, 20f,
5, 60));
Launcher3如何设置桌面的行数和列数?
DeviceProfile的各个参数依次代表:
配置名字(任意定义)、
最小宽度(单位是dp)、最小高度(单位是dp)、
桌面行数、桌面列数、
桌面Icon的size(单位是dp)、桌面Icon的文字size(单位是dp)、
Hotseat的Icon个数、Hotseat的Icon的size(单位是dp)
壁纸图片存放路径:/packages/apps/Launcher3/WallpaperPicker/res/drawable-nodpi
launcher3下的配置文件修改: /packages/apps/Launcher3/WallpaperPicker/res/values-nodpi/wallpapers.xml
壁纸默认设置:frameworks/base/core/res/res/drawable-nodpi/default_wallpaper.jpg
动态壁纸:默认动态壁纸,这个要修改/framework/base/core/res/res/values/config.xml :
@null
//把null修改为具体程序名,如下
包名/动态壁纸服务名
更改launcher桌面文件夹字体&&应用名字与左边距的距离:
packages\apps\Launcher3\res\layout\application.xml
packages\apps\Launcher3\res\layout\folder_icon.xml
更改launcher桌面文件夹名输入字符超过现代值吐司时间。
packages\apps\Launcher3\src\com\android\launcher3\FolderEditText.java
public CharSequence filter(CharSequence source, int start, int end,
Spanned dest, int dstart, int dend) {
CharSequence result = super.filter(source, start, end, dest, dstart, dend);
if (result != null) {
//when the name of folder’s exceed 30 character,Toast show , but user continue press keyboard many times,
// Toast will show too long time even user has left the editview, liangfei20160926 @{
if (toast == null) {
toast = Toast.makeText(mContext, mResId, Toast.LENGTH_SHORT); //----为修改后的代码。
}
toast.show();
//when the name of folder’s exceed 30 character,Toast show , but user continue press keyboard many times,
// Toast will show too long time even user has left the editview, liangfei20160926 @}
}
return result;
}
}