android converting activities to fragments -
i have made nice app whole bunch of activities
, needed navigation drawer
, found out need have 1 activity
whole app , individual different screens should fragments
inserted @ runtime.
my question :
how convert entire app use fragments
instead of activities
? (eg: how preserve activity hierarchy , show main activity when user opens app , different actionbar each screen , etc...)
there no magic converter, need convert manually each activity extended fragment , add few must methods oncreateview fragment instead of setcontentview of activity.
regarding actionbars, sits on main activity need create callback events each fragment main activity in order control action bar.
Comments
Post a Comment