@Implements(value=android.widget.TextView.class) public class ShadowTextView extends ShadowView
ShadowView.WindowIdHelper| Modifier and Type | Field and Description |
|---|---|
protected int |
selectionEnd |
protected int |
selectionStart |
attributeSet, realView, scrollToCoordinates| Constructor and Description |
|---|
ShadowTextView() |
__constructor__, callOnAttachedToWindow, callOnDetachedFromWindow, checkedPerformClick, clearWasInvalidated, clickOn, didRequestLayout, draw, dump, dump, dump, dumpAttribute, dumpFirstPart, dumpIndent, getGlobalVisibleRect, getLastTouchEvent, getLayerType, getOnClickListener, getOnCreateContextMenuListener, getOnLongClickListener, getOnSystemUiVisibilityChangeListener, getOnTouchListener, getScrollX, getScrollY, getWindowId, innerText, invalidate, isAttachedToWindow, lastHapticFeedbackPerformed, onLayout, onLayoutWasCalled, onTouchEvent, performHapticFeedback, post, postDelayed, postInvalidateDelayed, removeCallbacks, requestLayout, scrollBy, scrollTo, setAnimation, setDidRequestLayout, setGlobalVisibleRect, setLayerType, setMyParent, setOnClickListener, setOnCreateContextMenuListener, setOnFocusChangeListener, setOnLongClickListener, setOnSystemUiVisibilityChangeListener, setOnTouchListener, setScrollX, setScrollY, setViewFocus, visualize, wasInvalidated@Implementation protected void setTextAppearance(Context context, int resid)
@Implementation protected boolean onKeyDown(int keyCode, KeyEvent event)
@Implementation protected boolean onKeyUp(int keyCode, KeyEvent event)
public int getPreviousKeyCode(int index)
public KeyEvent getPreviousKeyEvent(int index)
public String innerText()
Returns the text string of this TextView.
Robolectric extension.
innerText in class ShadowViewpublic int getTextAppearanceId()
@Implementation protected void addTextChangedListener(TextWatcher watcher)
@Implementation protected void removeTextChangedListener(TextWatcher watcher)
public List<TextWatcher> getWatchers()
@HiddenApi @Implementation public Locale getTextServicesLocale()
protected void dumpAttributes(PrintStream out)
dumpAttributes in class ShadowView@Implementation protected int getPaintFlags()
@Implementation protected void setPaintFlags(int paintFlags)
@Implementation protected void setOnEditorActionListener(TextView.OnEditorActionListener l)
public TextView.OnEditorActionListener getOnEditorActionListener()
@Implementation protected void setCompoundDrawablesWithIntrinsicBounds(int left, int top, int right, int bottom)
public int getCompoundDrawablesWithIntrinsicBoundsLeft()
public int getCompoundDrawablesWithIntrinsicBoundsTop()
public int getCompoundDrawablesWithIntrinsicBoundsRight()
public int getCompoundDrawablesWithIntrinsicBoundsBottom()