I want to pass a class object to a Fragment. I know to pass the class objects then we have to implement serializable or parcelable. But I can not extend or implement compiled libraries or jar files objects to parcelable or serializable. Then how can I pass these type of objects to a Fragment?
Example: If I have Button class object in one Fragment and pass it to another Fragment, then how to do this?