我想知道如何改变在Android工作室的启动器图标。
当前回答
打开AndroidManifest.xml,将android:icon="@mipmap/ic_launcher"修改为android:icon="@mipmap/(你的图像名)" 假设你有一个名为telugu的图像,你想把它设置为你的应用程序图标,然后改变android:icon="@mipmap/telugu",你必须复制并粘贴你的图像到mipmap文件夹,这就像我说的那样简单
其他回答
以下是我认为更适合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.
就是这样!你有一个新的标志为您的应用程序现在。
进入AndroidManifest.xml 在标签中,寻找android:icon标签。 复制并粘贴您的图标在可绘制文件夹(可在项目的res文件夹)。 设置“android:icon tag”的值为 android:图标= " @drawable / youriconname”
瞧!你完成了。保存更改并进行测试。
Android studio方法(适用于Android)
步骤1:
步骤2:
步骤3:
在清单文件中,在标签下面,会有类似的一行:
android:icon="drawable_resource_path"
将启动器图标放置在可绘制文件夹中,并写入其资源路径。
我们可以在应用程序标记中替换AndroidManifest文件中的代码
android:icon="@drawable/logo"
推荐文章
- 按钮背景是透明的
- 在Mac OS X上哪里安装Android SDK ?
- 我如何获得图像缩放功能?
- 在Android应用程序中显示当前时间和日期
- BottomSheetDialogFragment的圆角
- 在应用程序启动时出现“无法获得BatchedBridge,请确保您的bundle被正确打包”的错误
- 我如何改变默认对话框按钮的文本颜色在安卓5
- 更改单选按钮的圆圈颜色
- 如何在android中复制一个文件?
- adb找不到我的设备/手机(MacOS X)
- 如何在新的材质主题中改变背面箭头的颜色?
- androidviewpager与底部点
- 相同的导航抽屉在不同的活动
- 如何从视图中获得托管活动?
- 单一的TextView与多种颜色的文本