Value Operation code:
/** * Refresh page Operations Section * * @param id1 * @param id2 */ private void sendtoindexcookbookfragment (String id1, String  ID2) {// indexfoodfragmentupdateids iff = new indexfoodfragmentupdateids ();// iff.setfood_ DEFINITION_ID (ID1);// iff.setfridge_food_ids (ID2); if (Getactivity () != null && getactivity ( ) instanceof mainactivity) { ((mainactivity) getactivity ()). Callfragment (id1 + id2, IndexCookBookFragment.class.getName ()); } }
Receive the value of the pass code:
@Override public void Call (Object value) {//Indexfoodfragmentupdateids ids = (indexfoodfragmentupdateids) value ; if (value.tostring () = = null) {return; } toast.maketext (Getactivity (), value.tostring (), Toast.length_long). Show (); }
The code has been sorted out, and the effect is as follows:
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/87/D2/wKiom1fiN5nCObR7AAeJQhm7QQ0169.png "style=" width : 600px;height:375px; "title=" Qq20160921153144.png "width=" "height=" 375 "border=" 0 "hspace=" 0 "vspace=" 0 "alt=" Wkiom1fin5ncobr7aaejqhm7qq0169.png "/>
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/87/CE/wKioL1fiN5_RsKqOAAfHQdbHjSI837.png "style=" width : 600px;height:370px; "title=" Qq20160921153153.png "width=" "height=" 370 "border=" 0 "hspace=" 0 "vspace=" 0 "alt=" Wkiol1fin5_rskqoaafhqdbhjsi837.png "/>
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/87/D2/wKiom1fiN6PD-6xHAAZrTsDXMak852.png "style=" width : 600px;height:324px; "title=" Qq20160921153214.png "width=" "height=" 324 "border=" 0 "hspace=" 0 "vspace=" 0 "alt=" Wkiom1fin6pd-6xhaazrtsdxmak852.png "/>
Address: http://down.51cto.com/data/2242541
This article is from the "Liangxiao Technology Center" blog, please be sure to keep this source http://liangxiao.blog.51cto.com/3626612/1854964
Android Studio Phase 12th-Activity+fragment Modular Management method