1

我想在 android 通知的直接回复中使用数字键盘,并且还想为其设置输入过滤器。

RemoteInput remoteInput =
          new RemoteInput.Builder("log").setLabel(defaultUnitBG == 1 ? "mg/dL" : "mmol").build();

      NotificationCompat.Action replyAction = null;
      NotificationCompat.Action.Builder actionBuilder =
          new NotificationCompat.Action.Builder(R.drawable.white_circle, replyLabel,
              getLogPendingIntent(context, notificationScheduleObject, iUniqueId, notificationId));

      actionBuilder.setAllowGeneratedReplies(true);
4

0 回答 0