This repository was archived by the owner on Jun 9, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 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/ ) |
You can’t perform that action at this time.
0 commit comments