Package org.robolectric.shadows
Class ShadowTextUtils
java.lang.Object
org.robolectric.shadows.ShadowTextUtils
Implement
TextUtils.ellipsize(java.lang.CharSequence, android.text.TextPaint, float, android.text.TextUtils.TruncateAt)
by truncating the text.
Ideally this would use GraphicsShadowPicker
to get disabled when native graphics are
enabled, but TextUtils is used by Build
, which is often referenced in static
initializers, and shadow pickers referencing ConfigurationRegistry
are not supported in static initializers.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static CharSequence
ellipsize
(CharSequence text, TextPaint p, float avail, TextUtils.TruncateAt where)
-
Constructor Details
-
ShadowTextUtils
public ShadowTextUtils()
-
-
Method Details
-
ellipsize
@Implementation protected static CharSequence ellipsize(CharSequence text, TextPaint p, float avail, TextUtils.TruncateAt where)
-