Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
基本上,我需要知道如何从我的代码中将用户输入的字符串插入到我的 gui 上的文本编辑中。
Try this-
String str = "this is a text"; EditText editText = (EditText)findViewById(R.id.edit_text); editText.setText(str, TextView.BufferType.EDITABLE);
You can use any string in String object.
String