Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Code fort Medium article 3
...
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
You can’t perform that action at this time.