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