I have this for my alert dialogs, and this works perfect
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();
But I have a about preference dialog, and I want this dialog to have the same stile like my alerts dialog. But I do not know hot to apply this style to my dialog
public class About extends DialogPreference {
public AboutDialog(Context oContext, AttributeSet attrs)
{
super(oContext, attrs);
}
}
NOTE: I put android:style="@style/impex_dialog" in my pref.xml file, and this style tag it is not recognised.