各种字体都在这个类中声明为静态常数。
Various fonts are declared as static constants in this class.
静态字段并不理想,但是当常数值不可能更改(例如一星期内的天数)时,也可以使用这种方法。
Static fields aren't ideal but are reasonably painless when the value of the constant isn't likely to change — such as the values for the days of the week.
为什么我们不能一个常数变量定义为静态的?
应用推荐