ShadowProgressBar
, ShadowSurfaceView
, ShadowTextView
, ShadowViewGroup
@Implements(android.view.View.class) public class ShadowView extends Object
Modifier and Type | Class | Description |
---|---|---|
static class |
ShadowView.WindowIdHelper |
Modifier and Type | Field | Description |
---|---|---|
protected AttributeSet |
attributeSet |
|
protected View |
realView |
|
Point |
scrollToCoordinates |
Constructor | Description |
---|---|
ShadowView() |
Modifier and Type | Method | Description |
---|---|---|
protected void |
__constructor__(Context context,
AttributeSet attributeSet,
int defStyle) |
|
protected void |
addOnAttachStateChangeListener(View.OnAttachStateChangeListener onAttachStateChangeListener) |
|
void |
callOnAttachedToWindow() |
|
void |
callOnDetachedFromWindow() |
|
boolean |
checkedPerformClick() |
Deprecated.
- Please use Espresso for View interactions.
|
protected void |
clearAnimation() |
|
void |
clearWasInvalidated() |
Clears the wasInvalidated flag
|
static boolean |
clickOn(View view) |
Deprecated.
Please use Espresso for view interactions
|
boolean |
didRequestLayout() |
|
protected void |
draw(Canvas canvas) |
|
void |
dump() |
Deprecated.
- Please use
androidx.test.espresso.util.HumanReadables#describe(View) |
static void |
dump(View view) |
Deprecated.
- Please use
androidx.test.espresso.util.HumanReadables#describe(View) |
void |
dump(PrintStream out,
int indent) |
Deprecated.
- Please use
androidx.test.espresso.util.HumanReadables#describe(View) |
protected void |
dumpAttribute(PrintStream out,
String name,
String value) |
Deprecated.
|
protected void |
dumpAttributes(PrintStream out) |
Deprecated.
|
protected void |
dumpFirstPart(PrintStream out,
int indent) |
Deprecated.
|
protected void |
dumpIndent(PrintStream out,
int indent) |
Deprecated.
|
protected boolean |
getGlobalVisibleRect(Rect rect,
Point globalOffset) |
|
MotionEvent |
getLastTouchEvent() |
|
protected int |
getLayerType() |
|
Set<View.OnAttachStateChangeListener> |
getOnAttachStateChangeListeners() |
|
View.OnClickListener |
getOnClickListener() |
|
View.OnCreateContextMenuListener |
getOnCreateContextMenuListener() |
|
View.OnLongClickListener |
getOnLongClickListener() |
|
View.OnSystemUiVisibilityChangeListener |
getOnSystemUiVisibilityChangeListener() |
|
View.OnTouchListener |
getOnTouchListener() |
|
protected int |
getScrollX() |
|
protected int |
getScrollY() |
|
protected void |
getWindowDisplayFrame(Rect outRect) |
|
protected WindowId |
getWindowId() |
|
protected void |
getWindowVisibleDisplayFrame(Rect outRect) |
|
String |
innerText() |
Returns a string representation of this
View . |
static String |
innerText(View view) |
Returns the text contained within this view.
|
protected void |
invalidate() |
|
protected boolean |
isAttachedToWindow() |
|
int |
lastHapticFeedbackPerformed() |
|
protected void |
onLayout(boolean changed,
int left,
int top,
int right,
int bottom) |
|
boolean |
onLayoutWasCalled() |
|
protected boolean |
onTouchEvent(MotionEvent event) |
|
protected boolean |
performHapticFeedback(int hapticFeedbackType) |
|
protected boolean |
post(Runnable action) |
|
protected boolean |
postDelayed(Runnable action,
long delayMills) |
|
protected void |
postInvalidateDelayed(long delayMilliseconds) |
|
protected boolean |
removeCallbacks(Runnable callback) |
|
protected void |
removeOnAttachStateChangeListener(View.OnAttachStateChangeListener onAttachStateChangeListener) |
|
protected void |
requestLayout() |
|
protected void |
scrollBy(int x,
int y) |
|
protected void |
scrollTo(int x,
int y) |
|
protected void |
setAnimation(Animation animation) |
|
void |
setDidRequestLayout(boolean didRequestLayout) |
|
void |
setGlobalVisibleRect(Rect rect) |
|
protected void |
setLayerType(int layerType,
Paint paint) |
|
void |
setMyParent(ViewParent viewParent) |
|
protected void |
setOnClickListener(View.OnClickListener onClickListener) |
|
protected void |
setOnCreateContextMenuListener(View.OnCreateContextMenuListener onCreateContextMenuListener) |
|
protected void |
setOnFocusChangeListener(View.OnFocusChangeListener l) |
|
protected void |
setOnLongClickListener(View.OnLongClickListener onLongClickListener) |
|
protected void |
setOnSystemUiVisibilityChangeListener(View.OnSystemUiVisibilityChangeListener onSystemUiVisibilityChangeListener) |
|
protected void |
setOnTouchListener(View.OnTouchListener onTouchListener) |
|
protected void |
setScrollX(int scrollX) |
|
protected void |
setScrollY(int scrollY) |
|
void |
setViewFocus(boolean hasFocus) |
|
static String |
visualize(View view) |
Returns a textual representation of the appearance of the object.
|
boolean |
wasInvalidated() |
@RealObject protected View realView
protected AttributeSet attributeSet
public Point scrollToCoordinates
@Deprecated public static boolean clickOn(View view)
performClick()
on a View
after ensuring that it and its ancestors are visible and that it
is enabled.view
- the view to click onView.OnClickListener
s were found and fired, false otherwise.RuntimeException
- if the preconditions are not met.public static String visualize(View view)
view
- the view to visualize@Deprecated public static void dump(View view)
androidx.test.espresso.util.HumanReadables#describe(View)
view
- the view to dump.public static String innerText(View view)
view
- the view to scan for text@Implementation protected void __constructor__(Context context, AttributeSet attributeSet, int defStyle)
@Implementation protected void setLayerType(int layerType, Paint paint)
@Implementation protected void setOnFocusChangeListener(View.OnFocusChangeListener l)
@Implementation protected void setOnClickListener(View.OnClickListener onClickListener)
@Implementation protected void setOnLongClickListener(View.OnLongClickListener onLongClickListener)
@Implementation protected void setOnSystemUiVisibilityChangeListener(View.OnSystemUiVisibilityChangeListener onSystemUiVisibilityChangeListener)
@Implementation protected void setOnCreateContextMenuListener(View.OnCreateContextMenuListener onCreateContextMenuListener)
@Implementation protected void addOnAttachStateChangeListener(View.OnAttachStateChangeListener onAttachStateChangeListener)
@Implementation protected void removeOnAttachStateChangeListener(View.OnAttachStateChangeListener onAttachStateChangeListener)
@Implementation protected void draw(Canvas canvas)
@Implementation protected void onLayout(boolean changed, int left, int top, int right, int bottom)
public boolean onLayoutWasCalled()
@Implementation protected void requestLayout()
public boolean didRequestLayout()
public void setDidRequestLayout(boolean didRequestLayout)
public void setViewFocus(boolean hasFocus)
@Implementation protected void invalidate()
@Implementation protected boolean onTouchEvent(MotionEvent event)
@Implementation protected void setOnTouchListener(View.OnTouchListener onTouchListener)
public MotionEvent getLastTouchEvent()
public String innerText()
View
. Unless overridden, it will be an empty string.
Robolectric extension.@Deprecated public void dump()
androidx.test.espresso.util.HumanReadables#describe(View)
View
to System.out
@Deprecated public void dump(PrintStream out, int indent)
androidx.test.espresso.util.HumanReadables#describe(View)
View
to System.out
at the given indentation levelout
- Output stream.indent
- Indentation level.@Deprecated protected void dumpFirstPart(PrintStream out, int indent)
@Deprecated protected void dumpAttributes(PrintStream out)
@Deprecated protected void dumpAttribute(PrintStream out, String name, String value)
@Deprecated protected void dumpIndent(PrintStream out, int indent)
public boolean wasInvalidated()
invalidate()
has been calledpublic void clearWasInvalidated()
@Deprecated public boolean checkedPerformClick()
RuntimeException
- if the view is disabled or if the view or any of its parents are not visible.public View.OnTouchListener getOnTouchListener()
public View.OnClickListener getOnClickListener()
public View.OnLongClickListener getOnLongClickListener()
public View.OnSystemUiVisibilityChangeListener getOnSystemUiVisibilityChangeListener()
public View.OnCreateContextMenuListener getOnCreateContextMenuListener()
public Set<View.OnAttachStateChangeListener> getOnAttachStateChangeListeners()
@Implementation protected boolean post(Runnable action)
@Implementation protected boolean postDelayed(Runnable action, long delayMills)
@Implementation protected void postInvalidateDelayed(long delayMilliseconds)
@Implementation protected boolean removeCallbacks(Runnable callback)
@Implementation protected void scrollTo(int x, int y)
@Implementation protected void scrollBy(int x, int y)
@Implementation protected int getScrollX()
@Implementation protected int getScrollY()
@Implementation protected void setScrollX(int scrollX)
@Implementation protected void setScrollY(int scrollY)
@Implementation protected int getLayerType()
@Implementation protected void setAnimation(Animation animation)
@Implementation protected void clearAnimation()
@Implementation(minSdk=19) protected boolean isAttachedToWindow()
public void callOnAttachedToWindow()
public void callOnDetachedFromWindow()
@Implementation(minSdk=18) protected WindowId getWindowId()
@Implementation protected boolean performHapticFeedback(int hapticFeedbackType)
@Implementation protected boolean getGlobalVisibleRect(Rect rect, Point globalOffset)
public void setGlobalVisibleRect(Rect rect)
public int lastHapticFeedbackPerformed()
public void setMyParent(ViewParent viewParent)
@Implementation protected void getWindowVisibleDisplayFrame(Rect outRect)
@Implementation(minSdk=24) protected void getWindowDisplayFrame(Rect outRect)