android - onCreateView() called from where and when and what is its parameters when called? -
lets assume have 2 activity
1: mainactivity (we call a)
2: fragmetnactivity (b)
a in layout had framelayout hold b
based on this guid when a in oncreate() first 4 method of b called respectively, yes??? called one-by-one a or no a call first method , rest execute respectively???
and oncreateview() parameters, know had 3 parameters (here):
public view oncreateview (layoutinflater inflater, viewgroup container, bundle savedinstancestate) i want second parameters (viewgroup container) when method called caller in example???
don't call manually. oncreateview part of fragment's lifecycle , calling , timing android.
i want second parameters (viewgroup container) when method
is container host fragment. provide through transaction in add/replace methods
Comments
Post a Comment