JetPack_ViewPager2

依赖

implementation'androidx.viewpager2:viewpager2:1.0.0'

使用

var list =arguments?.getParcelableArrayList("PHOTO_LIST")
var adapter = PhotoAdapter()
vp.adapter = adapter
adapter.submitList(list)

你可能感兴趣的:(JetPack_ViewPager2)