protected T onCreateItem(String name,AttributeSet attrs) throws ClassNotFoundException {
  return createItem(name,mDefaultPackage,attrs);
}

protected T onCreateItem ( String name , AttributeSet attrs ) throws ClassNotFoundException { return createItem ( name , mDefaultPackage , attrs ) ; }
this routine is responsible for creating the correct subclass of item given the xml element name . override it to handle custom item objects . if you override this in your subclass be sure to call through to super . oncreateitem ( name ) for names you do not recognize .
