Add ellipsizing of Bookmark label text
CR-Fixed: 903472
Change-Id: I2767562eadcde8c19f02f09b6b856137a556287f
diff --git a/src/com/android/browser/view/BookmarkContainer.java b/src/com/android/browser/view/BookmarkContainer.java
index b36dde2..463b1bf 100644
--- a/src/com/android/browser/view/BookmarkContainer.java
+++ b/src/com/android/browser/view/BookmarkContainer.java
@@ -21,6 +21,7 @@
import android.graphics.drawable.Drawable;
import android.graphics.drawable.StateListDrawable;
import android.graphics.drawable.TransitionDrawable;
+import android.text.TextUtils;
import android.util.AttributeSet;
import android.view.Gravity;
import android.view.View;
@@ -102,6 +103,7 @@
public void setBottomLabelText(String bottomLabel) {
((TextView) findViewById(R.id.label)).setText(bottomLabel);
+ ((TextView) findViewById(R.id.label)).setEllipsize(TextUtils.TruncateAt.END);
}
public void setOverlayBadge(int imgResId) {