public abstract class BaseToastStyle extends java.lang.Object implements IToastStyle
| 构造器和说明 |
|---|
BaseToastStyle(android.content.Context context) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected int |
dp2px(float dpValue)
dp转px
|
int |
getGravity()
吐司的重心
|
int |
getMaxLines()
最大行数
|
int |
getPaddingBottom()
底部内边距
|
int |
getPaddingEnd()
结束内边距
|
int |
getXOffset()
X轴偏移
|
int |
getYOffset()
Y轴偏移
|
int |
getZ()
吐司 Z 轴坐标
|
protected int |
sp2px(float spValue)
sp转px
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBackgroundColor, getCornerRadius, getPaddingStart, getPaddingTop, getTextColor, getTextSizepublic int getGravity()
IToastStylegetGravity 在接口中 IToastStylepublic int getXOffset()
IToastStylegetXOffset 在接口中 IToastStylepublic int getYOffset()
IToastStylegetYOffset 在接口中 IToastStylepublic int getZ()
IToastStylegetZ 在接口中 IToastStylepublic int getMaxLines()
IToastStylegetMaxLines 在接口中 IToastStylepublic int getPaddingEnd()
IToastStylegetPaddingEnd 在接口中 IToastStylepublic int getPaddingBottom()
IToastStylegetPaddingBottom 在接口中 IToastStyleprotected int dp2px(float dpValue)
protected int sp2px(float spValue)