@Override public View onCreateView( LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { super.onCreateView(inflater, container, savedInstanceState); initActionBar(); return inflater.inflate(layout.fragment_container, container, false); }
@Override public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); if (mdActivity.getTrendCategory() == Constants.VALUE_MONTH) { switchMonthlyReportFragment(); // 月报表 } else { switchRecentlyReportFragment(); // 近期 } }
@Override public void onAttach(Activity activity) { super.onAttach(activity); mdActivity = (MeasureDataActivity) activity; }