Ejemplo n.º 1
0
 public void doBreak() {
   if (mDemoActivityInterface != null) {
     mDemoActivityInterface.removeAllFragmentExcept(getTagString());
   }
   if (mTilesFrameLayout != null) {
     mTilesFrameLayout.startAnimation();
   }
 }
Ejemplo n.º 2
0
 @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);
   }
 }
Ejemplo n.º 3
0
 @Override
 public void onPause() {
   super.onPause();
   mTilesFrameLayout.onPause();
 }