getResourceEntryName for an array item

前端 未结 2 995
轻奢々
轻奢々 2021-01-26 14:06

I have a string array in strings.xml as detailed below:


    First
    

        
2条回答
  •  终归单人心
    2021-01-26 14:49

    As this is an xml, you will need a xml parser. Then you can get the values of name using

    attributes.getValue("name");
    

    Or

    name = ((Element) your_node).getAttribute("name"));
    using DOM parser (org.w3c.dom)
    

提交回复
热议问题