<include layout="@layout/header" />

On Wed, Feb 18, 2009 at 12:14 PM, ying lcs <[email protected]> wrote:

>
> Hi,
>
> In my activity, I have the following in my layout.xml file.
> Can you please tell me how can I make it 'resuable'?  For example, I
> what to create a library so that I can insert a component and it
> creates 4 buttons for me using linear layout? How can I combine all
> that into a 'view' or a widget?
>
>
> How can I achieve that?
>
>        <LinearLayout
>        android:orientation="horizontal"
>                android:layout_width="fill_parent"
>                android:layout_height="wrap_content">
>        <Button android:id="@+id/add_button"
>                android:text="+"
>                android:layout_width="wrap_content"
>                android:layout_height="wrap_content"/>
>
>        <Button android:id="@+id/subtract_button"
>                android:text="-"
>                android:layout_width="wrap_content"
>                android:layout_height="wrap_content"/>
>
>        <Button android:id="@+id/multiply_button"
>                android:text="*"
>                android:layout_width="wrap_content"
>                android:layout_height="wrap_content"/>
>
>        <Button android:id="@+id/divide_button"
>                android:text="/"
>                android:layout_width="wrap_content"
>                android:layout_height="wrap_content"/>
> </LinearLayout>
>
> Thank you for any idea?
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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