Java 在通知栏中对收到的通知进行样式设置、大小调整和着色
我使用parse并通过以下json代码在通知栏中接收通知推送:Java 在通知栏中对收到的通知进行样式设置、大小调整和着色,java,android,Java,Android,我使用parse并通过以下json代码在通知栏中接收通知推送: { "data": { "message": "sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sd fsdf sdf sdfs dfs df sdf", "title": "my title", "url": "http://www.wepars.com/1
{
"data": {
"message": "sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf
sdf sdf sdf sdf sdf sd fsdf sdf sdfs dfs df sdf",
"title": "my title",
"url": "http://www.wepars.com/12000"
}
}
是否可以在此推送通知中自定义大小/颜色/和字数
1-我想在通知栏中显示所有消息文本
2-更改背景色
标题的3种样式颜色和大小也包括消息
这是我的密码…请引导我这样做
private void showNotificationMessage(Context context, String title, String message, Intent intent) {
notificationUtils = new NotificationUtils(context);
intent.putExtras(parseIntent.getExtras());
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
notificationUtils.showNotificationMessage(title, message, intent);
}