Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Badranh authored Jun 25, 2018
1 parent 36e3cbe commit ed5748c
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,31 @@ setContentView(syntax_view);
SyntaxView syntax_view = new SyntaxView(this,"#2b2b2b","#cc7832","#4a85a3","#cc7832","#6a8759");
setContentView(syntax_view);
```

# Set On TextChangeListener
```
//on text change listener
syntax_view.code.addTextChangedListener(new TextWatcher() {
@Override
public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) {
//do whatever you want
}
@Override
public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) {
//on text change listener
//do whatever you want
Log.d("tester",charSequence.toString());
}
@Override
public void afterTextChanged(Editable editable) {
//do whatever you want
}
});
```
# Changes:
6/25/2018:
- Uploaded Syntax View
Expand Down

0 comments on commit ed5748c

Please sign in to comment.