Chris,
Sub-Classing View is not going to work. You need to subclass
ViewGroup.  There are many predefined already to choose from.
Here is a LinearLayout Example.

private class sampleViewGroup extends LinearLayout{

    private final Button button1;
    private final Button button2;
    private final Button button3;

    public sampleViewGroup(Context context){
        super(context);
        super.setOrientation(LinearLayout.HORIZONTAL);

        Button button1 = new Button(context);
        Button button2 = new Button(context);
        Button button3 = new Button(context);

        super.addView(button1);
        super.addView(button2);
        super.addView(button3);
    }
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to