как изменить текст кнопки уведомления в нижнем регистре в Android? - PullRequest
0 голосов
/ 22 сентября 2019

Можно ли изменить стиль текста и преобразовать в нижний регистр?Почему андроид не дает такой функциональности, как эта?

Код:

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));
...