View layout;
EditText editText;
if (scrollable) {
layout = new ScrollView(EditTextActivityDialog.this);
((ScrollView) layout).setMinimumHeight(mLayout.getHeight());
((ScrollView) layout).addView((
LinearLayout) View.inflate(EditTextActivityDialog.this,
R.layout.dialog_edit_text_no_scroll, null));
} else {
layout = View.inflate(EditTextActivityDialog.this,
R.layout.dialog_edit_text_no_scroll, null);
}
Dialog d = new Dialog(EditTextActivityDialog.this);
d.setTitle(getString(R.string.test_dialog));
d.setCancelable(true);
d.setContentView(layout);
return d;