All Projects → gitwizChen → Topmessage

gitwizChen / Topmessage

A beautiful way of message prompting instead of Toast!

Programming Languages

java
68154 projects - #9 most used programming language

Labels

Projects that are alternatives of or similar to Topmessage

Devutils
🔥 ( 持续更新,目前含 160+ 工具类 ) DevUtils 是一个 Android 工具库,主要根据不同功能模块,封装快捷使用的工具类及 API 方法调用。该项目尽可能的便于开发人员,快捷、高效开发安全可靠的项目。
Stars: ✭ 680 (+996.77%)
Mutual labels:  toast
Laravel Notify
Flexible Flash notifications for Laravel
Stars: ✭ 787 (+1169.35%)
Mutual labels:  toast
React Native Easy Toast
A react native module to show toast like android, it works on iOS and Android.
Stars: ✭ 990 (+1496.77%)
Mutual labels:  toast
Toasty
The usual Toast, but with steroids 💪
Stars: ✭ 6,279 (+10027.42%)
Mutual labels:  toast
Vue Snotify
Vuejs 2 Notification Center
Stars: ✭ 755 (+1117.74%)
Mutual labels:  toast
React Toastify
React notification made easy 🚀 !
Stars: ✭ 8,113 (+12985.48%)
Mutual labels:  toast
Fftoast
A very powerful iOS message notifications and AlertView extensions. It can be easily realized from the top of the screen, the bottom of the screen and the middle of the screen pops up a notification. You can easily customize the pop-up View.
Stars: ✭ 649 (+946.77%)
Mutual labels:  toast
React Native Redux Toast
Simple to use, easy to customize Toast component for Android & iOS. Developed with love for redux apps
Stars: ✭ 51 (-17.74%)
Mutual labels:  toast
Notie
🔔 a clean and simple notification, input, and selection suite for javascript, with no dependencies
Stars: ✭ 6,170 (+9851.61%)
Mutual labels:  toast
Fluttertoast
Android Toast Plugin for Flutter
Stars: ✭ 957 (+1443.55%)
Mutual labels:  toast
Anylayer
Android稳定高效的浮层创建管理框架
Stars: ✭ 745 (+1101.61%)
Mutual labels:  toast
Vue Toastification
Vue notifications made easy!
Stars: ✭ 747 (+1104.84%)
Mutual labels:  toast
Sneaker
A lightweight Android library for customizable alerts
Stars: ✭ 928 (+1396.77%)
Mutual labels:  toast
Sweet Alert
A BEAUTIFUL, RESPONSIVE, CUSTOMIZABLE, ACCESSIBLE (WAI-ARIA) REPLACEMENT FOR JAVASCRIPT'S POPUP BOXES FOR LARAVEL
Stars: ✭ 696 (+1022.58%)
Mutual labels:  toast
Jhud
A full screen of the HUD when loading the data (Objective-C).
Stars: ✭ 1,003 (+1517.74%)
Mutual labels:  toast
Dialog
🔥空祖家的对话框工具
Stars: ✭ 658 (+961.29%)
Mutual labels:  toast
Burnttoast
Module for creating and displaying Toast Notifications on Microsoft Windows 10.
Stars: ✭ 796 (+1183.87%)
Mutual labels:  toast
Fancytoast Android
Make your native android Toasts Fancy. A library that takes the standard Android toast to the next level with a variety of styling options. Style your toast from code.
Stars: ✭ 1,067 (+1620.97%)
Mutual labels:  toast
Easyandroid
一系列简单、轻量、方便的Android开发工具集合(持续更新中),包括Android动态权限、SharedPreferences、反射、日志、Toast、Bundle、MVP、线程池、Html、图文混排、蒙层引导、拍照、图库选择等
Stars: ✭ 1,039 (+1575.81%)
Mutual labels:  toast
Androidutilcode
AndroidUtilCode 🔥 is a powerful & easy to use library for Android. This library encapsulates the functions that commonly used in Android development which have complete demo and unit test. By using it's encapsulated APIs, you can greatly improve the development efficiency. The program mainly consists of two modules which is utilcode, which is commonly used in development, and subutil which is rarely used in development, but the utils can be beneficial to simplify the main module. 🔥
Stars: ✭ 30,239 (+48672.58%)
Mutual labels:  toast

A beautiful way of message prompting instead of Toast😈😈😍!

sample

Principle

Just set a view to the current activity decor view. May be the effect is different before Android L!

From version 1.0.3, you don't have to set the current activity to manager but the TopActivityManager will do this, that's why first step of Usage is so important. More information please read this.

Install

// Gradle
compile 'com.wizchen.topmessage:topmessage:1.0.5'
// Maven
<dependency>
  <groupId>com.wizchen.topmessage</groupId>
  <artifactId>topmessage</artifactId>
  <version>1.0.5</version>
  <type>pom</type>
</dependency>
// Ivy
<dependency org='com.wizchen.topmessage' name='topmessage' rev='1.0.5'>
  <artifact name='topmessage' ext='pom' />
</dependency>

Usage

1.Add the code below in your custom application

public class App extends Application {

    @Override
    public void onCreate() {
        super.onCreate();
        registerActivityLifecycleCallbacks(TopActivityManager.getInstance());
    }
}

2.Just enjoy yourself!

// the simplest and the default effect
TopMessageManager.showSuccess(msg);
// use custom duration
TopMessageManager.showSuccess(msg, duration);
// use custom duration and title
TopMessageManager.showSuccess(msg, duration, title);
// with a common button
TopMessageManager.showSuccess(msg, title, commonCallback, commonButtonText);
// with a confitm button and a cancel button
TopMessageManager.showSuccess(msg, title, confirmOrCancelCallback, confirmButtonText, cancelButtonText);
// with a input area
TopMessageManager.showSuccess(msg, title, sendCallback, sendButtonText, inputHint);

Happy to hear any good suggestions! Just stars!

Todo

  • More style and icon
  • Show from bottom like SnackBar?
  • Block current thread so that user can go on after the message view is dismissed?

License

Copyright 2016 wizChen

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