set text method to xml code example Example: set text from strings.xml theButton.setText(getString(R.string.fu));