Skip to content

JackyKeke/Toastee

Repository files navigation

Toastee

东半球最好用的Toast库 ,可以自定义背景

背景颜色和文字颜色

  public Toastee common(@ColorRes int tintColor, @ColorRes int textColor) 

位置

 public Toastee gravity(int gravity,int xOffset,int yOffset)

是否需要图标

 public Toastee withIcon(boolean b)

字体与大小

 public Toastee currentTypeface(Typeface currentTypeface) 
 public Toastee textSize(int textSize) 

令人兴奋的功能——自定义Layout !!!

val toastLayout = (getSystemService(Context.LAYOUT_INFLATER_SERVICE) as LayoutInflater)
            .inflate(R.layout.toast_custom_layout, null)
Toastee.getInstance()
       .layout(toastLayout)
       .gravity(Gravity.BOTTOM)
       .custom(this)

About

好用的Toast库 ,可以自定义背景

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published