All Projects → Muddz → Styleabletoast

Muddz / Styleabletoast

Licence: apache-2.0
[Moved to MavenCentral] An Android library that takes the standard toast to the next level with many styling options. Works on all Android versions.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Styleabletoast

Nativescript Feedback
📢 Non-blocking textual feedback for your NativeScript app
Stars: ✭ 127 (-93.87%)
Mutual labels:  toast
Rxtool
Android开发人员不得不收集的工具类集合 | 支付宝支付 | 微信支付(统一下单) | 微信分享 | Zip4j压缩(支持分卷压缩与加密) | 一键集成UCrop选择圆形头像 | 一键集成二维码和条形码的扫描与生成 | 常用Dialog | WebView的封装可播放视频 | 仿斗鱼滑动验证码 | Toast封装 | 震动 | GPS | Location定位 | 图片缩放 | Exif 图片添加地理位置信息(经纬度) | 蛛网等级 | 颜色选择器 | ArcGis | VTPK | 编译运行一下说不定会找到惊喜
Stars: ✭ 11,567 (+457.98%)
Mutual labels:  toast
React Toast Notifications
🍞 A toast notification system for react
Stars: ✭ 2,103 (+1.45%)
Mutual labels:  toast
Loadingview
loadview and tipview.加载框和提示框。
Stars: ✭ 129 (-93.78%)
Mutual labels:  toast
Toastui
A simple way to show toast in SwiftUI.
Stars: ✭ 138 (-93.34%)
Mutual labels:  toast
Utilsdmo
jsonManager json解析 采用 fastjson TimeUtils 时间类 除了时间格式化,提供用于视频的时长,和语音的时长的时间格式化 YUtils 类例如 获取屏幕宽
Stars: ✭ 149 (-92.81%)
Mutual labels:  toast
Opensource
♨️ 分享GitHub优秀开源项目和主流开发使用的网站、解决问题方案收集以及学习网站或资料,涵盖了iOS, macOS X, Blockchain, Flutter, Weex, H5, Games, C++, Script等多方面的内容,其中iOS大致包涵以下内容:音视频;IM和直播;逆向开发;图像相关(OpenGL, Metal, GPUImage);内购(IAP), ApplePay和第三方支付;安全攻防和应用加固, 数据安全和算法;常用第三方库;导航栏和状态栏;侧边菜单;数据持久;蓝牙, 手势指纹面容ID解锁, 图片浏览器, 扫码, 下拉和上拉刷新, 指示器, Toast, Menu, Sensor, Privacy, WebView和进度条, 动画, 选择器, 搜索, 分享, 图片验证码, 设备相关信息, 广告, 高仿项目及Demo等。
Stars: ✭ 123 (-94.07%)
Mutual labels:  toast
Fastandrutils
android快速开发工具类
Stars: ✭ 165 (-92.04%)
Mutual labels:  toast
Aiforms.dialogs
AiForms.Dialogs for Xamarin.Forms
Stars: ✭ 143 (-93.1%)
Mutual labels:  toast
Notistack
Highly customizable notification snackbars (toasts) that can be stacked on top of each other
Stars: ✭ 2,562 (+23.59%)
Mutual labels:  toast
Dynamic Toasts
Custom toasts with color and icon for Android.
Stars: ✭ 132 (-93.63%)
Mutual labels:  toast
Noty
A simple library for creating animated warnings/dialogs/alerts for Android.
Stars: ✭ 136 (-93.44%)
Mutual labels:  toast
Notyf
👻 A minimalistic, responsive, vanilla JavaScript library to show toast notifications.
Stars: ✭ 2,093 (+0.96%)
Mutual labels:  toast
Awaittoast
🍞 An async waiting toast with basic toast. Inspired by facebook posting toast
Stars: ✭ 129 (-93.78%)
Mutual labels:  toast
Ionic Toast
'ionic-toast' bower component for ionic framework applications
Stars: ✭ 160 (-92.28%)
Mutual labels:  toast
Vue Toastify
🔥 Simple, extendable, dependency free notification plugin. 🔥
Stars: ✭ 126 (-93.92%)
Mutual labels:  toast
Svelte Notifications
Svelte toast notifications component that can be used in any JS application
Stars: ✭ 146 (-92.96%)
Mutual labels:  toast
Vue Toasted
🖖 Responsive Touch Compatible Toast plugin for VueJS 2+
Stars: ✭ 2,091 (+0.87%)
Mutual labels:  toast
Glidetoast
GlideToast is a android library to implement flying Toast Animation
Stars: ✭ 162 (-92.19%)
Mutual labels:  toast
Alerttoast
Create Apple-like alerts & toasts using SwiftUI
Stars: ✭ 151 (-92.72%)
Mutual labels:  toast

StyleableToast

APK

An Android library that takes the standard toast to the next level with many styling options. Style your toasts either by code or with a style in styles.xml.

Cases

Example with a style

  1. Define a style in styles.xml. All available attributes:
    <style name="mytoast">
        <item name="stTextBold">true</item>
        <item name="stTextColor">#fff</item>
        <item name="stFont">@font/retrofont</item>
        <item name="stTextSize">14sp</item>
        <item name="stColorBackground">#fff</item>
        <item name="stSolidBackground">true</item>
        <item name="stStrokeWidth">3dp</item>
        <item name="stStrokeColor">#fff</item>
        <item name="stIconStart">@drawable/ic</item>
        <item name="stIconEnd">@drawable/ic</item>
        <item name="stLength">LONG</item> LONG or SHORT
        <item name="stGravity">top</item> top or center
        <item name="stRadius">5dp</item>
    </style>
  1. Pass your style in the static constructor and call show();
    StyleableToast.makeText(context, "Hello World!", Toast.LENGTH_LONG, R.style.mytoast).show();

Example with builder pattern

        new StyleableToast
                .Builder(context)
                .text("Hello world!")
                .textColor(Color.WHITE)
                .backgroundColor(Color.BLUE)
                .show();

Installation

Add the dependency in your build.gradle

dependencies {
    implementation 'io.github.muddz:styleabletoast:2.4.0'   
}

License

Copyright 2016 Muddi Walid

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].