public class ToastWindow
extends java.lang.Object
| 构造器和说明 |
|---|
ToastWindow(android.content.Context context) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
dismiss() |
void |
setAnimationStyle(int animationStyle) |
void |
setBackgroundDrawable(android.graphics.drawable.Drawable background) |
void |
setContentView(android.view.View contentView) |
void |
setFocusable(boolean focusable) |
void |
setHeight(int height) |
void |
setOnDismissListener(android.widget.PopupWindow.OnDismissListener listener) |
void |
setSoftInputMode(int mode) |
void |
setText(java.lang.CharSequence textStr) |
void |
setText(int textResId) |
void |
setWidth(int width) |
void |
show(android.view.Window mainWindow,
int distanceToBottom) |
void |
showAsDropDown(android.view.View anchor,
int xoff,
int yoff) |
void |
showCenter(android.view.Window mainWindow) |
void |
showCenterForMillis(android.view.Window mainWindow,
int millis) |
void |
showForMillis(android.view.Window mainWindow,
int distanceToBottom,
int millis) |
public void setSoftInputMode(int mode)
public void setWidth(int width)
public void setHeight(int height)
public void setContentView(android.view.View contentView)
public void setBackgroundDrawable(android.graphics.drawable.Drawable background)
public void setText(int textResId)
public void setText(java.lang.CharSequence textStr)
public void show(android.view.Window mainWindow,
int distanceToBottom)
public void showForMillis(android.view.Window mainWindow,
int distanceToBottom,
int millis)
public void showCenter(android.view.Window mainWindow)
public void showCenterForMillis(android.view.Window mainWindow,
int millis)
public void showAsDropDown(android.view.View anchor,
int xoff,
int yoff)
public void setFocusable(boolean focusable)
public void setAnimationStyle(int animationStyle)
public void setOnDismissListener(android.widget.PopupWindow.OnDismissListener listener)
public void dismiss()