修改AndroidManifest.xml:
在manifest添加 xmlns:tools=”http://schemas.android.com/tools”
在application添加 tools:replace=”android:icon,android:theme,android:allowBackup,android:label,android:supportsRtl”
将在application中所用到的全部android:都在上面tools:replace=添加进去,逗号分隔。
如下:
<?xml version= "1.0" encoding= "utf-8" ?> <manifest xmlns:android= "http://schemas.android.com/apk/res/android" xmlns:tools= "http://schemas.android.com/tools" package = "cn.cgrs.myalert" > <application tools:replace= "android:allowBackup,android:icon,android:label,android:supportsRtl,android:theme" android:allowBackup= "true" android:icon= "@mipmap/ic_launcher" 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>
没错,就这样完了,漂亮飘逸的提示信息就出来了!至于效果如何,我就不演示了!谁用谁做的。。。。
菜B一枚,请轻喷。。。