简体   繁体   English

如何知道通知中默认样式的字体系列?

[英]How to know the font family of default style in notification?

I create my custom view for notification and use TextView instead of Action . 我创建用于通知的自定义视图,并使用TextView代替Action

The problem is: I want the TextView to be displayed with default style (as in default notification), but the TextView is displayed in different style. 问题是:我希望TextView以默认样式显示(如默认通知中一样),但是TextView以不同的样式显示。

在此处输入图片说明

So I need to know exactly the font-size, font-family of the default style. 因此,我需要确切了解默认样式的字体大小,字体系列 If I know these values, I can set them as the style of TextView . 如果我知道这些值,则可以将它们设置为TextView的样式。

Can anybody help me? 有谁能够帮助我?

Use android:paddingLeft="8dp" for the text SHARE and decrease textSize by 1sp or 2sp . 使用android:paddingLeft="8dp"作为文本共享,并将textSize减小1sp2sp

Basically, the font size used are as follows : 基本上,使用的字体大小如下:

micro : 12sp 微:12sp

small : 14sp 小:14sp

medium : 18sp 中等:18sp

large : 22sp 大:22sp

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM