From c9f7c823f91f813bbdd8919b9c7a80803406f330 Mon Sep 17 00:00:00 2001 From: JDevZone <52904317+JDevZone@users.noreply.github.com> Date: Mon, 15 Jul 2019 19:06:50 +0530 Subject: [PATCH 01/34] Update README.md --- README.md | 74 ++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 73 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 93d0b61..387ec74 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,74 @@ # CheckableTextView -A simple and flexible Checked TextView or Checkable TextView + + + + +

Checkable TextView [KOTLIN]

+ +

A simple and flexible Checked TextView or Checkable TextView written in Kotlin

+ +___ + + +## Installation + +Add it in your root build.gradle at the end of repositories: + + allprojects { + repositories { + ... + maven { url 'https://jitpack.io' } + } + } + +Step 2. Add the dependency in app gradle + + dependencies { + implementation 'com.github.JDevZone:CheckableTextView:1.0.1' + } + +## Basic usage + +``` + +``` +## Listen State Changes +You can listen to state changes by registering a listener like as follows : +``` +checkedTV.setOnCheckChangeListener() +``` +and get callback in implemented method : +``` +override fun onCheckChange(view: View, isChecked: Boolean) { + // checkedTV returned as view + // isChecked current state of the view + } +``` + +## Customisation + +Here are the attributes you can specify through XML or related setters: +* `ctv_Text` - Set text. +* `ctv_TextSize` - Set text size. +* `ctv_TextColor` - Set text color. +* `ctv_TextStyle` - Set text style. +* `ctv_Icon` - Set custom icon. +* `ctv_IconTint` - Set icon tint. +* `ctv_IconChecked` - Set textView state checked. + +## 📄 License + +Checkable TextView is released under the MIT license. +See [LICENSE](./LICENSE) for details. + + + From 28d27f2082156783ec04723b1a31dc6e204347b4 Mon Sep 17 00:00:00 2001 From: JDevZone <52904317+JDevZone@users.noreply.github.com> Date: Tue, 16 Jul 2019 10:28:14 +0530 Subject: [PATCH 02/34] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 387ec74..db8a293 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,14 @@ # CheckableTextView - +

Checkable TextView [KOTLIN]

A simple and flexible Checked TextView or Checkable TextView written in Kotlin

+ +[![](https://jitpack.io/v/JDevZone/CheckableTextView.svg)](https://jitpack.io/#JDevZone/CheckableTextView) ___ From 5332bf112b1d36e41d6c1f44d3d973c4c668dd4a Mon Sep 17 00:00:00 2001 From: JDevZone <52904317+JDevZone@users.noreply.github.com> Date: Tue, 16 Jul 2019 10:54:00 +0530 Subject: [PATCH 03/34] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index db8a293..2b467fb 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ Add it in your root build.gradle at the end of repositories: Step 2. Add the dependency in app gradle dependencies { - implementation 'com.github.JDevZone:CheckableTextView:1.0.1' + implementation 'com.github.JDevZone:CheckableTextView:1.0.2' } ## Basic usage From 87af92e7977e69a5f41de690401e53f364328711 Mon Sep 17 00:00:00 2001 From: JDevZone <52904317+JDevZone@users.noreply.github.com> Date: Tue, 16 Jul 2019 11:31:19 +0530 Subject: [PATCH 04/34] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2b467fb..70ebc28 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ Add it in your root build.gradle at the end of repositories: Step 2. Add the dependency in app gradle dependencies { - implementation 'com.github.JDevZone:CheckableTextView:1.0.2' + implementation 'com.github.JDevZone:CheckableTextView:1.0.3' } ## Basic usage From 945aa1799e7f08a49df6db65f653c2d498e2d857 Mon Sep 17 00:00:00 2001 From: JDevZone <52904317+JDevZone@users.noreply.github.com> Date: Tue, 16 Jul 2019 11:49:11 +0530 Subject: [PATCH 05/34] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 70ebc28..2882539 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ Add it in your root build.gradle at the end of repositories: Step 2. Add the dependency in app gradle dependencies { - implementation 'com.github.JDevZone:CheckableTextView:1.0.3' + implementation 'com.github.JDevZone:CheckableTextView:{latest_version}' } ## Basic usage From da665fc055be48e7fc2fd28df49546ddc9cd99ce Mon Sep 17 00:00:00 2001 From: JDevZone <52904317+JDevZone@users.noreply.github.com> Date: Wed, 17 Jul 2019 11:38:12 +0530 Subject: [PATCH 06/34] Update README.md --- README.md | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 2882539..4777147 100644 --- a/README.md +++ b/README.md @@ -14,24 +14,27 @@ ___ ## Installation -Add it in your root build.gradle at the end of repositories: - +1. Add it in your root build.gradle at the end of repositories: +```groovy allprojects { repositories { ... maven { url 'https://jitpack.io' } } } - -Step 2. Add the dependency in app gradle +``` + +2. Add the dependency in app gradle + +```groovy dependencies { implementation 'com.github.JDevZone:CheckableTextView:{latest_version}' } - +``` ## Basic usage -``` +```xml Date: Wed, 17 Jul 2019 14:07:59 +0530 Subject: [PATCH 07/34] Update README.md --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4777147..eb31247 100644 --- a/README.md +++ b/README.md @@ -8,10 +8,11 @@

A simple and flexible Checked TextView or Checkable TextView written in Kotlin

-[![](https://jitpack.io/v/JDevZone/CheckableTextView.svg)](https://jitpack.io/#JDevZone/CheckableTextView) -___ +[![](https://jitpack.io/v/JDevZone/CheckableTextView.svg)](https://jitpack.io/#JDevZone/CheckableTextView) +[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Generic%20Dialog-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/7770) +___ ## Installation 1. Add it in your root build.gradle at the end of repositories: From 00f9f4c56f81cd616a1521ea724c9e63643b624c Mon Sep 17 00:00:00 2001 From: JDevZone <52904317+JDevZone@users.noreply.github.com> Date: Wed, 17 Jul 2019 14:19:57 +0530 Subject: [PATCH 08/34] Update README.md --- README.md | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index eb31247..9af1d96 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Generic%20Dialog-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/7770) ___ -## Installation +### Installation 1. Add it in your root build.gradle at the end of repositories: ```groovy @@ -33,7 +33,7 @@ ___ implementation 'com.github.JDevZone:CheckableTextView:{latest_version}' } ``` -## Basic usage +### Basic usage ```xml -``` -## Listen State Changes +``` +### Change State Programatically +You can change checked state as follows : +```kotlin +checkedTV.setChecked(isChecked) + +// default value `shouldNotifyListeners` is false + +//or +checkedTV.setChecked(isChecked,shouldNotifyListeners) + +// First Boolean parameter `isChecked` sets the current state +// Second Boolean parameter `shouldNotifyListeners` determines +//if `onCheckChange` method should be Called or Not + +``` + +### Listen State Changes You can listen to state changes by registering a listener like as follows : ```kotlin checkedTV.setOnCheckChangeListener() @@ -60,7 +76,7 @@ override fun onCheckChange(view: View, isChecked: Boolean) { } ``` -## Customisation +### Customisation Here are the attributes you can specify through XML or related setters: * `ctv_Text` - Set text. @@ -71,7 +87,7 @@ Here are the attributes you can specify through XML or related setters: * `ctv_IconTint` - Set icon tint. * `ctv_IconChecked` - Set textView state checked. -## 📄 License +### 📄 License Checkable TextView is released under the MIT license. See [LICENSE](./LICENSE) for details. From 998bdaa210fd25478631f3af1fba7a5f5b82ec62 Mon Sep 17 00:00:00 2001 From: JDevZone <52904317+JDevZone@users.noreply.github.com> Date: Wed, 17 Jul 2019 15:27:18 +0530 Subject: [PATCH 09/34] Update README.md --- README.md | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 9af1d96..7ad806c 100644 --- a/README.md +++ b/README.md @@ -51,19 +51,21 @@ ___ You can change checked state as follows : ```kotlin checkedTV.setChecked(isChecked) +``` +Default value `shouldNotifyListeners` is false -// default value `shouldNotifyListeners` is false +***or*** -//or +```kotlin checkedTV.setChecked(isChecked,shouldNotifyListeners) - -// First Boolean parameter `isChecked` sets the current state -// Second Boolean parameter `shouldNotifyListeners` determines -//if `onCheckChange` method should be Called or Not - ``` + First Boolean parameter `isChecked` sets the current state + Second Boolean parameter `shouldNotifyListeners` determines + if `onCheckChange` method should be called or not. + ### Listen State Changes + You can listen to state changes by registering a listener like as follows : ```kotlin checkedTV.setOnCheckChangeListener() From f4c20e4ac6c80b68465770079e225e87c9aa1629 Mon Sep 17 00:00:00 2001 From: JDevZone <52904317+JDevZone@users.noreply.github.com> Date: Wed, 17 Jul 2019 16:49:35 +0530 Subject: [PATCH 10/34] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7ad806c..b1bc58f 100644 --- a/README.md +++ b/README.md @@ -5,12 +5,12 @@

Checkable TextView [KOTLIN]

-

A simple and flexible Checked TextView or Checkable TextView written in Kotlin

+

:zap:A simple and flexible Checked TextView or Checkable TextView written in Kotlin:zap:

[![](https://jitpack.io/v/JDevZone/CheckableTextView.svg)](https://jitpack.io/#JDevZone/CheckableTextView) -[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Generic%20Dialog-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/7770) +[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Checkable%20TextView-orange.svg?style=flat)](https://android-arsenal.com/details/1/7770) ___ ### Installation From 6a8f8f42e8f1ce7e76cf4f9f978a260ecbed9842 Mon Sep 17 00:00:00 2001 From: JDevZone <52904317+JDevZone@users.noreply.github.com> Date: Thu, 18 Jul 2019 11:29:28 +0530 Subject: [PATCH 11/34] Update README.md --- README.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b1bc58f..2685af5 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,7 @@ ___ android:layout_height="wrap_content"/> ``` ### Change State Programatically + You can change checked state as follows : ```kotlin checkedTV.setChecked(isChecked) @@ -62,7 +63,12 @@ checkedTV.setChecked(isChecked,shouldNotifyListeners) First Boolean parameter `isChecked` sets the current state Second Boolean parameter `shouldNotifyListeners` determines if `onCheckChange` method should be called or not. - + +### Get Current State +```kotlin +checkedTV.isChecked() +``` +No Fancy enums, Just true for checked state and false for unchecked is returned ### Listen State Changes @@ -78,6 +84,16 @@ override fun onCheckChange(view: View, isChecked: Boolean) { } ``` +### Experimental + +```kotlin +checkedTV.setClickEnabled(isClickable: Boolean) +``` +Pass `isClickable` true for enable and false for disable clicks + +> currently restricted to `RestrictTo.Scope.TESTS` +> you can use it simply Suppressing Lint Warnings (if have any) as `@SuppressLint("RestrictedApi")` + ### Customisation Here are the attributes you can specify through XML or related setters: From 4915ae4724122a16d8f1244a4b73b3ad99c8eb44 Mon Sep 17 00:00:00 2001 From: JDevZone <52904317+JDevZone@users.noreply.github.com> Date: Thu, 18 Jul 2019 11:39:22 +0530 Subject: [PATCH 12/34] Update README.md --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2685af5..e78fed6 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,9 @@ -# CheckableTextView +
+ +
+

CheckableTextView

+
From 7a86de39bd2c1975b0685e2876dc555e4429577c Mon Sep 17 00:00:00 2001 From: JDevZone <52904317+JDevZone@users.noreply.github.com> Date: Thu, 18 Jul 2019 13:43:53 +0530 Subject: [PATCH 13/34] Update README.md --- README.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e78fed6..fcfe610 100644 --- a/README.md +++ b/README.md @@ -3,9 +3,14 @@

CheckableTextView

-
+ + +[![GitHub release](https://img.shields.io/github/release/JDevZone/CheckableTextView.svg?style=flat)](https://jitpack.io/#JDevZone/CheckableTextView) + + +-------------- - +

Checkable TextView [KOTLIN]

@@ -15,8 +20,9 @@ [![](https://jitpack.io/v/JDevZone/CheckableTextView.svg)](https://jitpack.io/#JDevZone/CheckableTextView) [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Checkable%20TextView-orange.svg?style=flat)](https://android-arsenal.com/details/1/7770) +[![GitHub license](https://img.shields.io/github/license/JDevZone/CheckableTextView.svg?style=flat)](https://github.com/JDevZone/CheckableTextView/blob/master/LICENSE) -___ +--------------------------- ### Installation 1. Add it in your root build.gradle at the end of repositories: From 06699942faf2cac85877a06d1720235c099bc017 Mon Sep 17 00:00:00 2001 From: JDevZone <52904317+JDevZone@users.noreply.github.com> Date: Thu, 18 Jul 2019 13:53:57 +0530 Subject: [PATCH 14/34] Update README.md --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index fcfe610..06fa67f 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,10 @@

CheckableTextView

-[![GitHub release](https://img.shields.io/github/release/JDevZone/CheckableTextView.svg?style=flat)](https://jitpack.io/#JDevZone/CheckableTextView) +[![forthebadge](https://forthebadge.com/images/badges/built-for-android.svg)](https://forthebadge.com) +![GitHub release](https://img.shields.io/github/release/JDevZone/CheckableTextView.svg) + + -------------- From 08fb48d2d4cf8fefc1bc0cbff6dde9b117b6a5dc Mon Sep 17 00:00:00 2001 From: JDevZone <52904317+JDevZone@users.noreply.github.com> Date: Thu, 18 Jul 2019 13:58:27 +0530 Subject: [PATCH 15/34] Update README.md --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 06fa67f..36960ab 100644 --- a/README.md +++ b/README.md @@ -2,14 +2,13 @@
+

CheckableTextView

- [![forthebadge](https://forthebadge.com/images/badges/built-for-android.svg)](https://forthebadge.com) ![GitHub release](https://img.shields.io/github/release/JDevZone/CheckableTextView.svg) - - +

-------------- From 569d7ad4a4c8f7695120b0626e18503f7869eb87 Mon Sep 17 00:00:00 2001 From: JDevZone <52904317+JDevZone@users.noreply.github.com> Date: Thu, 18 Jul 2019 13:59:28 +0530 Subject: [PATCH 16/34] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 36960ab..738e2fb 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,7 @@

CheckableTextView

+

[![forthebadge](https://forthebadge.com/images/badges/built-for-android.svg)](https://forthebadge.com) ![GitHub release](https://img.shields.io/github/release/JDevZone/CheckableTextView.svg) From 11ae417b18bd6c1073dae4dc58967ea12ba0f477 Mon Sep 17 00:00:00 2001 From: JDevZone <52904317+JDevZone@users.noreply.github.com> Date: Thu, 18 Jul 2019 14:10:37 +0530 Subject: [PATCH 17/34] Update README.md --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 738e2fb..d8ae049 100644 --- a/README.md +++ b/README.md @@ -2,13 +2,12 @@
-

+

CheckableTextView

-

+

[![forthebadge](https://forthebadge.com/images/badges/built-for-android.svg)](https://forthebadge.com) ![GitHub release](https://img.shields.io/github/release/JDevZone/CheckableTextView.svg) -

-------------- From 61580301957d94d307db371f697dcdbd28e80224 Mon Sep 17 00:00:00 2001 From: JDevZone <52904317+JDevZone@users.noreply.github.com> Date: Thu, 18 Jul 2019 14:11:08 +0530 Subject: [PATCH 18/34] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index d8ae049..a61d6b5 100644 --- a/README.md +++ b/README.md @@ -6,8 +6,10 @@

CheckableTextView

+ [![forthebadge](https://forthebadge.com/images/badges/built-for-android.svg)](https://forthebadge.com) ![GitHub release](https://img.shields.io/github/release/JDevZone/CheckableTextView.svg) +

-------------- From 4a101496a8a6e99e581b968367d2a088a075bbf0 Mon Sep 17 00:00:00 2001 From: JDevZone <52904317+JDevZone@users.noreply.github.com> Date: Thu, 18 Jul 2019 14:12:30 +0530 Subject: [PATCH 19/34] Update README.md --- README.md | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/README.md b/README.md index a61d6b5..5adc4ed 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ +[![forthebadge](https://forthebadge.com/images/badges/built-for-android.svg)](https://forthebadge.com)
@@ -5,12 +6,6 @@

CheckableTextView

-

- -[![forthebadge](https://forthebadge.com/images/badges/built-for-android.svg)](https://forthebadge.com) -![GitHub release](https://img.shields.io/github/release/JDevZone/CheckableTextView.svg) - -

--------------
From 63878b4d9ec9dddcde49fa3ac9c13b232790e2ee Mon Sep 17 00:00:00 2001 From: JDevZone <52904317+JDevZone@users.noreply.github.com> Date: Thu, 18 Jul 2019 15:01:50 +0530 Subject: [PATCH 20/34] Update README.md --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 5adc4ed..782cb21 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,3 @@ -[![forthebadge](https://forthebadge.com/images/badges/built-for-android.svg)](https://forthebadge.com) -
@@ -21,6 +19,7 @@ [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Checkable%20TextView-orange.svg?style=flat)](https://android-arsenal.com/details/1/7770) [![GitHub license](https://img.shields.io/github/license/JDevZone/CheckableTextView.svg?style=flat)](https://github.com/JDevZone/CheckableTextView/blob/master/LICENSE) + --------------------------- ### Installation From 9dbb3f3be8e33a30a51dd4273b393b265b249427 Mon Sep 17 00:00:00 2001 From: JDevZone <52904317+JDevZone@users.noreply.github.com> Date: Thu, 18 Jul 2019 15:04:40 +0530 Subject: [PATCH 21/34] Update README.md --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 782cb21..a262f0b 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ --------------
- +

Checkable TextView [KOTLIN]

@@ -19,7 +19,6 @@ [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Checkable%20TextView-orange.svg?style=flat)](https://android-arsenal.com/details/1/7770) [![GitHub license](https://img.shields.io/github/license/JDevZone/CheckableTextView.svg?style=flat)](https://github.com/JDevZone/CheckableTextView/blob/master/LICENSE) - --------------------------- ### Installation From 62c39a4a1505ab03341a3736d15d2a58d0e52bb4 Mon Sep 17 00:00:00 2001 From: JDevZone <52904317+JDevZone@users.noreply.github.com> Date: Fri, 19 Jul 2019 18:32:50 +0530 Subject: [PATCH 22/34] Create CONTRIBUTING.md --- CONTRIBUTING.md | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 CONTRIBUTING.md diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..21f929d --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,48 @@ +# Contributing to Checkable TextView +We love your input! We want to make contributing to this project as easy and transparent as possible, whether it's: + +- Reporting a bug +- Discussing the current state of the code +- Submitting a fix +- Proposing new features +- Becoming a maintainer + +## We Develop with Github +We use github to host code, to track issues and feature requests, as well as accept pull requests. + +## We Use [Github Flow](https://guides.github.com/introduction/flow/index.html), So All Code Changes Happen Through Pull Requests +Pull requests are the best way to propose changes to the codebase (we use [Github Flow](https://guides.github.com/introduction/flow/index.html)). We actively welcome your pull requests: + +1. Fork the repo and create your branch from `master`. +2. If you've added code that should be tested, add tests. +3. If you've changed APIs, update the documentation. +4. Ensure the test suite passes. +5. Make sure your code lints. +6. Issue that pull request! + +## Any contributions you make will be under the MIT Software License +In short, when you submit code changes, your submissions are understood to be under the same [MIT License](http://choosealicense.com/licenses/mit/) that covers the project. Feel free to contact the maintainers if that's a concern. + +## Write bug reports with detail, background, and sample code + +**Great Bug Reports** tend to have: + +- A quick summary and/or background +- Steps to reproduce + - Be specific! + - Give sample code if you can. +- What you expected would happen +- What actually happens +- Notes (possibly including why you think this might be happening, or stuff you tried that didn't work) + +People *love* thorough bug reports. I'm not even kidding. + +## Use a Consistent Coding Style + + - Use consistent coding style for uniform coding standard and readibility. + +## License +By contributing, you agree that your contributions will be licensed under its MIT License. + +## References +This document was adapted from the open-source contribution guidelines template [Good-CONTRIBUTING](https://gist.github.com/PurpleBooth/b24679402957c63ec426) From 51ed91771e2c3f1df44f5bb3dbc4fd58eb9281e3 Mon Sep 17 00:00:00 2001 From: JDevZone <52904317+JDevZone@users.noreply.github.com> Date: Tue, 23 Jul 2019 13:56:39 +0530 Subject: [PATCH 23/34] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a262f0b..6ebea22 100644 --- a/README.md +++ b/README.md @@ -98,7 +98,7 @@ checkedTV.setClickEnabled(isClickable: Boolean) ``` Pass `isClickable` true for enable and false for disable clicks -> currently restricted to `RestrictTo.Scope.TESTS` +> currently restricted to `RestrictTo.Scope.LIBRARY` > you can use it simply Suppressing Lint Warnings (if have any) as `@SuppressLint("RestrictedApi")` ### Customisation From e7fd0c46bde2e307110da171f5d6b282d98b1f6b Mon Sep 17 00:00:00 2001 From: JDevZone <52904317+JDevZone@users.noreply.github.com> Date: Tue, 23 Jul 2019 14:02:16 +0530 Subject: [PATCH 24/34] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 6ebea22..32cb479 100644 --- a/README.md +++ b/README.md @@ -111,6 +111,7 @@ Here are the attributes you can specify through XML or related setters: * `ctv_Icon` - Set custom icon. * `ctv_IconTint` - Set icon tint. * `ctv_IconChecked` - Set textView state checked. +* `ctv_TextGravity` - Set textView gravity. ### 📄 License From ea7e0efaa06b76872993908e68a53cdad9c4c0c4 Mon Sep 17 00:00:00 2001 From: JDevZone <52904317+JDevZone@users.noreply.github.com> Date: Tue, 23 Jul 2019 14:13:04 +0530 Subject: [PATCH 25/34] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 32cb479..e9658ad 100644 --- a/README.md +++ b/README.md @@ -110,8 +110,8 @@ Here are the attributes you can specify through XML or related setters: * `ctv_TextStyle` - Set text style. * `ctv_Icon` - Set custom icon. * `ctv_IconTint` - Set icon tint. -* `ctv_IconChecked` - Set textView state checked. -* `ctv_TextGravity` - Set textView gravity. +* `ctv_IconChecked` - Set TextView (`CheckableTextView`) state checked. +* `ctv_TextGravity` - Set text gravity. ### 📄 License From efff94d14510ff4a6925b6becec194f420dfd3a1 Mon Sep 17 00:00:00 2001 From: JDevZone <52904317+JDevZone@users.noreply.github.com> Date: Thu, 25 Jul 2019 13:48:21 +0530 Subject: [PATCH 26/34] Update README.md --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index e9658ad..07a7f90 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,17 @@ [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Checkable%20TextView-orange.svg?style=flat)](https://android-arsenal.com/details/1/7770) [![GitHub license](https://img.shields.io/github/license/JDevZone/CheckableTextView.svg?style=flat)](https://github.com/JDevZone/CheckableTextView/blob/master/LICENSE) +--------------------------- +### What's New + +| Animation | Demo | +| --- | :---: | +|

Normal
(duration = 250 ms)

| | +|

Custom Duration
(duration = 2000 ms)

| | + +> Sorry for flicker in slow motion video demo . You know android studio screen recorder sucks sometimes :sweat_smile: + +

--------------------------- ### Installation @@ -112,6 +123,8 @@ Here are the attributes you can specify through XML or related setters: * `ctv_IconTint` - Set icon tint. * `ctv_IconChecked` - Set TextView (`CheckableTextView`) state checked. * `ctv_TextGravity` - Set text gravity. +* `ctv_AnimType` - Set check animation type currently only two available (`scale` and `translate`). +* `ctv_AnimDuration` - Set duration for check animation. ### 📄 License From 6ae5ec1a55c5d47fa4a65cf801814cb69ebc2062 Mon Sep 17 00:00:00 2001 From: JDevZone <52904317+JDevZone@users.noreply.github.com> Date: Fri, 2 Aug 2019 16:49:50 +0530 Subject: [PATCH 27/34] Update README.md --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index 07a7f90..a45a37a 100644 --- a/README.md +++ b/README.md @@ -55,8 +55,6 @@ ```xml Date: Mon, 5 Aug 2019 16:50:27 +0530 Subject: [PATCH 28/34] changes in v1.0.8 --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a45a37a..1eaec0a 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,14 @@ > Sorry for flicker in slow motion video demo . You know android studio screen recorder sucks sometimes :sweat_smile: +### Custom Interpolators +> custom interpolator support added + +| Interpolator | Demo | +| --- | :---: | +|

BounceInterpolator
with fall down animation

| | +|

AnticipateOvershootInterpolator
with translate animation

| | +

--------------------------- ### Installation @@ -121,7 +129,7 @@ Here are the attributes you can specify through XML or related setters: * `ctv_IconTint` - Set icon tint. * `ctv_IconChecked` - Set TextView (`CheckableTextView`) state checked. * `ctv_TextGravity` - Set text gravity. -* `ctv_AnimType` - Set check animation type currently only two available (`scale` and `translate`). +* `ctv_AnimType` - Set check animation type currently three available (`scale`,`translate` and `fall_down`). * `ctv_AnimDuration` - Set duration for check animation. ### 📄 License From 8e8d8a756b3ea1ac2ae015d72f5e1af7bd108fe5 Mon Sep 17 00:00:00 2001 From: JDevZone <52904317+JDevZone@users.noreply.github.com> Date: Mon, 5 Aug 2019 16:55:21 +0530 Subject: [PATCH 29/34] Update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 1eaec0a..f32db81 100644 --- a/README.md +++ b/README.md @@ -107,7 +107,11 @@ override fun onCheckChange(view: View, isChecked: Boolean) { // isChecked current state of the view } ``` +### Set Custom Interpolator +```kotlin +checkedTV.setAnimInterpolator(BounceInterpolator()) +``` ### Experimental ```kotlin From 2be90399043f961a204e26bf09e280c14cf7a1b0 Mon Sep 17 00:00:00 2001 From: JDevZone <52904317+JDevZone@users.noreply.github.com> Date: Wed, 4 Sep 2019 12:59:34 +0530 Subject: [PATCH 30/34] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index f32db81..b04027c 100644 --- a/README.md +++ b/README.md @@ -135,6 +135,7 @@ Here are the attributes you can specify through XML or related setters: * `ctv_TextGravity` - Set text gravity. * `ctv_AnimType` - Set check animation type currently three available (`scale`,`translate` and `fall_down`). * `ctv_AnimDuration` - Set duration for check animation. +* `ctv_AnimFirstTime` - Animate `CheckableTextView` for very first time. ### 📄 License From 061c7cb56683c92eba75cfcc72944d1ca8d5ba35 Mon Sep 17 00:00:00 2001 From: JDevZone <52904317+JDevZone@users.noreply.github.com> Date: Wed, 4 Sep 2019 15:10:49 +0530 Subject: [PATCH 31/34] Update README.md --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b04027c..1dbf8dd 100644 --- a/README.md +++ b/README.md @@ -11,12 +11,13 @@

Checkable TextView [KOTLIN]

-

:zap:A simple and flexible Checked TextView or Checkable TextView written in Kotlin:zap:

+

:zap:A simple and flexible Checked TextView or Checkable TextView written in Kotlin:zap:

+------------------ [![](https://jitpack.io/v/JDevZone/CheckableTextView.svg)](https://jitpack.io/#JDevZone/CheckableTextView) -[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Checkable%20TextView-orange.svg?style=flat)](https://android-arsenal.com/details/1/7770) +[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Checkable%20TextView-orange.svg?style=flat&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAABRFBMVEUAAAAA//8AqqoAv79q6tVi69ht7dtm3cwQv59w389L4cNV1cZr5Ndm5tlt585o6NFq6tVm4NYJwadh3NNm5tUIv6dd4NFs6NFq59Rr49Vq5tVC1sFC1cFT28lr5tMJwaZr5dRp5tNq5NJQ28lq5dNQ3Mtq5NJp5NMJwqhr5tNr5tRQ28tS28kKwaZq5tMKwqdr5dRR3MlS2spr5NRR28pp5dNR28lq5NMJwaZp5dMLwacKwKdq5tJp5NNq5tNq5dJR28pQ3Mpq5NNq5dNq5dMKwahq5dNp5dNq5dNZ3s0KwqcKwadq5NMKwqdr5dNq5dNq5tNq5dNq5dNe4c5q5tNR28pf4c5q5dNR28pq5dNr5dNg4tBf4c9n5dIKwacLwagQw6oRxKs30rw40rxQ28dR28pR3Mhg4dBq5dOk7%2bTG9e7///%2bbCjGeAAAAXnRSTlMAAQMEDA0ODxAQERITFBUWGBkdHR4gISE1Nzw%2bQkdRVlhcYGNjZmdobG5wf4CEhIWImJmZmpudo6SnqaurrLW3urvAw8vMz9DR1tzd3eDh4%2bbo6u/w8fHx8vL5/f7%2bnPjfBgAAAWNJREFUeNrt0kdXQjEQBeB5YsGu2FFArNgbNgQRFQtgQ1RECTZ01P%2b/N3IgyCF5yTu4zLfL4t7M4oKmaVUMj88OUnafxwC%2bJUJiDpBwxAhZAL4oISTukOTjhJCo%2bILKGzqdbq/X7eyo/F98Qd0Woc764Ff7dCiJRcngVNuf/I4NpA1DoQxWyAQH5XnWMBJGjt1hljdvyL1mkSv7kmN5IVvg%2bR2F3p4CLC/Sc40mbvtBojuBphJdYKrhBCWO6sHMJkptgwkvKhgFocZLVHDVDCLLqGQRBJpSqOROdMIsMp8Uoug9Iyg4RuabQhS9D4FrAFULsBd4JtQLxoBnHcu%2bKBS/14DnAJXtA88FKjsHnntUloIywzVZ9Pih7KGUcRngz9dkBdK1FdxApLaCPWidXy06taCUmWsB7R%2bMU2yRylwGy%2bYpoPxWF0jlKVaQtrjAqoKIxQWygg0KKLZIObbAQlbTtIIfYmMHMd8lK1oAAAAASUVORK5CYII=)](https://android-arsenal.com/details/1/7770) [![GitHub license](https://img.shields.io/github/license/JDevZone/CheckableTextView.svg?style=flat)](https://github.com/JDevZone/CheckableTextView/blob/master/LICENSE) --------------------------- From 8d473cdf1a69c01b5ccc9e0a01502a5ae7b2c2ae Mon Sep 17 00:00:00 2001 From: JDevZone <52904317+JDevZone@users.noreply.github.com> Date: Wed, 4 Sep 2019 15:14:06 +0530 Subject: [PATCH 32/34] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 1dbf8dd..d6fb5ac 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,7 @@ [![](https://jitpack.io/v/JDevZone/CheckableTextView.svg)](https://jitpack.io/#JDevZone/CheckableTextView) [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Checkable%20TextView-orange.svg?style=flat&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAABRFBMVEUAAAAA//8AqqoAv79q6tVi69ht7dtm3cwQv59w389L4cNV1cZr5Ndm5tlt585o6NFq6tVm4NYJwadh3NNm5tUIv6dd4NFs6NFq59Rr49Vq5tVC1sFC1cFT28lr5tMJwaZr5dRp5tNq5NJQ28lq5dNQ3Mtq5NJp5NMJwqhr5tNr5tRQ28tS28kKwaZq5tMKwqdr5dRR3MlS2spr5NRR28pp5dNR28lq5NMJwaZp5dMLwacKwKdq5tJp5NNq5tNq5dJR28pQ3Mpq5NNq5dNq5dMKwahq5dNp5dNq5dNZ3s0KwqcKwadq5NMKwqdr5dNq5dNq5tNq5dNq5dNe4c5q5tNR28pf4c5q5dNR28pq5dNr5dNg4tBf4c9n5dIKwacLwagQw6oRxKs30rw40rxQ28dR28pR3Mhg4dBq5dOk7%2bTG9e7///%2bbCjGeAAAAXnRSTlMAAQMEDA0ODxAQERITFBUWGBkdHR4gISE1Nzw%2bQkdRVlhcYGNjZmdobG5wf4CEhIWImJmZmpudo6SnqaurrLW3urvAw8vMz9DR1tzd3eDh4%2bbo6u/w8fHx8vL5/f7%2bnPjfBgAAAWNJREFUeNrt0kdXQjEQBeB5YsGu2FFArNgbNgQRFQtgQ1RECTZ01P%2b/N3IgyCF5yTu4zLfL4t7M4oKmaVUMj88OUnafxwC%2bJUJiDpBwxAhZAL4oISTukOTjhJCo%2bILKGzqdbq/X7eyo/F98Qd0Woc764Ff7dCiJRcngVNuf/I4NpA1DoQxWyAQH5XnWMBJGjt1hljdvyL1mkSv7kmN5IVvg%2bR2F3p4CLC/Sc40mbvtBojuBphJdYKrhBCWO6sHMJkptgwkvKhgFocZLVHDVDCLLqGQRBJpSqOROdMIsMp8Uoug9Iyg4RuabQhS9D4FrAFULsBd4JtQLxoBnHcu%2bKBS/14DnAJXtA88FKjsHnntUloIywzVZ9Pih7KGUcRngz9dkBdK1FdxApLaCPWidXy06taCUmWsB7R%2bMU2yRylwGy%2bYpoPxWF0jlKVaQtrjAqoKIxQWygg0KKLZIObbAQlbTtIIfYmMHMd8lK1oAAAAASUVORK5CYII=)](https://android-arsenal.com/details/1/7770) [![GitHub license](https://img.shields.io/github/license/JDevZone/CheckableTextView.svg?style=flat)](https://github.com/JDevZone/CheckableTextView/blob/master/LICENSE) +![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/JDevZone/CheckableTextView) --------------------------- ### What's New From 67bbd0bd543fd573e832da5c2d5573a01b31d85c Mon Sep 17 00:00:00 2001 From: JDevZone <52904317+JDevZone@users.noreply.github.com> Date: Fri, 12 Jun 2020 16:04:08 +0530 Subject: [PATCH 33/34] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index d6fb5ac..f121bcd 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,8 @@ [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Checkable%20TextView-orange.svg?style=flat&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAABRFBMVEUAAAAA//8AqqoAv79q6tVi69ht7dtm3cwQv59w389L4cNV1cZr5Ndm5tlt585o6NFq6tVm4NYJwadh3NNm5tUIv6dd4NFs6NFq59Rr49Vq5tVC1sFC1cFT28lr5tMJwaZr5dRp5tNq5NJQ28lq5dNQ3Mtq5NJp5NMJwqhr5tNr5tRQ28tS28kKwaZq5tMKwqdr5dRR3MlS2spr5NRR28pp5dNR28lq5NMJwaZp5dMLwacKwKdq5tJp5NNq5tNq5dJR28pQ3Mpq5NNq5dNq5dMKwahq5dNp5dNq5dNZ3s0KwqcKwadq5NMKwqdr5dNq5dNq5tNq5dNq5dNe4c5q5tNR28pf4c5q5dNR28pq5dNr5dNg4tBf4c9n5dIKwacLwagQw6oRxKs30rw40rxQ28dR28pR3Mhg4dBq5dOk7%2bTG9e7///%2bbCjGeAAAAXnRSTlMAAQMEDA0ODxAQERITFBUWGBkdHR4gISE1Nzw%2bQkdRVlhcYGNjZmdobG5wf4CEhIWImJmZmpudo6SnqaurrLW3urvAw8vMz9DR1tzd3eDh4%2bbo6u/w8fHx8vL5/f7%2bnPjfBgAAAWNJREFUeNrt0kdXQjEQBeB5YsGu2FFArNgbNgQRFQtgQ1RECTZ01P%2b/N3IgyCF5yTu4zLfL4t7M4oKmaVUMj88OUnafxwC%2bJUJiDpBwxAhZAL4oISTukOTjhJCo%2bILKGzqdbq/X7eyo/F98Qd0Woc764Ff7dCiJRcngVNuf/I4NpA1DoQxWyAQH5XnWMBJGjt1hljdvyL1mkSv7kmN5IVvg%2bR2F3p4CLC/Sc40mbvtBojuBphJdYKrhBCWO6sHMJkptgwkvKhgFocZLVHDVDCLLqGQRBJpSqOROdMIsMp8Uoug9Iyg4RuabQhS9D4FrAFULsBd4JtQLxoBnHcu%2bKBS/14DnAJXtA88FKjsHnntUloIywzVZ9Pih7KGUcRngz9dkBdK1FdxApLaCPWidXy06taCUmWsB7R%2bMU2yRylwGy%2bYpoPxWF0jlKVaQtrjAqoKIxQWygg0KKLZIObbAQlbTtIIfYmMHMd8lK1oAAAAASUVORK5CYII=)](https://android-arsenal.com/details/1/7770) [![GitHub license](https://img.shields.io/github/license/JDevZone/CheckableTextView.svg?style=flat)](https://github.com/JDevZone/CheckableTextView/blob/master/LICENSE) ![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/JDevZone/CheckableTextView) +![Version](https://img.shields.io/github/v/tag/JDevZone/CheckableTextView.svg?sort=semver&label=Latest-Version) + --------------------------- ### What's New From 73116ec7094194bbb2a6a0b64b79790709f308b9 Mon Sep 17 00:00:00 2001 From: JDevZone <52904317+JDevZone@users.noreply.github.com> Date: Sat, 15 May 2021 15:58:25 +0530 Subject: [PATCH 34/34] Update README.md --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index f121bcd..84304ef 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,7 @@ | Animation | Demo | | --- | :---: | +|

New Ripple Like Fill Effect

| | |

Normal
(duration = 250 ms)

| | |

Custom Duration
(duration = 2000 ms)

| | @@ -140,6 +141,10 @@ Here are the attributes you can specify through XML or related setters: * `ctv_AnimType` - Set check animation type currently three available (`scale`,`translate` and `fall_down`). * `ctv_AnimDuration` - Set duration for check animation. * `ctv_AnimFirstTime` - Animate `CheckableTextView` for very first time. +* `ctv_RippleAlpha` - Set Alpha (Transparency) value for ripple like fill effect +* `ctv_RippleTint` - Set color value for ripple like fill effect +* `ctv_RippleFillEnabled` - Sets if ripple like fill effect is enabled or not + ### 📄 License