Xamarin.Search.Dialog 1.1.1

Android Search Dialog Library. Based on:
https://github.com/ajithvgiri/search-dialog

Example:

var searchListItems = new List<SearchListItem>();
searchListItems.Add(new SearchListItem(1, "Tomatoes"));
searchListItems.Add(new SearchListItem(2, "Potatoes"));
searchListItems.Add(new SearchListItem(3, "Chili"));

//Context, List to display and Title
var searchableDialog = new SearchableDialog(this, SearchableDishes, "Search");
searchableDialog.OnSearchItemSelected = new SearchItemSelected();
searchableDialog.Show();

public class SearchItemSelected : Java.Lang.Object, IOnSearchItemSelected
{
public void OnClick(int p0, SearchListItem p1)
{
 Toast.MakeText(this, p1.Title, ToastLength.Long).Show();
}
}

Install-Package Xamarin.Search.Dialog -Version 1.1.1
dotnet add package Xamarin.Search.Dialog --version 1.1.1
<PackageReference Include="Xamarin.Search.Dialog" Version="1.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Xamarin.Search.Dialog --version 1.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Xamarin.Search.Dialog, 1.1.1"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Xamarin.Search.Dialog as a Cake Addin
#addin nuget:?package=Xamarin.Search.Dialog&version=1.1.1

// Install Xamarin.Search.Dialog as a Cake Tool
#tool nuget:?package=Xamarin.Search.Dialog&version=1.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Example:

var searchListItems = new List<SearchListItem>();
searchListItems.Add(new SearchListItem(1, "Tomatoes"));
searchListItems.Add(new SearchListItem(2, "Potatoes"));
searchListItems.Add(new SearchListItem(3, "Chili"));

//Context, List to display and Title
var searchableDialog = new SearchableDialog(this, SearchableDishes, "Search");
searchableDialog.OnSearchItemSelected = new SearchItemSelected();
searchableDialog.Show();

public class SearchItemSelected : Java.Lang.Object, IOnSearchItemSelected
{
    public void OnClick(int p0, SearchListItem p1)
    {
        Toast.MakeText(this, p1.Title, ToastLength.Long).Show();
    }
}

Example:

var searchListItems = new List<SearchListItem>();
searchListItems.Add(new SearchListItem(1, "Tomatoes"));
searchListItems.Add(new SearchListItem(2, "Potatoes"));
searchListItems.Add(new SearchListItem(3, "Chili"));

//Context, List to display and Title
var searchableDialog = new SearchableDialog(this, SearchableDishes, "Search");
searchableDialog.OnSearchItemSelected = new SearchItemSelected();
searchableDialog.Show();

public class SearchItemSelected : Java.Lang.Object, IOnSearchItemSelected
{
    public void OnClick(int p0, SearchListItem p1)
    {
        Toast.MakeText(this, p1.Title, ToastLength.Long).Show();
    }
}

Release Notes

Added Spanish translations and set default black color for the textbox.

Dependencies

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.1.1 265 6/16/2019