我正在使用自定义列表视图从JSON解析中获取数据,现在我有一个EditText,用于搜索在ListView中列出的项目。如何实现搜索功能?任何帮助将不胜感激。
ListView_res_name_main_cetegires = (ListView) findViewById(R.id.list_costome_list_main_cetegories);
Custome_res_main_cetegories customAdapter_res_name_main_cetegiores;
if(language.equalsIgnoreCase("English"))
{
customAdapter_res_name_main_cetegiores = new Custome_res_main_cetegories(getApplicationContext(), array_str_name_eng,language);
}else
{
customAdapter_res_name_main_cetegiores = new Custome_res_main_cetegories(getApplicationContext(), array_str_name_arab,language);
}
ListView_res_name_main_cetegires.setAdapter(customAdapter_res_name_main_cetegiores );