On Thu, Nov 24, 2011 at 12:21 AM, Siva Prakash <[email protected]>wrote:

> I have a Linear Layout in my project where I put header and footer. Also
> there are some event attached to to footer. Since it will appear in all
> pages is there any way for me to build it is a common layout and load in
> all pages? So that I need not repeat the code in every page.


Make the the contents of the footer a custom component that handles its own
logic. Then you can add it to any layout and it will just do its thing.
There is a section in the documentation on building custom components.

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices

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