android - Fragment manager Getting into custom adapter -


in adapter want navigate different fragments

  public navadapter(context context, arraylist<navitems> navitems) {     this.navitems = navitems;     this.context = context;    } 

in above adapter constructor managed context , how fragmentmanager ?

  youractivity mainactivity = (youractivity) context;   fragmentmanager manager = mainactivity.getsupportfragmentmanager(); 

you can use fregmantmanager , perform transaction .


Comments

Popular posts from this blog

Load Balancing in Bluemix using custom domain and DNS SRV records -

oracle - pls-00402 alias required in select list of cursor to avoid duplicate column names -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -