All Projects → stormszhang → TSnackbar

stormszhang / TSnackbar

Licence: other
一个可以在顶部显示的安卓snackbar。支持显示图标,风格自定义。An android snackbar shows from the top

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to TSnackbar

Material
A UI/UX framework for creating beautiful applications.
Stars: ✭ 11,870 (+13864.71%)
Mutual labels:  snackbar
AckBar
AckBar is a very lightweight and customizable android library to display brief message to user.
Stars: ✭ 14 (-83.53%)
Mutual labels:  snackbar
ki-snackbar
An easy to use alternative of Android snackbar for iOS.
Stars: ✭ 12 (-85.88%)
Mutual labels:  snackbar
React Toast Notifications
🍞 A toast notification system for react
Stars: ✭ 2,103 (+2374.12%)
Mutual labels:  snackbar
React Hot Toast
Smoking hot React Notifications 🔥
Stars: ✭ 4,282 (+4937.65%)
Mutual labels:  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 (+117.65%)
Mutual labels:  snackbar
Cafebar
An upgraded Snackbar for Android that provides more options and easy to use
Stars: ✭ 142 (+67.06%)
Mutual labels:  snackbar
nativescript-snackbar
NativeScript plugin for Material Design Snackbar
Stars: ✭ 22 (-74.12%)
Mutual labels:  snackbar
ProteinBar
An Android Kotlin library for fully customizable Snackbars
Stars: ✭ 14 (-83.53%)
Mutual labels:  snackbar
MaterialDesignSample
Android transition元素共享动画、CoordinatorLayout、AppBarLayout、FloatingActionButton、BottomSheet、SnackBar、自定义behavior实现动画效果。
Stars: ✭ 28 (-67.06%)
Mutual labels:  snackbar
Flash
⚡️A highly customizable, powerful and easy-to-use alerting library for Flutter.
Stars: ✭ 174 (+104.71%)
Mutual labels:  snackbar
Snackbar
A tiny browser library for showing a brief message at the bottom of the screen (1kB gzipped).
Stars: ✭ 224 (+163.53%)
Mutual labels:  snackbar
bs5-utils
A JavaScript utility package for Bootstrap 5 components.
Stars: ✭ 26 (-69.41%)
Mutual labels:  snackbar
Notistack
Highly customizable notification snackbars (toasts) that can be stacked on top of each other
Stars: ✭ 2,562 (+2914.12%)
Mutual labels:  snackbar
denbun
Adjust showing frequency of Android app messages, and to be more user friendly 🐦
Stars: ✭ 17 (-80%)
Mutual labels:  snackbar
Blazorise
Blazorise is a component library built on top of Blazor with support for CSS frameworks like Bootstrap, Bulma, AntDesign, and Material.
Stars: ✭ 2,103 (+2374.12%)
Mutual labels:  snackbar
info-bar-compose
An Android Jetpack Compose library for displaying on-screen messages. (simplified Snackbar alternative)
Stars: ✭ 80 (-5.88%)
Mutual labels:  snackbar
Snackbar-iOS
Simple snackbar for ios from android platform
Stars: ✭ 17 (-80%)
Mutual labels:  snackbar
smart-show
Toast # Snackbar # Dialog
Stars: ✭ 500 (+488.24%)
Mutual labels:  snackbar
flutter examples
Random flutter examples
Stars: ✭ 18 (-78.82%)
Mutual labels:  snackbar

中文版 | English
TSnackbar

A snackbar can be shown from top or bottom.

Introduction

It is customizable and easy to use.You can change the style of the snackbar or apply the predefined styles,which are ERROR,LOADING,COMPLETE,WARNING

Effect

Gradle

	dependencies{
		compile 'com.abby.app:tsnackbar:1.0.7' 
	 }

Update

v1.0.6:
  1.new method setHeight(int height) to set the height of the snackbar
v1.0.7:
  1.new method setMessageGravity(int gravity) to set the gravity of the message text
  2.new method setActionTextSize(float size) to set the size of the action button
  3.upgrade API version to 26,so do not forget to upgrade your API version 

Usage

       @Override
       public void onCreate(Bundle savedInstanceState) {
    
           super.onCreate(savedInstanceState);
           TSnackbar.make(getWindow().getDecorView(),"LOADING PLEASE WAIT...",TSnackbar.LENGTH_LONG)
                        .setPreDefinedStyle(TSnackbar.STYLE_LOADING)
                        .show();
          TSnackbar.make(getWindow().getDecorView(),"ERROR OCCURED!",TSnackbar.LENGTH_LONG)
                        .setPreDefinedStyle(TSnackbar.STYLE_ERROR)
                        .show();
          TSnackbar.make(getWindow().getDecorView(),"COMPLETE",TSnackbar.LENGTH_LONG)
                        .setPreDefinedStyle(TSnackbar.STYLE_COMPLETE)
                        .show();
          TSnackbar.make(getWindow().getDecorView(),"LOADING...",TSnackbar.LENGTH_LONG)
                        .setIconRes(R.drawable.ic_wifi_black_24dp)
                        .setBackgroundColor(Color.GREEN)
                        .show();
    }        
    

Features

   

name description
setShowsDirection set the direction the snackbar shows,which can be SHOW_FROM_TOP_TO_BOTTOM or SHOW or SHOW_FROM_BOTTOM_TO_TOP
setBackgroundColor set the color of the background
setAlpha set the alpha of the background,should be 0 to 255
setMessageTextColor set the color of the message
setIconRes set the Icon resource
setIconRes set Icon res with sizes in px
setPreDefinedStyle apply the predefined style,which are STYLE_ERROE,STYLE_COMPLETE,STYLE_LOADING,STYLE_WARNING
setFadeOrTranslateStyle set the style the snackbar animate out,which can be STYLE_FADE_OUT,STYLE_FADE_IN,STYLE FADE_IN_FADE_OUT or STYLE_TRANSLATE
isBelowStatusBar indicate if the snackbar is below the statusbar
setHeight set the height of snackbar in dp,to get a better effect,recommend use a value greater than 120 due to the padding,the default height is wrap_content
setActionTextSize(float size) set the font size of the action button
setMessageGravity(int gravity) set the gravity of the message text,must be one of Gravity.START,Gravity.CENTER or Gravity.END.The default gravity is Gravity.START

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