Ok, I am doing something. I have a navigation bar that contains all the buttons for my activities. I have tried the method of Extending the other activities to the “navbar” class.
Here is what I have done so far:
- I have extended all the classes to navbar (Except those that will need multiple inheritance).
- used an tag in every XML layout.
What I need:
- I need classes to handle multiple inheritance
- All my classes even those that do not need multiple inheritance, to extend my navbar class.
If multiple inheritance is not possible, I do not mind hardcoding those classes, but multiple inheritance would be very nice 🙂
thanks in advance.
Java does not support multiple inheritance, sorry.
Rather than roll your own “navbar”, you might consider using the action bar on Honeycomb, perhaps then using ActionBarSherlock to support pre-Honeycomb devices from the same code base.