From b7e6ab286caddc27e939297616a26af989bf0ee1 Mon Sep 17 00:00:00 2001 From: Fajar Agung Pramana <47925662+fajaragungpramana@users.noreply.github.com> Date: Sun, 24 Jan 2021 17:53:08 +0700 Subject: [PATCH 01/11] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b601db4..beec7df 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # Android Field Drawable -[![](https://jitpack.io/v/fajaragungpramana/android-field-drawable.svg)](https://jitpack.io/#fajaragungpramana/android-field-drawable) +[![](https://jitpack.io/v/fajaragungpramana/field-input.svg)](https://jitpack.io/#fajaragungpramana/field-input)

Library for android, field input with drawable and click listener for drawable. From 70a6d73e8f5628e237b535c1cde0579eee6787d8 Mon Sep 17 00:00:00 2001 From: Fajar Agung Pramana <47925662+fajaragungpramana@users.noreply.github.com> Date: Sun, 24 Jan 2021 17:54:14 +0700 Subject: [PATCH 02/11] Update README.md --- README.md | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index beec7df..f7dddf0 100644 --- a/README.md +++ b/README.md @@ -18,28 +18,34 @@ allProjects { Add the dependency: ```gradle dependencies { - implementation 'com.github.fajaragungpramana:field-drawable:0.0.1' + implementation 'com.github.fajaragungpramana:field-input:0.0.1' } ``` ## Usage Define a view in your layout file: ```xml - - + app:errorEnabled="false" + app:focusable="true" + app:hint="@string/app_name" + app:inputType="text" + app:passwordToggleEnabled="false" + app:textAllCaps="false" + app:textColor="@color/black" + app:textSize="14sp" /> ``` From c53c789829e1d9dcebce053ec491d2ee380892ce Mon Sep 17 00:00:00 2001 From: Fajar Agung Pramana <47925662+fajaragungpramana@users.noreply.github.com> Date: Sun, 24 Jan 2021 17:57:14 +0700 Subject: [PATCH 03/11] Update README.md --- README.md | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index f7dddf0..57adc0d 100644 --- a/README.md +++ b/README.md @@ -51,22 +51,26 @@ Define a view in your layout file: ``` For drawable click listener. ```kotlin -fieldDrawable.drawableListener = object : DrawableListener { - override fun onClickDrawable() { - // Do something magic here. When user click the drawable on field! - } +fieldInput.setOnClickDrawableListener(DrawablePosition.END) { + Log.d(MainActivity::class.simpleName, "Clicked!") } ``` For set error message. ```kotlin -fieldDrawable.errorMessage = "Error message here!" +fieldInput.errorMessage = "Type Something error message here!" ``` For set text or get text input. ```kotlin -fieldDrawable.text // Do this to get input -fieldDrawable.text = "Type something here" // Do this to set input +fieldInput.text // Do this to get input +fieldInput.text = "Type something here!" // Do this to set input ``` + +## Preview + +
+
+ ## Documentation Attribute for FieldDrawable | Attribute Name | Default Value | Description | @@ -75,6 +79,7 @@ Attribute for FieldDrawable | errorEnabled | false | For activate error below field | | focusable | true | For activate focus | | passwordToggleEnabled | false | For activate password visibility | +| style | null | For set text appearance of text field | | textAllCaps | false | For activate field text caps | | drawableEnd | null | For put drawable in the right side | | inputType | text | For input type field | @@ -101,7 +106,3 @@ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - - -## Preview - From ff6e181e0a791871edd38ba9a38f7927acf2bc26 Mon Sep 17 00:00:00 2001 From: Fajar Agung Pramana <47925662+fajaragungpramana@users.noreply.github.com> Date: Sun, 24 Jan 2021 17:58:17 +0700 Subject: [PATCH 04/11] Update README.md --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 57adc0d..3909d8c 100644 --- a/README.md +++ b/README.md @@ -70,6 +70,20 @@ fieldInput.text = "Type something here!" // Do this to set input

+
+
+
+
+
+
+
+
+
+
+
+
+
+
## Documentation Attribute for FieldDrawable From 0311993faaebac55b36459ba14a9e48e1bac74f1 Mon Sep 17 00:00:00 2001 From: Fajar Agung Pramana <47925662+fajaragungpramana@users.noreply.github.com> Date: Sun, 24 Jan 2021 17:58:46 +0700 Subject: [PATCH 05/11] Update README.md --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 3909d8c..7f61156 100644 --- a/README.md +++ b/README.md @@ -84,6 +84,13 @@ fieldInput.text = "Type something here!" // Do this to set input


+
+
+
+
+
+
+
## Documentation Attribute for FieldDrawable From bb656275b142b4b8b44e48cd98e9828613c79158 Mon Sep 17 00:00:00 2001 From: Fajar Agung Pramana <47925662+fajaragungpramana@users.noreply.github.com> Date: Sun, 24 Jan 2021 17:59:13 +0700 Subject: [PATCH 06/11] Update README.md --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 7f61156..407206d 100644 --- a/README.md +++ b/README.md @@ -91,6 +91,11 @@ fieldInput.text = "Type something here!" // Do this to set input


+
+
+
+
+
## Documentation Attribute for FieldDrawable From a1bd61d3c73fc57e81d6dba4f94d8f22a1877288 Mon Sep 17 00:00:00 2001 From: Fajar Agung Pramana <47925662+fajaragungpramana@users.noreply.github.com> Date: Sun, 24 Jan 2021 18:07:56 +0700 Subject: [PATCH 07/11] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 407206d..cd40c37 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ allProjects { Add the dependency: ```gradle dependencies { - implementation 'com.github.fajaragungpramana:field-input:0.0.1' + implementation 'com.github.fajaragungpramana:field-input:0.0.2' } ``` From 54ac6adaf43c900a7c92adebb15e24ae22590afd Mon Sep 17 00:00:00 2001 From: Fajar Agung Pramana <47925662+fajaragungpramana@users.noreply.github.com> Date: Sun, 24 Jan 2021 18:09:00 +0700 Subject: [PATCH 08/11] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cd40c37..583ff99 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # Android Field Drawable -[![](https://jitpack.io/v/fajaragungpramana/field-input.svg)](https://jitpack.io/#fajaragungpramana/field-input) +[![](FieldInput)](https://jitpack.io/#fajaragungpramana/field-input)

Library for android, field input with drawable and click listener for drawable. From ddd62604f81e527faea20bd5b26485fe7c4886eb Mon Sep 17 00:00:00 2001 From: Fajar Agung Pramana <47925662+fajaragungpramana@users.noreply.github.com> Date: Sun, 24 Jan 2021 18:09:15 +0700 Subject: [PATCH 09/11] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 583ff99..cd40c37 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # Android Field Drawable -[![](FieldInput)](https://jitpack.io/#fajaragungpramana/field-input) +[![](https://jitpack.io/v/fajaragungpramana/field-input.svg)](https://jitpack.io/#fajaragungpramana/field-input)

Library for android, field input with drawable and click listener for drawable. From a35ece4882a277bf64425c1b0d05e7264b61e784 Mon Sep 17 00:00:00 2001 From: Fajar Agung Pramana <47925662+fajaragungpramana@users.noreply.github.com> Date: Sun, 24 Jan 2021 18:19:30 +0700 Subject: [PATCH 10/11] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cd40c37..e6ef457 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Android Field Drawable +# Android Field Input [![](https://jitpack.io/v/fajaragungpramana/field-input.svg)](https://jitpack.io/#fajaragungpramana/field-input)

@@ -67,7 +67,7 @@ fieldInput.text = "Type something here!" // Do this to set input ## Preview - +


From 63852e92b218c5a99c2ecaf2d2f16f2397c7b630 Mon Sep 17 00:00:00 2001 From: Fajar Agung Pramana <47925662+fajaragungpramana@users.noreply.github.com> Date: Sun, 24 Jan 2021 20:58:50 +0700 Subject: [PATCH 11/11] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e6ef457..e111d14 100644 --- a/README.md +++ b/README.md @@ -98,7 +98,7 @@ fieldInput.text = "Type something here!" // Do this to set input
## Documentation -Attribute for FieldDrawable +Attribute for FieldInput | Attribute Name | Default Value | Description | |----------------|---------------|-------------| | hint | null | For set hint of field.