-
- All Implemented Interfaces:
-
com.airbnb.paris.proxies.Proxy
public final class TextViewProxy extends BaseProxy<TextViewProxy, TextView>
-
-
Field Summary
Fields Modifier and Type Field Description private final TextViewProxyproxyprivate final TextViewview
-
Constructor Summary
Constructors Constructor Description TextViewProxy(TextView view)
-
Method Summary
-
-
Constructor Detail
-
TextViewProxy
TextViewProxy(TextView view)
-
-
Method Detail
-
getProxy
TextViewProxy getProxy()
-
setTextAppearance
final Unit setTextAppearance(@StyleRes() Integer textAppearance)
-
setDrawableBottom
final Unit setDrawableBottom(Drawable drawable)
-
setDrawableLeft
final Unit setDrawableLeft(Drawable drawable)
-
setDrawableRight
final Unit setDrawableRight(Drawable drawable)
-
setDrawableTop
final Unit setDrawableTop(Drawable drawable)
-
setDrawablePadding
final Unit setDrawablePadding(@Px() Integer padding)
-
setEllipsize
final Unit setEllipsize(Integer ellipsize)
-
setFontFamily
final Unit setFontFamily(Typeface typeface)
-
setHint
final Unit setHint(CharSequence hint)
-
setInputType
final Unit setInputType(Integer inputType)
-
setGravity
final Unit setGravity(Integer gravity)
-
setLetterSpacing
final Unit setLetterSpacing(Float letterSpacing)
-
setLineSpacingExtra
final Unit setLineSpacingExtra(@Px() Integer lineSpacingExtra)
View.setLineSpacing(...) takes a float for extra spacing but it's treated as pixels so seems to make more sense to use an int here and mark it as a dimension
-
setLineSpacingMultiplier
final Unit setLineSpacingMultiplier(Float lineSpacingMultiplier)
-
setMaxLines
final Unit setMaxLines(Integer maxLines)
-
setMinLines
final Unit setMinLines(Integer minLines)
-
setMaxWidth
final Unit setMaxWidth(@Px() Integer maxWidth)
-
setMinWidth
final Unit setMinWidth(@Px() Integer minWidth)
-
setSingleLine
final Unit setSingleLine(Boolean singleLine)
-
setText
final Unit setText(CharSequence text)
-
setTextAllCaps
final Unit setTextAllCaps(Boolean textAllCaps)
-
setTextColor
final Unit setTextColor(ColorStateList colors)
- Parameters:
colors- If null will set the color to the default (black), same as TextView
-
setTextColorHint
final Unit setTextColorHint(ColorStateList colors)
-
setTextSize
final Unit setTextSize(@Px() Integer textSize)
-
setTextStyle
final Unit setTextStyle(Integer styleIndex)
-
setLineHeight
final Unit setLineHeight(@Px() @IntRange(from = 0.toLong()) Integer lineHeight)
-
afterStyle
final Unit afterStyle(Style style)
-
-
-
-