android-developers  

Re: [android-developers] Finding Layout in Activity

haric zhu
Fri, 05 Feb 2010 03:31:54 -0800

Yes, you should try this
LayoutInflater  _inflater = LayoutInflater.from(context);
to relect the layout file into your code
Like:
View view= _inflater
                    .inflate(R.layout.tool_bar_
menu_item, parent, false);

this view object is just you want.


2010/2/5 Sasikumar.S <sasikumar.it1...@gmail.com>

> Hi,
>
>
> In a single activity I'm showing more than one layout using
> setContentView();
> How to get the current Viewing Layout?...
>
> --
> Thanks & Regards
> Sasikumar.S
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
Best Regards

Haric

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en