RecyclerView - How highlight central visible item during scroll
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I need a RecyclerView like this: It should does: show 7 items per time ( DONE ) center the RecyclerView on the central visible item ( DONE ) when I scroll to right/left, the central item will be "highlighted" (the button is selected > blue color) ( need HELP ) when I click on a button, it will be centered with a smooth scrool ( need HELP ) I used SnapHelper class to center the RecyclerView on the central items (I retrieve the central visible item getting the nearest child to the screen center) MY ADAPTER: public class