Bug 1061508 - Change FadedTextView to be a ThemedTextView (r=bnicholson)

This commit is contained in:
Lucas Rocha
2014-09-24 18:27:43 +01:00
parent 88d04e445b
commit b57a0d53ee

View File

@@ -13,15 +13,15 @@ import android.graphics.Shader;
import android.graphics.drawable.Drawable;
import android.text.Layout;
import android.util.AttributeSet;
import android.widget.TextView;
import org.mozilla.gecko.R;
import org.mozilla.gecko.widget.ThemedTextView;
/**
* FadedTextView fades the ends of the text by fadeWidth amount,
* if the text is too long and requires an ellipsis.
*/
public class FadedTextView extends TextView {
public class FadedTextView extends ThemedTextView {
// Width of the fade effect from end of the view.
private final int mFadeWidth;
@@ -34,11 +34,7 @@ public class FadedTextView extends TextView {
}
public FadedTextView(Context context, AttributeSet attrs) {
this(context, attrs, android.R.attr.textViewStyle);
}
public FadedTextView(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
super(context, attrs);
setSingleLine(true);
setEllipsize(null);