我想知道如何改变在Android工作室的启动器图标。
当前回答
试试这个方法,可能会对你有帮助。
创建大小为512x512像素的PNG图像文件 在菜单中,进入“文件->新建->图像资产” 在资产类型选项中选择图像选项 点击右边的目录框。 拖动图像到源资产框 单击下一步(注意:现有的启动器文件将被覆盖) 单击Finish
***** NB:图标类型应该是启动器图标(自适应和遗留)*****
其他回答
打开项目文件夹\app\src\main\res\ mimmap -mdpi\ic_launcher.png
您将看到5个mipmap文件夹。将每个mipmap文件夹中的图标替换为所需的图标。
打开AndroidManifest.xml,将android:icon="@mipmap/ic_launcher"修改为android:icon="@mipmap/(你的图像名)" 假设你有一个名为telugu的图像,你想把它设置为你的应用程序图标,然后改变android:icon="@mipmap/telugu",你必须复制并粘贴你的图像到mipmap文件夹,这就像我说的那样简单
我用这个工具创建了图标:
https://romannurik.github.io/AndroidAssetStudio/index.html
在我下载这些之后(它们已经被预先命名为ic_launcher,非常有用!)我找到了
res文件夹下的Mipmap ic_launcher文件夹
我用我自己创建的图标替换了之前的图标。重新安装你的应用程序,你会看到你的新图标!
我们可以在应用程序标记中替换AndroidManifest文件中的代码
android:icon="@drawable/logo"
以下是我认为更适合Android Studio开发者的另一个解决方案:
Expand the project root folder in the Project View Right Click on the app folder In the Context Menu go to New->Image Asset In the pop up that appears select the the new logo you would like to have(image/clip art/text). If you were selecting the image radio button (as is the default choice), if you clicked on the 3-buttons to show the path tree to locate your .png image file, most probably you might not be seeing it, so drag it from the Windows Explorer (if Windows) and drop it in the tree, and it will appear and ready for being selected.
就是这样!你有一个新的标志为您的应用程序现在。
推荐文章
- DSL元素android.dataBinding。enabled'已过时,已被'android.buildFeatures.dataBinding'取代
- ConstraintLayout:以编程方式更改约束
- PANIC: AVD系统路径损坏。检查ANDROID_SDK_ROOT值
- 如何生成字符串类型的buildConfigField
- Recyclerview不调用onCreateViewHolder
- Android API 21工具栏填充
- Android L中不支持操作栏导航模式
- 如何在TextView中添加一个子弹符号?
- PreferenceManager getDefaultSharedPreferences在Android Q中已弃用
- 在Android Studio中创建aar文件
- 修改抽射超时时间
- 如何通过数据从第二个活动到第一个活动时按回?——安卓
- 如何在android中获得当前前景活动上下文?
- 如何在Android中获取当前日期?
- 获取Android设备名称