java - Fragment Transaction - No view found for id 0x7f090022 -


i'm trying replace fragment when click on item list, thing i've got same code 5 differents fragments , works on all, on fragment says :

java.lang.illegalargumentexception: no view found id 0x7f090022 (info.androidhive.slidingmenu:id/frame_container) fragment detallproductepertipus{3899b306 #1 id=0x7f090022}

it says frame_container not found... how replace :

    bundle bundle = new bundle();     android.support.v4.app.fragment fragment = new detallproductepertipus();     bundle.putstring("titol", item.title);      fragment.setarguments(bundle);      getfragmentmanager().begintransaction()              .replace(r.id.frame_container, fragment).commit(); 

i had problems transaction fragments v4 , not v4, , tried :

   bundle bundle = new bundle();    fragment fragment = new detallproductepertipus();     bundle.putstring("titol", item.title);      fragment.setarguments(bundle);      getfragmentmanager().begintransaction()              .replace(r.id.frame_container, fragment).commit(); 

but still doesn't work...

what i'm doing wrong?

on same fragment i've got code makes replace of fragment, want same adding bundle.

android.support.v4.app.fragmentmanager fm = getactivity().getsupportfragmentmanager(); android.support.v4.app.fragmenttransaction ft = fm.begintransaction(); ft.replace(r.id.frame_container, new listaproductosfragment()); ft.commit(); 

finally solved problem doing :

bundle bundle = new bundle(); bundle.putstring("titol", item.title); android.support.v4.app.fragmentmanager fm = getactivity().getsupportfragmentmanager(); fragment fragment = new detallproducteoffer(); fragment.setarguments(bundle); fm.begintransaction() .replace(r.id.frame_container, fragment).commit(); 

Comments

Popular posts from this blog

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

javascript - Blogger related post gadget image Resize s72-c [ Need Expert Help ] -