Package org.robolectric.shadows
Class ShadowCompoundButton
- java.lang.Object
-
- org.robolectric.shadows.ShadowView
-
- org.robolectric.shadows.ShadowTextView
-
- org.robolectric.shadows.ShadowCompoundButton
-
@Implements(android.widget.CompoundButton.class) public class ShadowCompoundButton extends ShadowTextView
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.robolectric.shadows.ShadowView
ShadowView.WindowIdHelper
-
-
Field Summary
-
Fields inherited from class org.robolectric.shadows.ShadowTextView
selectionEnd, selectionStart
-
Fields inherited from class org.robolectric.shadows.ShadowView
attributeSet, realView, scrollToCoordinates, viewReflector
-
-
Constructor Summary
Constructors Constructor Description ShadowCompoundButton()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Drawable
getButtonDrawable()
int
getButtonDrawableId()
protected void
setButtonDrawable(int buttonDrawableId)
protected void
setButtonDrawable(Drawable buttonDrawable)
-
Methods inherited from class org.robolectric.shadows.ShadowTextView
addTextChangedListener, dumpAttributes, getCompoundDrawablesWithIntrinsicBoundsBottom, getCompoundDrawablesWithIntrinsicBoundsLeft, getCompoundDrawablesWithIntrinsicBoundsRight, getCompoundDrawablesWithIntrinsicBoundsTop, getOnEditorActionListener, getPaintFlags, getPreviousKeyCode, getPreviousKeyEvent, getTextAppearanceId, getTextServicesLocale, getWatchers, innerText, onKeyDown, onKeyUp, removeTextChangedListener, setCompoundDrawablesWithIntrinsicBounds, setOnEditorActionListener, setPaintFlags, setTextAppearance
-
Methods inherited from class org.robolectric.shadows.ShadowView
__constructor__, __constructor__, addGlobalPerformClickListener, addGlobalPerformLongClickListener, addOnAttachStateChangeListener, addOnLayoutChangeListener, callOnAttachedToWindow, callOnDetachedFromWindow, checkedPerformClick, clearAnimation, clearWasInvalidated, clickOn, didRequestLayout, draw, dump, dump, dump, dumpAttribute, dumpFirstPart, dumpIndent, getGlobalVisibleRect, getLastTouchEvent, getLayerType, getLocationOnScreen, getOnAttachStateChangeListeners, getOnClickListener, getOnCreateContextMenuListener, getOnLayoutChangeListeners, getOnLongClickListener, getOnSystemUiVisibilityChangeListener, getOnTouchListener, getScrollX, getScrollY, getSourceLayoutResId, getWindowDisplayFrame, getWindowId, getWindowVisibleDisplayFrame, initialAwakenScrollBars, innerText, invalidate, isAttachedToWindow, lastHapticFeedbackPerformed, mapRectFromViewToScreenCoords, onLayout, onLayoutWasCalled, onTouchEvent, performClick, performHapticFeedback, performLongClick, post, postDelayed, postInvalidateDelayed, removeCallbacks, removeGlobalPerformClickListener, removeGlobalPerformLongClickListener, removeOnAttachStateChangeListener, removeOnLayoutChangeListener, requestLayout, reset, scrollBy, scrollTo, setAnimation, setDidRequestLayout, setGlobalVisibleRect, setLayerType, setMyParent, setOnClickListener, setOnCreateContextMenuListener, setOnFocusChangeListener, setOnLongClickListener, setOnSystemUiVisibilityChangeListener, setOnTouchListener, setScrollX, setScrollY, setViewFocus, visualize, wasInvalidated
-
-
-
-
Method Detail
-
setButtonDrawable
@Implementation protected void setButtonDrawable(int buttonDrawableId)
-
setButtonDrawable
@Implementation protected void setButtonDrawable(Drawable buttonDrawable)
-
getButtonDrawableId
public int getButtonDrawableId()
-
getButtonDrawable
@Implementation(minSdk=23) public Drawable getButtonDrawable()
-
-