Created
March 7, 2016 10:56
-
-
Save shogonir/fd9770a8626120c1701c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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