This file contains hidden or 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
/** | |
* {@link TextView} that displays only numbers, formated as a readable phone number. | |
* Example: 123-234-3456 instead of 1232343456 | |
* | |
* @author fernandohur | |
*/ | |
public class PhoneEditText extends EditText implements TextWatcher { | |
private boolean ignoreTextChange; |
This file contains hidden or 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
/** | |
* @author fernandohur but credit goes to <a href="http://stackoverflow.com/questions/2617266/how-to-adjust-text-font-size-to-fit-textview">speedplane</a> | |
*/ | |
public class FontFitTextView extends TextView { | |
private Paint mTestPaint; | |
/** | |
* The minimum font size in pixels | |
*/ | |
private float minFontSize; |