Android Fragment container argument in onCreateView -
i wonder container argument in oncreateview() method of flagment come , viewgroup of activity has fragment or else ? wonder cause don't know viewgroup xml of fragment attract in code .thanks time
public view oncreateview(layoutinflater inflater, @nullable viewgroup container, bundle savedinstancestate) { return inflater.inflate(r.layout.fragment_list,container,true); }
the container parameter passed oncreateview() parent viewgroup (from activity's layout) in fragment layout inserted. rest can refer link
Comments
Post a Comment