public void onUpdateFromPeekToExpand(float percentage){
  if (!isVisible())   return;
  mHeightPx=Math.round(MathUtils.interpolate(mDefaultHeightPx,0.f,percentage));
  mTextOpacity=MathUtils.interpolate(1.f,0.f,percentage);
}

public void onUpdateFromPeekToExpand ( float percentage ) { if ( ! isVisible ( ) ) return ; mHeightPx = Math . round ( MathUtils . interpolate ( mDefaultHeightPx , 0.f , percentage ) ) ; mTextOpacity = MathUtils . interpolate ( 1.f , 0.f , percentage ) ; }
interpolates the ui from states peeked to expanded .
