Skip navigation links
A B C D F G I L N P R S T V W 

A

ActivityToast - Class in com.hjq.toast
author : Android 轮子哥 github : https://github.com/getActivity/ToastUtils time : 2018/11/02 desc : 自定义 Toast(用于解决关闭通知栏权限之后不能弹吐司的问题和 Android 11 不能自定义吐司样式的问题)
ActivityToast(Activity) - Constructor for class com.hjq.toast.ActivityToast
 
areNotificationsEnabled(Context) - Method in class com.hjq.toast.ToastStrategy
是否有通知栏权限

B

bindStyle(IToastStyle<?>) - Method in interface com.hjq.toast.config.IToastStrategy
绑定样式
bindStyle(IToastStyle<?>) - Method in class com.hjq.toast.ToastStrategy
 
BlackToastStyle - Class in com.hjq.toast.style
author : Android 轮子哥 github : https://github.com/getActivity/ToastUtils time : 2018/09/01 desc : 默认黑色样式实现
BlackToastStyle() - Constructor for class com.hjq.toast.style.BlackToastStyle
 

C

cancel() - Method in class com.hjq.toast.ActivityToast
 
cancel() - Method in interface com.hjq.toast.config.IToast
取消
cancel() - Static method in class com.hjq.toast.ToastUtils
取消吐司的显示
cancelToast() - Method in interface com.hjq.toast.config.IToastStrategy
取消 Toast
cancelToast() - Method in class com.hjq.toast.ToastStrategy
 
com.hjq.toast - package com.hjq.toast
 
com.hjq.toast.config - package com.hjq.toast.config
 
com.hjq.toast.style - package com.hjq.toast.style
 
createToast(Application) - Method in interface com.hjq.toast.config.IToastStrategy
创建 Toast
createToast(Application) - Method in class com.hjq.toast.ToastStrategy
 
createView(Context) - Method in interface com.hjq.toast.config.IToastStyle
创建 Toast 视图
createView(Context) - Method in class com.hjq.toast.style.BlackToastStyle
 
createView(Context) - Method in class com.hjq.toast.style.LocationToastStyle
 
createView(Context) - Method in class com.hjq.toast.style.ViewToastStyle
 

D

debugShow(Object) - Static method in class com.hjq.toast.ToastUtils
 
debugShow(int) - Static method in class com.hjq.toast.ToastUtils
 
debugShow(CharSequence) - Static method in class com.hjq.toast.ToastUtils
 

F

filterClass(Class<?>) - Method in class com.hjq.toast.ToastLogInterceptor
 
findMessageView(View) - Method in interface com.hjq.toast.config.IToast
智能获取用于显示消息的 TextView

G

getAnimationsId() - Method in class com.hjq.toast.ActivityToast
 
getBackgroundDrawable(Context) - Method in class com.hjq.toast.style.BlackToastStyle
 
getBackgroundDrawable(Context) - Method in class com.hjq.toast.style.WhiteToastStyle
 
getDuration() - Method in class com.hjq.toast.ActivityToast
 
getDuration() - Method in interface com.hjq.toast.config.IToast
获取显示时长
getGravity() - Method in class com.hjq.toast.ActivityToast
 
getGravity() - Method in interface com.hjq.toast.config.IToast
获取显示重心
getGravity() - Method in interface com.hjq.toast.config.IToastStyle
获取 Toast 显示重心
getGravity() - Method in class com.hjq.toast.style.LocationToastStyle
 
getGravity() - Method in class com.hjq.toast.style.ViewToastStyle
 
getHorizontalMargin() - Method in class com.hjq.toast.ActivityToast
 
getHorizontalMargin() - Method in interface com.hjq.toast.config.IToast
设置水平间距
getHorizontalMargin() - Method in interface com.hjq.toast.config.IToastStyle
获取 Toast 水平间距
getHorizontalMargin() - Method in class com.hjq.toast.style.LocationToastStyle
 
getHorizontalMargin() - Method in class com.hjq.toast.style.ViewToastStyle
 
getHorizontalPadding(Context) - Method in class com.hjq.toast.style.BlackToastStyle
 
getInterceptor() - Static method in class com.hjq.toast.ToastUtils
 
getLongDuration() - Method in class com.hjq.toast.ActivityToast
 
getMaxLines(Context) - Method in class com.hjq.toast.style.BlackToastStyle
 
getShortDuration() - Method in class com.hjq.toast.ActivityToast
 
getStrategy() - Static method in class com.hjq.toast.ToastUtils
 
getStyle() - Static method in class com.hjq.toast.ToastUtils
 
getTextColor(Context) - Method in class com.hjq.toast.style.BlackToastStyle
 
getTextColor(Context) - Method in class com.hjq.toast.style.WhiteToastStyle
 
getTextGravity(Context) - Method in class com.hjq.toast.style.BlackToastStyle
 
getTextSize(Context) - Method in class com.hjq.toast.style.BlackToastStyle
 
getToastDuration(CharSequence) - Method in class com.hjq.toast.ToastStrategy
获取 Toast 显示时长
getTranslationZ(Context) - Method in class com.hjq.toast.style.BlackToastStyle
 
getVerticalMargin() - Method in class com.hjq.toast.ActivityToast
 
getVerticalMargin() - Method in interface com.hjq.toast.config.IToast
设置垂直间距
getVerticalMargin() - Method in interface com.hjq.toast.config.IToastStyle
获取 Toast 垂直间距
getVerticalMargin() - Method in class com.hjq.toast.style.LocationToastStyle
 
getVerticalMargin() - Method in class com.hjq.toast.style.ViewToastStyle
 
getVerticalPadding(Context) - Method in class com.hjq.toast.style.BlackToastStyle
 
getView() - Method in class com.hjq.toast.ActivityToast
 
getView() - Method in interface com.hjq.toast.config.IToast
获取布局
getXOffset() - Method in class com.hjq.toast.ActivityToast
 
getXOffset() - Method in interface com.hjq.toast.config.IToast
获取水平偏移
getXOffset() - Method in interface com.hjq.toast.config.IToastStyle
获取 Toast 水平偏移
getXOffset() - Method in class com.hjq.toast.style.LocationToastStyle
 
getXOffset() - Method in class com.hjq.toast.style.ViewToastStyle
 
getYOffset() - Method in class com.hjq.toast.ActivityToast
 
getYOffset() - Method in interface com.hjq.toast.config.IToast
获取垂直偏移
getYOffset() - Method in interface com.hjq.toast.config.IToastStyle
获取 Toast 垂直偏移
getYOffset() - Method in class com.hjq.toast.style.LocationToastStyle
 
getYOffset() - Method in class com.hjq.toast.style.ViewToastStyle
 

I

init(Application) - Static method in class com.hjq.toast.ToastUtils
初始化 Toast,需要在 Application.create 中初始化
init(Application, IToastStrategy) - Static method in class com.hjq.toast.ToastUtils
 
init(Application, IToastStyle<?>) - Static method in class com.hjq.toast.ToastUtils
 
init(Application, IToastStrategy, IToastStyle<?>) - Static method in class com.hjq.toast.ToastUtils
初始化 Toast
intercept(CharSequence) - Method in interface com.hjq.toast.config.IToastInterceptor
根据显示的文本决定是否拦截该 Toast
intercept(CharSequence) - Method in class com.hjq.toast.ToastLogInterceptor
 
isInit() - Static method in class com.hjq.toast.ToastUtils
判断当前框架是否已经初始化
isLogEnable() - Method in class com.hjq.toast.ToastLogInterceptor
 
IToast - Interface in com.hjq.toast.config
author : Android 轮子哥 github : https://github.com/getActivity/ToastUtils time : 2021/04/06 desc : Toast 接口
IToastInterceptor - Interface in com.hjq.toast.config
author : Android 轮子哥 github : https://github.com/getActivity/ToastUtils time : 2019/05/19 desc : Toast 拦截器接口
IToastStrategy - Interface in com.hjq.toast.config
author : Android 轮子哥 github : https://github.com/getActivity/ToastUtils time : 2019/05/19 desc : Toast 处理策略
IToastStyle<V extends android.view.View> - Interface in com.hjq.toast.config
author : Android 轮子哥 github : https://github.com/getActivity/ToastUtils time : 2018/09/01 desc : 默认样式接口

L

LocationToastStyle - Class in com.hjq.toast.style
author : Android 轮子哥 github : https://github.com/getActivity/ToastUtils time : 2021/03/09 desc : Toast 位置包装样式实现
LocationToastStyle(IToastStyle<?>, int) - Constructor for class com.hjq.toast.style.LocationToastStyle
 
LocationToastStyle(IToastStyle<?>, int, int, int, float, float) - Constructor for class com.hjq.toast.style.LocationToastStyle
 

N

NotificationToast - Class in com.hjq.toast
author : Android 轮子哥 github : https://github.com/getActivity/ToastUtils time : 2021/11/24 desc : 处理 Toast 关闭通知栏权限之后无法弹出的问题
NotificationToast(Application) - Constructor for class com.hjq.toast.NotificationToast
 

P

printLog(String) - Method in class com.hjq.toast.ToastLogInterceptor
 
printToast(CharSequence) - Method in class com.hjq.toast.ToastLogInterceptor
 

R

registerStrategy(Application) - Method in interface com.hjq.toast.config.IToastStrategy
注册策略
registerStrategy(Application) - Method in class com.hjq.toast.ToastStrategy
 

S

SafeToast - Class in com.hjq.toast
author : Android 轮子哥 github : https://github.com/getActivity/ToastUtils time : 2018/12/06 desc : Toast 显示安全处理
SafeToast(Application) - Constructor for class com.hjq.toast.SafeToast
 
setAnimationsId(int) - Method in class com.hjq.toast.ActivityToast
 
setDebugMode(boolean) - Static method in class com.hjq.toast.ToastUtils
是否为调试模式
setDuration(int) - Method in class com.hjq.toast.ActivityToast
 
setDuration(int) - Method in interface com.hjq.toast.config.IToast
设置显示时长
setGravity(int, int, int) - Method in class com.hjq.toast.ActivityToast
 
setGravity(int, int, int) - Method in interface com.hjq.toast.config.IToast
设置重心偏移
setGravity(int) - Static method in class com.hjq.toast.ToastUtils
设置吐司的位置
setGravity(int, int, int) - Static method in class com.hjq.toast.ToastUtils
 
setGravity(int, int, int, float, float) - Static method in class com.hjq.toast.ToastUtils
 
setInterceptor(IToastInterceptor) - Static method in class com.hjq.toast.ToastUtils
设置 Toast 拦截器(可以根据显示的内容决定是否拦截这个Toast) 场景:打印 Toast 内容日志、根据 Toast 内容是否包含敏感字来动态切换其他方式显示(这里可以使用我的另外一套框架 XToast)
setLongDuration(int) - Method in class com.hjq.toast.ActivityToast
 
setMargin(float, float) - Method in class com.hjq.toast.ActivityToast
 
setMargin(float, float) - Method in interface com.hjq.toast.config.IToast
设置屏幕间距
setShortDuration(int) - Method in class com.hjq.toast.ActivityToast
 
setStrategy(IToastStrategy) - Static method in class com.hjq.toast.ToastUtils
设置 Toast 显示策略
setStyle(IToastStyle<?>) - Static method in class com.hjq.toast.ToastUtils
初始化全局的 Toast 样式
setText(int) - Method in class com.hjq.toast.ActivityToast
 
setText(CharSequence) - Method in class com.hjq.toast.ActivityToast
 
setText(int) - Method in interface com.hjq.toast.config.IToast
设置文本
setText(CharSequence) - Method in interface com.hjq.toast.config.IToast
 
setText(CharSequence) - Method in class com.hjq.toast.SystemToast
 
setView(View) - Method in class com.hjq.toast.ActivityToast
 
setView(View) - Method in interface com.hjq.toast.config.IToast
设置布局
setView(View) - Method in class com.hjq.toast.SystemToast
 
setView(int) - Static method in class com.hjq.toast.ToastUtils
给当前 Toast 设置新的布局
show() - Method in class com.hjq.toast.ActivityToast
 
show() - Method in interface com.hjq.toast.config.IToast
显示
show() - Method in class com.hjq.toast.NotificationToast
 
show() - Method in class com.hjq.toast.SafeToast
 
show(Object) - Static method in class com.hjq.toast.ToastUtils
显示一个对象的吐司
show(int) - Static method in class com.hjq.toast.ToastUtils
显示一个吐司
show(CharSequence) - Static method in class com.hjq.toast.ToastUtils
显示一个吐司
showToast(CharSequence) - Method in interface com.hjq.toast.config.IToastStrategy
显示 Toast
showToast(CharSequence) - Method in class com.hjq.toast.ToastStrategy
 
SystemToast - Class in com.hjq.toast
author : Android 轮子哥 github : https://github.com/getActivity/ToastUtils time : 2018/11/03 desc : 系统 Toast
SystemToast(Application) - Constructor for class com.hjq.toast.SystemToast
 

T

ToastLogInterceptor - Class in com.hjq.toast
author : Android 轮子哥 github : https://github.com/getActivity/ToastUtils time : 2020/11/04 desc : 自定义 Toast 拦截器(用于追踪 Toast 调用的位置)
ToastLogInterceptor() - Constructor for class com.hjq.toast.ToastLogInterceptor
 
ToastStrategy - Class in com.hjq.toast
author : Android 轮子哥 github : https://github.com/getActivity/ToastUtils time : 2018/11/12 desc : Toast 默认处理器 doc : https://developer.android.google.cn/reference/android/widget/Toast
ToastStrategy() - Constructor for class com.hjq.toast.ToastStrategy
 
ToastUtils - Class in com.hjq.toast
author : Android 轮子哥 github : https://github.com/getActivity/ToastUtils time : 2018/09/01 desc : Toast 框架(专治 Toast 疑难杂症)

V

ViewToastStyle - Class in com.hjq.toast.style
author : Android 轮子哥 github : https://github.com/getActivity/ToastUtils time : 2021/03/09 desc : Toast View 包装样式实现
ViewToastStyle(int, IToastStyle<?>) - Constructor for class com.hjq.toast.style.ViewToastStyle
 

W

WhiteToastStyle - Class in com.hjq.toast.style
author : Android 轮子哥 github : https://github.com/getActivity/ToastUtils time : 2018/09/01 desc : 默认白色样式实现
WhiteToastStyle() - Constructor for class com.hjq.toast.style.WhiteToastStyle
 
A B C D F G I L N P R S T V W 
Skip navigation links