android - Xamarin Fragment Switching in Adapter -
replacing fragment in xamarin android on click of button i'm not able switch fragment other fragment in adapter class.
swagbtn.click += delegate(object sender, eventargs e) {     var events = new events();     var basefragments = new basefragments();      basefragments.fragmentreplacewithoutbackstak(         "",         resource.id.main_container,         events,         resource.animator.enter,         resource.animator.exit,         resource.animator.pop_enter,         resource.animator.pop_exit     ); };   here fragmentreplacewithoutbackstak method
public void fragmentreplacewithoutbackstak(     string str,     int continer,     android.support.v4.app.fragment class,     int anim_first,     int anim_second,     int anim_third,     int anim_fourth ) {     activity.supportfragmentmanager         .begintransaction()         .setcustomanimations(anim_first, anim_second, anim_third, anim_fourth)         .replace(continer, class)         .commit(); }       
 
  
Comments
Post a Comment