/** Returns a new instance of this fragment for the given section number. */ public static CenterFragment newInstance(int sectionNumber) { CenterFragment fragment = new CenterFragment(); Bundle args = new Bundle(); args.putInt(ARG_SECTION_NUMBER, sectionNumber); fragment.setArguments(args); return fragment; }