Suppose that we have
EditText editTextTitle = (EditText) findViewById(R.id.textTitle);
When the user touches the text field the keyboard appears in order to write some text. Instead of this I want to appear a multiple choice list with some elements. When the user confirms the selected items then I want to pass the text of these elements on the editTextTitle. Is that possible?
Sure, simply set an OnClickListener on the EditText to open your custom dialog. Also use a callback to assign the user’s selected choice to the EditText (assuming you want to do this).
Addition
onCreateDialog(Bundle savedInstanceState)is a method in DialogFragment, so it’s impossible to give one answer to cover every way you could create your Fragment… But let’s assume you already have a DialogFragment nameddialogFraginitialized and ready to go: