Skip to content

Commit

Permalink
Use the unicode version of the Horizontal ellipsis char.
Browse files Browse the repository at this point in the history
Restrict the visibility of some methods to private.
  • Loading branch information
daniloercoli committed Jul 30, 2014
1 parent a38b30c commit 8deae86
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
*/
public class AutoResizeTextView extends TextView {
// Minimum text size for this text view
public static final float MIN_TEXT_SIZE = 20;
private static final float MIN_TEXT_SIZE = 20;

// Interface for resize notifications
public interface OnTextResizeListener {
void onTextResize(TextView textView, float oldSize, float newSize);
}

// Our ellipse string
private static final String M_ELLIPSIS = "...";
// Our ellipse string - Unicode Character 'HORIZONTAL ELLIPSIS'
private static final String M_ELLIPSIS = "\u2026";

// Registered resize listener
private OnTextResizeListener mTextResizeListener;
Expand Down Expand Up @@ -179,7 +179,7 @@ public boolean getAddEllipsis() {
/**
* Reset the text to the original size
*/
public void resetTextSize() {
private void resetTextSize() {
if (mTextSize > 0) {
super.setTextSize(TypedValue.COMPLEX_UNIT_PX, mTextSize);
mMaxTextSize = mTextSize;
Expand Down

0 comments on commit 8deae86

Please sign in to comment.