Android Collapsable Notification Extra padding
up vote
1
down vote
favorite
When the notification is collapsed with no content, there is an extra padding. This goes crazy on some devices! Samsung galaxy S7 shows a HUGE gap.
My question is: How do I make the highlighted notification to be shown exactly as the ones below it (without the gap, and with the "subtitle" if possible)?

add a comment |
up vote
1
down vote
favorite
When the notification is collapsed with no content, there is an extra padding. This goes crazy on some devices! Samsung galaxy S7 shows a HUGE gap.
My question is: How do I make the highlighted notification to be shown exactly as the ones below it (without the gap, and with the "subtitle" if possible)?

add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
When the notification is collapsed with no content, there is an extra padding. This goes crazy on some devices! Samsung galaxy S7 shows a HUGE gap.
My question is: How do I make the highlighted notification to be shown exactly as the ones below it (without the gap, and with the "subtitle" if possible)?

When the notification is collapsed with no content, there is an extra padding. This goes crazy on some devices! Samsung galaxy S7 shows a HUGE gap.
My question is: How do I make the highlighted notification to be shown exactly as the ones below it (without the gap, and with the "subtitle" if possible)?

edited Nov 12 at 8:27
Jayson Minard
36.1k14104170
36.1k14104170
asked Nov 9 at 18:05
Demetrio Guilardi
911210
911210
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
Try to set IMPORTANCE_NONE as your notification channel importance through setImportance method.
Same. Didn't work
– Demetrio Guilardi
Nov 9 at 19:15
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
Try to set IMPORTANCE_NONE as your notification channel importance through setImportance method.
Same. Didn't work
– Demetrio Guilardi
Nov 9 at 19:15
add a comment |
up vote
0
down vote
Try to set IMPORTANCE_NONE as your notification channel importance through setImportance method.
Same. Didn't work
– Demetrio Guilardi
Nov 9 at 19:15
add a comment |
up vote
0
down vote
up vote
0
down vote
Try to set IMPORTANCE_NONE as your notification channel importance through setImportance method.
Try to set IMPORTANCE_NONE as your notification channel importance through setImportance method.
answered Nov 9 at 18:30
Sdghasemi
1,1151019
1,1151019
Same. Didn't work
– Demetrio Guilardi
Nov 9 at 19:15
add a comment |
Same. Didn't work
– Demetrio Guilardi
Nov 9 at 19:15
Same. Didn't work
– Demetrio Guilardi
Nov 9 at 19:15
Same. Didn't work
– Demetrio Guilardi
Nov 9 at 19:15
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53231141%2fandroid-collapsable-notification-extra-padding%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown