如何将默认图片应用程序更改为我自己的图片? [英] How to change default picture application to my own picture?

查看:118
本文介绍了如何将默认图片应用程序更改为我自己的图片?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我运行应用程序时,它会在应用程序表面自动创建droid-bot图片.所以,我想换张图片,我该怎么办?

When I run my application, it's automatically create a droid-bot picture on surface of application. So, I want to change a picture, what should I do?

推荐答案

(1)创建一个PNG图像(例如icon.png)并将其保存在文件夹中:

(1) create a PNG image (say icon.png) and save it in the folder:

res/drawable 

(2)然后,在应用程序的AndroidManifest.xml中,在应用程序中添加图标标签:

(2) Then, in AndroidManifest.xml of your application add the icon tag in your application:

android:icon="@drawable/icon"

例如

<application android:name ="yourAppMgr" android:icon="@drawable/icon" 
                //... >

这篇关于如何将默认图片应用程序更改为我自己的图片?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆