Send bundle from itemClickListener of Recyclerview in Activity like this
val bundle = Bundle()
bundle.putParcelableArrayList("myPlace", ArrayList<MyPlace>(myPlace))
ScheduleListFragment().arguments = bundle
Log.d("번들",bundle.toString())
finish()
and receive bundle in fragment like this
val bundle = arguments?.getParcelableArrayList<MyPlace>("myPlace")
if(bundle != null){
val yourPlace = requireArguments().getParcelableArrayList<MyPlace>("myPlace")
Log.d("마이", yourPlace.toString())
}
It says bundle is null...