question: 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 ; }
target:  Updates the UI state for the SearchBar text. The search context view will fade out while the search term fades in.