Xamarin-MaterialSearchBar 2.2.0

dotnet add package Xamarin-MaterialSearchBar --version 2.2.0
NuGet\Install-Package Xamarin-MaterialSearchBar -Version 2.2.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Xamarin-MaterialSearchBar" Version="2.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Xamarin-MaterialSearchBar --version 2.2.0
#r "nuget: Xamarin-MaterialSearchBar, 2.2.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Xamarin-MaterialSearchBar as a Cake Addin
#addin nuget:?package=Xamarin-MaterialSearchBar&version=2.2.0

// Install Xamarin-MaterialSearchBar as a Cake Tool
#tool nuget:?package=Xamarin-MaterialSearchBar&version=2.2.0

sponsor me

alternate text is missing from this package README image

More information and advanced examples:


Basic example:


    app:mt_hint="Custom hint"
    android:id="@+id/searchBar" />


public partial class YourClassActivity : AppCompatActivity, MaterialSearchBar.IOnSearchActionListener
    private MaterialSearchBar MSearchBar { get; set; }

    protected override void OnCreate(Bundle savedInstanceState)

        MSearchBar = FindViewById<MaterialSearchBar>(Resource.Id.searchBar);


        MSearchBar.AddTextChangeListener(new MaterialSearchBarListener());

    void MaterialSearchBar.IOnSearchActionListener.OnButtonClicked(int p0)
        switch (p0)
            case MaterialSearchBar.BUTTON_NAVIGATION:
            case MaterialSearchBar.BUTTON_SPEECH:
            case MaterialSearchBar.BUTTON_BACK:

public partial class YourClassActivity
    private class MaterialSearchBarListener : Java.Lang.Object, ITextWatcher
        public void AfterTextChanged(IEditable s)


        public void BeforeTextChanged(ICharSequence s, int start, int count, int after)


        public void OnTextChanged(ICharSequence s, int start, int before, int count)


Follow me at:

LinkedIn YouTube Amazon Goodreads Instagram Cyber Prophets Sharing Your Stories
LinkedIn YouTube Amazon Goodreads Instagram RedCircle Podcast RedCircle Podcast
Product Compatible and additional computed target framework versions.
.NET net6.0-android was computed.  net7.0-android was computed.  net8.0-android was computed. 
MonoAndroid monoandroid is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.2.0 565 8/5/2021
2.1.1 373 7/26/2021
2.1.0 350 6/12/2021 532 8/11/2020
2.0.0 434 7/26/2020 468 7/15/2020 799 7/20/2019 542 7/2/2019
1.1.0 508 6/30/2019 488 6/26/2019
1.0.0 503 6/26/2019

- Fixed bugs.