[android-developers] Create a custom component using inflate

2010-03-29 Thread arnouf
Hi all, I'm trying to create a component using an xml layout file. I defined a layout with some custom attributes. This layout is inflated when user add it inside another layout. My problem is I don't know the parent, so I pass null for the parent viewgroup when I call inflate method. I think

Re: [android-developers] Create a custom component using inflate

2010-03-29 Thread Mark Murphy
arnouf wrote: Hi all, I'm trying to create a component using an xml layout file. I defined a layout with some custom attributes. This layout is inflated when user add it inside another layout. My problem is I don't know the parent, so I pass null for the parent viewgroup when I call