Created
November 16, 2020 09:20
-
-
Save AshuTyagi16/f747609bdfb97f394312761ee5b938e0 to your computer and use it in GitHub Desktop.
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
rvChat.addOnScrollListener(object : RecyclerView.OnScrollListener() { | |
override fun onScrolled(recyclerView: RecyclerView, dx: Int, dy: Int) { | |
super.onScrolled(recyclerView, dx, dy) | |
recyclerView.forEachVisibleHolder { holder: RecyclerView.ViewHolder -> | |
if (holder is OutgoingChatViewHolder) { | |
changeDrawableColor(holder) | |
} | |
} | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment