0
我有一个标题对话框。当不使用主题,它的作品:将主题应用于对话框后,未显示标题
Dialog dialog = new Dialog(this);
dialog.setTitle("My dialog");
但是,我应用了一个主题后,它不再显示标题,我不明白为什么。
Dialog dialog = new Dialog(this, R.style.Theme_AppCompat_Light_Dialog);
dialog.setTitle("My dialog");
它似乎是一个[错误](https://code.google.com/p/android/issues/detail?id=79097)。 – Blackbelt
如果您使用DialogFragment,该怎么办? –