On Sat, Mar 12, 2011 at 12:04 AM, Brill Pappin <[email protected]> wrote:
> Using a standard inflate call like this:
>     LayoutInflater inflater =
> (LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE);
>     View view = inflater.inflate(resourceId, null);
> I want to be able to pass an integer value to the view so I can use it in
> the constructor.

Put the integer in your layout XML as a custom attribute.

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

_The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
Available!

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