Skip to content
This repository was archived by the owner on Jun 9, 2024. It is now read-only.

Commit 5973139

Browse files
authored
Added readme
1 parent a298980 commit 5973139

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# xamarin-search-dialog
2+
Android Search Dialog Library
3+
4+
![](https://i.stack.imgur.com/Z3GEx.png)
5+
6+
Example:
7+
8+
```csharp
9+
var searchListItems = new List<SearchListItem>();
10+
searchListItems.Add(new SearchListItem(1, "Tomatoes"));
11+
searchListItems.Add(new SearchListItem(2, "Potatoes"));
12+
searchListItems.Add(new SearchListItem(3, "Chili"));
13+
14+
//Context, List to display and Title
15+
var searchableDialog = new SearchableDialog(this, SearchableDishes, "Search");
16+
searchableDialog.OnSearchItemSelected = new SearchItemSelected();
17+
searchableDialog.Show();
18+
19+
public class SearchItemSelected : Java.Lang.Object, IOnSearchItemSelected
20+
{
21+
public void OnClick(int p0, SearchListItem p1)
22+
{
23+
Toast.MakeText(this, p1.Title, ToastLength.Long).Show();
24+
}
25+
}
26+
```
27+
28+
## Download
29+
30+
| Package |Latest Release|
31+
|:----------|:------------:|
32+
|**Xamarin.Search.Dialog**|[![NuGet Badge Xamarin.Search.Dialog](https://buildstats.info/nuget/Xamarin.Search.Dialog)](https://www.nuget.org/packages/Xamarin.Search.Dialog/)|

0 commit comments

Comments
 (0)