Hello,
in the app I'm doing all my activities (except 2) has extends
of another Activity ( BaseActivity
) where I do the treatment of options available in ActionBar
, with this I avoid repeating the code in all activities. It happens that in these 2 activities where I do not have this extends
I have a listview that is made through an Adapter (so I have to extends BaseAdapter implements ListAdapter
).
My question is, how am I going to handle the options available in ActionBar from these 2 activities since I can not do extends
of BaseActivity
? Do I have to repeat the code? What do you usually do?
Example: All activities are as follows:
public class MainActivity extends BaseActivity {....}
except 2, which looks like this:
public class MyAdapter extends BaseAdapter implements ListAdapter {...}
How do I do these two? Thank you!