I have a couple of widgets that I would like to appear on each Activity within my application. I've been trying to set up an AbstractHandler that extends Activity that implements these common bits of code, and then have each of my Activity classes extend that, and then have those classes implement just the components that are important to them. That's pretty basic stuff.
My problem is that when I set up the layout in XML in the concrete class, it over writes the layout in the abstract class, and I then lose the common widgets. A general sketch of the problem. public abstract class Foo extends Activity{ public void onCreate(Bundle bundle){ super.onCreate(bundle); // I want these buttons inherited by every Activity in my application. setContentView(R.layout.abstractbuttons); } } public class Bar extends Foo{ public void onCreate(Bundle bundle){ super.onCreate(bundle); // These buttons are specific to this Activity, but by setting the content view differently, I lose the // Buttons in Foo. setContentView(R.layout.specificbuttons); } } So I guess what I want is a way to merge to XML layouts. Is that possible? Many thanks, -J --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---