@Override public View onCreateView( LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { if (DEBUG) { MinicRPCLog.d(TAG, "onCreateView"); } View view = View.inflate(getActivity(), R.layout.fragment_smsbless, null); ButterKnife.inject(this, view); // init fragments mFragments[0] = new FA(); mFragments[1] = new FB(); mFragments[2] = new FC(); mFragments[3] = new FD(); // init mTitle = getActivity().getResources().getStringArray(R.array.sms_bless); if (DEBUG) { MinicRPCLog.d(TAG, "%s, %s, %s, %s", mTitle); } mAdapter = new MyAdapter(getChildFragmentManager()); mPager.setAdapter(mAdapter); mIndicator.setViewPager(mPager); mIndicator.setCurrentItem(0); return view; }
@Override public void onAttach(Activity activity) { super.onAttach(activity); if (DEBUG) { MinicRPCLog.d(TAG, "onAttach"); } }
@Override public void onActivityCreated(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onActivityCreated(savedInstanceState); if (DEBUG) { MinicRPCLog.d(TAG, "onActivityCreate"); } }