- Notifications
You must be signed in to change notification settings - Fork25
A simple library for creating animated warnings/dialogs/alerts for Android.
License
NotificationsYou must be signed in to change notification settings
emre1512/Noty
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
A simple library for creating animated warnings/notifications for Android.
Show me code | Show me code | Show me code |
---|---|---|
Show me code | Show me code | Show me code |
---|---|---|
- Get it via gradle:
compile 'com.emredavarci:noty:1.0.3'
Noty.init(YourActivity.this,"Your warning message",yourLayout,Noty.WarningStyle.SIMPLE).show();
Noty.init(YourActivity.this,"Your warning message",yourLayout,Noty.WarningStyle.ACTION).setActionText("OK").show();
Noty.init(YourActivity.this,"Your warning message",yourLayout,Noty.WarningStyle.ACTION) .setActionText("OK") .setWarningBoxBgColor("#ff5c33") .setWarningTappedColor("#ff704d") .setWarningBoxPosition(Noty.WarningPos.BOTTOM) .setAnimation(Noty.RevealAnim.FADE_IN,Noty.DismissAnim.BACK_TO_BOTTOM,400,400) .show();
Noty.init(YourActivity.this,"Your warning message",yourLayout,Noty.WarningStyle.SIMPLE) .setTapListener(newNoty.TapListener() {@OverridepublicvoidonTap(Notywarning) {// do something... } }).show();
Noty.init(YourActivity.this,"Your warning message",yourLayout,Noty.WarningStyle.ACTION) .setClickListener(newNoty.ClickListener() {@OverridepublicvoidonClick(Notywarning) {// do something... } }).show();
Noty.init(YourActivity.this,"Your warning message",yourLayout,Noty.WarningStyle.ACTION) .setAnimationListener(newNoty.AnimListener() {@OverridepublicvoidonRevealStart(Notywarning) {// Start of reveal animation }@OverridepublicvoidonRevealEnd(Notywarning) {// End of reveal animation }@OverridepublicvoidonDismissStart(Notywarning) {// Start of dismiss animation }@OverridepublicvoidonDismissEnd(Notywarning) {// End of dismiss animation } }).show();
- Detailed documentation can be found atWiki.
Copyright 2017 M. Emre Davarci
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, softwaredistributed 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 andlimitations under the License.