I am trying to change the font of
方法2:
android.support.v7.app.AlertDialog
title text.
METHOD 1: 我正在尝试更改android.support.v7.app.AlertDialog
标题文本的字体。 TextView title = (TextView) dialog.findViewById(android.R.id.title); //returns null
方法2:
final int titleId = context.getResources().getIdentifier("alertTitle", "id", "android");
TextView title = (TextView) dialog.findViewById(titleId); //Also returns null.
有没有其他方法可以获取标题TextView
?
请注意,我不想使用自定义布局。
谢谢。