Fragments – every day tips

#Tip 1 – static newInstancemethod pattern Note: Avoid setter methods and parametrized constructors to modify fragment state, because platform uses only default (0 parameter) constructor, arguments bunde and saved state bundle to restore it later.

  #Tip 2 – single fragment in Activity If your activity role is only to show fragment don’t create custom layout …