private void ListItemClicked(int position) { //this way we don't load twice, but you might want to modify this a bit. if (position == oldPosition) return; oldPosition = position; Android.Support.V4.App.Fragment fragment = null; switch (position) { case 0: fragment = PanelesSolares.NewInstance(); break; case 1: fragment = TermasSolares.NewInstance(); break; case 2: fragment = KitsSolares.NewInstance(); break; } SupportFragmentManager.BeginTransaction() .Replace(Resource.Id.content_frame, fragment) .Commit(); }
public MainPresenter(PanelesSolares panelesSolares) { }