How to refresh the Recycler View on TextView change

谁说胖子不能爱 提交于 2020-02-06 07:26:24

问题


I have a Recycler View list. I want to refesh the Recycler View on TextView value change


回答1:


Did you try? :

textMessage = (EditText)findViewById(R.id.textMessage);
textMessage.addTextChangedListener(new TextWatcher(){
    public void afterTextChanged(Editable s) {

        //Refresh your view, make network calls to server or something
  }
});


来源:https://stackoverflow.com/questions/29419660/how-to-refresh-the-recycler-view-on-textview-change

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!