emre1512 / noty Goto Github PK
View Code? Open in Web Editor NEWA simple library for creating animated warnings/dialogs/alerts for Android.
License: Other
A simple library for creating animated warnings/dialogs/alerts for Android.
License: Other
I want it dismiss itself after a few seconds.. How do I code this. Thanks in advance!
If I've dismissed the warning and I click over where it appeared, the warning shows up briefly (apparently for as long as the dismissTime), completely blocking whatever is underneath, no matter what ViewGroup I pass as parent layout or how long I wait after the warning has been dismissed.
If I drop the dismissTime to 0, it no longer shows, but still blocks the buttons I have underneath. It doesn't matter how long the revealTime is.
I'm creating the warning like this:
Noty.init(context, mensaje,view,
Noty.WarningStyle.ACTION)
.setActionText("OK")
.setHeight(new RelativeLayout.LayoutParams(0, ViewGroup.LayoutParams.WRAP_CONTENT))
.setWarningBoxMargins(40, 40, 40, 40)
.setWarningBoxBgColor("#67B93D")
.setWarningTextColor("#ffffff")
.setActionTextColor("#ffffff")
.setWarningTappedColor("#5FAC38")
.setWarningBoxRadius(10, 10, 10, 10)
.setWarningBoxPosition(Noty.WarningPos.CENTER)
.setAnimation(Noty.RevealAnim.FADE_IN, Noty.DismissAnim.FADE_OUT, 0, 0)
.show();
This only happens after the warning has been shown correctly at least once.
(...).setAnimation(RevealAnim reveal, DismissAnim dismiss, int revealTime, int dismissTime);
Originally posted by @emre1512 in #1 (comment)
.setAnimation(Noty.RevealAnim.SLIDE_DOWN, Noty.DismissAnim.BACK_TO_TOP, 400, 400)
this is the default and doesnt auto dismiss. Why you close if you cannot answer?
getting below issue :
Could not find com.emredavarci:noty:1.0.3.
Required by:
project :app
Search in build.gradle files
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.