Skip to content

Tag: android

How to pass custom objects from an activity to a fragment?

I’ve been searching all day and couldn’t find a real answer. I created a fragment using the correct way, that is with a no-args constructor and using Fragment setArguments(Bundle) to pass data to it. I need to pass a Drawable and another custom object to the fragment. Everything I read talks about…