Android天气预报程序(八)
16lz
2021-01-24
修改图标和名称
将图标命名成logo.png,放入res/drawable-hdpi目录
然后修改AndroidManifest.xml中的代码
<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.coolweather.app" android:versionCode="1" android:versionName="1.0" > ... <application android:allowBackup="true" android:icon="@drawable/logo" android:label="@string/app_name" android:theme="@style/AppTheme" > ... </application></manifest>
这里将<application>标签的android:icon属性指定成logo.png就可以修改程序图标了
接下来还需要修改一下程序的名称
打开res/values/string.xml文件,其中app_name对应的就是程序名称,将它改成天气即可
<?xml version="1.0" encoding="utf-8"?><resources> <string name="app_name">天气</string> <string name="hello_world">Hello world!</string> <string name="action_settings">Settings</string></resources>
由于更改了程序图标和名称,我们需要先把其卸载掉,然后重新运行一遍程序
这时观察它的图标
更多相关文章
- JS与Android互调
- 【Android】19.1 SharedPreferences类
- 认识Activity,创建第一个android应用
- Android账户同步备份机制
- Android应用程序组件Content Provider简要介绍和学习计划
- Android应用程序绑定服务(bindService)的过程源码分析
- Android中程序与Service交互的方式——综述
- Android(安卓)从启动到程序运行发生的事情
- Android(安卓)面试题积累