美化应用图标
@ -21,7 +21,7 @@ public class FrontService extends Service {
|
||||
super.onCreate();
|
||||
Log.i(TAG, "onCreate");
|
||||
Notification.Builder builder = new Notification.Builder(this);
|
||||
builder.setSmallIcon(R.mipmap.ic_launchert);
|
||||
builder.setSmallIcon(R.mipmap.ic_launcher);
|
||||
builder.setContentTitle("短信转发器");
|
||||
builder.setContentText("根据规则转发到钉钉/微信/邮箱/bark/webhook等");
|
||||
Intent intent = new Intent(this, MainActivity.class);
|
||||
|
@ -297,7 +297,7 @@ public class SenderActivity extends AppCompatActivity {
|
||||
Button buttonemailtest = view1.findViewById(R.id.buttonemailtest);
|
||||
alertDialog71
|
||||
.setTitle(R.string.setemailtitle)
|
||||
.setIcon(R.drawable.ic_baseline_email_24)
|
||||
.setIcon(R.mipmap.email)
|
||||
.setView(view1)
|
||||
.create();
|
||||
final AlertDialog show = alertDialog71.show();
|
||||
|
@ -36,13 +36,17 @@ public class SenderModel {
|
||||
case (TYPE_DINGDING):
|
||||
return R.mipmap.dingding;
|
||||
case (TYPE_EMAIL):
|
||||
return R.drawable.ic_baseline_email_24;
|
||||
return R.mipmap.email;
|
||||
case (TYPE_MESSAGE):
|
||||
return R.mipmap.sms;
|
||||
case (TYPE_WEB_NOTIFY):
|
||||
return R.mipmap.webhook;
|
||||
case (TYPE_QYWX_GROUP_ROBOT):
|
||||
return R.mipmap.qywx;
|
||||
case (TYPE_BARK):
|
||||
return R.mipmap.qywx;
|
||||
return R.mipmap.bark;
|
||||
default:
|
||||
return R.mipmap.ic_launcher_round;
|
||||
return R.mipmap.ic_launcher;
|
||||
|
||||
}
|
||||
}
|
||||
@ -92,13 +96,17 @@ public class SenderModel {
|
||||
case (TYPE_DINGDING):
|
||||
return R.mipmap.dingding;
|
||||
case (TYPE_EMAIL):
|
||||
return R.drawable.ic_baseline_email_24;
|
||||
return R.mipmap.email;
|
||||
case (TYPE_MESSAGE):
|
||||
return R.mipmap.sms;
|
||||
case (TYPE_WEB_NOTIFY):
|
||||
return R.mipmap.webhook;
|
||||
case (TYPE_QYWX_GROUP_ROBOT):
|
||||
return R.mipmap.qywx;
|
||||
case (TYPE_BARK):
|
||||
return R.mipmap.qywx;
|
||||
return R.mipmap.bark;
|
||||
default:
|
||||
return R.mipmap.ic_launcher_round;
|
||||
return R.mipmap.ic_launcher;
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -1,10 +0,0 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:tint="?attr/colorControlNormal"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="@android:color/white"
|
||||
android:pathData="M20,4L4,4c-1.1,0 -1.99,0.9 -1.99,2L2,18c0,1.1 0.9,2 2,2h16c1.1,0 2,-0.9 2,-2L22,6c0,-1.1 -0.9,-2 -2,-2zM20,8l-8,5 -8,-5L4,6l8,5 8,-5v2z" />
|
||||
</vector>
|
@ -1,5 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@mipmap/ic_launcher_background" />
|
||||
<foreground android:drawable="@mipmap/ic_launcher_foreground" />
|
||||
<background android:drawable="@mipmap/ic_launcher" />
|
||||
</adaptive-icon>
|
@ -1,5 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@mipmap/ic_launcher_background" />
|
||||
<foreground android:drawable="@mipmap/ic_launcher_foreground" />
|
||||
<background android:drawable="@mipmap/ic_launcher_round" />
|
||||
</adaptive-icon>
|
@ -1,5 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@color/qywx_background" />
|
||||
<foreground android:drawable="@mipmap/qywx_foreground" />
|
||||
<background android:drawable="@mipmap/qywx" />
|
||||
</adaptive-icon>
|
@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@color/qywx_background" />
|
||||
<foreground android:drawable="@mipmap/qywx_foreground" />
|
||||
</adaptive-icon>
|
BIN
app/src/main/res/mipmap-hdpi/bark.png
Normal file
After Width: | Height: | Size: 6.5 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 6.3 KiB |
Before Width: | Height: | Size: 2.4 KiB |
BIN
app/src/main/res/mipmap-hdpi/email.png
Normal file
After Width: | Height: | Size: 5.5 KiB |
Before Width: | Height: | Size: 40 KiB |
Before Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 7.2 KiB |
Before Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 3.0 KiB |
BIN
app/src/main/res/mipmap-hdpi/sms.png
Normal file
After Width: | Height: | Size: 4.9 KiB |
BIN
app/src/main/res/mipmap-hdpi/webhook.png
Normal file
After Width: | Height: | Size: 7.5 KiB |
BIN
app/src/main/res/mipmap-mdpi/bark.png
Normal file
After Width: | Height: | Size: 5.3 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 5.4 KiB |
Before Width: | Height: | Size: 1.6 KiB |
BIN
app/src/main/res/mipmap-mdpi/email.png
Normal file
After Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 5.8 KiB |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 2.0 KiB |
BIN
app/src/main/res/mipmap-mdpi/sms.png
Normal file
After Width: | Height: | Size: 4.6 KiB |
BIN
app/src/main/res/mipmap-mdpi/webhook.png
Normal file
After Width: | Height: | Size: 5.8 KiB |
BIN
app/src/main/res/mipmap-xhdpi/bark.png
Normal file
After Width: | Height: | Size: 7.7 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 7.2 KiB |
Before Width: | Height: | Size: 3.1 KiB |
BIN
app/src/main/res/mipmap-xhdpi/email.png
Normal file
After Width: | Height: | Size: 6.2 KiB |
Before Width: | Height: | Size: 63 KiB |
Before Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 8.4 KiB |
Before Width: | Height: | Size: 3.0 KiB |
Before Width: | Height: | Size: 4.0 KiB |
BIN
app/src/main/res/mipmap-xhdpi/sms.png
Normal file
After Width: | Height: | Size: 5.3 KiB |
BIN
app/src/main/res/mipmap-xhdpi/webhook.png
Normal file
After Width: | Height: | Size: 9.1 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/bark.png
Normal file
After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 8.8 KiB |
Before Width: | Height: | Size: 5.3 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/email.png
Normal file
After Width: | Height: | Size: 7.9 KiB |
Before Width: | Height: | Size: 114 KiB |
Before Width: | Height: | Size: 5.3 KiB |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 4.9 KiB |
Before Width: | Height: | Size: 6.8 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/sms.png
Normal file
After Width: | Height: | Size: 5.9 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/webhook.png
Normal file
After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 8.8 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 9.4 KiB |
Before Width: | Height: | Size: 7.4 KiB |
BIN
app/src/main/res/mipmap-xxxhdpi/email.png
Normal file
After Width: | Height: | Size: 9.8 KiB |
Before Width: | Height: | Size: 139 KiB |
Before Width: | Height: | Size: 7.7 KiB |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 6.7 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 6.7 KiB |
Before Width: | Height: | Size: 9.3 KiB |
BIN
app/src/main/res/mipmap-xxxhdpi/sms.png
Normal file
After Width: | Height: | Size: 6.3 KiB |
BIN
app/src/main/res/mipmap-xxxhdpi/webhook.png
Normal file
After Width: | Height: | Size: 15 KiB |
@ -3,8 +3,8 @@
|
||||
<string-array name="add_sender_menu">
|
||||
<item>转发到钉钉机器人</item>
|
||||
<item>转发到邮箱</item>
|
||||
<item>转发到其他手机</item>
|
||||
<item>转发到网页</item>
|
||||
<item>转发到其他手机SMS</item>
|
||||
<item>转发到Webhook</item>
|
||||
<item>转发到企业微信群机器人</item>
|
||||
<item>转发到Bark</item>
|
||||
</string-array>
|
||||
|