Android Custom Notification: Replace image with a layout by keeping the text style unchanged-ThrowExceptions

Exception or error:

I have to design a custom notification where the big-image is replaced with a view flipper. The rest of the notification should look native throughout the android versions.

I am using the NotificationCompat.DecoratedCustomViewStyle() to get the basic design done, which looks consistent on all versions of android. The next thing I want to do is to keep the two lines of text (notification title and the second line) consistent on all versions of android. I am not able to find constants to define the margin between those texts and with the image.

Could someone help me solve this problem?

TL;DR How to replace big-image with view flipper without changing any other item in the notification?

How to solve:

Leave a Reply

Your email address will not be published. Required fields are marked *