public class ViewToastStyle extends java.lang.Object implements IToastStyle<android.view.View>
| Constructor and Description |
|---|
ViewToastStyle(int id,
IToastStyle<?> style) |
| Modifier and Type | Method and Description |
|---|---|
android.view.View |
createView(android.content.Context context)
创建 Toast 视图
|
int |
getGravity()
获取 Toast 显示重心
|
float |
getHorizontalMargin()
获取 Toast 水平间距
|
float |
getVerticalMargin()
获取 Toast 垂直间距
|
int |
getXOffset()
获取 Toast 水平偏移
|
int |
getYOffset()
获取 Toast 垂直偏移
|
public ViewToastStyle(int id,
IToastStyle<?> style)
public android.view.View createView(android.content.Context context)
IToastStylecreateView in interface IToastStyle<android.view.View>public int getGravity()
IToastStylegetGravity in interface IToastStyle<android.view.View>public int getXOffset()
IToastStylegetXOffset in interface IToastStyle<android.view.View>public int getYOffset()
IToastStylegetYOffset in interface IToastStyle<android.view.View>public float getHorizontalMargin()
IToastStylegetHorizontalMargin in interface IToastStyle<android.view.View>public float getVerticalMargin()
IToastStylegetVerticalMargin in interface IToastStyle<android.view.View>