Giter VIP home page Giter VIP logo

pulsecountdownview's Introduction

Description

Simple pulse countdown view which is based on TextView.
minSdkVersion 22 (Lollipop 5.1) - But you can try to use it in a lower version as well. It should work.

Demo:

Integration

dependencies {
  implementation 'com.gusakov:pulse-countdown:1.0.0-rc2'
}

Usage

  • Basicly it's a textview with custom attributes.
    • pc_startValue - default is 10 - starting value of the PulseCountDown
    • pc_endValue - default is 0- value before which the countdown will stopped
    <com.gusakov.library.PulseCountDown
        android:id="@+id/pulseCountDown"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textColor="@color/countdownColor"
        android:text="5"
        android:textSize="100sp"
        app:pc_startValue="5" />

And start countDown in code:

pulseCountDown.start {
    Toast.makeText(this, "Bammmm!!!", Toast.LENGTH_LONG).show()
}

or

pulseCountDown.start()

You can use any textView attributes. Just know that text size will increase twice

License

Copyright 2020 Gusakov Giorgi

Do whatever you want whenever you want. Just won't destroy our planet

Feel free to contribute, make pull requests, drink beer and enjoy the life.

pulsecountdownview's People

Contributors

gusakovgiorgi avatar

Watchers

 avatar  avatar

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.