Efskjoufkpvrv
New Member
I have my xml set up so that each class includes the same menu bar. I have to duplicate each method that is called by a button onClick in every class that uses the menu bar though. Is there a way around this? I tried to extend the other class, but every class already extends activity and you cannot extend multiple classes in Android.Example:menu bar has button doStuff.class A includes menu bar. Class A implements doStuff.class B includes menu bar. Class B implements doStuff.They are both implementing the same method in exactly the same way. Is there a way to define these methods (like doStuff) once and have each button call that method?