문제

I wonder if I could force expand my notification which have 2 buttons, because I don't think users will find them if they are not expanded.

Poweramp seems achieved that, anyone please help me. thx in advance.

enter image description here

도움이 되었습니까?

해결책

As far as I know, the first notification in the notification tray is always presented with the expanded view by default (if a BigView is defined for the notification).

So, what you could do is increase the priority of your notification so that it becomes the first notification in the tray, and that way, it will always be expanded by default.

mNotification.priority = Notification.PRIORITY_MAX;

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top