com.xtremelabs.robolectric.shadows
Class ShadowToast

java.lang.Object
  extended by com.xtremelabs.robolectric.shadows.ShadowToast

@Implements(value=android.widget.Toast.class)
public class ShadowToast
extends java.lang.Object


Constructor Summary
ShadowToast()
           
 
Method Summary
 int getGravity()
           
static android.widget.Toast getLatestToast()
           
static java.lang.String getTextOfLatestToast()
           
 android.view.View getView()
           
static android.widget.Toast makeText(android.content.Context context, java.lang.CharSequence text, int duration)
           
static android.widget.Toast makeText(android.content.Context context, int resId, int duration)
           
static void reset()
           
 void setGravity(int gravity, int xOffset, int yOffset)
           
 void setView(android.view.View view)
           
 void show()
           
static boolean showedCustomToast(java.lang.CharSequence message, int layoutResourceIdToCheckForMessage)
           
static boolean showedToast(java.lang.CharSequence message)
           
static int shownToastCount()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShadowToast

public ShadowToast()
Method Detail

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()