Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2014
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. final float rati = (float) Math.min(Math.max((Math.abs(bottomImage.getY())), 0), headerHeight) / headerHeight;
  2.  
  3. title.setAlpha(rati*2.0f);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement