[android-developers] referencing a nested class in xml

2013-01-24 Thread dashman
i've got a nested View sub-class class In a xml file, i have a reference to it Where MyView is a sub-class of View. I'm getting run-time error for class not found. do i need to delimit using $ instead of . -- -- You received this message because you are subscribed to the Google Groups "

Re: [android-developers] referencing a nested class in xml

2013-01-24 Thread Mark Murphy
If MyView is static inner class of MyFragment, with a public constructor following the two-parameter form for View subclasses, use com.example.test.MyFragment$MyView. On Thu, Jan 24, 2013 at 1:46 PM, dashman wrote: > i've got a nested View sub-class class > > In a xml file, i have a reference t

Re: [android-developers] referencing a nested class in xml

2013-01-24 Thread dashman
it's not static. my bad - created a separate class and works now. On Thursday, January 24, 2013 1:51:17 PM UTC-5, Mark Murphy (a Commons Guy) wrote: > > If MyView is static inner class of MyFragment, with a public > constructor following the two-parameter form for View subclasses, use > com.e