From ac07adbf9682aaf8a9834897bbdaa3c8b6ce96e0 Mon Sep 17 00:00:00 2001 From: vikramezhil Date: Sat, 18 Apr 2020 18:28:43 +0530 Subject: [PATCH] added search hint attribute, updated readme --- README.md | 8 ++++++-- .../mergeDebugResources/compile-file-map.properties | 2 +- .../incremental/mergeDebugResources/merger.xml | 6 +++++- app/src/main/res/layout/activity_dfsv.xml | 1 + app/src/main/res/values/strings.xml | 2 ++ .../packageDebugResources/compile-file-map.properties | 4 ++-- .../packageDebugResources/merged.dir/values/values.xml | 2 ++ .../incremental/packageDebugResources/merger.xml | 4 ++++ .../src/main/java/github/com/vikramezhil/dfsv/Dfsv.java | 2 ++ droidfloatingsearchview/src/main/res/values/attrs.xml | 2 ++ 10 files changed, 27 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 05130d8..8d3d782 100755 --- a/README.md +++ b/README.md @@ -4,6 +4,9 @@ Yet another floating search view library for android

About

An easy to implement floating search view with customizations. +Supports from Android SDK version 19 and above.

+Requires androidx. +

@@ -28,7 +31,7 @@ Add this to your app build.gradle: ```java dependencies { - compile 'com.github.vikramezhil:DroidFloatingSearchView:v2.0.0' + implementation 'com.github.vikramezhil:DroidFloatingSearchView:v2.0.1' } ``` @@ -49,7 +52,7 @@ Add the following to the section of your pom.xml: com.github.vikramezhil DroidFloatingSearchView - v2.0.0 + v2.0.1 ``` @@ -70,6 +73,7 @@ In your layout file add Droid Floating Search View, app:dfsvHintTextColor="@android:color/white" app:dfsvDividerColor="@android:color/white" app:dfsvIconsColor="@android:color/white" + app:dfsvHintText="@string/search_hint" app:dfsvCornerRadius="10" app:dfsvElevation="5" app:dfsvCloseSearchOnOverlayTouch="false" diff --git a/app/build/intermediates/incremental/mergeDebugResources/compile-file-map.properties b/app/build/intermediates/incremental/mergeDebugResources/compile-file-map.properties index 44d14ef..39c400e 100644 --- a/app/build/intermediates/incremental/mergeDebugResources/compile-file-map.properties +++ b/app/build/intermediates/incremental/mergeDebugResources/compile-file-map.properties @@ -1,4 +1,4 @@ -#Sat Apr 18 17:49:25 IST 2020 +#Sat Apr 18 18:26:13 IST 2020 /Users/vikramezhil/Documents/Work/Libraries/Vikram/DroidFSV/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png=/Users/vikramezhil/Documents/Work/Libraries/Vikram/DroidFSV/app/build/intermediates/res/merged/debug/mipmap-xxxhdpi_ic_launcher.png.flat /Users/vikramezhil/Documents/Work/Libraries/Vikram/DroidFSV/app/src/main/res/mipmap-xhdpi/ic_launcher.png=/Users/vikramezhil/Documents/Work/Libraries/Vikram/DroidFSV/app/build/intermediates/res/merged/debug/mipmap-xhdpi_ic_launcher.png.flat /Users/vikramezhil/Documents/Work/Libraries/Vikram/DroidFSV/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png=/Users/vikramezhil/Documents/Work/Libraries/Vikram/DroidFSV/app/build/intermediates/res/merged/debug/mipmap-xhdpi_ic_launcher_round.png.flat diff --git a/app/build/intermediates/incremental/mergeDebugResources/merger.xml b/app/build/intermediates/incremental/mergeDebugResources/merger.xml index 2270119..1e255f2 100644 --- a/app/build/intermediates/incremental/mergeDebugResources/merger.xml +++ b/app/build/intermediates/incremental/mergeDebugResources/merger.xml @@ -5440,6 +5440,8 @@ + + @@ -5464,7 +5466,7 @@ Logan Batman Vs. Superman Batman Begins - + Search for superhero movies @@ -6532,6 +6534,8 @@ + + diff --git a/app/src/main/res/layout/activity_dfsv.xml b/app/src/main/res/layout/activity_dfsv.xml index a9985ec..21a9cc8 100755 --- a/app/src/main/res/layout/activity_dfsv.xml +++ b/app/src/main/res/layout/activity_dfsv.xml @@ -14,6 +14,7 @@ app:dfsvHintTextColor="@android:color/white" app:dfsvDividerColor="@android:color/white" app:dfsvIconsColor="@android:color/white" + app:dfsvHintText="@string/search_hint" app:dfsvCornerRadius="10" app:dfsvElevation="5" app:dfsvCloseSearchOnOverlayTouch="false" diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 109b3a7..9273981 100755 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1,6 +1,8 @@ DroidFloatingSearchView + Search for superhero movies + The Dark Knight The Avengers diff --git a/droidfloatingsearchview/build/intermediates/incremental/packageDebugResources/compile-file-map.properties b/droidfloatingsearchview/build/intermediates/incremental/packageDebugResources/compile-file-map.properties index 1d3862e..dc4b1ed 100644 --- a/droidfloatingsearchview/build/intermediates/incremental/packageDebugResources/compile-file-map.properties +++ b/droidfloatingsearchview/build/intermediates/incremental/packageDebugResources/compile-file-map.properties @@ -1,4 +1,4 @@ -#Sat Apr 18 17:45:27 IST 2020 +#Sat Apr 18 18:25:36 IST 2020 /Users/vikramezhil/Documents/Work/Libraries/Vikram/DroidFSV/droidfloatingsearchview/build/generated/res/pngs/debug/drawable-anydpi-v21/ic_action.xml=/Users/vikramezhil/Documents/Work/Libraries/Vikram/DroidFSV/droidfloatingsearchview/build/intermediates/packaged_res/debug/drawable-anydpi-v21/ic_action.xml /Users/vikramezhil/Documents/Work/Libraries/Vikram/DroidFSV/droidfloatingsearchview/build/generated/res/pngs/debug/drawable-hdpi/ic_close.png=/Users/vikramezhil/Documents/Work/Libraries/Vikram/DroidFSV/droidfloatingsearchview/build/intermediates/packaged_res/debug/drawable-hdpi-v4/ic_close.png /Users/vikramezhil/Documents/Work/Libraries/Vikram/DroidFSV/droidfloatingsearchview/src/main/res/layout/overlay.xml=/Users/vikramezhil/Documents/Work/Libraries/Vikram/DroidFSV/droidfloatingsearchview/build/intermediates/packaged_res/debug/layout/overlay.xml @@ -35,8 +35,8 @@ /Users/vikramezhil/Documents/Work/Libraries/Vikram/DroidFSV/droidfloatingsearchview/src/main/res/drawable-mdpi/icon_speech.png=/Users/vikramezhil/Documents/Work/Libraries/Vikram/DroidFSV/droidfloatingsearchview/build/intermediates/packaged_res/debug/drawable-mdpi-v4/icon_speech.png /Users/vikramezhil/Documents/Work/Libraries/Vikram/DroidFSV/droidfloatingsearchview/build/generated/res/pngs/debug/drawable-xhdpi/ic_action.png=/Users/vikramezhil/Documents/Work/Libraries/Vikram/DroidFSV/droidfloatingsearchview/build/intermediates/packaged_res/debug/drawable-xhdpi-v4/ic_action.png /Users/vikramezhil/Documents/Work/Libraries/Vikram/DroidFSV/droidfloatingsearchview/src/main/res/drawable-xxhdpi/icon_speech.png=/Users/vikramezhil/Documents/Work/Libraries/Vikram/DroidFSV/droidfloatingsearchview/build/intermediates/packaged_res/debug/drawable-xxhdpi-v4/icon_speech.png -/Users/vikramezhil/Documents/Work/Libraries/Vikram/DroidFSV/droidfloatingsearchview/src/main/res/drawable-hdpi/icon_close.png=/Users/vikramezhil/Documents/Work/Libraries/Vikram/DroidFSV/droidfloatingsearchview/build/intermediates/packaged_res/debug/drawable-hdpi-v4/icon_close.png /Users/vikramezhil/Documents/Work/Libraries/Vikram/DroidFSV/droidfloatingsearchview/build/generated/res/pngs/debug/drawable-xxhdpi/ic_close.png=/Users/vikramezhil/Documents/Work/Libraries/Vikram/DroidFSV/droidfloatingsearchview/build/intermediates/packaged_res/debug/drawable-xxhdpi-v4/ic_close.png +/Users/vikramezhil/Documents/Work/Libraries/Vikram/DroidFSV/droidfloatingsearchview/src/main/res/drawable-hdpi/icon_close.png=/Users/vikramezhil/Documents/Work/Libraries/Vikram/DroidFSV/droidfloatingsearchview/build/intermediates/packaged_res/debug/drawable-hdpi-v4/icon_close.png /Users/vikramezhil/Documents/Work/Libraries/Vikram/DroidFSV/droidfloatingsearchview/build/generated/res/pngs/debug/drawable-hdpi/ic_action.png=/Users/vikramezhil/Documents/Work/Libraries/Vikram/DroidFSV/droidfloatingsearchview/build/intermediates/packaged_res/debug/drawable-hdpi-v4/ic_action.png /Users/vikramezhil/Documents/Work/Libraries/Vikram/DroidFSV/droidfloatingsearchview/src/main/res/drawable-xxxhdpi/icon_close.png=/Users/vikramezhil/Documents/Work/Libraries/Vikram/DroidFSV/droidfloatingsearchview/build/intermediates/packaged_res/debug/drawable-xxxhdpi-v4/icon_close.png /Users/vikramezhil/Documents/Work/Libraries/Vikram/DroidFSV/droidfloatingsearchview/build/generated/res/pngs/debug/drawable-xhdpi/ic_close.png=/Users/vikramezhil/Documents/Work/Libraries/Vikram/DroidFSV/droidfloatingsearchview/build/intermediates/packaged_res/debug/drawable-xhdpi-v4/ic_close.png diff --git a/droidfloatingsearchview/build/intermediates/incremental/packageDebugResources/merged.dir/values/values.xml b/droidfloatingsearchview/build/intermediates/incremental/packageDebugResources/merged.dir/values/values.xml index 77ec9e1..b3e337b 100644 --- a/droidfloatingsearchview/build/intermediates/incremental/packageDebugResources/merged.dir/values/values.xml +++ b/droidfloatingsearchview/build/intermediates/incremental/packageDebugResources/merged.dir/values/values.xml @@ -19,6 +19,8 @@ + + diff --git a/droidfloatingsearchview/build/intermediates/incremental/packageDebugResources/merger.xml b/droidfloatingsearchview/build/intermediates/incremental/packageDebugResources/merger.xml index 7e38c58..c937c05 100644 --- a/droidfloatingsearchview/build/intermediates/incremental/packageDebugResources/merger.xml +++ b/droidfloatingsearchview/build/intermediates/incremental/packageDebugResources/merger.xml @@ -7,6 +7,8 @@ + + @@ -26,6 +28,8 @@ + + diff --git a/droidfloatingsearchview/src/main/java/github/com/vikramezhil/dfsv/Dfsv.java b/droidfloatingsearchview/src/main/java/github/com/vikramezhil/dfsv/Dfsv.java index b19c46e..b281cd9 100755 --- a/droidfloatingsearchview/src/main/java/github/com/vikramezhil/dfsv/Dfsv.java +++ b/droidfloatingsearchview/src/main/java/github/com/vikramezhil/dfsv/Dfsv.java @@ -334,6 +334,8 @@ private void initViewAttributes(AttributeSet attrs) { setSearchViewHintTextColor(typedArray.getInt(R.styleable.Dfsv_dfsvHintTextColor, Color.WHITE)); setDividerColor(typedArray.getInt(R.styleable.Dfsv_dfsvIconsColor, Color.WHITE)); + setSearchViewHint(typedArray.getString(R.styleable.Dfsv_dfsvHintText)); + setContinuousSearch(typedArray.getBoolean(R.styleable.Dfsv_dfsvContinuousSearch, false)); setCloseSearchViewOnOverlayTouch(typedArray.getBoolean(R.styleable.Dfsv_dfsvCloseSearchOnOverlayTouch, false)); diff --git a/droidfloatingsearchview/src/main/res/values/attrs.xml b/droidfloatingsearchview/src/main/res/values/attrs.xml index 25b3b51..fe73708 100644 --- a/droidfloatingsearchview/src/main/res/values/attrs.xml +++ b/droidfloatingsearchview/src/main/res/values/attrs.xml @@ -8,6 +8,8 @@ + +