Codigo de c#
SearchBar searchBar = new SearchBar()
{
Placeholder = "Introducir Texto",
Keyboard=Keyboard.Text
};
searchBar.TextChanged += OnTextChanged;
es visible en la app pero al dar click solo parpadea la barra | y se oculta rapido y no abre el teclado para introducir texto a buscar.
nota: lo estoy compilando para android 9
codigo completo
var searchBarTallerAseg = new StackLayout() { Orientation = StackOrientation.Horizontal,ClassId="stackBar" };
SearchBar searchBar = new SearchBar()
{
Placeholder = "Introducir Texto",
Keyboard=Keyboard.Text,
WidthRequest=-1,
FontSize = 15,
HorizontalOptions =LayoutOptions.StartAndExpand,
ClassId = "VEH(" + vehiculoAsegurado.IdVehiculo.ToString() + "(taller",
IsEnabled=true,
IsVisible=true
};
searchBar.TextChanged += OnTextChanged;
searchBarTallerAseg.Children.Add(searchBar);
lstviewcell.Add(new ViewCell() { View = searchBarTallerAseg });
searchBar.Focus();