Created
June 27, 2017 14:05
-
-
Save chemickypes/4d426e03888113a17146fa0d87148de0 to your computer and use it in GitHub Desktop.
Code fort Medium article 3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
View newf = findFirstVisibleItem(); | |
if(!newf.equals(f) ) { | |
f = newf; | |
for (int i = 0; i < getChildCount(); i++) { | |
View v = getChildAt(i); | |
v.setAlpha(v.equals(f)?1f:0.5f); | |
} | |
} | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment