This video describes how to create an Edittext field inside a Dialog Box in Sketchware Android App, and how to get the contents of the Edittext field to a string.
The code used is:
final EditText input = new EditText(MainActivity.this);
LinearLayout.LayoutParams lpar = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT);
input.setLayoutParams(lpar);
dialog.setView(input);
آی-ویدئو