Android Notification with BigPicture style and BigText style - android

Does anyone can help me out here.How to implement BigPictureStyle notification with multiline summary text in android.I am able to do by reducing text size which I don't want to.Please help me out on this.
Can we combine two types of notification like big picture and big text style?Does any one know about this?

From your requirement i can figured out that you have to create custom layout for notification because basically you can not combine both BigPicture and BitText style so you have to go with the custom view for notification.
you can read this Custom notification for android as well example from this solution

Related

How to change the text colour of Android Notification

We are using Foreground Service with Notification. A very simple use-case requires us to change the text-colour of the notification's body and title text. After a quick search, I was enlighten with setColor() method of NotificationCompat.Builder.
However, using it only changes the tint colour of the small icon and not the notification title or body text. I also wanted the text 0/7 files have been uploaded and 7 pending to be coloured desirably. This is how it looks currently,
How can I change the text colour of the notification title and body text?
you can't change this, this is system style for Notification, don't have option for setting text color... but you can introduce your own layout for this purpose, but be aware that across different Android distributions there are different default Notification styles (made by manufacturers) and you won't provide one universal style with only-text-color-changed style, which will fit into system styling (same look as other notifications)

Change notification style

does anyone know how to define style like mediastyle for notifications in android. I want to use different background color for notification that appear on devices who has android version 5.0 or above. I want to use same color, but I want to use different height of notification, and I don't want a buttons in notification. Currently I use custom view for notification that has same background color like medaistyle notification, but custom view appears only on devices that has version of android lower then 5.0 . Can anyone help please
Thank you very much

How to set Custom Font to Notification ContentTitle?

I want to add a custom font to Notification Content Title(typeface).I am trying a different ways. Can you guys help me to set the font like news hunt notifications?

how to add linebreak in android 2.2 notification

i want to include line breaks in the long text of notifications. \n
does not work.
notification.setLatestEventInfo(context, title, message+"\r\n"+"test",intent);
what is the code for the line break in the android2.2 notification ?
Thanks
I think you might have to create a custom notification layout with two text views, each for a line.
Here's the official tutorial for notifications, I am not sure how much of it applies to 2.2 though.
http://developer.android.com/guide/topics/ui/notifiers/notifications.html
The following link might be useful too:
Custom notification layouts and text colors

Size of custom view for android notification

I want to change default android notification view. Can I make height of Custom Expanded View more than 3 lines of text?
Check this article on how to make custom notifications using your own layout. If this helps you already: good. If not: The RemoteView also offers options to create custom notifications, so it might help you. Alternatively you could create multiple notifications if the number of lines is really limited (which I am not sure of).

Categories

Resources