Coder Social home page Coder Social logo

emre1512 / noty Goto Github PK

View Code? Open in Web Editor NEW
155.0 155.0 27.0 152 KB

A simple library for creating animated warnings/dialogs/alerts for Android.

License: Other

Java 100.00%
android android-animation android-dialog dialog material material-design notification snackbar toast ui warning

noty's People

Contributors

emre1512 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

noty's Issues

How to auto dismiss after a few seconds?

(...).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?

Warning appears after it's been dismissed on click

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.
Noty-issue

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.