Did you try creating layout/mylargelayout.xml, then include that from
within layout-large/mylayout.xml and from layout-xlarge/mylayout.xml ?

In your code, you'd always refer to mylayout, but for large and
xlarge, it would end up looking for mylargelayout which would be found
in layout.

I haven't tried this, but it seems like it could work.

- dave

On Mar 6, 5:51 pm, Hari Edo <[email protected]> wrote:
> On Mar 6, 5:00 pm, Romain Guy <[email protected]> wrote:
>
> > If the layout you want to include is *exactly* the same for all
> > configurations, just put it in res/layout.
>
> I once tried to have small rotation-independent clusters of
> views included from layout/, while the activity xml was in
> layout-land.  It seemed to have trouble finding layout/ to
> resolve include tags.  Trouble of the NullPointerException
> variety.
>
> Since then, I dropped that approach, and keep everything
> that a layout-land/ xml might need in layout-land/.  Maybe
> later builds have fixed that bug.

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