How to add a search filter in RecyclerView to filter through parsed JSON data? edited

后端 未结 2 404
谎友^
谎友^ 2021-01-29 06:08

I am developing an android app which shows a list of countries affected by Coronavirus , the total number of confirmed cases and total Deaths. I am using a JSON API

2条回答
  •  感情败类
    2021-01-29 07:03

    You have to set arraylist to update country data in adapter after getting data from the server.

    Public void setCoronaData (Arraylist coronaData) {
      countryList = coronaData;
      notifyDataSetChanged ();
    }
    

提交回复
热议问题