implementation 'me.luzhuo.java.android:lib_core:1.0.37-SNAPSHOT'
implementation 'com.google.android.material:material:1.2.1'
private ChannelBean HIGH = new ChannelBean("HIGH", "HIGH", ChannelBean.ChannelImportance.HIGH);
NotificationManager manager = new NotificationManager(this, HIGH, DEFAULT, LOW, MIN);
// 普通通知
manager.show(manager.createNotification(HIGH, new NotificationBean("标题1", "内容1", R.drawable.ic_launcher_background), manager.createIntent_Activity(new Intent(this, NotificationActivity.class))));
// 长内容通知
manager.show(manager.createNotification_BigText(HIGH, new NotificationBean("很长的内容", longContent, R.drawable.ic_launcher_background), null));
// 大图片通知
Bitmap bitmap = BitmapFactory.decodeResource(this.getResources(), R.drawable.orange);
manager.show(manager.createNotification_BigImage(HIGH, new NotificationBean("很长的内容", "longContent", R.drawable.ic_launcher_background), bitmap, null));