void OnListItemClick(object sender, AdapterView.ItemClickEventArgs e) { // //var listView = (Android.Widget.AbsListView)sender; var listView = (Android.Widget.ListView)e.Parent; var adapter = (AdapterEmpleados)listView.Adapter; //var lista = new Empleados(); ManagerRepuestos.addEmpleado(adapter.list[e.Position]); //var l = listView.Adapter.GetItem(e.Position).JavaCast<Empleados>(); this.Activity.RunOnUiThread(() => Toast.MakeText(this.Activity, adapter.list[e.Position].FullName, ToastLength.Short).Show()); //var activityRepuestosEPIS = new Intent(this.Activity, typeof(ListEPISRepuestos)); //StartActivity(activityRepuestosEPIS); ManagerRepuestos.getRepuestos().Clear(); Android.Support.V4.App.Fragment fragment = new AlmacenRepuestosXamarin.Fragments.ListaRepuestosEntrega(); FragmentManager.BeginTransaction() .Replace(Resource.Id.content_frame, fragment) .AddToBackStack(null) .Commit(); }