Advertisement
Guest User

Untitled

a guest
Mar 29th, 2015
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. private CharSequence relativeSizeSpan(CharSequence source, int pos) {
  2. final SpannableString ss = new SpannableString(source);
  3. if (viewPager.getCurrentItem() != pos) {
  4. ss.setSpan(new ForegroundColorSpan(0xffa8a5a5), 0, source.length(), 0);
  5. }
  6. else {
  7. ss.setSpan(new ForegroundColorSpan(0xff787777), 0, source.length(), 0);
  8. }
  9. return ss;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement