All Projects → liuguangqiang → Cookiebar

liuguangqiang / Cookiebar

CookieBar is a lightweight library for showing a brief message at the top or bottom of the screen.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Cookiebar

Notistack
Highly customizable notification snackbars (toasts) that can be stacked on top of each other
Stars: ✭ 2,562 (+415.49%)
Mutual labels:  toast, snackbar
Snackbar
A tiny browser library for showing a brief message at the bottom of the screen (1kB gzipped).
Stars: ✭ 224 (-54.93%)
Mutual labels:  toast, snackbar
React Toast Notifications
🍞 A toast notification system for react
Stars: ✭ 2,103 (+323.14%)
Mutual labels:  toast, snackbar
Livesmashbar
An elegant looking and easy to use informative library with LiveData integration for Android.
Stars: ✭ 107 (-78.47%)
Mutual labels:  toast, snackbar
denbun
Adjust showing frequency of Android app messages, and to be more user friendly 🐦
Stars: ✭ 17 (-96.58%)
Mutual labels:  toast, snackbar
Vuetify Toast Snackbar
Basic Vue toast service that uses Vuetify Snackbar component.
Stars: ✭ 123 (-75.25%)
Mutual labels:  toast, snackbar
React Native Smart Tip
🔥🔥🔥Toast , SnackBar , Modal , Show Toast above Modal
Stars: ✭ 198 (-60.16%)
Mutual labels:  toast, snackbar
React Toastify
React notification made easy 🚀 !
Stars: ✭ 8,113 (+1532.39%)
Mutual labels:  toast, snackbar
bs5-utils
A JavaScript utility package for Bootstrap 5 components.
Stars: ✭ 26 (-94.77%)
Mutual labels:  toast, snackbar
mosha-vue-toastify
A light weight and fun Vue 3 toast or notification or snack bar or however you wanna call it library.
Stars: ✭ 185 (-62.78%)
Mutual labels:  toast, snackbar
Android Appmsg
In-layout notifications. Based on Toast notifications and article by Cyril Mottier (http://android.cyrilmottier.com/?p=773).
Stars: ✭ 1,384 (+178.47%)
Mutual labels:  toast, snackbar
Hot Toast
🍞 Smoking hot Notifications for Angular. Lightweight, customizable and beautiful by default.
Stars: ✭ 328 (-34%)
Mutual labels:  toast, snackbar
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 (+5984.31%)
Mutual labels:  toast, snackbar
Noty
A simple library for creating animated warnings/dialogs/alerts for Android.
Stars: ✭ 136 (-72.64%)
Mutual labels:  toast, snackbar
Sneaker
A lightweight Android library for customizable alerts
Stars: ✭ 928 (+86.72%)
Mutual labels:  toast, snackbar
Flash
⚡️A highly customizable, powerful and easy-to-use alerting library for Flutter.
Stars: ✭ 174 (-64.99%)
Mutual labels:  toast, snackbar
Devutils
🔥 ( 持续更新,目前含 160+ 工具类 ) DevUtils 是一个 Android 工具库,主要根据不同功能模块,封装快捷使用的工具类及 API 方法调用。该项目尽可能的便于开发人员,快捷、高效开发安全可靠的项目。
Stars: ✭ 680 (+36.82%)
Mutual labels:  toast, snackbar
AckBar
AckBar is a very lightweight and customizable android library to display brief message to user.
Stars: ✭ 14 (-97.18%)
Mutual labels:  toast, snackbar
smart-show
Toast # Snackbar # Dialog
Stars: ✭ 500 (+0.6%)
Mutual labels:  toast, snackbar
Smart Show
Toast & Snackbar & TopBar & Dialog
Stars: ✭ 430 (-13.48%)
Mutual labels:  toast, snackbar

Cookie Build Status

CookieBar is a lightweight library for showing a brief message at the top or bottom of the screen.

Screenshot

Usage

Gradle

dependencies {
   	implementation 'com.liuguangqiang.cookie:CookieBar:1.0.1'
}

Maven

<dependency>
  <groupId>com.liuguangqiang.cookie</groupId>
  <artifactId>CookieBar</artifactId>
  <version>1.0.1</version>
  <type>pom</type>
</dependency>

A simple CookieBar.

 new CookieBar.Builder(MainActivity.this)
                        .setTitle("TITLE")
                        .setMessage("MESSAGE")
                        .show();

A CookieBar with a icon and a action button.

 new CookieBar.Builder(MainActivity.this)
                        .setTitle("TITLE")
                        .setIcon(R.mipmap.ic_launcher)
                        .setMessage("MESSAGE")
                        .setAction("ACTION", new OnActionClickListener() {
                            @Override
                            public void onClick() {
                            }
                        })
                        .show();

You can change the default style by set the Theme's attributes.

<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
   <item name="cookieTitleColor">@color/default_title_color</item>
   <item name="cookieMessageColor">@color/default_message_color</item>
   <item name="cookieActionColor">@color/default_action_color</item>
   <item name="cookieBackgroundColor">@color/default_bg_color</item>
</style>

Or dynamically change the style with a cookie builder.

  • layoutGravity
  • backgroundColor
  • titleColor
  • messageColor
  • actionColor
  • duration

New Features

1.0.0

  • The action button could be replaced by a icon.

License

Copyright 2017 Eric Liu

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