How to parse an xml to java class with recycler view or in adapter of recyclerview

后端 未结 2 519
执念已碎
执念已碎 2020-12-07 03:53

I have an xml file which name it is Bookmark and it is into the xml folder. I want to parse xml to recycler view which I can show the list of the Bookmark in recycler view.

2条回答
  •  有刺的猬
    2020-12-07 04:23

    You can use this library to parse XML into your POJO file. parsing can be done in your Fragment.

提交回复
热议问题