code: public final int getAttributeResourceID(int index) {
          int resourceIndex=getAttribute(index).name;
          if (m_resourceIDs==null ||
                  resourceIndex<0 || resourceIndex>=m_resourceIDs.length)
          {
              return 0;
          }
          return m_resourceIDs[resourceIndex];
      }
docs: Returns attribute resource ID.