1.以这种形式创建控件Button btn=new Button(new ContextThemeWrapper(mContext,R.style.service_text_dialog_style),null, R.style.service_text_dialog_style);