This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Android and the fly likes Reusable Layout Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "Reusable Layout" Watch "Reusable Layout" New topic

Reusable Layout

Ross Crockett

Joined: Aug 25, 2009
Posts: 28
Without going as far as creating your own Custom View Component, is there an easy way to create a layout that can be used within other layouts? What I'm after is a sort of JSP include like behaviour where I can create one layout that displays a footer or menu for example, and then include that within other layouts so its on every view. It might be easier to think of the layout as a 'tile' of sorts to be placed in other layouts by some kind of tag.

My hypothetical usage would look something like this:

Misha van Tol
Ranch Hand

Joined: Jan 02, 2010
Posts: 56

Ehm... Yes.
You can nest Layouts.
subject: Reusable Layout
Similar Threads
Having trouble with OnTouchListener
Advice on the use of compound resource qualifiers
framelayout issue (again)
Oculus Layout GUI Builder and layout API: easy but sophisticated