Commit f87b9da6 authored by wanglei's avatar wanglei

...小图标

parent bcad6f55
...@@ -148,7 +148,7 @@ class MyApplication : Application() { ...@@ -148,7 +148,7 @@ class MyApplication : Application() {
startAlarm(appContext, 48) startAlarm(appContext, 48)
startAlarm(appContext, 72) startAlarm(appContext, 72)
//开启上报队列 //开启通知队列
MyNotificationManager.startNotificationQueue() MyNotificationManager.startNotificationQueue()
//前台服务 //前台服务
......
...@@ -129,7 +129,7 @@ object NotificationUiUtil { ...@@ -129,7 +129,7 @@ object NotificationUiUtil {
//设置状态栏内的小图标 //设置状态栏内的小图标
val smallIcon = IconCompat.createFromIcon( val smallIcon = IconCompat.createFromIcon(
context, Icon.createWithResource( context, Icon.createWithResource(
context, R.mipmap.logo context, R.drawable.log_svg
) )
) )
smallIcon?.let { smallIcon?.let {
......
...@@ -61,7 +61,7 @@ object StayNotification { ...@@ -61,7 +61,7 @@ object StayNotification {
val builder = NotificationCompat.Builder(context, channelId) val builder = NotificationCompat.Builder(context, channelId)
val smallIcon = IconCompat.createFromIcon( val smallIcon = IconCompat.createFromIcon(
context, Icon.createWithResource( context, Icon.createWithResource(
context, R.mipmap.ic_launcher context, R.drawable.log_svg
) )
) )
...@@ -75,7 +75,7 @@ object StayNotification { ...@@ -75,7 +75,7 @@ object StayNotification {
builder.setLargeIcon( builder.setLargeIcon(
BitmapFactory.decodeResource( BitmapFactory.decodeResource(
context.resources, context.resources,
R.mipmap.ic_launcher R.mipmap.logo
) )
) )
builder.setContentTitle(context.resources.getString(R.string.app_name)) builder.setContentTitle(context.resources.getString(R.string.app_name))
......
<vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<group>
<clip-path
android:pathData="M0,0h24v24h-24z"/>
<!-- <path-->
<!-- android:pathData="M0,0h24v24h-24z"-->
<!-- android:fillColor="#ffffff"/>-->
<!-- <path-->
<!-- android:pathData="M12,24C18.627,24 24,18.627 24,12C24,5.373 18.627,0 12,0C5.373,0 0,5.373 0,12C0,18.627 5.373,24 12,24Z"-->
<!-- android:fillColor="#ABABAB"/>-->
<path
android:pathData="M10.98,18.118H6.392C6.257,18.118 6.127,18.064 6.032,17.968C5.936,17.873 5.882,17.743 5.882,17.608V13.02C5.882,12.738 6.111,12.51 6.392,12.51H10.98C11.262,12.51 11.49,12.738 11.49,13.02V17.608C11.49,17.889 11.262,18.118 10.98,18.118ZM10.471,13.53H6.902V17.098H10.471V13.53ZM10.98,11.49H6.392C6.111,11.49 5.882,11.262 5.882,10.981V6.392C5.882,6.111 6.111,5.883 6.392,5.883H10.98C11.262,5.883 11.49,6.111 11.49,6.392V10.981C11.49,11.262 11.262,11.49 10.98,11.49ZM10.471,6.902H6.902V10.471H10.471V6.902ZM17.608,18.118H13.02C12.738,18.118 12.51,17.889 12.51,17.608V13.02C12.51,12.738 12.738,12.51 13.02,12.51H17.608C17.889,12.51 18.118,12.738 18.118,13.02V17.608C18.118,17.889 17.889,18.118 17.608,18.118ZM17.098,13.53H13.53V17.098H17.098V13.53ZM7.921,16.078H9.451V14.549H7.921V16.078ZM7.921,9.451H9.451V7.922H7.921V9.451ZM16.588,11.49H18.118V9.961H16.588V11.49ZM16.588,7.412H15.568V5.882H18.118V8.431H16.588V7.412L16.588,7.412ZM12.51,7.412H14.039V5.882H12.51V7.412ZM14.549,16.078H16.078V14.549H14.549V16.078ZM12.51,11.49H14.039V9.961H12.51V11.49ZM14.039,9.961H15.568V7.412H14.039V9.961Z"
android:fillColor="#ffffff"/>
<path
android:pathData="M4.605,4C4.271,4 4,4.271 4,4.605V6.508C4,6.747 4.194,6.941 4.432,6.941C4.671,6.941 4.865,6.747 4.865,6.508V4.865H6.508C6.747,4.865 6.941,4.671 6.941,4.432C6.941,4.194 6.747,4 6.508,4H4.605ZM19.395,4C19.729,4 20,4.271 20,4.605V6.508C20,6.747 19.806,6.941 19.568,6.941C19.329,6.941 19.135,6.747 19.135,6.508V4.865H17.492C17.253,4.865 17.059,4.671 17.059,4.432C17.059,4.194 17.253,4 17.492,4H19.395ZM4,19.395C4,19.729 4.271,20 4.605,20H6.508C6.747,20 6.941,19.806 6.941,19.568C6.941,19.329 6.747,19.135 6.508,19.135H4.865V17.492C4.865,17.253 4.671,17.059 4.432,17.059C4.194,17.059 4,17.253 4,17.492V19.395ZM19.395,20C19.729,20 20,19.729 20,19.395V17.751C20,17.513 19.806,17.319 19.568,17.319C19.329,17.319 19.135,17.513 19.135,17.751V19.135H17.751C17.513,19.135 17.319,19.329 17.319,19.568C17.319,19.806 17.513,20 17.751,20H19.395Z"
android:fillColor="#ffffff"
android:fillType="evenOdd"/>
<path
android:pathData="M4,14.353H20V11.529H4V14.353Z">
<aapt:attr name="android:fillColor">
<gradient
android:startX="12"
android:startY="14.353"
android:endX="12"
android:endY="11.529"
android:type="linear">
<item android:offset="0" android:color="#00E6E7E7"/>
<item android:offset="1" android:color="#7FE6E7E7"/>
</gradient>
</aapt:attr>
</path>
<path
android:pathData="M4,11.529V10.588H20V11.529H4Z"
android:fillColor="#E6E7E7"
android:fillType="evenOdd"/>
</group>
</vector>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment