我有这个用于我的警报对话框,这很完美
ContextThemeWrapper ctw = new ContextThemeWrapper( MvcnContactList.this, R.style.MyTheme );
alertDialogBuilder = new AlertDialog.Builder(ctw);
//set some views and onclick listeners
alertDialog = alertDialogBuilder.create();
alertDialog.setCancelable(false);
alertDialog.show();
但我有一个关于首选项对话框,我希望这个对话框与我的警报对话框具有相同的阶梯。但我不知道将这种风格应用到我的对话框中
public class About extends DialogPreference {
public AboutDialog(Context oContext, AttributeSet attrs)
{
super(oContext, attrs);
}
}
注意:我将 android:style="@style/impex_dialog" 放在我的 pref.xml 文件中,并且无法识别此样式标记。