Open GodFan4 opened 4 years ago
list.size is 15, one page have 3. so pages is 5 How to make the number of indicators the same as the number of pages,not same as the list.siz
val layoutManager = GridLayoutManager(this,3,GridLayoutManager.HORIZONTAL,false) recyclerview.layoutManager = layoutManager val snapHelper = PagerSnapHelper() snapHelper.attachToRecyclerView(recyclerview) circleIndicator.attachToRecyclerView(recyclerview,snapHelper)
manual-control https://github.com/ongakuer/CircleIndicator#manual-control
list.size is 15, one page have 3. so pages is 5 How to make the number of indicators the same as the number of pages,not same as the list.siz
val layoutManager = GridLayoutManager(this,3,GridLayoutManager.HORIZONTAL,false) recyclerview.layoutManager = layoutManager val snapHelper = PagerSnapHelper() snapHelper.attachToRecyclerView(recyclerview) circleIndicator.attachToRecyclerView(recyclerview,snapHelper)