I am trying to pass arraylist between fragments in Android development. This is the part where I tried to pass Transaction array list to another fragment:
sw
ArrayList transactionList = new ArrayList<>();
pass the transactionList to the bundle
Bundle bundle = new Bundle();
bundle.putSerializable("key", transactionList);
and in the receiving fragment
ArrayList transactionList = (ArrayList)getArguments().getSerializable("key");
NOTE: to pass your bean class via bundle you have to implement serializable i.e
YourBeanClass implements Serializable