private void loadFinishScreen ( ) { CoordinatorLayout . LayoutParams lp = new CoordinatorLayout . LayoutParams ( CoordinatorLayout . LayoutParams . WRAP_CONTENT , CoordinatorLayout . LayoutParams . WRAP_CONTENT ) ; mFloatingActionButton . setLayoutParams ( lp ) ; mFloatingActionButton . setVisibility ( View . INVISIBLE ) ; NestedScrollView contentLayout = ( NestedScrollView ) findViewById ( R . id . challenge_rootcontainer ) ; if ( contentLayout != null ) { contentLayout . removeAllViews ( ) ; View view = getLayoutInflater ( ) . inflate ( R . layout . fragment_finish_challenge , contentLayout , false ) ; contentLayout . addView ( view ) ; } }
Loads the finish screen and unloads all other screens