如何在android中将通知按钮文本更改为小写?
是否可以更改文本样式并转换为小写?为什么android没有提供这样的功能 代码:如何在android中将通知按钮文本更改为小写?,android,android-notifications,Android,Android Notifications,是否可以更改文本样式并转换为小写?为什么android没有提供这样的功能 代码: builder = new NotificationCompat.Builder(context, id); editIntent = new Intent(context, ReminderDetailActivity.class); editIntent.putExtra(REMINDER_ID, mReceivedId); editInt
builder = new NotificationCompat.Builder(context, id);
editIntent = new Intent(context, ReminderDetailActivity.class);
editIntent.putExtra(REMINDER_ID, mReceivedId);
editIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);
pendingIntent = PendingIntent.getActivity(context, rowId, editIntent, 0);
builder.setContentTitle(mTitle)
.setLargeIcon(BitmapFactory.decodeResource(context.getResources(), R.mipmap.ic_launcher))
.setContentTitle(mTitle)
.setSmallIcon(R.drawable.ic_alarm_black_24dp)
.setSound(mUri)
.setAutoCancel(true)
.setContentIntent(pendingIntent)
.addAction(R.drawable.ic_icon_alarm, context.getString(R.string.pay_now), pendingIntent)
.setCategory(NotificationCompat.CATEGORY_REMINDER)
.setStyle(new NotificationCompat.BigTextStyle()
.bigText("Have you completed your task?"))
.setBadgeIconType(NotificationCompat.BADGE_ICON_LARGE)
.setPriority(Notification.PRIORITY_HIGH);
builder.setColor(ContextCompat.getColor(context, R.color.colorPrimary));
你听说过RemoteView吗?@MalavanRockzz没有。请指导我如何进行更多定制,您必须使用RemoteView作为通知的内容,如果您确实需要,请告诉我您可能的副本,以便详细回答。@MalavanRockzz让我检查一下