Skip to content

Commit

Permalink
added search hint attribute, updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
vikramezhil committed Apr 18, 2020
1 parent 72783a5 commit ac07adb
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 6 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ Yet another floating search view library for android
<b><h1>About</h1></b>
An easy to implement floating search view with customizations.

<b>Supports from Android SDK version 19 and above.</b><br/><br/>
<b>Requires androidx.</b>

<p align="center">
<img src="https://user-images.githubusercontent.com/12429051/32132439-1cf9499c-bbe1-11e7-8da0-7bcf90485afc.png" height="550" width="275"/>
<img src="https://user-images.githubusercontent.com/12429051/32132378-5fb91baa-bbe0-11e7-8f94-f1fa7a0ef634.png" height="550" width="275"/>
Expand All @@ -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'
}
```

Expand All @@ -49,7 +52,7 @@ Add the following to the <dependencies> section of your pom.xml:
<dependency>
<groupId>com.github.vikramezhil</groupId>
<artifactId>DroidFloatingSearchView</artifactId>
<version>v2.0.0</version>
<version>v2.0.1</version>
</dependency>
```

Expand All @@ -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"
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5440,6 +5440,8 @@
<attr format="color" name="dfsvHintTextColor"/>
<attr format="color" name="dfsvDividerColor"/>

<attr format="string" name="dfsvHintText"/>

<attr format="integer" name="dfsvCloseIcon"/>
<attr format="integer" name="dfsvClearIcon"/>
<attr format="integer" name="dfsvActionIcon"/>
Expand All @@ -5464,7 +5466,7 @@
<item>Logan</item>
<item>Batman Vs. Superman</item>
<item>Batman Begins</item>
</string-array></file><file name="ic_launcher" path="/Users/vikramezhil/Documents/Work/Libraries/Vikram/DroidFSV/app/src/main/res/mipmap-xhdpi/ic_launcher.png" qualifiers="xhdpi-v4" type="mipmap"/><file name="ic_launcher_round" path="/Users/vikramezhil/Documents/Work/Libraries/Vikram/DroidFSV/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png" qualifiers="xhdpi-v4" type="mipmap"/></source><source path="/Users/vikramezhil/Documents/Work/Libraries/Vikram/DroidFSV/app/build/generated/res/rs/debug"/><source path="/Users/vikramezhil/Documents/Work/Libraries/Vikram/DroidFSV/app/build/generated/res/resValues/debug"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="debug$Generated" generated="true" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/vikramezhil/Documents/Work/Libraries/Vikram/DroidFSV/app/src/debug/res"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="debug" generated-set="debug$Generated" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/vikramezhil/Documents/Work/Libraries/Vikram/DroidFSV/app/src/debug/res"/></dataSet><mergedItems><configuration qualifiers=""><declare-styleable name="AlertDialog">
</string-array><string name="search_hint">Search for superhero movies</string></file><file name="ic_launcher" path="/Users/vikramezhil/Documents/Work/Libraries/Vikram/DroidFSV/app/src/main/res/mipmap-xhdpi/ic_launcher.png" qualifiers="xhdpi-v4" type="mipmap"/><file name="ic_launcher_round" path="/Users/vikramezhil/Documents/Work/Libraries/Vikram/DroidFSV/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png" qualifiers="xhdpi-v4" type="mipmap"/></source><source path="/Users/vikramezhil/Documents/Work/Libraries/Vikram/DroidFSV/app/build/generated/res/rs/debug"/><source path="/Users/vikramezhil/Documents/Work/Libraries/Vikram/DroidFSV/app/build/generated/res/resValues/debug"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="debug$Generated" generated="true" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/vikramezhil/Documents/Work/Libraries/Vikram/DroidFSV/app/src/debug/res"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="debug" generated-set="debug$Generated" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/vikramezhil/Documents/Work/Libraries/Vikram/DroidFSV/app/src/debug/res"/></dataSet><mergedItems><configuration qualifiers=""><declare-styleable name="AlertDialog">
<attr name="android:layout"/>
<attr format="reference" name="buttonPanelSideLayout"/>
<attr format="reference" name="listLayout"/>
Expand Down Expand Up @@ -6532,6 +6534,8 @@
<attr format="color" name="dfsvHintTextColor"/>
<attr format="color" name="dfsvDividerColor"/>

<attr format="string" name="dfsvHintText"/>

<attr format="integer" name="dfsvCloseIcon"/>
<attr format="integer" name="dfsvClearIcon"/>
<attr format="integer" name="dfsvActionIcon"/>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/layout/activity_dfsv.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<resources>
<string name="app_name">DroidFloatingSearchView</string>

<string name="search_hint">Search for superhero movies</string>

<string-array name="suggestions">
<item>The Dark Knight</item>
<item>The Avengers</item>
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
<attr format="color" name="dfsvHintTextColor"/>
<attr format="color" name="dfsvDividerColor"/>

<attr format="string" name="dfsvHintText"/>

<attr format="integer" name="dfsvCloseIcon"/>
<attr format="integer" name="dfsvClearIcon"/>
<attr format="integer" name="dfsvActionIcon"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
<attr format="color" name="dfsvHintTextColor"/>
<attr format="color" name="dfsvDividerColor"/>

<attr format="string" name="dfsvHintText"/>

<attr format="integer" name="dfsvCloseIcon"/>
<attr format="integer" name="dfsvClearIcon"/>
<attr format="integer" name="dfsvActionIcon"/>
Expand All @@ -26,6 +28,8 @@
<attr format="color" name="dfsvHintTextColor"/>
<attr format="color" name="dfsvDividerColor"/>

<attr format="string" name="dfsvHintText"/>

<attr format="integer" name="dfsvCloseIcon"/>
<attr format="integer" name="dfsvClearIcon"/>
<attr format="integer" name="dfsvActionIcon"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down
2 changes: 2 additions & 0 deletions droidfloatingsearchview/src/main/res/values/attrs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
<attr name="dfsvHintTextColor" format="color"/>
<attr name="dfsvDividerColor" format="color"/>

<attr name="dfsvHintText" format="string"/>

<attr name="dfsvCloseIcon" format="integer"/>
<attr name="dfsvClearIcon" format="integer"/>
<attr name="dfsvActionIcon" format="integer"/>
Expand Down

0 comments on commit ac07adb

Please sign in to comment.