<commit_before># easyCountDownTimer
A simple android library to countdown timer textview for api 14+

## Screan shot

![screan_shot](https://user-images.githubusercontent.com/6823491/30234511-0261af9c-9513-11e7-964b-b0f6c45f6261.gif)

## Setup

The simplest way to use easyCountDownTimer is to add the library as aar dependency to your build.

#### Maven

```
<dependency>
  <groupId>ir.samanjafari.easycountdowntimer</groupId>
  <artifactId>easycountdowntimer</artifactId>
  <version>2.0</version>
  <type>pom</type>
</dependency>
```

#### Gradle

```
repositories {
    maven {
             url 'https://dl.bintray.com/samanjafaridotir/easyCountDownTimerTextview'
          }
}

dependencies {
    compile 'ir.samanjafari.easycountdowntimer:easycountdowntimer:2.0'
}
```

#### Usage

Add the following code to your view

```xml
<ir.samanjafari.easycountdowntimer.EasyCountDownTextview
        android:id="@+id/easyCountDownTextview"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerInParent="true"
        app:hours="2"
        app:minute="2"
        app:second="15"
        app:showHours="false"
        app:textSize="25sp"
        app:textColor="#000"
        app:setAnimation="true"
        app:showOnlySecond="false"
        />
```

whit the following code you can listen to onFinish or onTick timer

```java
EasyCountDownTextview countDownTextview = (EasyCountDownTextview) findViewById(R.id.easyCountDownTextview);
countDownTextview.setOnTick(new CountDownInterface() {
            @Override
            public void onTick(long time) {<commit_msg>editing readme<commit_after># easyCountDownTimer
A simple android library to countdown timer textview for api 14+

## Screan shot

![screan_shot](https://user-images.githubusercontent.com/6823491/30234511-0261af9c-9513-11e7-964b-b0f6c45f6261.gif)

## Setup

The simplest way to use easyCountDownTimer is to add the library as aar dependency to your build.

#### Maven

```
<dependency>
  <groupId>ir.samanjafari.easycountdowntimer</groupId>
  <artifactId>easycountdowntimer</artifactId>
  <version>2.1</version>
  <type>pom</type>
</dependency>
```

#### Gradle

```
repositories {
    maven {
             url 'https://dl.bintray.com/samanjafaridotir/easyCountDownTimerTextview'
          }
}

dependencies {
    compile 'ir.samanjafari.easycountdowntimer:easycountdowntimer:2.1'
}
```

#### Usage

Add the following code to your view

```xml
<ir.samanjafari.easycountdowntimer.EasyCountDownTextview
        android:id="@+id/easyCountDownTextview"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerInParent="true"
        app:hours="2"
        app:minute="2"
        app:second="15"
        app:showHours="false"
        app:textSize="25sp"
        app:textColor="#000"
        app:setAnimation="true"
        app:showOnlySecond="false"
        />
```

whit the following code you can listen to onFinish or onTick timer

```java
EasyCountDownTextview countDownTextview = (EasyCountDownTextview) findViewById(R.id.easyCountDownTextview);
countDownTextview.setOnTick(new CountDownInterface() {
            @Override
            public void onTick(long time) {
{'fraction_non_alphanumeric': 0.1150415256844048, 'fraction_numerical': 0.032605352199323284, 'mean_word_length': 3.8537313432835822, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2509393', 'n_tokens_mistral': 1188, 'n_tokens_neox': 1047, 'n_words': 191}