com.xtremelabs.robolectric.shadows
Class ShadowToast
java.lang.Object
com.xtremelabs.robolectric.shadows.ShadowToast
@Implements(value=android.widget.Toast.class)
public class ShadowToast
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ShadowToast
public ShadowToast()
makeText
@Implementation
public static android.widget.Toast makeText(android.content.Context context,
int resId,
int duration)
makeText
@Implementation
public static android.widget.Toast makeText(android.content.Context context,
java.lang.CharSequence text,
int duration)
show
@Implementation
public void show()
setView
@Implementation
public void setView(android.view.View view)
getView
@Implementation
public android.view.View getView()
setGravity
@Implementation
public void setGravity(int gravity,
int xOffset,
int yOffset)
getGravity
@Implementation
public int getGravity()
reset
public static void reset()
shownToastCount
public static int shownToastCount()
showedCustomToast
public static boolean showedCustomToast(java.lang.CharSequence message,
int layoutResourceIdToCheckForMessage)
showedToast
public static boolean showedToast(java.lang.CharSequence message)
getTextOfLatestToast
public static java.lang.String getTextOfLatestToast()
getLatestToast
public static android.widget.Toast getLatestToast()