Created
May 1, 2013 11:09
-
-
Save NightWhistler/5494764 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
public class MyExpansionListener implements ExpansionListener { | |
private TextView textView; | |
public MyExpansionListener( TextView textView ) { | |
this.textView = textView; | |
} | |
public void expandText( String fullText, int start, int end ) { | |
String before = textView.getText().substring(0, start); | |
String after = textView.getText().substring(end); | |
textView.setText( before + fullText + after); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment