On Thu, Sep 16, 2010 at 9:49 AM, niko20 <[email protected]> wrote:
> One final question regarding extra space. Say for example on a large
> screen device I decide instead now to create a whole new layout with
> new controls so the user has access to all the controls instead of
> having to use a menu.
>
> How do you code for that then? Is there a way at runtime to tell which
> "layout" really was loaded by the framework so the code can hook into
> it differently?

If you have such-and-so widget in the large layout, that does not
exist in other layouts, use findViewById() to get that widget. If it's
there, configure it for use. If it's not there, don't configure it for
use.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

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