Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
EditText editText = (EditText)findViewById(R.id.edit_text);
String editTextString = editText.getText().toString();
TextView textView = (TextView)findViewById(R.id.text_view);
textView.setText(getResources().getString(R.string.label, editTextString));
<resources>
<string name="label">EditText string = %1$s</string>
</resources>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.