protected boolean onCreateCustomFromTag(XmlPullParser parser,T parent,final AttributeSet attrs) throws XmlPullParserException {
  return false;
}

protected boolean onCreateCustomFromTag ( XmlPullParser parser , T parent , final AttributeSet attrs ) throws XmlPullParserException { return false ; }
before this inflater tries to create an item from the tag , this method will be called . the parser will be pointing to the start of a tag , you must stop parsing and return when you reach the end of this element !
