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?
Related
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)
I am working on an app and i want to send text which has custom font style to other text using intent. So how can I do this. Thanks.
there is no way to do that, you should set a typeface for the destination textview.
you can send name of your custom font as an extra with the intent.
I also recommend use this library to change font of the whole project in a simple way.
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
Ok my first question is:
Is there a way to change the font on everything in my app? I mean to put for ex the font x.ttf to be the default font for all the buttons,listviews,for everything that is in my app? And if yes,how?
And my second question:
If that is not possible,then please tell me how to change the font on the Tab widget...
Thanks
Still There is no way to change the font for a complete application. All You can do is for Text Views create custom Text View and override the font method. Then you can use the customized text view rather than using the default text view.
This is the way I used the font Helvetica for My app.
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).