java - How can I extend Fragment and have a subclass extend my base class along with ListFragment? -


to clarify question, have base class extends fragment, such as:

public class myfragment extends fragment {     @override     public void onattach(activity activity)     {         //common work     } } 

i have sub classes extending myfragment have sub classes gaining functionality of listfragment, extends fragment.

how can accomplish without having create 2 base classes, 1 simple fragment , listfragment (and possibly third dialogfragment), or having source of listfragment (and dialogfragment) in order create own subclasses extend myfragment?

you can't. class can have 1 base class.

your best course of aciton forget listfragment. doesn't anyway.


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -