Android Question Notification with custom style

Rasoull

Member
Hi,
I use the following code to create custom notifications but I can not change the font and size of the text, does anyone know what the problem is?
Thank You.

B4X:
n.Initialize("default","", "LOW").AutoCancel(False).LargeIcon(icon1).SmallIcon(icon2).OnlyAlertOnce(True).Colorized(True).Color(bgcol).SetDefaults(False,False,False)'n as NB6
Dim cs As CSBuilder
Dim title As Object = cs.Initialize.Size(tsize).Typeface(Helper.IranSans).Color(txtcol1).Alignment("ALIGN_CENTER").Append(title ).PopAll
Dim Content As Object = cs.Initialize.Size(tsize-2).Typeface(Helper.IranSansIR).Color(txtcol2).Alignment("ALIGN_CENTER").Append(Content).PopAll
notf = n.Build(title,Content, "tag1", Main)'notf as notification
Service.StartForeground(1,notf)
 

Rasoull

Member
That's right, this was my typo!
I meant to display the notification in the foreground service, so that the notification of the service itself is not displayed.
Because I need a stable service to display the date.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…