protected void updateSearchBarTextOpacity(float percentage){
  float overlapPercentage=.75f;
  float fadingOutPercentage=Math.max(1 - (percentage / overlapPercentage),0.f);
  float fadingInPercentage=Math.max(percentage - (1 - overlapPercentage),0.f) / overlapPercentage;
  mSearchBarContextOpacity=fadingOutPercentage;
  mSearchBarTermOpacity=fadingInPercentage;
}

protected void updateSearchBarTextOpacity ( float percentage ) { float overlapPercentage = .75f ; float fadingOutPercentage = Math . max ( 1 - ( percentage / overlapPercentage ) , 0.f ) ; float fadingInPercentage = Math . max ( percentage - ( 1 - overlapPercentage ) , 0.f ) / overlapPercentage ; mSearchBarContextOpacity = fadingOutPercentage ; mSearchBarTermOpacity = fadingInPercentage ; }
updates the ui state for the searchbar text . the search context view will fade out while the search term fades in .
