Check out example codes for "java android edit text set value". It will help you in understanding the concepts better.

Code Example 1

EditText bookInput = (EditText)findViewById(R.id.book);
bookInput.setText("The Shining");

Learn ReactJs, React Native from akashmittal.com