依赖
implementation'androidx.viewpager2:viewpager2:1.0.0'
使用
var list =arguments?.getParcelableArrayList("PHOTO_LIST")
var adapter = PhotoAdapter()
vp.adapter = adapter
adapter.submitList(list)
依赖
implementation'androidx.viewpager2:viewpager2:1.0.0'
使用
var list =arguments?.getParcelableArrayList("PHOTO_LIST")
var adapter = PhotoAdapter()
vp.adapter = adapter
adapter.submitList(list)