Android custom dialog with no title

Dialog dialog = new Dialog(mContext);
dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
dialog.setContentView(R.layout.dialoglayout);
TextView textup = (TextView) dialog.findViewById(R.id.mapDialogTextUp);
textup.setText("test");
dialog.show();
Share