It's possible.
Create a Layout you would like to have in A,B and C.
Then use <include> in each of the layouts.
Example:
<include android:id="@+id/header"
layout="@layout/header"
android:layout_height="wrap_content"
android:layout_width="fill_parent"/>
On Nov 28, 2011, at 2:26 PM, B.Arunkumar wrote:
> Hi,
>
> I just had a question if it is possible to have a static view
> across different layouts in activities defined? What I mean is that I
> have a number of activities in a project:
>
> 1.Activity A
> 2.Activity B
> 3.Activity C
>
> I need a view which appears in each of these activities but I don't
> want to define the view separately in all the 3 layout xml. How do I
> do it?
>
> Thank you,
> B.Arunkumar
>
> --
> 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
--
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