Я хотел создать уведомление, включая некоторые элементы управления. Поскольку текст и элементы управления невелики с размером уведомления по умолчанию (64dp), я хотел бы иметь размер больше, чем размер по умолчанию.
Можно создавать большие уведомления, и я думаю, что возможно иметь собственный макет, но я не знаю, как это сделать.
Чтобы быть более конкретным, на следующем скриншоте показано уведомление от spotify (изображение взято из здесь):
Как вы можете видеть, размер больше, чем значение по умолчанию. Кроме того, у него есть какие-то ImageButtons без текста - если вы используете Notification.Builder.addAction(), вы можете предоставить значок, но также необходимо предоставить CharSequence в качестве описания - если вы оставите описание пустым, все равно будет зарезервировано место для текста, и если вы передадите значение null, он сработает.
Может ли кто-нибудь сказать мне, как создать большое уведомление с помощью настраиваемого макета?
Спасибо