不同分辨率、不同屏幕的不同设备,android 原生的Launcher2中的应用icon看上去效果也不一样,根据自己设备,修改Launcher icon 图标大小如下。
修改下面几个地方:
a. ./frameworks/base/core/res/res/values/dimens.xml:app_icon_size,把这个参数调整到合适,让text显示正常,避免被覆盖掉一部分或全部;
b. ./packages/apps/launcher2/res/layout-land/application_boxed.xml:把这两个参数修改合适
layout_height
textSize,
c. ./packages/apps/launcher2/src/com/android/launcher2/AllApps2D.java:查找Bitmap.DENSITY_NONE,把这行代码删除掉;
修改AndroidManifest.xml文件,增加了一个透明的样式:
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name=".ApplicationDemo"
android:theme="@android:style/Theme.Wallpaper.NoTitleBar"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
分享到:
相关推荐
Change Android App launcher Icon and App Name programmatically ! `` `` `` ![AppIconNameChanger - Example2](https://s19.postimg.org/hmtanqmub/App_Icon_Name_Changer_example_02.png) `` `` `` Download ...
Androidlauncher开发.pdf
Android源码之Android Launcher2代码分享
Android Launcher源码下载,PagedView,PagedViewIcon
android 桌面 launcher2的源代码, 可以编译运行。 作为学习参考
安卓Android源码——安卓Android Launcher 桌面分页滑动代码.rar
android的launcher是一款非常强大的系统应用,值得去好好的研究一番,这里对 Launcher2文件夾功能作详细的分析介绍。
安卓Android源码——Android Launcher 源码修改可编译.zip
配置好的android Launcher2的eclipse工程 下载下来直接可以编译运行 可以学习源码
android laucnher3 源码,仅供学习使用。
这个是android Launcher2.2 源码,我最近在学习,有人想跟我交流就到我的博客:http://blog.csdn.net/gqdy365
Android高级应用源码-Android Launcher 源码修改可编译.zip
Android Launcher 源码修改可编译.zip源码资源下载Android Launcher 源码修改可编译.zip源码资源下载
Launcher2 AndroidStudio Launcher2 AndroidStudio 源码下载即可使用000
Android8.0 Launcher2源码,基于Android Studio工程源码,亲测可以在手机上运行。
Android系统桌面Launcher3源码,可直接在Android Studio中编译。
android源码的Launcher详细解析,分析Launcher的运行机制
android Launcher2 2X2 缩放icon 图标 修改的标记 xzedit xz edit 两个标记
从android4.0源码中考出来的 launcher2的源码,谁需要谁下吧