SearchBar Using Xamarin

closed account (9j26pfjN)
protected void Search(StackLayout layout)
{
SearchBar searchBar = new SearchBar
{
Placeholder = "Xamarin.Forms Property",
};
layout.Children.Add(searchBar);
}

protected override void BuildView(StackLayout layout)
{

Search(layout);

CallDataFromDB(layout);

Device.OnPlatform(
//broken in Xamarin 1.2. Awaiting a fix
Android: () =>
{
var tbi = new ToolbarItem("Refresh", "", () =>
{
BuildView(layout);
}, 0, 0);
tbi.Order = ToolbarItemOrder.Secondary; // forces it to appear in menu on Android
if (ToolbarItems.Count == 0)
ToolbarItems.Add(tbi);
}
);

}

It breaks when I make a gesture(touch) on the screen it breaks.

This is the exact error which i am facing now. I am using Xamarin Missing method Android.Widget.SearchView::get_InputType() in assembly Mono.Android.dll, referenced in assembly Xamarin.Forms.Platform.Android.dll
Xamarin is C#.

This site is all about C++ (and C).

Sorry, but hardly anyone here is all that versed in C#, or interested in it, to be of much help


Roobarb is one of our resident gits who just copy/pastes randomness.
https://stackoverflow.com/questions/25718635/searchbar-using-xamarin

It's a robot, posting like clockwork once a week:
Sun Jul 21 10:29pm
Sun Jul 28 11:01pm
Sun Aug  4 11:01pm
Sun Aug 11 10:55pm

Topic archived. No new replies allowed.