public class ReactTextView extends AppCompatTextView implements ReactCompoundView
Constructor and Description |
---|
ReactTextView(android.content.Context context) |
Modifier and Type | Method and Description |
---|---|
android.text.Spannable |
getSpanned() |
boolean |
hasOverlappingRendering() |
void |
invalidateDrawable(android.graphics.drawable.Drawable drawable) |
void |
onAttachedToWindow() |
void |
onDetachedFromWindow() |
void |
onFinishTemporaryDetach() |
protected void |
onLayout(boolean changed,
int textViewLeft,
int textViewTop,
int textViewRight,
int textViewBottom) |
void |
onStartTemporaryDetach() |
int |
reactTagForTouch(float touchX,
float touchY)
Return react tag for touched element.
|
void |
setAdjustFontSizeToFit(boolean adjustsFontSizeToFit) |
void |
setBackgroundColor(int color) |
void |
setBorderColor(int position,
float color,
float alpha) |
void |
setBorderRadius(float borderRadius) |
void |
setBorderRadius(float borderRadius,
int position) |
void |
setBorderStyle(java.lang.String style) |
void |
setBorderWidth(int position,
float width) |
void |
setEllipsizeLocation(android.text.TextUtils.TruncateAt ellipsizeLocation) |
void |
setLinkifyMask(int mask) |
void |
setNotifyOnInlineViewLayout(boolean notifyOnInlineViewLayout) |
void |
setNumberOfLines(int numberOfLines) |
void |
setSpanned(android.text.Spannable spanned) |
void |
setText(ReactTextUpdate update) |
void |
updateView() |
protected boolean |
verifyDrawable(android.graphics.drawable.Drawable drawable) |
protected void onLayout(boolean changed, int textViewLeft, int textViewTop, int textViewRight, int textViewBottom)
public void setText(ReactTextUpdate update)
public int reactTagForTouch(float touchX, float touchY)
ReactCompoundView
reactTagForTouch
in interface ReactCompoundView
touchX
- the X touch coordinate relative to the viewtouchY
- the Y touch coordinate relative to the viewprotected boolean verifyDrawable(android.graphics.drawable.Drawable drawable)
public void invalidateDrawable(android.graphics.drawable.Drawable drawable)
public void onDetachedFromWindow()
public void onStartTemporaryDetach()
public void onAttachedToWindow()
public void onFinishTemporaryDetach()
public boolean hasOverlappingRendering()
public void setNumberOfLines(int numberOfLines)
public void setAdjustFontSizeToFit(boolean adjustsFontSizeToFit)
public void setEllipsizeLocation(android.text.TextUtils.TruncateAt ellipsizeLocation)
public void setNotifyOnInlineViewLayout(boolean notifyOnInlineViewLayout)
public void updateView()
public void setBackgroundColor(int color)
public void setBorderWidth(int position, float width)
public void setBorderColor(int position, float color, float alpha)
public void setBorderRadius(float borderRadius)
public void setBorderRadius(float borderRadius, int position)
public void setBorderStyle(java.lang.String style)
public void setSpanned(android.text.Spannable spanned)
public android.text.Spannable getSpanned()
public void setLinkifyMask(int mask)