android.widget
Class Toast

java.lang.Object
  extended by android.widget.Toast

public class Toast
extends Object


Field Summary
static int LENGTH_LONG
           
static int LENGTH_SHORT
           
 
Constructor Summary
Toast(Context context)
           
 
Method Summary
 void cancel()
           
 int getDuration()
           
 int getGravity()
           
 float getHorizontalMargin()
           
 float getVerticalMargin()
           
 View getView()
           
 int getXOffset()
           
 int getYOffset()
           
static Toast makeText(Context context, CharSequence text, int duration)
           
static Toast makeText(Context context, int resId, int duration)
           
 void setDuration(int duration)
           
 void setGravity(int gravity, int xOffset, int yOffset)
           
 void setMargin(float horizontalMargin, float verticalMargin)
           
 void setText(CharSequence s)
           
 void setText(int resId)
           
 void setView(View view)
           
 void show()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LENGTH_SHORT

public static final int LENGTH_SHORT
See Also:
Constant Field Values

LENGTH_LONG

public static final int LENGTH_LONG
See Also:
Constant Field Values
Constructor Detail

Toast

public Toast(Context context)
Method Detail

show

public void show()

cancel

public void cancel()

setView

public void setView(View view)

getView

public View getView()

setDuration

public void setDuration(int duration)

getDuration

public int getDuration()

setMargin

public void setMargin(float horizontalMargin,
                      float verticalMargin)

getHorizontalMargin

public float getHorizontalMargin()

getVerticalMargin

public float getVerticalMargin()

setGravity

public void setGravity(int gravity,
                       int xOffset,
                       int yOffset)

getGravity

public int getGravity()

getXOffset

public int getXOffset()

getYOffset

public int getYOffset()

makeText

public static Toast makeText(Context context,
                             CharSequence text,
                             int duration)

makeText

public static Toast makeText(Context context,
                             int resId,
                             int duration)
                      throws Resources.NotFoundException
Throws:
Resources.NotFoundException

setText

public void setText(int resId)

setText

public void setText(CharSequence s)


Copyright © 2008-2012. All Rights Reserved.