Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何更改PreferenceScreen字体以使用自定义字体?因为PreferenceScreen是 final 类,所以无法扩展它并将其字体设置为onBindView(View).
PreferenceScreen
onBindView(View)
您可以尝试遍历 中的所有小部件PreferenceActivity,找到继承自的小部件TextView,并调整它们的字体。但是请记住,这只会影响这些对象显示的PreferenceActivity对话框,而不是任何对话框。Preference
PreferenceActivity
TextView
Preference