Code example for XmlResourceParser

Methods: getAttributeResourceValuegetAttributeValue

0
     * @param name  The attribute name 
     * 
     * @return  The value of the attribute 
     */ 
    private String getXmlAttribute(XmlResourceParser xrp, String name) {
        int resId = xrp.getAttributeResourceValue(null, name, 0);
        if (resId == 0) {
            return xrp.getAttributeValue(null, name);
        } else { 
            return mWnn.getString(resId);
        } 
    } 
 
    /** 
     * Load a symbols list from XML resource. 
     * 
     * @param id    XML resource ID 
     * @return      The symbols list 
     */ 
    private ArrayList<String> getXmlfile(int id) {
Experience pair programming with AI  Get Codota for Java