All Projects → Pluto-MinLu → ToastUtils

Pluto-MinLu / ToastUtils

Licence: Apache-2.0 license
Android Toast,即便关闭了通知权限也会正常显示 (暂停维护)

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to ToastUtils

Toastutils
Android 吐司框架,专治 Toast 各种疑难杂症
Stars: ✭ 2,087 (+6224.24%)
Mutual labels:  toast, toastutils
tall-toasts
A Toast notification library for the Laravel TALL stack. You can push notifications from the backend or frontend to render customizable toasts with almost zero footprint on the published CSS/JS 🔥🚀
Stars: ✭ 296 (+796.97%)
Mutual labels:  toast
learnwithjason.dev
Boop Crew HQ
Stars: ✭ 101 (+206.06%)
Mutual labels:  toast
NotificationToast
Google toast the Apple way !
Stars: ✭ 132 (+300%)
Mutual labels:  toast
RTL-Toast
Android Toast For RTL Applications
Stars: ✭ 16 (-51.52%)
Mutual labels:  toast
SimpleToast
SimpleToast is a simple, lightweight, flexible and easy to use library to show toasts / popup notifications inside iOS or MacOS applications in SwiftUI. Because of the flexibility to show any content it is also possible to use the library for showing simple modals.
Stars: ✭ 131 (+296.97%)
Mutual labels:  toast
QuickWebKit
A great & strong plugin based WebViewController. 一款基于插件的 WebView 视图控制器,您可以基于它设计您的浏览器插件,然后像积木一样来组装它们。
Stars: ✭ 29 (-12.12%)
Mutual labels:  toast
denbun
Adjust showing frequency of Android app messages, and to be more user friendly 🐦
Stars: ✭ 17 (-48.48%)
Mutual labels:  toast
SteamAchievementNotifier
Steam Achievement Notifier is an Electron application that shows a customisable notification when you unlock any Steam Achievement! It uses the Steam Web API to track achievement stats in real time, and displays an achievement summary within the notification.
Stars: ✭ 77 (+133.33%)
Mutual labels:  toast
EasyToast
An Android library that takes the standard Android Toast to the next level with built-in icons from font-awesome and many styling options that gives your app and user experience an extra awesome feeling!
Stars: ✭ 18 (-45.45%)
Mutual labels:  toast
HHChaosToolkit
A set of MVVM tookit class libraries for uwp platform.
Stars: ✭ 27 (-18.18%)
Mutual labels:  toast
vue-dk-toast
Lightweight toast-notification plugin for Vue 3 🍞
Stars: ✭ 23 (-30.3%)
Mutual labels:  toast
Sentinel
👀 Native notifications for League of Legends
Stars: ✭ 38 (+15.15%)
Mutual labels:  toast
react-native-whc-toast
A react native module to show toast alert, it works on iOS and Android.
Stars: ✭ 20 (-39.39%)
Mutual labels:  toast
DesktopToastANE
Adobe Air Native Extension for displaying adaptive and interactive toast notifications in Windows 8, 10 and OSX
Stars: ✭ 28 (-15.15%)
Mutual labels:  toast
react-awesome-toasts
Toast notifications for react.
Stars: ✭ 64 (+93.94%)
Mutual labels:  toast
YYBottomSheet
Simple and Clear BottomSheet
Stars: ✭ 45 (+36.36%)
Mutual labels:  toast
MaterialToast
A fully and highly customizable material designed Toast for Android.
Stars: ✭ 31 (-6.06%)
Mutual labels:  toast
smart-show
Toast # Snackbar # Dialog
Stars: ✭ 500 (+1415.15%)
Mutual labels:  toast
neodigm55
An eclectic low-code vanilla JavaScript UX micro-library for those that defiantly think for themselves.
Stars: ✭ 14 (-57.58%)
Mutual labels:  toast

(暂停维护) 无视通知权限的Toast 1.2.0(Toast unaffected by notification permissions 1.2.0) ToastUtils

目前暂停维护,Issues看到后会处理。

How to

To get a Git project into your build:
Step 1. Add the JitPack repository to your build file
Gradle
allprojects {
   repositories {
   	...
   	maven { url 'https://jitpack.io' }
   }
}
Step 2. Add the dependency
implementation 'com.github.Chen-Xi-g:ToastUtils:1.2.0'

如何使用(How to use)

1.初始化(Initialization)

//在Application 中初始化;如果设置样式先initStyle

 /*
 *你也可以在Application初始化时选择或定义Toast样式 本框架默认提供了三种样式
 *如果与想要的效果不符可自定义样式。
 *黑色样式(Black style):{@link ToastBlackStyle}
 *白色样式(White style):{@link ToastWhiteStyle}
 *仿QQ样式(Imitation QQ style):{@link ToastQQStyle}
 */
 
public static void initStyle(IToastStyle style)

//初始化Toast
public static void init(Application application) 

2.使用(Use)

/*
 * 对象
 * Object
 */
public static void show(Object object) 
/*
 * string id
 */
public static void show(int id)
/*
 * 需要显示的文本
 * CharSequence
 */
public static void show(CharSequence text)

3.自定义Toast样式。

//新建一个类实现接口 IToastStyle 和方法...

    int getGravity(); // Toast的位置,Gravity.TOP ; Gravity.BOTTOM ; Gravity.CENTER;
    int getXOffset(); // X轴偏移
    int getYOffset(); // Y轴偏移
    int getZ(); // ToastZ轴y阴影

    int getCornerRadius(); // 圆角大小
    int getBackgroundColor(); // 背景颜色

    int getTextColor(); // 文本颜色
    float getTextSize(); // 文本大小
    int getMaxLines(); // 最大行数

    int getPaddingLeft(); // 左边内边距
    int getPaddingTop(); // 顶部内边距
    int getPaddingRight(); // 右边内边距
    int getPaddingBottom(); // 底部内边距

如果你感觉对你有用的话请点一下Star吧,而且你还可以打赏一波(If you feel useful to you, please click Star, or you can reward it.)

如何联系我(How to contact me)

QQ: 1217056667

邮箱(Email): [email protected]

小站: www.minlukj.com

License

Copyright 2018 Chen-Xi-g

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].