public void doBreak() { if (mDemoActivityInterface != null) { mDemoActivityInterface.removeAllFragmentExcept(getTagString()); } if (mTilesFrameLayout != null) { mTilesFrameLayout.startAnimation(); } }
@Override public void onViewCreated(View view, Bundle savedInstanceState) { super.onViewCreated(view, savedInstanceState); mTilesFrameLayout.setOnAnimationFinishedListener(this); mRecycler.setLayoutManager(new LinearLayoutManager(getContext())); mRecycler.setAdapter(new ProfileAdapter(getContext(), getUser(), this)); setUpToolbar(mToolbar); mHeader.setImageResource(getUser().getPhotoRes()); if (getArguments() != null) { mAppBarLayout.setExpanded(getArguments().getBoolean(ARG_SHOULD_EXPAND), false); } }
@Override public void onPause() { super.onPause(); mTilesFrameLayout.onPause(); }