dialog = new Dialog(Context context ); dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); 注意:要在dialog.add之前设置