본문 바로가기

Debbi Story

검색하기
Debbi Story
프로필사진 Debbi

  • 분류 전체보기 (38)
    • 일상 (0)
    • mac 사용 tip (3)
    • 안드로이드 (28)
      • Plugins (3)
      • Jetpack (2)
      • Tip (19)
      • WebView (1)
      • PlayStore (3)
    • git (2)
    • 알고리즘 연습 (2)
    • 삽질 일기 (1)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/06   »
일 월 화 수 목 금 토
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30
Tags
  • onResume
  • Plugins
  • shotcut
  • BottomSheetDialog
  • requestPermission
  • application
  • 403 Error
  • notification setting
  • kdoc-generator
  • navigation component
  • itemAnimator
  • notification
  • jsontokotlinclass
  • room
  • ActivityResultContracts
  • LOG
  • skipcollapsed
  • 이미지 gps
  • Android
  • webview
  • Git
  • prettyJson
  • notification bar
  • ExifInterface
  • ChromeCustomTab
  • Blinking
  • circlecrop
  • datastore
  • App Startup
  • onReceivedSslError
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록fragmentstateadapter (1)

Debbi Story

ViewPager2 가 Fragment 안에 있을때

기존에 ViewPager 어댑터로는 PagerAdapter, FragmentPagerAdapter, FragmentStatePagerAdapter 이렇게 3가지를 사용할 수 있었고, 새로운 ViewPager2에서는 RecyclerView.Adapter 와 FragmentStateAdpater 로 변경되었습니다. FragmentStateAdpater 생성자 인자로 FragmentManager가 필요한데 ViewPager2가 Fragment 안에 있을경우 childFragmentManager 를 넣어주어야 합니다. Activity 안에 있다면 supportFragmentManager 를 사용하면 됩니다.

안드로이드/Tip 2020. 8. 18. 01:45
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바