Is there a way to extend Fragment and Activity together?
class MyEditorFragment extends Fragment implements TextStuff,
Stuff2Listener, OnClickListener<Cursor>
Take note of this: There is no way to subclass more than one superclass at a time.
Besides, Fragment is actually a mini activity itself, which can be associated with a parent activity. You might want to refer to the official documentation as it provides clear explanation.
Additionally:
Take note that Fragment article is sub-listed under Activity in the documentation
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With