라이브러리를 사용하지 않았습니다. indicator를 쓰기 위한 상당히 간단한 예제입니다.
깃허브 링크
https://github.com/YunSeokVV/viewPager2IndicatorExample/tree/master
GitHub - YunSeokVV/viewPager2IndicatorExample: viewPager2 에 indicator를 적용한 간단한 예제
viewPager2 에 indicator를 적용한 간단한 예제. Contribute to YunSeokVV/viewPager2IndicatorExample development by creating an account on GitHub.
github.com
구현하는데 참고한 사이트
https://dharmeshbasapati.medium.com/working-with-viewpager2-23424111aec1
Working with ViewPager2
Sliding Pager with Dot Indicators — The Easiest Way (without any third-party)
dharmeshbasapati.medium.com
완성된 장면
'안드로이드' 카테고리의 다른 글
Flow (안드로이드) (0) | 2024.02.16 |
---|---|
Hilt를 이용한 ViewModel 객체 생성 (0) | 2024.02.15 |
DiffUtil이란? (0) | 2023.11.17 |
리사이클러뷰 데이터가 꼬일때 해결하는 방법 (2) | 2023.11.15 |
Handler, Looper 핸들러와 루퍼의 의미 (0) | 2023.10.16 |