Skip to content

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
vikramezhil committed Apr 18, 2020
1 parent e3935f4 commit 72783a5
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,21 @@ For a detailed documentation 📔, please have a look at the [Wiki](https://gith
In your layout file add Droid Floating Search View,

```xml
<com.vikramezhil.droidfloatingsearchview.DroidFSView
<github.com.vikramezhil.dfsv.Dfsv
android:id="@+id/dfsView"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
android:layout_height="wrap_content"
app:dfsvBgColor="@android:color/holo_purple"
app:dfsvOverlayBgColor="@android:color/holo_purple"
app:dfsvTextColor="@android:color/white"
app:dfsvHintTextColor="@android:color/white"
app:dfsvDividerColor="@android:color/white"
app:dfsvIconsColor="@android:color/white"
app:dfsvCornerRadius="10"
app:dfsvElevation="5"
app:dfsvCloseSearchOnOverlayTouch="false"
app:dfsvContinuousSearch="false"
app:dfsvSuggestions="@array/suggestions"/>
```

In your class file, initialize Droid Floating Search View using the ID specified in your layout file
Expand Down

0 comments on commit 72783a5

Please sign in to comment.