图标位置: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>