您的位置:首页 > 移动开发 > Android开发

Android应用图标

2016-06-24 12:46 417 查看
图标位置:app——>res——>mipmap——>ic_launcher.png

hdpi:高分辨率

mdpi:低分辨率

图标的尺寸: 48px、72px、96px、144px、192px

在app——>manifests下的AndroidManifest.xml中修改即可

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.moliwei.myapplication">

<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"    //这个就是指定icon的代码,不需要修改或者改成你想要的文件的名字,记住图片的后缀为png

android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>

</manifest>

 


内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: