Created
August 13, 2020 13:00
-
-
Save yuriyskulskiy/09a8f0114cc994f5f679011f4fbbf98d to your computer and use it in GitHub Desktop.
GlowingEdgeEffect: add custom faotory
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
public class GlowingEdgeEffectFactory extends RecyclerView.EdgeEffectFactory { | |
@NonNull | |
@Override | |
protected EdgeEffect createEdgeEffect(@NonNull RecyclerView view, int direction) { | |
return new GlowingEdgeEffect(view.getContext()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment