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
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_main); | |
TextView textViewLong = (TextView) findViewById(R.id.textViewLong); | |
EditText editText = (EditText) findViewById(R.id.editText); | |
editText.addTextChangedListener(new TextWatcher() { | |
@Override | |
public void afterTextChanged(Editable s) { | |
// TODO Auto-generated method stub | |
} | |
@Override | |
public void beforeTextChanged(CharSequence s, int start, int count, int after) { | |
// TODO Auto-generated method stub | |
} | |
@Override | |
public void onTextChanged(CharSequence s, int start, int before, int count) { | |
textViewLong.setText(s); | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment